Home
last modified time | relevance | path

Searched full:year (Results 1 – 25 of 558) sorted by relevance

12345678910>>...23

/kernel/linux/linux-4.19/arch/alpha/kernel/
Drtc.c51 int epoch, year, ctrl; in init_rtc_epoch() local
60 year = CMOS_READ(RTC_YEAR); in init_rtc_epoch()
62 year = bcd2bin(year); in init_rtc_epoch()
64 /* PC-like is standard; used for year >= 70 */ in init_rtc_epoch()
66 if (year < 20) { in init_rtc_epoch()
68 } else if (year >= 20 && year < 48) { in init_rtc_epoch()
71 } else if (year >= 48 && year < 70) { in init_rtc_epoch()
77 printk(KERN_INFO "Using epoch %d for rtc year %d\n", epoch, year); in init_rtc_epoch()
89 int year = tm->tm_year; in alpha_rtc_read_time() local
91 if (year >= 100) in alpha_rtc_read_time()
[all …]
/kernel/linux/linux-5.10/arch/alpha/kernel/
Drtc.c51 int epoch, year, ctrl; in init_rtc_epoch() local
60 year = CMOS_READ(RTC_YEAR); in init_rtc_epoch()
62 year = bcd2bin(year); in init_rtc_epoch()
64 /* PC-like is standard; used for year >= 70 */ in init_rtc_epoch()
66 if (year < 20) { in init_rtc_epoch()
68 } else if (year >= 20 && year < 48) { in init_rtc_epoch()
71 } else if (year >= 48 && year < 70) { in init_rtc_epoch()
77 printk(KERN_INFO "Using epoch %d for rtc year %d\n", epoch, year); in init_rtc_epoch()
89 int year = tm->tm_year; in alpha_rtc_read_time() local
91 if (year >= 100) in alpha_rtc_read_time()
[all …]
/kernel/linux/linux-4.19/Documentation/RCU/
DRTFP.txt86 reader at a time. The following year, this same group of researchers
102 The year 2000 saw an email exchange that would likely have
106 abundance of RCU patches was presented the following year [McKenney02a],
107 and use of RCU in dcache was first described that same year [Linder02a].
137 Later that year saw a paper describing an RCU implementation
224 ,Year="1980"
244 ,year="1982"
278 ,Year="1984"
314 ,Year="1987"
339 ,year = {1988}
[all …]
/kernel/linux/linux-5.10/Documentation/RCU/
DRTFP.txt86 reader at a time. The following year, this same group of researchers
102 The year 2000 saw an email exchange that would likely have
106 abundance of RCU patches was presented the following year [McKenney02a],
107 and use of RCU in dcache was first described that same year [Linder02a].
137 Later that year saw a paper describing an RCU implementation
224 ,Year="1980"
244 ,year="1982"
278 ,Year="1984"
314 ,Year="1987"
339 ,year = {1988}
[all …]
/kernel/linux/linux-5.10/drivers/rtc/
Drtc-pcf8583.c175 unsigned char ctrl, year[2]; in pcf8583_rtc_read_time() local
178 .nr = sizeof(year), in pcf8583_rtc_read_time()
179 .data = year in pcf8583_rtc_read_time()
202 real_year = year[0]; in pcf8583_rtc_read_time()
205 * The RTC year holds the LSB two bits of the current in pcf8583_rtc_read_time()
206 * year, which should reflect the LSB two bits of the in pcf8583_rtc_read_time()
207 * CMOS copy of the year. Any difference indicates in pcf8583_rtc_read_time()
213 * RTC year wrapped. Adjust it appropriately. in pcf8583_rtc_read_time()
217 tm->tm_year = (real_year + year_offset + year[1] * 100) - 1900; in pcf8583_rtc_read_time()
225 unsigned char year[2], chk; in pcf8583_rtc_set_time() local
[all …]
Drtc-wilco-ec.c43 * @year: Year value (full year % 100)
44 * @century: Century value (full year / 100)
55 u8 year; member
64 * @century: Century value (full year / 100)
65 * @year: Year value (full year % 100)
80 u8 year; member
112 tm->tm_year = rtc.year + (rtc.century * 100) - 1900; in wilco_ec_rtc_read()
128 int year = tm->tm_year + 1900; in wilco_ec_rtc_write() local
139 rtc.century = bin2bcd(year / 100); in wilco_ec_rtc_write()
140 rtc.year = bin2bcd(year % 100); in wilco_ec_rtc_write()
Dlib.c30 int rtc_month_days(unsigned int month, unsigned int year) in rtc_month_days() argument
32 return rtc_days_in_month[month] + (is_leap_year(year) && month == 1); in rtc_month_days()
39 int rtc_year_days(unsigned int day, unsigned int month, unsigned int year) in rtc_year_days() argument
41 return rtc_ydays[is_leap_year(year)][month] + day - 1; in rtc_year_days()
51 unsigned int month, year, secs; in rtc_time64_to_tm() local
60 year = 1970 + days / 365; in rtc_time64_to_tm()
61 days -= (year - 1970) * 365 in rtc_time64_to_tm()
62 + LEAPS_THRU_END_OF(year - 1) in rtc_time64_to_tm()
65 year -= 1; in rtc_time64_to_tm()
66 days += 365 + is_leap_year(year); in rtc_time64_to_tm()
[all …]
Drtc-efi.c24 * returns day of the year [0-365]
30 return rtc_year_days(eft->day, eft->month - 1, eft->year); in compute_yday()
39 int ndays = eft->year * (365 % 7) in compute_wday()
40 + (eft->year - 1) / 4 in compute_wday()
41 - (eft->year - 1) / 100 in compute_wday()
42 + (eft->year - 1) / 400 in compute_wday()
55 eft->year = wtime->tm_year + 1900; in convert_to_efi_time()
91 if (eft->year < 1900 || eft->year > 9999) in convert_from_efi_time()
93 wtime->tm_year = eft->year - 1900; in convert_from_efi_time()
95 /* day in the year [1-365]*/ in convert_from_efi_time()
[all …]
Drtc-rtd119x.c50 static inline int rtd119x_rtc_days_in_year(int year) in rtd119x_rtc_days_in_year() argument
52 return 365 + (is_leap_year(year) ? 1 : 0); in rtd119x_rtc_days_in_year()
88 unsigned int year; in rtd119x_rtc_read_time() local
109 year = data->base_year; in rtd119x_rtc_read_time()
110 while (day >= rtd119x_rtc_days_in_year(year)) { in rtd119x_rtc_read_time()
111 day -= rtd119x_rtc_days_in_year(year); in rtd119x_rtc_read_time()
112 year++; in rtd119x_rtc_read_time()
114 tm->tm_year = year - 1900; in rtd119x_rtc_read_time()
118 while (day >= rtc_month_days(tm->tm_mon, year)) { in rtd119x_rtc_read_time()
119 day -= rtc_month_days(tm->tm_mon, year); in rtd119x_rtc_read_time()
Drtc-lp8788.c138 int ret, i, year; in lp8788_rtc_set_time() local
140 year = tm->tm_year + 1900 - LP8788_BASE_YEAR; in lp8788_rtc_set_time()
141 if (year < 0) { in lp8788_rtc_set_time()
142 dev_err(lp->dev, "invalid year: %d\n", year); in lp8788_rtc_set_time()
152 data[LPTIME_YEAR] = year; in lp8788_rtc_set_time()
194 int ret, i, year; in lp8788_set_alarm() local
196 year = tm->tm_year + 1900 - LP8788_BASE_YEAR; in lp8788_set_alarm()
197 if (year < 0) { in lp8788_set_alarm()
198 dev_err(lp->dev, "invalid year: %d\n", year); in lp8788_set_alarm()
207 data[LPTIME_YEAR] = year; in lp8788_set_alarm()
/kernel/linux/linux-4.19/drivers/rtc/
Drtc-pcf8583.c178 unsigned char ctrl, year[2]; in pcf8583_rtc_read_time() local
181 .nr = sizeof(year), in pcf8583_rtc_read_time()
182 .data = year in pcf8583_rtc_read_time()
205 real_year = year[0]; in pcf8583_rtc_read_time()
208 * The RTC year holds the LSB two bits of the current in pcf8583_rtc_read_time()
209 * year, which should reflect the LSB two bits of the in pcf8583_rtc_read_time()
210 * CMOS copy of the year. Any difference indicates in pcf8583_rtc_read_time()
216 * RTC year wrapped. Adjust it appropriately. in pcf8583_rtc_read_time()
220 tm->tm_year = (real_year + year_offset + year[1] * 100) - 1900; in pcf8583_rtc_read_time()
228 unsigned char year[2], chk; in pcf8583_rtc_set_time() local
[all …]
Drtc-lib.c33 int rtc_month_days(unsigned int month, unsigned int year) in rtc_month_days() argument
35 return rtc_days_in_month[month] + (is_leap_year(year) && month == 1); in rtc_month_days()
42 int rtc_year_days(unsigned int day, unsigned int month, unsigned int year) in rtc_year_days() argument
44 return rtc_ydays[is_leap_year(year)][month] + day-1; in rtc_year_days()
55 unsigned int month, year, secs; in rtc_time64_to_tm() local
64 year = 1970 + days / 365; in rtc_time64_to_tm()
65 days -= (year - 1970) * 365 in rtc_time64_to_tm()
66 + LEAPS_THRU_END_OF(year - 1) in rtc_time64_to_tm()
69 year -= 1; in rtc_time64_to_tm()
70 days += 365 + is_leap_year(year); in rtc_time64_to_tm()
[all …]
Drtc-efi.c29 * returns day of the year [0-365]
35 return rtc_year_days(eft->day, eft->month - 1, eft->year); in compute_yday()
44 int ndays = eft->year * (365 % 7) in compute_wday()
45 + (eft->year - 1) / 4 in compute_wday()
46 - (eft->year - 1) / 100 in compute_wday()
47 + (eft->year - 1) / 400 in compute_wday()
60 eft->year = wtime->tm_year + 1900; in convert_to_efi_time()
96 if (eft->year < 1900 || eft->year > 9999) in convert_from_efi_time()
98 wtime->tm_year = eft->year - 1900; in convert_from_efi_time()
100 /* day in the year [1-365]*/ in convert_from_efi_time()
[all …]
Drtc-rtd119x.c50 static inline int rtd119x_rtc_days_in_year(int year) in rtd119x_rtc_days_in_year() argument
52 return 365 + (is_leap_year(year) ? 1 : 0); in rtd119x_rtc_days_in_year()
88 unsigned int year; in rtd119x_rtc_read_time() local
109 year = data->base_year; in rtd119x_rtc_read_time()
110 while (day >= rtd119x_rtc_days_in_year(year)) { in rtd119x_rtc_read_time()
111 day -= rtd119x_rtc_days_in_year(year); in rtd119x_rtc_read_time()
112 year++; in rtd119x_rtc_read_time()
114 tm->tm_year = year - 1900; in rtd119x_rtc_read_time()
118 while (day >= rtc_month_days(tm->tm_mon, year)) { in rtd119x_rtc_read_time()
119 day -= rtc_month_days(tm->tm_mon, year); in rtd119x_rtc_read_time()
Drtc-lp8788.c142 int ret, i, year; in lp8788_rtc_set_time() local
144 year = tm->tm_year + 1900 - LP8788_BASE_YEAR; in lp8788_rtc_set_time()
145 if (year < 0) { in lp8788_rtc_set_time()
146 dev_err(lp->dev, "invalid year: %d\n", year); in lp8788_rtc_set_time()
156 data[LPTIME_YEAR] = year; in lp8788_rtc_set_time()
198 int ret, i, year; in lp8788_set_alarm() local
200 year = tm->tm_year + 1900 - LP8788_BASE_YEAR; in lp8788_set_alarm()
201 if (year < 0) { in lp8788_set_alarm()
202 dev_err(lp->dev, "invalid year: %d\n", year); in lp8788_set_alarm()
211 data[LPTIME_YEAR] = year; in lp8788_set_alarm()
/kernel/linux/linux-4.19/arch/mips/include/asm/mach-rm/
Dmc146818rtc.h14 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900) argument
16 #define mc146818_decode_year(year) ((year) + 1980) argument
/kernel/linux/linux-5.10/arch/mips/include/asm/mach-rm/
Dmc146818rtc.h14 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900) argument
16 #define mc146818_decode_year(year) ((year) + 1980) argument
/kernel/linux/linux-5.10/arch/x86/platform/intel-mid/
Dintel_mid_vrtc.c60 u32 year; in vrtc_get_time() local
72 year = vrtc_cmos_read(RTC_YEAR); in vrtc_get_time()
76 /* vRTC YEAR reg contains the offset to 1972 */ in vrtc_get_time()
77 year += 1972; in vrtc_get_time()
80 "mon: %d year: %d\n", sec, min, hour, mday, mon, year); in vrtc_get_time()
82 now->tv_sec = mktime64(year, mon, mday, hour, min, sec); in vrtc_get_time()
90 int year; in vrtc_set_mmss() local
96 * tm.year is the number of years since 1900, and the in vrtc_set_mmss()
99 year = tm.tm_year - 72; in vrtc_set_mmss()
101 vrtc_cmos_write(year, RTC_YEAR); in vrtc_set_mmss()
/kernel/linux/linux-4.19/arch/x86/platform/intel-mid/
Dintel_mid_vrtc.c64 u32 year; in vrtc_get_time() local
76 year = vrtc_cmos_read(RTC_YEAR); in vrtc_get_time()
80 /* vRTC YEAR reg contains the offset to 1972 */ in vrtc_get_time()
81 year += 1972; in vrtc_get_time()
84 "mon: %d year: %d\n", sec, min, hour, mday, mon, year); in vrtc_get_time()
86 now->tv_sec = mktime64(year, mon, mday, hour, min, sec); in vrtc_get_time()
94 int year; in vrtc_set_mmss() local
100 * tm.year is the number of years since 1900, and the in vrtc_set_mmss()
103 year = tm.tm_year - 72; in vrtc_set_mmss()
105 vrtc_cmos_write(year, RTC_YEAR); in vrtc_set_mmss()
/kernel/linux/linux-4.19/arch/m68k/atari/
Dtime.c122 int hour, year; in atari_mste_hwclk() local
150 year = t->tm_year - 80; in atari_mste_hwclk()
151 val.year_ones = year % 10; in atari_mste_hwclk()
152 val.year_tens = year / 10; in atari_mste_hwclk()
156 val.year_ones = (year % 4); /* leap year register */ in atari_mste_hwclk()
181 int sec=0, min=0, hour=0, day=0, mon=0, year=0, wday=0; in atari_tt_hwclk() local
197 year = t->tm_year - atari_rtc_year_offset; in atari_tt_hwclk()
216 year = bin2bcd(year); in atari_tt_hwclk()
249 year = RTC_READ( RTC_YEAR ); in atari_tt_hwclk()
258 RTC_WRITE( RTC_YEAR, year ); in atari_tt_hwclk()
[all …]
/kernel/linux/linux-5.10/arch/m68k/atari/
Dtime.c141 int hour, year; in atari_mste_hwclk() local
169 year = t->tm_year - 80; in atari_mste_hwclk()
170 val.year_ones = year % 10; in atari_mste_hwclk()
171 val.year_tens = year / 10; in atari_mste_hwclk()
175 val.year_ones = (year % 4); /* leap year register */ in atari_mste_hwclk()
200 int sec=0, min=0, hour=0, day=0, mon=0, year=0, wday=0; in atari_tt_hwclk() local
216 year = t->tm_year - atari_rtc_year_offset; in atari_tt_hwclk()
235 year = bin2bcd(year); in atari_tt_hwclk()
268 year = RTC_READ( RTC_YEAR ); in atari_tt_hwclk()
277 RTC_WRITE( RTC_YEAR, year ); in atari_tt_hwclk()
[all …]
/kernel/linux/linux-4.19/drivers/char/
Defirtc.c54 #define is_leap(year) \ argument
55 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
66 * returns day of the year [0-365]
72 return __mon_yday[is_leap(eft->year)][eft->month-1]+ eft->day -1; in compute_yday()
77 * Don't try to provide a year that's before 1998, please !
85 if ( eft->year < 1998 ) { in compute_wday()
86 printk(KERN_ERR "efirtc: EFI year < 1998, invalid date\n"); in compute_wday()
90 for(y=EFI_RTC_EPOCH; y < eft->year; y++ ) { in compute_wday()
105 eft->year = wtime->tm_year + 1900; in convert_to_efi_time()
125 wtime->tm_year = eft->year - 1900; in convert_from_efi_time()
[all …]
/kernel/linux/linux-5.10/kernel/time/
Dtimeconv.c35 * Nonzero if YEAR is a leap year (every 4 years,
38 static int __isleap(long year) in __isleap() argument
40 return (year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0); in __isleap()
109 /* Guess a corrected year, assuming 365 days per year. */ in time64_to_tm()
112 /* Adjust DAYS and Y to match the guessed year. */ in time64_to_tm()
/kernel/linux/linux-4.19/kernel/time/
Dtimeconv.c34 * Nonzero if YEAR is a leap year (every 4 years,
37 static int __isleap(long year) in __isleap() argument
39 return (year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0); in __isleap()
108 /* Guess a corrected year, assuming 365 days per year. */ in time64_to_tm()
111 /* Adjust DAYS and Y to match the guessed year. */ in time64_to_tm()
/kernel/linux/linux-5.10/arch/mips/sibyte/swarm/
Drtc_xicor1241.c49 #define X1241REG_YR 0x35 /* Year */
51 #define X1241REG_Y2K 0x37 /* Year 2K */
137 /* year is split */ in xicor_set_time()
169 unsigned int year, mon, day, hour, min, sec, y2k; in xicor_get_time() local
186 year = xicor_read(X1241REG_YR); in xicor_get_time()
195 year = bcd2bin(year); in xicor_get_time()
198 year += (y2k * 100); in xicor_get_time()
200 return mktime64(year, mon, day, hour, min, sec); in xicor_get_time()

12345678910>>...23