Lines Matching refs:alm
131 struct rtc_wkalrm alm; in wakealarm_show() local
141 retval = rtc_read_alarm(to_rtc_device(dev), &alm); in wakealarm_show()
142 if (retval == 0 && alm.enabled) { in wakealarm_show()
143 alarm = rtc_tm_to_time64(&alm.time); in wakealarm_show()
157 struct rtc_wkalrm alm; in wakealarm_store() local
165 retval = rtc_read_time(rtc, &alm.time); in wakealarm_store()
168 now = rtc_tm_to_time64(&alm.time); in wakealarm_store()
190 retval = rtc_read_alarm(rtc, &alm); in wakealarm_store()
193 if (alm.enabled) { in wakealarm_store()
195 push = rtc_tm_to_time64(&alm.time); in wakealarm_store()
201 alm.enabled = 1; in wakealarm_store()
203 alm.enabled = 0; in wakealarm_store()
210 rtc_time64_to_tm(alarm, &alm.time); in wakealarm_store()
212 retval = rtc_set_alarm(rtc, &alm); in wakealarm_store()