Searched refs:SECS_PER_DAY (Results 1 – 8 of 8) sorted by relevance
/linux-6.6.21/kernel/time/ |
D | timeconv.c | 37 #define SECS_PER_DAY (SECS_PER_HOUR * 24) macro 55 days = div_s64_rem(totalsecs, SECS_PER_DAY, &remainder); in time64_to_tm() 59 rem += SECS_PER_DAY; in time64_to_tm() 62 while (rem >= SECS_PER_DAY) { in time64_to_tm() 63 rem -= SECS_PER_DAY; in time64_to_tm()
|
D | ntp.c | 42 #define SECS_PER_DAY 86400 macro 415 div_s64_rem(secs, SECS_PER_DAY, &rem); in second_overflow() 416 ntp_next_leap_sec = secs + SECS_PER_DAY - rem; in second_overflow() 419 div_s64_rem(secs + 1, SECS_PER_DAY, &rem); in second_overflow() 420 ntp_next_leap_sec = secs + SECS_PER_DAY - rem; in second_overflow()
|
/linux-6.6.21/drivers/rtc/ |
D | rtc-cpcap.c | 30 #define SECS_PER_DAY 86400 macro 57 time = tod + ((cpcap->day & DAY_MASK) * SECS_PER_DAY); in cpcap2rtc_time() 68 cpcap->day = time / SECS_PER_DAY; in rtc2cpcap_time() 69 time %= SECS_PER_DAY; in rtc2cpcap_time() 264 rtc->rtc_dev->range_max = (timeu64_t) (DAY_MASK + 1) * SECS_PER_DAY - 1; in cpcap_rtc_probe()
|
D | rtc-cros-ec.c | 17 #define SECS_PER_DAY (24 * 60 * 60) macro 359 ret = cros_ec_rtc_set(cros_ec, EC_CMD_RTC_SET_ALARM, SECS_PER_DAY * 2); in cros_ec_rtc_probe() 361 cros_ec_rtc->rtc->alarm_offset_max = SECS_PER_DAY - 1; in cros_ec_rtc_probe()
|
D | rtc-sun6i.c | 118 #define SECS_PER_DAY (24 * 3600ULL) macro 480 rtc_time64_to_tm((date & 0xffff) * SECS_PER_DAY, rtc_tm); in sun6i_rtc_gettime() 539 counter_val = div_u64(rtc_tm_to_time64(alrm_tm), SECS_PER_DAY); in sun6i_rtc_setalarm() 609 date = div_u64(rtc_tm_to_time64(rtc_tm), SECS_PER_DAY); in sun6i_rtc_settime() 836 chip->rtc->range_max = (65536 * SECS_PER_DAY) - 1; in sun6i_rtc_probe()
|
D | rtc-cmos.c | 922 #define SECS_PER_DAY (24 * 60 * 60) macro 923 #define SECS_PER_MONTH (28 * SECS_PER_DAY) 924 #define SECS_PER_YEAR (365 * SECS_PER_DAY) 1037 cmos_rtc.rtc->alarm_offset_max = SECS_PER_DAY - 1; in cmos_do_probe()
|
/linux-6.6.21/arch/m68k/mac/ |
D | misc.c | 543 #define SECS_PER_DAY (SECS_PER_HOUR * 24) macro 560 days = div_u64_rem(time, SECS_PER_DAY, &rem); in unmktime() 563 rem += SECS_PER_DAY; in unmktime() 566 while (rem >= SECS_PER_DAY) { in unmktime() 567 rem -= SECS_PER_DAY; in unmktime()
|
/linux-6.6.21/fs/fat/ |
D | misc.c | 183 #define SECS_PER_DAY (SECS_PER_HOUR * 24) macro 226 + DAYS_DELTA) * SECS_PER_DAY; in fat_time_fat2unix() 294 div_s64_rem(seconds, SECS_PER_DAY, &remainder); in fat_truncate_atime()
|