Home
last modified time | relevance | path

Searched refs:days (Results 1 – 25 of 77) sorted by relevance

1234

/linux-6.6.21/drivers/rtc/
Drtc-pcap.c46 u32 days; /* days since 1/1/1970 */ in pcap_rtc_read_alarm() local
51 ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_DAYA, &days); in pcap_rtc_read_alarm()
52 secs += (days & PCAP_RTC_DAY_MASK) * SEC_PER_DAY; in pcap_rtc_read_alarm()
63 u32 tod, days; in pcap_rtc_set_alarm() local
68 days = secs / SEC_PER_DAY; in pcap_rtc_set_alarm()
69 ezx_pcap_write(pcap_rtc->pcap, PCAP_REG_RTC_DAYA, days); in pcap_rtc_set_alarm()
78 u32 tod, days; in pcap_rtc_read_time() local
83 ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_DAY, &days); in pcap_rtc_read_time()
84 secs += (days & PCAP_RTC_DAY_MASK) * SEC_PER_DAY; in pcap_rtc_read_time()
95 u32 tod, days; in pcap_rtc_set_time() local
[all …]
Drtc-mc13xxx.c92 unsigned int seconds, days; in mc13xxx_rtc_set_time() local
96 days = div_s64_rem(rtc_tm_to_time64(tm), SEC_PER_DAY, &seconds); in mc13xxx_rtc_set_time()
123 ret = mc13xxx_reg_write(priv->mc13xxx, MC13XXX_RTCDAY, days); in mc13xxx_rtc_set_time()
158 unsigned int seconds, days; in mc13xxx_rtc_read_alarm() local
173 ret = mc13xxx_reg_read(priv->mc13xxx, MC13XXX_RTCDAY, &days); in mc13xxx_rtc_read_alarm()
189 s1970 = (time64_t)days * SEC_PER_DAY + seconds; in mc13xxx_rtc_read_alarm()
201 u32 seconds, days; in mc13xxx_rtc_set_alarm() local
225 days = div_s64_rem(s1970, SEC_PER_DAY, &seconds); in mc13xxx_rtc_set_alarm()
227 ret = mc13xxx_reg_write(priv->mc13xxx, MC13XXX_RTCDAYA, days); in mc13xxx_rtc_set_alarm()
Drtc-ftrtc010.c68 u32 days, hour, min, sec, offset; in ftrtc010_rtc_read_time() local
74 days = readl(rtc->rtc_base + FTRTC010_RTC_DAYS); in ftrtc010_rtc_read_time()
77 time = offset + days * 86400 + hour * 3600 + min * 60 + sec; in ftrtc010_rtc_read_time()
112 u32 days, hour, min, sec; in ftrtc010_rtc_probe() local
174 days = readl(rtc->rtc_base + FTRTC010_RTC_DAYS); in ftrtc010_rtc_probe()
176 rtc->rtc_dev->range_min = (u64)days * 86400 + hour * 3600 + in ftrtc010_rtc_probe()
Dlib_test.c49 s64 days; in rtc_time64_to_tm_test_date_range() local
55 days = div_s64(secs, 86400); in rtc_time64_to_tm_test_date_range()
58 year, month, mday, yday, days in rtc_time64_to_tm_test_date_range()
Dlib.c55 int days; in rtc_time64_to_tm() local
63 days = div_s64_rem(time, 86400, &secs); in rtc_time64_to_tm()
66 tm->tm_wday = (days + 4) % 7; in rtc_time64_to_tm()
96 udays = ((u32) days) + 719468; in rtc_time64_to_tm()
Drtc-mt6397.c91 int days, sec, ret; in mtk_rtc_read_time() local
112 days = div_s64(time, 86400); in mtk_rtc_read_time()
113 tm->tm_wday = (days + 4) % 7; in mtk_rtc_read_time()
Drtc-rzn1.c81 unsigned int days; in rzn1_rtc_tm_to_wday() local
85 days = div_s64_rem(time, 86400, &secs); in rzn1_rtc_tm_to_wday()
88 return (days + 4) % 7; in rzn1_rtc_tm_to_wday()
Dinterface.c219 unsigned int days; in __rtc_read_alarm() local
358 days = rtc_month_days(alarm->time.tm_mon, in __rtc_read_alarm()
360 } while (days < alarm->time.tm_mday); in __rtc_read_alarm()
/linux-6.6.21/kernel/time/
Dtimeconv.c52 long days, rem; in time64_to_tm() local
55 days = div_s64_rem(totalsecs, SECS_PER_DAY, &remainder); in time64_to_tm()
60 --days; in time64_to_tm()
64 ++days; in time64_to_tm()
73 result->tm_wday = (4 + days) % 7; in time64_to_tm()
105 udays = ((u64) days) + 2305843009213814918ULL; in time64_to_tm()
Dtime_test.c68 s64 days; in time64_to_tm_test_date_range() local
74 days = div_s64(secs, 86400); in time64_to_tm_test_date_range()
77 year, month, mdday, yday, days in time64_to_tm_test_date_range()
/linux-6.6.21/arch/m68k/mac/
Dmisc.c557 int days, rem, y, wday, yday; in unmktime() local
560 days = div_u64_rem(time, SECS_PER_DAY, &rem); in unmktime()
564 --days; in unmktime()
568 ++days; in unmktime()
575 wday = (4 + days) % 7; /* Day in the week. Not currently used */ in unmktime()
584 while (days < 0 || days >= (__isleap (y) ? 366 : 365)) in unmktime()
587 long int yg = y + days / 365 - (days % 365 < 0); in unmktime()
590 days -= (yg - y) * 365 + in unmktime()
595 yday = days; /* day in the year. Not currently used. */ in unmktime()
597 for (y = 11; days < (long int) ip[y]; --y) in unmktime()
[all …]
/linux-6.6.21/fs/affs/
Damigaffs.h39 __be32 days; member
45 __be16 days; member
Damigaffs.c374 u32 days; in affs_secs_to_datestamp() local
381 days = div_s64_rem(secs, 86400, &rem); in affs_secs_to_datestamp()
385 ds->days = cpu_to_be32(days); in affs_secs_to_datestamp()
/linux-6.6.21/drivers/net/wan/
Dhdlc_cisco.c216 u32 sec, min, hrs, days; in cisco_rx() local
221 days = hrs / 24; hrs -= days * 24; in cisco_rx()
223 days, hrs, min, sec); in cisco_rx()
/linux-6.6.21/drivers/input/misc/
Dhp_sdc_rtc.c186 unsigned int days; in hp_sdc_rtc_read_rt() local
192 days = (unsigned int)(raw >> 24) & 0xffff; in hp_sdc_rtc_read_rt()
195 res->tv_sec = (tenms / 100) + (time64_t)days * 86400; in hp_sdc_rtc_read_rt()
/linux-6.6.21/fs/smb/client/
Dnetmisc.c971 time64_t sec, days; in cnvrtDosUnixTm() local
996 days = day + total_days_of_prev_months[month]; in cnvrtDosUnixTm()
997 days += 3652; /* account for difference in days between 1980 and 1970 */ in cnvrtDosUnixTm()
999 days += year * 365; in cnvrtDosUnixTm()
1000 days += (year/4); /* leap year */ in cnvrtDosUnixTm()
1008 days = days - 1; /* do not count leap year for the year 2100 */ in cnvrtDosUnixTm()
1012 days -= ((year & 0x03) == 0) && (month < 2 ? 1 : 0); in cnvrtDosUnixTm()
1013 sec += 24 * 60 * 60 * days; in cnvrtDosUnixTm()
/linux-6.6.21/tools/testing/selftests/bpf/
Dverify_sig_setup.sh41 openssl req -new -nodes -utf8 -sha256 -days 36500 \
/linux-6.6.21/drivers/platform/x86/dell/
Ddell-laptop.c1169 u8 days; member
1251 info->days = (buffer.output[3] >> 24) & 0xFF; in kbd_get_info()
1467 if (kbd_info.days > 63) in kbd_init_info()
1468 kbd_info.days = 63; in kbd_init_info()
1591 if (value > kbd_info.days) in kbd_led_timeout_store()
1633 } else if (value / (60 * 60 * 24) <= kbd_info.days && kbd_info.days) { in kbd_led_timeout_store()
/linux-6.6.21/certs/
DMakefile48 cmd_gen_key = openssl req -new -nodes -utf8 -$(CONFIG_MODULE_SIG_HASH) -days 36500 \
/linux-6.6.21/Documentation/process/
Dsecurity-bugs.rst47 the reporter or an affected party for up to 7 calendar days from the start
48 of the release process, with an exceptional extension to 14 calendar days
Dkernel-enforcement-statement.rst31 60 days after the cessation.
37 copyright holder, and you cure the violation prior to 30 days after
/linux-6.6.21/Documentation/userspace-api/media/dvb/
Dfe-type-t.rst79 In the old days, struct :c:type:`dvb_frontend_info`
/linux-6.6.21/Documentation/core-api/
Dindex.rst12 massive grab-bag of kerneldoc info left over from the docbook days; it
/linux-6.6.21/Documentation/networking/
Dx25.rst35 development and use of Linux X.25. It is early days yet, but interested
/linux-6.6.21/Documentation/gpu/amdgpu/
Damdgpu-glossary.rst37 them. The name GART harkens back to the days of AGP when the platform

1234