Home
last modified time | relevance | path

Searched refs:tm_now (Results 1 – 4 of 4) sorted by relevance

/OK3568_Linux_fs/u-boot/drivers/rtc/
H A Di2c_rtc_emul.c92 struct rtc_time tm_now; in sandbox_i2c_rtc_get() local
96 os_localtime(&tm_now); in sandbox_i2c_rtc_get()
97 now = rtc_mktime(&tm_now); in sandbox_i2c_rtc_get()
108 struct rtc_time tm_now; in sandbox_i2c_rtc_set() local
112 os_localtime(&tm_now); in sandbox_i2c_rtc_set()
113 now = rtc_mktime(&tm_now); in sandbox_i2c_rtc_set()
/OK3568_Linux_fs/kernel/drivers/rtc/
H A Drtc-sunxi.c258 struct rtc_time tm_now; in sunxi_rtc_setalarm() local
267 ret = sunxi_rtc_gettime(dev, &tm_now); in sunxi_rtc_setalarm()
273 diff = rtc_tm_sub(alrm_tm, &tm_now); in sunxi_rtc_setalarm()
H A Drtc-sun6i.c512 struct rtc_time tm_now; in sun6i_rtc_setalarm() local
516 ret = sun6i_rtc_gettime(dev, &tm_now); in sun6i_rtc_setalarm()
523 time_now = rtc_tm_to_time64(&tm_now); in sun6i_rtc_setalarm()
H A Drtc-ds1307.c785 struct rtc_time tm_now; in mcp794xx_alm_weekday() local
788 ret = ds1307_get_time(dev, &tm_now); in mcp794xx_alm_weekday()
792 days_now = div_s64(rtc_tm_to_time64(&tm_now), 24 * 60 * 60); in mcp794xx_alm_weekday()
795 return (tm_now.tm_wday + days_alarm - days_now) % 7 + 1; in mcp794xx_alm_weekday()