Home
last modified time | relevance | path

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

123

/Linux-v5.10/kernel/time/
Dtimeconv.c80 long days, rem, y; in time64_to_tm() local
84 days = div_s64_rem(totalsecs, SECS_PER_DAY, &remainder); in time64_to_tm()
89 --days; in time64_to_tm()
93 ++days; in time64_to_tm()
102 result->tm_wday = (4 + days) % 7; in time64_to_tm()
108 while (days < 0 || days >= (__isleap(y) ? 366 : 365)) { in time64_to_tm()
110 long yg = y + math_div(days, 365); in time64_to_tm()
113 days -= (yg - y) * 365 + leaps_between(y, yg); in time64_to_tm()
119 result->tm_yday = days; in time64_to_tm()
122 for (y = 11; days < ip[y]; y--) in time64_to_tm()
[all …]
/Linux-v5.10/drivers/rtc/
Drtc-davinci.c230 static void convertfromdays(u16 days, struct rtc_time *tm) in convertfromdays() argument
236 if (days >= tmp_days) in convertfromdays()
237 days -= tmp_days; in convertfromdays()
241 if (days >= tmp_days) { in convertfromdays()
242 days -= tmp_days; in convertfromdays()
246 tm->tm_mday = days + 1; in convertfromdays()
255 static void convert2days(u16 *days, struct rtc_time *tm) in convert2days() argument
258 *days = 0; in convert2days()
261 *days += rtc_year_days(1, 12, i); in convert2days()
263 *days += rtc_year_days(tm->tm_mday, tm->tm_mon, 1900 + tm->tm_year); in convert2days()
[all …]
Dlib.c52 int days; in rtc_time64_to_tm() local
55 days = div_s64_rem(time, 86400, &secs); in rtc_time64_to_tm()
58 tm->tm_wday = (days + 4) % 7; in rtc_time64_to_tm()
60 year = 1970 + days / 365; in rtc_time64_to_tm()
61 days -= (year - 1970) * 365 in rtc_time64_to_tm()
64 while (days < 0) { in rtc_time64_to_tm()
66 days += 365 + is_leap_year(year); in rtc_time64_to_tm()
69 tm->tm_yday = days + 1; in rtc_time64_to_tm()
74 newdays = days - rtc_month_days(month, year); in rtc_time64_to_tm()
77 days = newdays; in rtc_time64_to_tm()
[all …]
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
168 days = readl(rtc->rtc_base + FTRTC010_RTC_DAYS); in ftrtc010_rtc_probe()
170 rtc->rtc_dev->range_min = (u64)days * 86400 + hour * 3600 + in ftrtc010_rtc_probe()
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()
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-v5.10/arch/m68k/mac/
Dmisc.c558 int days, rem, y, wday, yday; in unmktime() local
561 days = div_u64_rem(time, SECS_PER_DAY, &rem); in unmktime()
565 --days; in unmktime()
569 ++days; in unmktime()
576 wday = (4 + days) % 7; /* Day in the week. Not currently used */ in unmktime()
585 while (days < 0 || days >= (__isleap (y) ? 366 : 365)) in unmktime()
588 long int yg = y + days / 365 - (days % 365 < 0); in unmktime()
591 days -= (yg - y) * 365 + in unmktime()
596 yday = days; /* day in the year. Not currently used. */ in unmktime()
598 for (y = 11; days < (long int) ip[y]; --y) in unmktime()
[all …]
/Linux-v5.10/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-v5.10/drivers/net/wan/
Dhdlc_cisco.c228 u32 sec, min, hrs, days; in cisco_rx() local
232 days = hrs / 24; hrs -= days * 24; in cisco_rx()
234 days, hrs, min, sec); in cisco_rx()
/Linux-v5.10/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-v5.10/fs/cifs/
Dnetmisc.c975 time64_t sec, days; in cnvrtDosUnixTm() local
1000 days = day + total_days_of_prev_months[month]; in cnvrtDosUnixTm()
1001 days += 3652; /* account for difference in days between 1980 and 1970 */ in cnvrtDosUnixTm()
1003 days += year * 365; in cnvrtDosUnixTm()
1004 days += (year/4); /* leap year */ in cnvrtDosUnixTm()
1012 days = days - 1; /* do not count leap year for the year 2100 */ in cnvrtDosUnixTm()
1016 days -= ((year & 0x03) == 0) && (month < 2 ? 1 : 0); in cnvrtDosUnixTm()
1017 sec += 24 * 60 * 60 * days; in cnvrtDosUnixTm()
/Linux-v5.10/Documentation/admin-guide/
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
74 will generally request at least a few days of embargo, and vendor update
Dedid.rst7 In the good old days when graphics parameters were configured explicitly
/Linux-v5.10/certs/
DMakefile63 $(Q)openssl req -new -nodes -utf8 -$(CONFIG_MODULE_SIG_HASH) -days 36500 \
/Linux-v5.10/drivers/platform/x86/
Ddell-laptop.c1152 u8 days; member
1234 info->days = (buffer.output[3] >> 24) & 0xFF; in kbd_get_info()
1450 if (kbd_info.days > 63) in kbd_init_info()
1451 kbd_info.days = 63; in kbd_init_info()
1574 if (value > kbd_info.days) in kbd_led_timeout_store()
1616 } else if (value / (60 * 60 * 24) <= kbd_info.days && kbd_info.days) { in kbd_led_timeout_store()
/Linux-v5.10/Documentation/process/
Dkernel-enforcement-statement.rst31 60 days after the cessation.
37 copyright holder, and you cure the violation prior to 30 days after
/Linux-v5.10/Documentation/core-api/
Dindex.rst12 massive grab-bag of kerneldoc info left over from the docbook days; it
/Linux-v5.10/Documentation/userspace-api/media/dvb/
Dfe-type-t.rst79 In the old days, struct :c:type:`dvb_frontend_info`
/Linux-v5.10/Documentation/networking/
Dx25.rst37 development and use of Linux X.25. It is early days yet, but interested
/Linux-v5.10/Documentation/ABI/testing/
Dsysfs-platform-dell-laptop56 days, for which the symbols are 's', 'm', 'h' and 'd'
/Linux-v5.10/Documentation/hwmon/
Damd_energy.rst79 The Core energy register may wrap around after several days.
/Linux-v5.10/Documentation/admin-guide/sysctl/
Dindex.rst57 - common sense (this is especially hard to come by these days)

123