Home
last modified time | relevance | path

Searched refs:year (Results 1 – 137 of 137) sorted by relevance

/linux-4.1.27/drivers/rtc/
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; in rtc_time64_to_tm() local
66 year = 1970 + days / 365; in rtc_time64_to_tm()
67 days -= (year - 1970) * 365 in rtc_time64_to_tm()
68 + LEAPS_THRU_END_OF(year - 1) in rtc_time64_to_tm()
71 year -= 1; in rtc_time64_to_tm()
72 days += 365 + is_leap_year(year); in rtc_time64_to_tm()
[all …]
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()
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
231 .nr = sizeof(year), in pcf8583_rtc_set_time()
232 .data = year in pcf8583_rtc_set_time()
259 chk -= year[1] + year[0]; in pcf8583_rtc_set_time()
261 year[1] = proper_year / 100; in pcf8583_rtc_set_time()
[all …]
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()
Drtc-efi.c39 return rtc_year_days(eft->day, eft->month - 1, eft->year); in compute_yday()
52 if (eft->year < EFI_RTC_EPOCH) { in compute_wday()
57 for (y = EFI_RTC_EPOCH; y < eft->year; y++) in compute_wday()
71 eft->year = wtime->tm_year + 1900; in convert_to_efi_time()
106 wtime->tm_year = eft->year - 1900; in convert_from_efi_time()
Drtc-m48t59.c118 int year = tm->tm_year; in m48t59_rtc_set_time() local
122 year -= 68; in m48t59_rtc_set_time()
126 year + 1900, tm->tm_mon, tm->tm_mday, in m48t59_rtc_set_time()
129 if (year < 0) in m48t59_rtc_set_time()
142 M48T59_WRITE(bin2bcd(year % 100), M48T59_YEAR); in m48t59_rtc_set_time()
144 if (pdata->type == M48T59RTC_TYPE_M48T59 && (year / 100)) in m48t59_rtc_set_time()
213 int year = tm->tm_year; in m48t59_rtc_setalarm() local
217 year -= 68; in m48t59_rtc_setalarm()
224 if (year < 0) in m48t59_rtc_setalarm()
258 year + 1900, tm->tm_mon, tm->tm_mday, in m48t59_rtc_setalarm()
Drtc-r9701.c100 int ret, year; in r9701_set_datetime() local
102 year = dt->tm_year + 1900; in r9701_set_datetime()
103 if (year >= 2100 || year < 2000) in r9701_set_datetime()
Drtc-mv.c73 unsigned int year, month, day, hour, minute, second, wday; in mv_rtc_read_time() local
85 year = (rtc_date >> RTC_YEAR_OFFS) & 0xff; in mv_rtc_read_time()
94 tm->tm_year = bcd2bin(year) + 100; in mv_rtc_read_time()
104 unsigned int year, month, day, hour, minute, second, wday; in mv_rtc_read_alarm() local
116 year = (rtc_date >> RTC_YEAR_OFFS) & 0xff; in mv_rtc_read_alarm()
125 alm->time.tm_year = bcd2bin(year) + 100; in mv_rtc_read_alarm()
Drtc-bq4802.c98 unsigned int year; in bq4802_set_time() local
100 year = tm->tm_year + 1900; in bq4802_set_time()
101 century = year / 100; in bq4802_set_time()
102 yrs = year % 100; in bq4802_set_time()
Drtc-sun6i.c271 int year; in sun6i_rtc_settime() local
273 year = rtc_tm->tm_year + 1900; in sun6i_rtc_settime()
274 if (year < SUN6I_YEAR_MIN || year > SUN6I_YEAR_MAX) { in sun6i_rtc_settime()
287 if (is_leap_year(year)) in sun6i_rtc_settime()
Drtc-ds1216.c24 u8 year; member
100 tm->tm_year = bcd2bin(regs.year); in ds1216_rtc_read_time()
129 regs.year = bin2bcd(tm->tm_year % 100); in ds1216_rtc_set_time()
Drtc-davinci.c245 int tmp_days, year, mon; in convertfromdays() local
247 for (year = 2000;; year++) { in convertfromdays()
248 tmp_days = rtc_year_days(1, 12, year); in convertfromdays()
253 tmp_days = rtc_month_days(mon, year); in convertfromdays()
257 tm->tm_year = year - 1900; in convertfromdays()
Drtc-m48t35.c36 u8 year; member
69 tm->tm_year = readb(&priv->reg->year); in m48t35_read_time()
129 writeb(yrs, &priv->reg->year); in m48t35_set_time()
Drtc-da9063.c27 #define YEARS_TO_DA9063(year) ((year) - 100) argument
29 #define YEARS_FROM_DA9063(year) ((year) + 100) argument
Drtc-sunxi.c348 int year; in sunxi_rtc_settime() local
356 year = rtc_tm->tm_year + 1900; in sunxi_rtc_settime()
357 if (year < chip->data_year->min || year > chip->data_year->max) { in sunxi_rtc_settime()
371 if (is_leap_year(year)) in sunxi_rtc_settime()
Drtc-ds1742.c93 unsigned int year, month, day, hour, minute, second, week; in ds1742_rtc_read_time() local
107 year = readb(ioaddr + RTC_YEAR); in ds1742_rtc_read_time()
117 tm->tm_year = bcd2bin(year) + bcd2bin(century) * 100 - 1900; in ds1742_rtc_read_time()
Drtc-pl031.c120 int year = tm->tm_year + 1900; in pl031_stv2_tm_to_time() local
137 *bcd_year = (bin2bcd(year % 100) | bin2bcd(year / 100) << 8); in pl031_stv2_tm_to_time()
Drtc-sh.c418 int year; in sh_rtc_set_time() local
436 year = (bin2bcd((tm->tm_year + 1900) / 100) << 8) | in sh_rtc_set_time()
438 writew(year, rtc->regbase + RYRCNT); in sh_rtc_set_time()
440 year = tm->tm_year % 100; in sh_rtc_set_time()
441 writeb(bin2bcd(year), rtc->regbase + RYRCNT); in sh_rtc_set_time()
Drtc-stk17ta8.c105 unsigned int year, month, day, hour, minute, second, week; in stk17ta8_rtc_read_time() local
122 year = readb(ioaddr + RTC_YEAR); in stk17ta8_rtc_read_time()
132 tm->tm_year = bcd2bin(year) + bcd2bin(century) * 100 - 1900; in stk17ta8_rtc_read_time()
Drtc-ds3232.c108 unsigned int year, month, day, hour, minute, second; in ds3232_read_time() local
125 year = buf[6]; in ds3232_read_time()
155 time->tm_year = bcd2bin(year) + add_century; in ds3232_read_time()
Drtc-ds1553.c106 unsigned int year, month, day, hour, minute, second, week; in ds1553_rtc_read_time() local
120 year = readb(ioaddr + RTC_YEAR); in ds1553_rtc_read_time()
130 tm->tm_year = bcd2bin(year) + bcd2bin(century) * 100 - 1900; in ds1553_rtc_read_time()
Drtc-ab8500.c71 static unsigned long get_elapsed_seconds(int year) in get_elapsed_seconds() argument
75 .tm_year = year - 1900, in get_elapsed_seconds()
Drtc-s3c.c211 int year = tm->tm_year - 100; in s3c_rtc_settime() local
219 if (year < 0 || year >= 100) { in s3c_rtc_settime()
231 writeb(bin2bcd(year), info->base + S3C2410_RTCYEAR); in s3c_rtc_settime()
Drtc-mpc5121.c51 u16 year; /* RTC + 0x16 */ member
171 tm->tm_year = in_be16(&regs->year) - 1900; in mpc5200_rtc_read_time()
Dinterface.c166 enum { none, day, month, year } missing = none; in __rtc_read_alarm() enumerator
262 missing = year; in __rtc_read_alarm()
304 case year: in __rtc_read_alarm()
Drtc-ds1685.c1694 DS1685_RTC_SYSFS_TIME_REG_RW(year);
DKconfig438 platform specific method of retrieving the current year from
440 chip, but the year will probably have to be tweaked.
/linux-4.1.27/arch/alpha/kernel/
Drtc.c52 int epoch, year, ctrl; in init_rtc_epoch() local
61 year = CMOS_READ(RTC_YEAR); in init_rtc_epoch()
63 year = bcd2bin(year); in init_rtc_epoch()
67 if (year < 20) { in init_rtc_epoch()
69 } else if (year >= 20 && year < 48) { in init_rtc_epoch()
72 } else if (year >= 48 && year < 70) { in init_rtc_epoch()
78 printk(KERN_INFO "Using epoch %d for rtc year %d\n", epoch, year); in init_rtc_epoch()
90 int year = tm->tm_year; in alpha_rtc_read_time() local
92 if (year >= 100) in alpha_rtc_read_time()
93 year -= 100; in alpha_rtc_read_time()
[all …]
Derr_common.c174 timestamp->b.year, timestamp->b.hour, in el_print_timestamp()
/linux-4.1.27/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
/linux-4.1.27/fs/udf/
Dudftime.c47 #define __isleap(year) \ argument
48 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
92 u16 year = le16_to_cpu(src.year); in udf_disk_stamp_to_time() local
105 if ((year < EPOCH_YEAR) || in udf_disk_stamp_to_time()
106 (year >= EPOCH_YEAR + MAX_YEAR_SECONDS)) { in udf_disk_stamp_to_time()
109 dest->tv_sec = year_seconds[year - EPOCH_YEAR]; in udf_disk_stamp_to_time()
112 yday = ((__mon_yday[__isleap(year)][src.month - 1]) + src.day - 1); in udf_disk_stamp_to_time()
154 dest->year = cpu_to_le16(y); in udf_time_to_disk_stamp()
Decma_167.h62 __le16 year; member
Dsuper.c925 le16_to_cpu(ts->year), ts->month, ts->day, ts->hour, in udf_load_pvoldesc()
2210 le16_to_cpu(ts.year), ts.month, ts.day, in udf_fill_super()
/linux-4.1.27/arch/frv/kernel/
Dtime.c90 unsigned int year, mon, day, hour, min, sec; in read_persistent_clock() local
92 extern void arch_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec); in read_persistent_clock()
97 year = 1980; in read_persistent_clock()
100 arch_gettod (&year, &mon, &day, &hour, &min, &sec); in read_persistent_clock()
102 if ((year += 1900) < 1970) in read_persistent_clock()
103 year += 100; in read_persistent_clock()
104 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock()
Dsetup.c1121 void arch_gettod(int *year, int *mon, int *day, int *hour, in arch_gettod() argument
1124 *year = *mon = *day = *hour = *min = *sec = 0; in arch_gettod()
/linux-4.1.27/arch/m32r/kernel/
Dtime.c142 unsigned int epoch, year, mon, day, hour, min, sec; in read_persistent_clock() local
144 sec = min = hour = day = mon = year = 0; in read_persistent_clock()
147 year = 23; in read_persistent_clock()
154 if (year > 10 && year < 44) in read_persistent_clock()
156 else if (year < 96) in read_persistent_clock()
158 year += epoch; in read_persistent_clock()
160 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock()
/linux-4.1.27/arch/mips/include/asm/
Dmc146818-time.h91 unsigned int year, mon, day, hour, min, sec; in mc146818_get_cmos_time() local
102 year = CMOS_READ(RTC_YEAR); in mc146818_get_cmos_time()
111 year = bcd2bin(year); in mc146818_get_cmos_time()
114 year = mc146818_decode_year(year); in mc146818_get_cmos_time()
116 return mktime(year, mon, day, hour, min, sec); in mc146818_get_cmos_time()
Dm48t37.h28 volatile u8 year; member
/linux-4.1.27/arch/x86/platform/intel-mid/
Dintel_mid_vrtc.c63 u32 year; in vrtc_get_time() local
75 year = vrtc_cmos_read(RTC_YEAR); in vrtc_get_time()
80 year += 1972; in vrtc_get_time()
83 "mon: %d year: %d\n", sec, min, hour, mday, mon, year); in vrtc_get_time()
85 now->tv_sec = mktime(year, mon, mday, hour, min, sec); in vrtc_get_time()
93 int year; in vrtc_set_mmss() local
102 year = tm.tm_year - 72; in vrtc_set_mmss()
104 vrtc_cmos_write(year, RTC_YEAR); in vrtc_set_mmss()
/linux-4.1.27/arch/m68k/atari/
Dtime.c109 int hour, year; in atari_mste_hwclk() local
137 year = t->tm_year - 80; in atari_mste_hwclk()
138 val.year_ones = year % 10; in atari_mste_hwclk()
139 val.year_tens = year / 10; in atari_mste_hwclk()
143 val.year_ones = (year % 4); /* leap year register */ in atari_mste_hwclk()
168 int sec=0, min=0, hour=0, day=0, mon=0, year=0, wday=0; in atari_tt_hwclk() local
184 year = t->tm_year - atari_rtc_year_offset; in atari_tt_hwclk()
203 year = bin2bcd(year); in atari_tt_hwclk()
236 year = RTC_READ( RTC_YEAR ); in atari_tt_hwclk()
245 RTC_WRITE( RTC_YEAR, year ); in atari_tt_hwclk()
[all …]
/linux-4.1.27/arch/mips/include/asm/mach-malta/
Dmc146818rtc.h46 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900) argument
/linux-4.1.27/arch/mips/include/asm/mach-generic/
Dmc146818rtc.h33 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900) argument
/linux-4.1.27/arch/mips/include/asm/mach-loongson/
Dmc146818rtc.h33 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1970) argument
/linux-4.1.27/arch/powerpc/platforms/chrp/
Dtime.c131 unsigned int year, mon, day, hour, min, sec; in chrp_get_rtc_time() local
139 year = chrp_cmos_clock_read(RTC_YEAR); in chrp_get_rtc_time()
148 year = bcd2bin(year); in chrp_get_rtc_time()
150 if (year < 70) in chrp_get_rtc_time()
151 year += 100; in chrp_get_rtc_time()
157 tm->tm_year = year; in chrp_get_rtc_time()
/linux-4.1.27/fs/isofs/
Dutil.c20 int year, month, day, hour, minute, second, tz; in iso_date() local
23 year = p[0]; in iso_date()
32 if (year < 0) { in iso_date()
35 crtime = mktime64(year+1900, month, day, hour, minute, second); in iso_date()
/linux-4.1.27/drivers/char/
Defirtc.c55 #define is_leap(year) \ argument
56 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
73 return __mon_yday[is_leap(eft->year)][eft->month-1]+ eft->day -1; in compute_yday()
86 if ( eft->year < 1998 ) { in compute_wday()
91 for(y=EFI_RTC_EPOCH; y < eft->year; y++ ) { in compute_wday()
106 eft->year = wtime->tm_year + 1900; in convert_to_efi_time()
126 wtime->tm_year = eft->year - 1900; in convert_from_efi_time()
323 eft.year, eft.month, eft.day, in efi_rtc_proc_show()
340 alm.year, alm.month, alm.day, in efi_rtc_proc_show()
Drtc.c959 unsigned int year, ctrl; in rtc_init() local
1083 year = CMOS_READ(RTC_YEAR); in rtc_init()
1088 year = bcd2bin(year); /* This should never happen... */ in rtc_init()
1090 if (year < 20) { in rtc_init()
1093 } else if (year >= 20 && year < 48) { in rtc_init()
1096 } else if (year >= 48 && year < 72) { in rtc_init()
1100 } else if (year >= 72 && year < 74) { in rtc_init()
1104 } else if (year >= 70) { in rtc_init()
Dgenrtc.c304 int year; in gen_rtc_ioctl() local
313 year = wtime.tm_year + 1900; in gen_rtc_ioctl()
314 leap_yr = ((!(year % 4) && (year % 100)) || in gen_rtc_ioctl()
315 !(year % 400)); in gen_rtc_ioctl()
Dtoshiba.c430 int i,major,minor,day,year,month,flag; in tosh_probe() local
482 year = ((readb(bios+0xfffb)-'0')*10)+(readb(bios+0xfffc)-'0'); in tosh_probe()
483 tosh_date = (((year-90) & 0x1f)<<10) | ((month & 0xf)<<6) in tosh_probe()
/linux-4.1.27/arch/x86/kernel/
Drtc.c64 unsigned int status, year, mon, day, hour, min, sec, century = 0; in mach_get_cmos_time() local
83 year = CMOS_READ(RTC_YEAR); in mach_get_cmos_time()
102 year = bcd2bin(year); in mach_get_cmos_time()
107 year += century * 100; in mach_get_cmos_time()
109 year += CMOS_YEARS_OFFS; in mach_get_cmos_time()
111 now->tv_sec = mktime(year, mon, day, hour, min, sec); in mach_get_cmos_time()
/linux-4.1.27/arch/mips/dec/
Dtime.c23 unsigned int year, mon, day, hour, min, sec, real_year; in read_persistent_clock() local
34 year = CMOS_READ(RTC_YEAR); in read_persistent_clock()
51 year = bcd2bin(year); in read_persistent_clock()
54 year += real_year - 72 + 2000; in read_persistent_clock()
56 ts->tv_sec = mktime(year, mon, day, hour, min, sec); in read_persistent_clock()
/linux-4.1.27/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
244 ,year="1982"
339 ,year = {1988}
359 ,year="1989"
370 ,year="1990"
405 ,year="1992"
[all …]
/linux-4.1.27/kernel/time/
Dtimeconv.c37 static int __isleap(long year) in __isleap() argument
39 return (year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0); in __isleap()
Dtime.c328 unsigned int mon = mon0, year = year0; in mktime64() local
333 year -= 1; in mktime64()
337 (year/4 - year/100 + year/400 + 367*mon/12 + day) + in mktime64()
338 year*365 - 719499 in mktime64()
/linux-4.1.27/arch/mips/sibyte/swarm/
Drtc_m41t81.c193 unsigned int year, mon, day, hour, min, sec; in m41t81_get_time() local
209 year = m41t81_read(M41T81REG_YR); in m41t81_get_time()
217 year = bcd2bin(year); in m41t81_get_time()
219 year += 2000; in m41t81_get_time()
221 return mktime(year, mon, day, hour, min, sec); in m41t81_get_time()
Drtc_xicor1241.c173 unsigned int year, mon, day, hour, min, sec, y2k; in xicor_get_time() local
190 year = xicor_read(X1241REG_YR); in xicor_get_time()
199 year = bcd2bin(year); in xicor_get_time()
202 year += (y2k * 100); in xicor_get_time()
204 return mktime(year, mon, day, hour, min, sec); in xicor_get_time()
/linux-4.1.27/arch/sh/boards/mach-sh03/
Drtc.c42 unsigned int year, mon, day, hour, min, sec; in get_cmos_time() local
52 year = (__raw_readb(RTC_YEA1) & 0xf) + (__raw_readb(RTC_YEA10) & 0xf) * 10 in get_cmos_time()
56 if (year == 0 || mon < 1 || mon > 12 || day > 31 || day < 1 || in get_cmos_time()
61 year, mon, day, hour, min, sec); in get_cmos_time()
77 return mktime(year, mon, day, hour, min, sec); in get_cmos_time()
/linux-4.1.27/include/linux/
Drtc.h19 extern int rtc_month_days(unsigned int month, unsigned int year);
20 extern int rtc_year_days(unsigned int day, unsigned int month, unsigned int year);
207 static inline bool is_leap_year(unsigned int year) in is_leap_year() argument
209 return (!(year % 4) && (year % 100)) || !(year % 400); in is_leap_year()
Dtime.h42 extern time64_t mktime64(const unsigned int year, const unsigned int mon,
49 static inline unsigned long mktime(const unsigned int year, in mktime() argument
54 return mktime64(year, mon, day, hour, min, sec); in mktime()
Dfb.h72 __u32 year; /* Year manufactured */ member
Defi.h139 u16 year; member
/linux-4.1.27/arch/parisc/include/asm/
Drtc.h35 # define __isleap(year) \ argument
36 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
/linux-4.1.27/arch/powerpc/platforms/maple/
Dtime.c86 int sec, min, hour, mon, mday, year; in maple_set_rtc_time() local
103 year = tm->tm_year; in maple_set_rtc_time()
111 year = bin2bcd(year); in maple_set_rtc_time()
118 maple_clock_write(year, RTC_YEAR); in maple_set_rtc_time()
/linux-4.1.27/crypto/asymmetric_keys/
Dx509_cert_parser.c502 unsigned year, mon, day, hour, min, sec, mon_len; in x509_decode_time() local
511 year = DD2bin(p); in x509_decode_time()
512 if (year >= 50) in x509_decode_time()
513 year += 1900; in x509_decode_time()
515 year += 2000; in x509_decode_time()
520 year = DD2bin(p) * 100 + DD2bin(p); in x509_decode_time()
521 if (year >= 1950 && year <= 2049) in x509_decode_time()
538 if (year % 4 == 0) { in x509_decode_time()
540 if (year % 100 == 0) { in x509_decode_time()
542 if (year % 400 == 0) in x509_decode_time()
[all …]
/linux-4.1.27/fs/fat/
Dmisc.c193 time_t second, day, leap_day, month, year; in fat_time_fat2unix() local
195 year = date >> 9; in fat_time_fat2unix()
199 leap_day = (year + 3) / 4; in fat_time_fat2unix()
200 if (year > YEAR_2100) /* 2100 isn't leap year */ in fat_time_fat2unix()
202 if (IS_LEAP_YEAR(year) && month > 2) in fat_time_fat2unix()
208 second += (year * 365 + leap_day in fat_time_fat2unix()
/linux-4.1.27/arch/mips/include/asm/mach-jazz/
Dmc146818rtc.h36 #define mc146818_decode_year(year) ((year) + 1980) argument
/linux-4.1.27/net/netfilter/
Dxt_time.c107 unsigned int year, i, w = r->dse; in localtime_3() local
117 for (i = 0, year = DSE_FIRST; days_since_epoch[i] > w; in localtime_3()
118 ++i, --year) in localtime_3()
138 if (is_leap(year)) { in localtime_3()
/linux-4.1.27/drivers/firmware/
Ddmi_scan.c834 int year = 0, month = 0, day = 0; in dmi_get_date() local
855 year = simple_strtoul(y, &e, 10); in dmi_get_date()
856 if (y != e && year < 100) { /* 2-digit year */ in dmi_get_date()
857 year += 1900; in dmi_get_date()
858 if (year < 1996) /* no dates < spec 1.0 */ in dmi_get_date()
859 year += 100; in dmi_get_date()
861 if (year > 9999) /* year should fit in %04d */ in dmi_get_date()
862 year = 0; in dmi_get_date()
877 *yearp = year; in dmi_get_date()
/linux-4.1.27/arch/m68k/sun3/
Dintersil.c53 todintersil->year = t->tm_year - 68; in sun3_hwclk()
63 t->tm_year = todintersil->year + 68; in sun3_hwclk()
/linux-4.1.27/arch/ia64/hp/sim/boot/
Dfw-emu.c78 # define __isleap(year) \ in offtime() argument
79 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) in offtime()
90 tp->year = y; in offtime()
/linux-4.1.27/fs/ncpfs/
Ddir.c1198 int month, year, secs; in ncp_date_dos2unix() local
1203 year = date >> 9; in ncp_date_dos2unix()
1205 86400 * ((date & 31) - 1 + day_n[month] + (year / 4) + in ncp_date_dos2unix()
1206 year * 365 - ((year & 3) == 0 && month < 2 ? 1 : 0) + 3653); in ncp_date_dos2unix()
1216 int day, year, nl_day, month; in ncp_date_unix2dos() local
1223 year = day / 365; in ncp_date_unix2dos()
1224 if ((year + 3) / 4 + 365 * year > day) in ncp_date_unix2dos()
1225 year--; in ncp_date_unix2dos()
1226 day -= (year + 3) / 4 + 365 * year; in ncp_date_unix2dos()
1227 if (day == 59 && !(year & 3)) { in ncp_date_unix2dos()
[all …]
/linux-4.1.27/drivers/isdn/hardware/eicon/
Ds_4bri.c190 dword fpgaFlen, fpgaTlen, fpgaDlen, cnt, year, i; in qBri_check_FPGAsrc() local
246 year = 0; in qBri_check_FPGAsrc()
248 year = year * 10 + (fpgaDate[i++] - '0'); in qBri_check_FPGAsrc()
249 } while ((year < 2000) && (fpgaDate[i] != '\0')); in qBri_check_FPGAsrc()
256 if (year >= 2001) { in qBri_check_FPGAsrc()
/linux-4.1.27/arch/m68k/sun3x/
Dtime.c55 h->year = bin2bcd(t->tm_year); in sun3x_hwclk()
65 t->tm_year = bcd2bin(h->year); in sun3x_hwclk()
Dtime.h16 volatile unsigned char year; member
/linux-4.1.27/arch/x86/pci/
Ddirect.c197 int year, devfn; in pci_sanity_check() local
203 dmi_get_date(DMI_BIOS_DATE, &year, NULL, NULL); in pci_sanity_check()
204 if (year >= 2001) in pci_sanity_check()
Dacpi.c133 int year; in pci_acpi_crs_quirks() local
135 if (dmi_get_date(DMI_BIOS_DATE, &year, NULL, NULL) && year < 2008) { in pci_acpi_crs_quirks()
Dmmconfig-shared.c549 int year; in acpi_mcfg_check_entry() local
558 if (dmi_get_date(DMI_BIOS_DATE, &year, NULL, NULL) && in acpi_mcfg_check_entry()
559 year >= 2010) in acpi_mcfg_check_entry()
/linux-4.1.27/drivers/net/can/usb/peak_usb/
Dpcan_usb_pro.h48 u8 year; member
62 u8 year; member
/linux-4.1.27/include/linux/mmc/
Dcard.h23 unsigned short year; member
393 #define cid_rev(hwrev, fwrev, year, month) \ argument
396 ((u64) year) << 16 | \
402 card->cid.year, \
/linux-4.1.27/arch/m68k/include/asm/
Dintersil.h34 unsigned char year; member
Dapollohw.h47 unsigned char month, year; member
/linux-4.1.27/arch/m68k/mac/
Dmisc.c664 #define __isleap(year) \ in unmktime() argument
665 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) in unmktime()
/linux-4.1.27/arch/m68k/apollo/
Dconfig.c225 t->tm_year=rtc->year; in dn_dummy_hwclk()
234 rtc->year=t->tm_year; in dn_dummy_hwclk()
/linux-4.1.27/drivers/acpi/
Dsleep.c326 int year; in acpi_sleep_dmi_check() local
328 if (dmi_get_date(DMI_BIOS_DATE, &year, NULL, NULL) && year >= 2012) in acpi_sleep_dmi_check()
/linux-4.1.27/arch/alpha/include/asm/
Derr_common.h75 u8 year; member
/linux-4.1.27/fs/cifs/
Dnetmisc.c965 int sec, min, days, month, year; in cnvrtDosUnixTm() local
991 year = sd->Year; in cnvrtDosUnixTm()
992 days += year * 365; in cnvrtDosUnixTm()
993 days += (year/4); /* leap year */ in cnvrtDosUnixTm()
1000 if (year >= 120) /* the year 2100 */ in cnvrtDosUnixTm()
1004 if (year != 120) in cnvrtDosUnixTm()
1005 days -= ((year & 0x03) == 0) && (month < 2 ? 1 : 0); in cnvrtDosUnixTm()
/linux-4.1.27/arch/powerpc/kernel/
Dtime.c996 #define leapyear(year) ((year) % 4 == 0 && \ argument
997 ((year) % 100 != 0 || (year) % 400 == 0))
Drtas-proc.c400 unsigned int year, mon, day, hour, min, sec; in ppc_rtas_clock_show() local
401 year = ret[0]; mon = ret[1]; day = ret[2]; in ppc_rtas_clock_show()
404 mktime(year, mon, day, hour, min, sec)); in ppc_rtas_clock_show()
/linux-4.1.27/drivers/ata/
Dahci.c1082 int year, month, date; in ahci_sb600_enable_64bit() local
1093 dmi_get_date(DMI_BIOS_DATE, &year, &month, &date); in ahci_sb600_enable_64bit()
1094 snprintf(buf, sizeof(buf), "%04d%02d%02d", year, month, date); in ahci_sb600_enable_64bit()
1217 int year, month, date; in ahci_broken_suspend() local
1223 dmi_get_date(DMI_BIOS_DATE, &year, &month, &date); in ahci_broken_suspend()
1224 snprintf(buf, sizeof(buf), "%04d%02d%02d", year, month, date); in ahci_broken_suspend()
/linux-4.1.27/Documentation/EDID/
Dedid.S74 year: .byte YEAR-1990 label
/linux-4.1.27/arch/s390/include/uapi/asm/
Dvtoc.h36 __u8 year; member
/linux-4.1.27/drivers/iio/imu/
Dadis16480.c156 u16 md, year; in adis16480_show_firmware_date() local
161 ret = adis_read_reg_16(&adis16480->adis, ADIS16480_REG_FIRM_Y, &year); in adis16480_show_firmware_date()
170 md >> 8, md & 0xff, year); in adis16480_show_firmware_date()
/linux-4.1.27/drivers/staging/unisys/common-spar/include/channels/
Ddiagchannel.h110 u16 year; /* 1998 - 20XX */ member
/linux-4.1.27/Documentation/networking/
Dx25.txt3 As my third year dissertation at University I have taken it upon myself to
Deql.txt235 year.
Darcnet-hardware.txt2918 year!)
/linux-4.1.27/drivers/mmc/core/
Dmmc.c87 card->cid.year = UNSTUFF_BITS(resp, 8, 4) + 1997; in mmc_decode_cid()
104 card->cid.year = UNSTUFF_BITS(resp, 8, 4) + 1997; in mmc_decode_cid()
495 if (card->cid.year < 2010) in mmc_decode_ext_csd()
496 card->cid.year += 16; in mmc_decode_ext_csd()
711 MMC_DEV_ATTR(date, "%02d/%04d\n", card->cid.month, card->cid.year);
Dsd.c93 card->cid.year = UNSTUFF_BITS(resp, 12, 8); in mmc_decode_cid()
96 card->cid.year += 2000; /* SD cards year offset */ in mmc_decode_cid()
694 MMC_DEV_ATTR(date, "%02d/%04d\n", card->cid.month, card->cid.year);
/linux-4.1.27/drivers/scsi/esas2r/
Desas2r_flash.c1081 u16 year = LOWORD(a->flash_ver); in esas2r_print_flash_rev() local
1089 || year < 2006 in esas2r_print_flash_rev()
1090 || year > 9999) { in esas2r_print_flash_rev()
1096 sprintf(a->flash_rev, "%02d/%02d/%04d", month, day, year); in esas2r_print_flash_rev()
Desas2r_main.c1499 ci->date_time.year = le16_to_cpu(ci->date_time.year); in esas2r_nuxi_cfg_data()
Datvda.h957 u16 year; member
/linux-4.1.27/drivers/media/rc/
Dimon.c691 unsigned int year, unsigned int month, in send_set_imon_clock() argument
708 clock_enable_pkt[0][1] = year; in send_set_imon_clock()
734 clock_enable_pkt[0][0] = year; in send_set_imon_clock()
849 unsigned int year, month, day, dow, hour, minute, second; in store_imon_clock() local
864 if (sscanf(buf, "%u %u %u %u %u %u %u", &year, &month, &day, &dow, in store_imon_clock()
877 retval = send_set_imon_clock(ictx, year, month, day, dow, in store_imon_clock()
/linux-4.1.27/include/acpi/
Dacbuffer.h79 u16 year; member
/linux-4.1.27/include/xen/interface/
Dplatform.h137 uint16_t year; member
/linux-4.1.27/Documentation/video4linux/
Dmeye.txt29 The third one, present in recent (more or less last year) Picturebooks
/linux-4.1.27/Documentation/
DManagementStyle77 work you had people work on for the last year. Suddenly the decision
78 you made a year ago wasn't a big decision after all, since it could be
86 - having somebody tell you that what you worked on for the last year
DCodingStyle360 less-than-gifted first-year high-school student might not even
/linux-4.1.27/security/tomoyo/
Daudit.c165 "fsuid=%u fsgid=%u }", stamp.year, stamp.month, in tomoyo_print_header()
Dutil.c116 stamp->year = y; in tomoyo_convert_time()
Dcommon.h888 u16 year; member
Dcommon.c2299 stamp.year, stamp.month, stamp.day, in tomoyo_read_stat()
/linux-4.1.27/Documentation/scsi/
DChangeLog.sym53c8xx_223 - Add year 2001 to Copyright.
Darcmsr_spec.txt98 ** byte 2 : year (04)
DChangeLog.ncr53c8xx116 - Add year 2000 copyright.
DChangeLog.sym53c8xx201 - Add year 2000 copyright.
/linux-4.1.27/drivers/scsi/
Dips.c6007 int year; in ips_fix_ffdc_time() local
6034 year = IPS_EPOCH_YEAR; in ips_fix_ffdc_time()
6035 while (days < 0 || days >= year_lengths[yleap = IPS_IS_LEAP_YEAR(year)]) { in ips_fix_ffdc_time()
6038 newy = year + (days / IPS_DAYS_NORMAL_YEAR); in ips_fix_ffdc_time()
6041 days -= (newy - year) * IPS_DAYS_NORMAL_YEAR + in ips_fix_ffdc_time()
6043 IPS_NUM_LEAP_YEARS_THROUGH(year - 1); in ips_fix_ffdc_time()
6044 year = newy; in ips_fix_ffdc_time()
6047 scb->cmd.ffdc.yearH = year / 100; in ips_fix_ffdc_time()
6048 scb->cmd.ffdc.yearL = year % 100; in ips_fix_ffdc_time()
/linux-4.1.27/drivers/video/fbdev/core/
Dfbmon.c302 specs->year = block[9] + 1990; in parse_vendor_block()
307 DPRINTK(" Year: %u Week %u\n", specs->year, specs->week); in parse_vendor_block()
/linux-4.1.27/arch/x86/platform/efi/
Defi.c115 now->tv_sec = mktime(eft.year, eft.month, eft.day, eft.hour, in efi_get_time()
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
Dwmi.h639 u8 year; member
/linux-4.1.27/tools/usb/usbip/
DCOPYING294 Copyright (C) <year> <name of author>
316 Gnomovision version 69, Copyright (C) year name of author
/linux-4.1.27/drivers/staging/rtl8192u/
Dcopying294 Copyright (C) <year> <name of author>
316 Gnomovision version 69, Copyright (C) year name of author
/linux-4.1.27/
DCOPYING310 Copyright (C) <year> <name of author>
332 Gnomovision version 69, Copyright (C) year name of author
DCREDITS3564 D: One-week tutorials on Linux twice a year (free of charge)
/linux-4.1.27/drivers/net/ethernet/neterion/vxge/
Dvxge-config.h216 u32 year; member
Dvxge-config.c825 fw_date->year = in __vxge_hw_vpath_fw_ver_get()
829 fw_date->month, fw_date->day, fw_date->year); in __vxge_hw_vpath_fw_ver_get()
845 flash_date->year = in __vxge_hw_vpath_fw_ver_get()
849 flash_date->month, flash_date->day, flash_date->year); in __vxge_hw_vpath_fw_ver_get()
/linux-4.1.27/Documentation/sound/alsa/
Dcompress_offload.txt25 The design of this API was inspired by the 2-year experience with the
/linux-4.1.27/Documentation/usb/
Dehci.txt171 for a product that beat all the others to market by over a year!)
/linux-4.1.27/Documentation/development-process/
D3.Early-stage101 of this code (now called mac80211) was delayed for over a year.
D2.Process6 course of one year, the kernel has since had to evolve a number of
/linux-4.1.27/Documentation/input/
Datarikbd.txt478 YY ; year (2 least significant digits)
495 YY ; year (2 least significant digits)
/linux-4.1.27/arch/ia64/kernel/
Defi.c248 ts->tv_sec = mktime(tm.year, tm.month, tm.day, in STUB_GET_TIME()
/linux-4.1.27/drivers/scsi/aacraid/
Daacraid.h210 u8 year; /* e.g., 1997 = 97 */ member
/linux-4.1.27/drivers/staging/rtl8192e/
Dlicense315 Gnomovision version 69, Copyright (C) year name of author Gnomovision comes
/linux-4.1.27/Documentation/arm64/
Darm-acpi.txt433 The ACPI specification changes regularly. During the year 2014, for instance,
/linux-4.1.27/drivers/staging/speakup/
Dspkguide.txt1343 location until at least one year after the last time you distribute an
1383 to it an item stating at least the title, year, new authors, and
1386 stating the title, year, authors, and publisher of the Document as
/linux-4.1.27/Documentation/laptops/
Dthinkpad-acpi.txt605 class. It has been deprecated, and it will be removed in year
1333 class. It has been deprecated, and it will be removed in year
/linux-4.1.27/Documentation/virtual/kvm/
Dtimekeeping.txt217 09h byte Current year (BCD)
/linux-4.1.27/Documentation/sound/oss/
DREADME.OSS307 more than an year ago. The PnP version has the same name but with "PnP"
1309 should be available later this year.