Lines Matching refs:rtc_read
155 static inline u8 rtc_read(struct omap_rtc *rtc, unsigned int reg) in rtc_read() function
207 status = rtc_read(rtc, OMAP_RTC_STATUS_REG); in rtc_wait_not_busy()
221 irq_data = rtc_read(rtc, OMAP_RTC_STATUS_REG); in rtc_irq()
247 reg = rtc_read(rtc, OMAP_RTC_INTERRUPTS_REG); in omap_rtc_alarm_irq_enable()
249 irqwake_reg = rtc_read(rtc, OMAP_RTC_IRQWAKEEN); in omap_rtc_alarm_irq_enable()
294 tm->tm_sec = rtc_read(rtc, OMAP_RTC_SECONDS_REG); in omap_rtc_read_time_raw()
295 tm->tm_min = rtc_read(rtc, OMAP_RTC_MINUTES_REG); in omap_rtc_read_time_raw()
296 tm->tm_hour = rtc_read(rtc, OMAP_RTC_HOURS_REG); in omap_rtc_read_time_raw()
297 tm->tm_mday = rtc_read(rtc, OMAP_RTC_DAYS_REG); in omap_rtc_read_time_raw()
298 tm->tm_mon = rtc_read(rtc, OMAP_RTC_MONTHS_REG); in omap_rtc_read_time_raw()
299 tm->tm_year = rtc_read(rtc, OMAP_RTC_YEARS_REG); in omap_rtc_read_time_raw()
348 alm->time.tm_sec = rtc_read(rtc, OMAP_RTC_ALARM_SECONDS_REG); in omap_rtc_read_alarm()
349 alm->time.tm_min = rtc_read(rtc, OMAP_RTC_ALARM_MINUTES_REG); in omap_rtc_read_alarm()
350 alm->time.tm_hour = rtc_read(rtc, OMAP_RTC_ALARM_HOURS_REG); in omap_rtc_read_alarm()
351 alm->time.tm_mday = rtc_read(rtc, OMAP_RTC_ALARM_DAYS_REG); in omap_rtc_read_alarm()
352 alm->time.tm_mon = rtc_read(rtc, OMAP_RTC_ALARM_MONTHS_REG); in omap_rtc_read_alarm()
353 alm->time.tm_year = rtc_read(rtc, OMAP_RTC_ALARM_YEARS_REG); in omap_rtc_read_alarm()
359 interrupts = rtc_read(rtc, OMAP_RTC_INTERRUPTS_REG); in omap_rtc_read_alarm()
383 reg = rtc_read(rtc, OMAP_RTC_INTERRUPTS_REG); in omap_rtc_set_alarm()
385 irqwake_reg = rtc_read(rtc, OMAP_RTC_IRQWAKEEN); in omap_rtc_set_alarm()
451 val = rtc_read(rtc, OMAP_RTC_INTERRUPTS_REG); in omap_rtc_power_off_program()
456 if (rtc_read(rtc, OMAP_RTC_SECONDS_REG) != seconds) { in omap_rtc_power_off_program()
457 val = rtc_read(rtc, OMAP_RTC_STATUS_REG); in omap_rtc_power_off_program()
789 reg = rtc_read(rtc, OMAP_RTC_OSC_REG); in omap_rtc_probe()
794 reg = rtc_read(rtc, OMAP_RTC_STATUS_REG); in omap_rtc_probe()
811 reg = rtc_read(rtc, OMAP_RTC_CTRL_REG); in omap_rtc_probe()
845 reg = rtc_read(rtc, OMAP_RTC_OSC_REG); in omap_rtc_probe()
935 reg = rtc_read(rtc, OMAP_RTC_OSC_REG); in omap_rtc_remove()
953 rtc->interrupts_reg = rtc_read(rtc, OMAP_RTC_INTERRUPTS_REG); in omap_rtc_suspend()
1013 mask = rtc_read(rtc, OMAP_RTC_INTERRUPTS_REG); in omap_rtc_shutdown()