Lines Matching refs:alm
362 static int davinci_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) in davinci_rtc_read_alarm() argument
369 alm->time.tm_sec = 0; in davinci_rtc_read_alarm()
374 alm->time.tm_min = bcd2bin(rtcss_read(davinci_rtc, PRTCSS_RTC_AMIN)); in davinci_rtc_read_alarm()
377 alm->time.tm_hour = bcd2bin(rtcss_read(davinci_rtc, PRTCSS_RTC_AHOUR)); in davinci_rtc_read_alarm()
390 convertfromdays(days, &alm->time); in davinci_rtc_read_alarm()
392 alm->pending = !!(rtcss_read(davinci_rtc, in davinci_rtc_read_alarm()
395 alm->enabled = alm->pending && device_may_wakeup(dev); in davinci_rtc_read_alarm()
400 static int davinci_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alm) in davinci_rtc_set_alarm() argument
406 convert2days(&days, &alm->time); in davinci_rtc_set_alarm()
411 rtcss_write(davinci_rtc, bin2bcd(alm->time.tm_min), PRTCSS_RTC_AMIN); in davinci_rtc_set_alarm()
414 rtcss_write(davinci_rtc, bin2bcd(alm->time.tm_hour), PRTCSS_RTC_AHOUR); in davinci_rtc_set_alarm()