Lines Matching refs:ds1286_rtc_read
25 static inline u8 ds1286_rtc_read(struct ds1286_priv *priv, int reg) in ds1286_rtc_read() function
44 val = ds1286_rtc_read(priv, RTC_CMD); in ds1286_alarm_irq_enable()
67 val = ds1286_rtc_read(priv, RTC_CMD); in ds1286_ioctl()
75 val = ds1286_rtc_read(priv, RTC_CMD); in ds1286_ioctl()
98 month = ds1286_rtc_read(priv, RTC_MONTH); in ds1286_proc()
105 amode = ((ds1286_rtc_read(priv, RTC_MINUTES_ALARM) & 0x80) >> 5) | in ds1286_proc()
106 ((ds1286_rtc_read(priv, RTC_HOURS_ALARM) & 0x80) >> 6) | in ds1286_proc()
107 ((ds1286_rtc_read(priv, RTC_DAY_ALARM) & 0x80) >> 7); in ds1286_proc()
127 cmd = ds1286_rtc_read(priv, RTC_CMD); in ds1286_proc()
167 if (ds1286_rtc_read(priv, RTC_CMD) & RTC_TE) in ds1286_read_time()
178 save_control = ds1286_rtc_read(priv, RTC_CMD); in ds1286_read_time()
181 tm->tm_sec = ds1286_rtc_read(priv, RTC_SECONDS); in ds1286_read_time()
182 tm->tm_min = ds1286_rtc_read(priv, RTC_MINUTES); in ds1286_read_time()
183 tm->tm_hour = ds1286_rtc_read(priv, RTC_HOURS) & 0x3f; in ds1286_read_time()
184 tm->tm_mday = ds1286_rtc_read(priv, RTC_DATE); in ds1286_read_time()
185 tm->tm_mon = ds1286_rtc_read(priv, RTC_MONTH) & 0x1f; in ds1286_read_time()
186 tm->tm_year = ds1286_rtc_read(priv, RTC_YEAR); in ds1286_read_time()
246 save_control = ds1286_rtc_read(priv, RTC_CMD); in ds1286_set_time()
272 alm->time.tm_min = ds1286_rtc_read(priv, RTC_MINUTES_ALARM) & 0x7f; in ds1286_read_alarm()
273 alm->time.tm_hour = ds1286_rtc_read(priv, RTC_HOURS_ALARM) & 0x1f; in ds1286_read_alarm()
274 alm->time.tm_wday = ds1286_rtc_read(priv, RTC_DAY_ALARM) & 0x07; in ds1286_read_alarm()
275 ds1286_rtc_read(priv, RTC_CMD); in ds1286_read_alarm()