Lines Matching refs:rtc_control

159 	u8			rtc_control;  member
832 if (the_menelaus->rtc_control & RTC_CTRL_MODE12) { in menelaus_to_time()
855 if (the_menelaus->rtc_control & RTC_CTRL_MODE12) { in time_to_menelaus()
968 w->enabled = !!(the_menelaus->rtc_control & RTC_CTRL_AL_EN); in menelaus_read_alarm()
984 if (the_menelaus->rtc_control & RTC_CTRL_AL_EN) { in menelaus_set_alarm()
985 the_menelaus->rtc_control &= ~RTC_CTRL_AL_EN; in menelaus_set_alarm()
987 the_menelaus->rtc_control); in menelaus_set_alarm()
999 the_menelaus->rtc_control |= RTC_CTRL_AL_EN; in menelaus_set_alarm()
1001 the_menelaus->rtc_control); in menelaus_set_alarm()
1025 if (the_menelaus->rtc_control & RTC_CTRL_AL_EN) in menelaus_ioctl()
1027 the_menelaus->rtc_control |= RTC_CTRL_AL_EN; in menelaus_ioctl()
1030 if (!(the_menelaus->rtc_control & RTC_CTRL_AL_EN)) in menelaus_ioctl()
1032 the_menelaus->rtc_control &= ~RTC_CTRL_AL_EN; in menelaus_ioctl()
1054 return menelaus_write_reg(MENELAUS_RTC_CTRL, the_menelaus->rtc_control); in menelaus_ioctl()
1077 the_menelaus->rtc_control &= ~RTC_CTRL_AL_EN; in menelaus_rtc_alarm_work()
1078 menelaus_write_reg(MENELAUS_RTC_CTRL, the_menelaus->rtc_control); in menelaus_rtc_alarm_work()
1109 m->rtc_control = menelaus_read_reg(MENELAUS_RTC_CTRL); in menelaus_rtc_init()
1110 if (!(m->rtc_control & RTC_CTRL_RTC_EN) in menelaus_rtc_init()
1111 || (m->rtc_control & RTC_CTRL_AL_EN) in menelaus_rtc_init()
1112 || (m->rtc_control & RTC_CTRL_EVERY_MASK)) { in menelaus_rtc_init()
1113 if (!(m->rtc_control & RTC_CTRL_RTC_EN)) { in menelaus_rtc_init()
1115 m->rtc_control |= RTC_CTRL_RTC_EN; in menelaus_rtc_init()
1117 m->rtc_control &= ~RTC_CTRL_EVERY_MASK; in menelaus_rtc_init()
1118 m->rtc_control &= ~RTC_CTRL_AL_EN; in menelaus_rtc_init()
1119 menelaus_write_reg(MENELAUS_RTC_CTRL, m->rtc_control); in menelaus_rtc_init()