Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/rtc/
Drtc-pcap.c52 secs += (days & PCAP_RTC_DAY_MASK) * SEC_PER_DAY; in pcap_rtc_read_alarm()
65 tod = secs % SEC_PER_DAY; in pcap_rtc_set_alarm()
68 days = secs / SEC_PER_DAY; in pcap_rtc_set_alarm()
84 secs += (days & PCAP_RTC_DAY_MASK) * SEC_PER_DAY; in pcap_rtc_read_time()
97 tod = secs % SEC_PER_DAY; in pcap_rtc_set_time()
100 days = secs / SEC_PER_DAY; in pcap_rtc_set_time()
Drtc-mc13xxx.c24 #define SEC_PER_DAY (24 * 60 * 60) macro
84 rtc_time64_to_tm((time64_t)days1 * SEC_PER_DAY + seconds, tm); in mc13xxx_rtc_read_time()
96 days = div_s64_rem(rtc_tm_to_time64(tm), SEC_PER_DAY, &seconds); in mc13xxx_rtc_set_time()
108 if (alarmseconds < SEC_PER_DAY) { in mc13xxx_rtc_set_time()
132 if (alarmseconds < SEC_PER_DAY) { in mc13xxx_rtc_set_time()
168 if (seconds >= SEC_PER_DAY) { in mc13xxx_rtc_read_alarm()
189 s1970 = (time64_t)days * SEC_PER_DAY + seconds; in mc13xxx_rtc_read_alarm()
225 days = div_s64_rem(s1970, SEC_PER_DAY, &seconds); in mc13xxx_rtc_set_alarm()
292 priv->rtc->range_max = (timeu64_t)(1 << 15) * SEC_PER_DAY - 1; in mc13xxx_rtc_probe()
Drtc-mcp795.c58 #define SEC_PER_DAY (24 * 60 * 60) macro
279 (SEC_PER_DAY * (365 + is_leap_year(alm->time.tm_year)))) in mcp795_set_alarm()
/linux-6.1.9/include/linux/mfd/
Dezx-pcap.h252 #define SEC_PER_DAY 86400 macro