Home
last modified time | relevance | path

Searched refs:rtc_control (Results 1 – 3 of 3) sorted by relevance

/linux-4.19.296/drivers/rtc/
Drtc-mrst.c146 unsigned char rtc_control; in mrst_read_alarm() local
157 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_read_alarm()
160 t->enabled = !!(rtc_control & RTC_AIE); in mrst_read_alarm()
166 static void mrst_checkintr(struct mrst_rtc *mrst, unsigned char rtc_control) in mrst_checkintr() argument
175 rtc_intr &= (rtc_control & RTC_IRQMASK) | RTC_IRQF; in mrst_checkintr()
182 unsigned char rtc_control; in mrst_irq_enable() local
188 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_irq_enable()
189 mrst_checkintr(mrst, rtc_control); in mrst_irq_enable()
191 rtc_control |= mask; in mrst_irq_enable()
192 vrtc_cmos_write(rtc_control, RTC_CONTROL); in mrst_irq_enable()
[all …]
Drtc-cmos.c258 unsigned char rtc_control; in cmos_read_alarm() local
287 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_read_alarm()
290 if (!(rtc_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in cmos_read_alarm()
319 t->enabled = !!(rtc_control & RTC_AIE); in cmos_read_alarm()
325 static void cmos_checkintr(struct cmos_rtc *cmos, unsigned char rtc_control) in cmos_checkintr() argument
337 rtc_intr &= (rtc_control & RTC_IRQMASK) | RTC_IRQF; in cmos_checkintr()
344 unsigned char rtc_control; in cmos_irq_enable() local
349 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_irq_enable()
350 cmos_checkintr(cmos, rtc_control); in cmos_irq_enable()
352 rtc_control |= mask; in cmos_irq_enable()
[all …]
Drtc-twl.c268 u8 rtc_control; in twl_rtc_read_time() local
290 rtc_control = save_control | BIT_RTC_CTRL_REG_GET_TIME_M; in twl_rtc_read_time()
294 rtc_control |= BIT_RTC_CTRL_REG_RTC_V_OPT; in twl_rtc_read_time()
296 ret = twl_rtc_write_u8(twl_rtc, rtc_control, REG_RTC_CTRL_REG); in twl_rtc_read_time()