Lines Matching refs:alm_tm
182 struct rtc_time *alm_tm = &alm->time; in hym8563_rtc_read_alarm() local
191 alm_tm->tm_sec = 0; in hym8563_rtc_read_alarm()
193 alm_tm->tm_min = (buf[0] & HYM8563_ALM_BIT_DISABLE) ? in hym8563_rtc_read_alarm()
196 alm_tm->tm_hour = (buf[1] & HYM8563_ALM_BIT_DISABLE) ? in hym8563_rtc_read_alarm()
199 alm_tm->tm_mday = (buf[2] & HYM8563_ALM_BIT_DISABLE) ? in hym8563_rtc_read_alarm()
202 alm_tm->tm_wday = (buf[3] & HYM8563_ALM_BIT_DISABLE) ? in hym8563_rtc_read_alarm()
219 struct rtc_time *alm_tm = &alm->time; in hym8563_rtc_set_alarm() local
233 buf[0] = (alm_tm->tm_min < 60 && alm_tm->tm_min >= 0) ? in hym8563_rtc_set_alarm()
234 bin2bcd(alm_tm->tm_min) : HYM8563_ALM_BIT_DISABLE; in hym8563_rtc_set_alarm()
236 buf[1] = (alm_tm->tm_hour < 24 && alm_tm->tm_hour >= 0) ? in hym8563_rtc_set_alarm()
237 bin2bcd(alm_tm->tm_hour) : HYM8563_ALM_BIT_DISABLE; in hym8563_rtc_set_alarm()
239 buf[2] = (alm_tm->tm_mday <= 31 && alm_tm->tm_mday >= 1) ? in hym8563_rtc_set_alarm()
240 bin2bcd(alm_tm->tm_mday) : HYM8563_ALM_BIT_DISABLE; in hym8563_rtc_set_alarm()
242 buf[3] = (alm_tm->tm_wday < 7 && alm_tm->tm_wday >= 0) ? in hym8563_rtc_set_alarm()
243 bin2bcd(alm_tm->tm_wday) : HYM8563_ALM_BIT_DISABLE; in hym8563_rtc_set_alarm()