Home
last modified time | relevance | path

Searched refs:rtc_alarm (Results 1 – 2 of 2) sorted by relevance

/drivers/rtc/
Drtc-sirfsoc.c75 unsigned long rtc_alarm, rtc_count; in sirfsoc_rtc_read_alarm() local
84 rtc_alarm = sirfsoc_rtc_readl(rtcdrv, RTC_ALARM0); in sirfsoc_rtc_read_alarm()
92 if (rtc_count > rtc_alarm) in sirfsoc_rtc_read_alarm()
95 | rtc_alarm >> RTC_SHIFT, &alrm->time); in sirfsoc_rtc_read_alarm()
99 | rtc_alarm >> RTC_SHIFT, &alrm->time); in sirfsoc_rtc_read_alarm()
111 unsigned long rtc_status_reg, rtc_alarm; in sirfsoc_rtc_set_alarm() local
116 rtc_alarm = rtc_tm_to_time64(&alrm->time); in sirfsoc_rtc_set_alarm()
129 sirfsoc_rtc_writel(rtcdrv, RTC_ALARM0, rtc_alarm << RTC_SHIFT); in sirfsoc_rtc_set_alarm()
Drtc-goldfish.c35 u64 rtc_alarm; in goldfish_rtc_read_alarm() local
46 rtc_alarm = (rtc_alarm_high << 32) | rtc_alarm_low; in goldfish_rtc_read_alarm()
48 do_div(rtc_alarm, NSEC_PER_SEC); in goldfish_rtc_read_alarm()
51 rtc_time64_to_tm(rtc_alarm, &alrm->time); in goldfish_rtc_read_alarm()