Searched refs:rtc_control (Results 1 – 7 of 7) sorted by relevance
/drivers/acpi/ |
D | proc.c | 35 static u32 cmos_bcd_read(int offset, int rtc_control); 42 unsigned char rtc_control = 0; in acpi_system_alarm_seq_show() local 47 rtc_control = CMOS_READ(RTC_CONTROL); in acpi_system_alarm_seq_show() 48 sec = cmos_bcd_read(RTC_SECONDS_ALARM, rtc_control); in acpi_system_alarm_seq_show() 49 min = cmos_bcd_read(RTC_MINUTES_ALARM, rtc_control); in acpi_system_alarm_seq_show() 50 hr = cmos_bcd_read(RTC_HOURS_ALARM, rtc_control); in acpi_system_alarm_seq_show() 56 if (!(rtc_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) in acpi_system_alarm_seq_show() 59 day = cmos_bcd_read(RTC_DAY_OF_MONTH, rtc_control); in acpi_system_alarm_seq_show() 61 mo = cmos_bcd_read(acpi_gbl_FADT.month_alarm, rtc_control); in acpi_system_alarm_seq_show() 63 mo = cmos_bcd_read(RTC_MONTH, rtc_control); in acpi_system_alarm_seq_show() [all …]
|
/drivers/rtc/ |
D | rtc-mrst.c | 147 unsigned char rtc_control; in mrst_read_alarm() local 166 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_read_alarm() 169 t->enabled = !!(rtc_control & RTC_AIE); in mrst_read_alarm() 175 static void mrst_checkintr(struct mrst_rtc *mrst, unsigned char rtc_control) in mrst_checkintr() argument 184 rtc_intr &= (rtc_control & RTC_IRQMASK) | RTC_IRQF; in mrst_checkintr() 191 unsigned char rtc_control; in mrst_irq_enable() local 197 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_irq_enable() 198 mrst_checkintr(mrst, rtc_control); in mrst_irq_enable() 200 rtc_control |= mask; in mrst_irq_enable() 201 vrtc_cmos_write(rtc_control, RTC_CONTROL); in mrst_irq_enable() [all …]
|
D | rtc-cmos.c | 211 unsigned char rtc_control; in cmos_read_alarm() local 241 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_read_alarm() 244 if (!(rtc_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in cmos_read_alarm() 274 t->enabled = !!(rtc_control & RTC_AIE); in cmos_read_alarm() 280 static void cmos_checkintr(struct cmos_rtc *cmos, unsigned char rtc_control) in cmos_checkintr() argument 292 rtc_intr &= (rtc_control & RTC_IRQMASK) | RTC_IRQF; in cmos_checkintr() 299 unsigned char rtc_control; in cmos_irq_enable() local 304 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_irq_enable() 305 cmos_checkintr(cmos, rtc_control); in cmos_irq_enable() 307 rtc_control |= mask; in cmos_irq_enable() [all …]
|
D | rtc-twl.c | 240 u8 rtc_control; in twl_rtc_read_time() local 261 rtc_control = save_control | BIT_RTC_CTRL_REG_GET_TIME_M; in twl_rtc_read_time() 265 rtc_control |= BIT_RTC_CTRL_REG_RTC_V_OPT; in twl_rtc_read_time() 267 ret = twl_rtc_write_u8(rtc_control, REG_RTC_CTRL_REG); in twl_rtc_read_time()
|
/drivers/mfd/ |
D | menelaus.c | 172 u8 rtc_control; member 871 if (the_menelaus->rtc_control & RTC_CTRL_MODE12) { in menelaus_to_time() 894 if (the_menelaus->rtc_control & RTC_CTRL_MODE12) { in time_to_menelaus() 1007 w->enabled = !!(the_menelaus->rtc_control & RTC_CTRL_AL_EN); in menelaus_read_alarm() 1023 if (the_menelaus->rtc_control & RTC_CTRL_AL_EN) { in menelaus_set_alarm() 1024 the_menelaus->rtc_control &= ~RTC_CTRL_AL_EN; in menelaus_set_alarm() 1026 the_menelaus->rtc_control); in menelaus_set_alarm() 1038 the_menelaus->rtc_control |= RTC_CTRL_AL_EN; in menelaus_set_alarm() 1040 the_menelaus->rtc_control); in menelaus_set_alarm() 1066 if (the_menelaus->rtc_control & RTC_CTRL_AL_EN) in menelaus_ioctl() [all …]
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac1000.h | 252 enum rtc_control { enum
|
/drivers/char/ |
D | rtc.c | 876 int rtc_control(rtc_task_t *task, unsigned int cmd, unsigned long arg) in rtc_control() function 893 EXPORT_SYMBOL(rtc_control);
|