Searched refs:tm_now (Results 1 – 4 of 4) sorted by relevance
220 struct rtc_time *tm = &alrm->time, tm_now; in rzn1_rtc_set_alarm() local225 ret = rzn1_rtc_read_time(dev, &tm_now); in rzn1_rtc_set_alarm()230 farest = rtc_tm_to_time64(&tm_now) + rtc->rtcdev->alarm_offset_max; in rzn1_rtc_set_alarm()236 days_ahead = tm->tm_mday - tm_now.tm_mday; in rzn1_rtc_set_alarm()237 wday = (tm_now.tm_wday + days_ahead) % 7; in rzn1_rtc_set_alarm()
256 struct rtc_time tm_now; in sunxi_rtc_setalarm() local265 ret = sunxi_rtc_gettime(dev, &tm_now); in sunxi_rtc_setalarm()271 diff = rtc_tm_sub(alrm_tm, &tm_now); in sunxi_rtc_setalarm()
523 struct rtc_time tm_now; in sun6i_rtc_setalarm() local544 ret = sun6i_rtc_gettime(dev, &tm_now); in sun6i_rtc_setalarm()550 time_now = rtc_tm_to_time64(&tm_now); in sun6i_rtc_setalarm()
762 struct rtc_time tm_now; in mcp794xx_alm_weekday() local765 ret = ds1307_get_time(dev, &tm_now); in mcp794xx_alm_weekday()769 days_now = div_s64(rtc_tm_to_time64(&tm_now), 24 * 60 * 60); in mcp794xx_alm_weekday()772 return (tm_now.tm_wday + days_alarm - days_now) % 7 + 1; in mcp794xx_alm_weekday()