/linux-4.4.14/drivers/rtc/ |
D | rtc-lib.c | 33 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 …]
|
D | rtc-pcf8583.c | 178 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 …]
|
D | rtc-efi.c | 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()
|
D | rtc-lp8788.c | 142 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()
|
D | rtc-m48t59.c | 118 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()
|
D | rtc-r9701.c | 100 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()
|
D | rtc-mv.c | 74 unsigned int year, month, day, hour, minute, second, wday; in mv_rtc_read_time() local 86 year = (rtc_date >> RTC_YEAR_OFFS) & 0xff; in mv_rtc_read_time() 95 tm->tm_year = bcd2bin(year) + 100; in mv_rtc_read_time() 105 unsigned int year, month, day, hour, minute, second, wday; in mv_rtc_read_alarm() local 117 year = (rtc_date >> RTC_YEAR_OFFS) & 0xff; in mv_rtc_read_alarm() 126 alm->time.tm_year = bcd2bin(year) + 100; in mv_rtc_read_alarm()
|
D | rtc-bq4802.c | 98 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()
|
D | rtc-sun6i.c | 271 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()
|
D | rtc-davinci.c | 245 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()
|
D | rtc-ds1216.c | 24 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()
|
D | rtc-m48t35.c | 36 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()
|
D | rtc-sunxi.c | 346 int year; in sunxi_rtc_settime() local 354 year = rtc_tm->tm_year + 1900; in sunxi_rtc_settime() 355 if (year < chip->data_year->min || year > chip->data_year->max) { in sunxi_rtc_settime() 369 if (is_leap_year(year)) in sunxi_rtc_settime()
|
D | rtc-s3c.c | 211 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() 305 int year = tm->tm_year - 100; in s3c_rtc_setalarm() local 332 if (year < 100 && year >= 0) { in s3c_rtc_setalarm() 334 writeb(bin2bcd(year), info->base + S3C2410_ALMYEAR); in s3c_rtc_setalarm()
|
D | rtc-ds1742.c | 93 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()
|
D | rtc-da9063.c | 30 #define YEARS_TO_DA9063(year) ((year) - 100) argument 32 #define YEARS_FROM_DA9063(year) ((year) + 100) argument
|
D | rtc-pl031.c | 121 int year = tm->tm_year + 1900; in pl031_stv2_tm_to_time() local 138 *bcd_year = (bin2bcd(year % 100) | bin2bcd(year / 100) << 8); in pl031_stv2_tm_to_time()
|
D | rtc-sh.c | 418 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()
|
D | rtc-ds1553.c | 106 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()
|
D | rtc-ds3232.c | 108 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()
|
D | rtc-stk17ta8.c | 105 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()
|
D | rtc-ab8500.c | 72 static unsigned long get_elapsed_seconds(int year) in get_elapsed_seconds() argument 76 .tm_year = year - 1900, in get_elapsed_seconds()
|
D | rtc-mpc5121.c | 51 u16 year; /* RTC + 0x16 */ member 171 tm->tm_year = in_be16(®s->year) - 1900; in mpc5200_rtc_read_time()
|
D | interface.c | 121 enum { none, day, month, year } missing = none; in __rtc_read_alarm() enumerator 217 missing = year; in __rtc_read_alarm() 259 case year: in __rtc_read_alarm()
|
D | rtc-ds1685.c | 1694 DS1685_RTC_SYSFS_TIME_REG_RW(year);
|
D | Kconfig | 445 platform specific method of retrieving the current year from 447 chip, but the year will probably have to be tweaked.
|
/linux-4.4.14/arch/alpha/kernel/ |
D | rtc.c | 52 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 …]
|
D | err_common.c | 174 timestamp->b.year, timestamp->b.hour, in el_print_timestamp()
|
/linux-4.4.14/arch/mips/include/asm/mach-rm/ |
D | mc146818rtc.h | 14 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900) argument 16 #define mc146818_decode_year(year) ((year) + 1980) argument
|
/linux-4.4.14/fs/udf/ |
D | udftime.c | 47 #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()
|
D | ecma_167.h | 62 __le16 year; member
|
D | super.c | 925 le16_to_cpu(ts->year), ts->month, ts->day, ts->hour, in udf_load_pvoldesc() 2217 le16_to_cpu(ts.year), ts.month, ts.day, in udf_fill_super()
|
/linux-4.4.14/arch/frv/kernel/ |
D | time.c | 90 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()
|
D | setup.c | 1121 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.4.14/arch/m32r/kernel/ |
D | time.c | 142 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.4.14/arch/mips/include/asm/ |
D | mc146818-time.h | 91 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()
|
D | m48t37.h | 28 volatile u8 year; member
|
/linux-4.4.14/arch/x86/platform/intel-mid/ |
D | intel_mid_vrtc.c | 63 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.4.14/arch/m68k/atari/ |
D | time.c | 109 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.4.14/arch/mips/include/asm/mach-malta/ |
D | mc146818rtc.h | 46 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900) argument
|
/linux-4.4.14/arch/mips/include/asm/mach-generic/ |
D | mc146818rtc.h | 33 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900) argument
|
/linux-4.4.14/arch/mips/include/asm/mach-loongson64/ |
D | mc146818rtc.h | 33 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1970) argument
|
/linux-4.4.14/arch/powerpc/platforms/chrp/ |
D | time.c | 131 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.4.14/fs/isofs/ |
D | util.c | 20 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.4.14/drivers/char/ |
D | efirtc.c | 54 #define is_leap(year) \ argument 55 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) 72 return __mon_yday[is_leap(eft->year)][eft->month-1]+ eft->day -1; in compute_yday() 85 if ( eft->year < 1998 ) { 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() 322 eft.year, eft.month, eft.day, in efi_rtc_proc_show() 339 alm.year, alm.month, alm.day, in efi_rtc_proc_show()
|
D | rtc.c | 959 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()
|
D | genrtc.c | 304 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()
|
D | toshiba.c | 430 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.4.14/arch/mips/dec/ |
D | time.c | 23 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.4.14/arch/x86/kernel/ |
D | rtc.c | 64 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.4.14/Documentation/RCU/ |
D | RTFP.txt | 86 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.4.14/kernel/time/ |
D | timeconv.c | 37 static int __isleap(long year) in __isleap() argument 39 return (year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0); in __isleap()
|
D | time.c | 330 unsigned int mon = mon0, year = year0; in mktime64() local 335 year -= 1; in mktime64() 339 (year/4 - year/100 + year/400 + 367*mon/12 + day) + in mktime64() 340 year*365 - 719499 in mktime64()
|
/linux-4.4.14/arch/mips/sibyte/swarm/ |
D | rtc_m41t81.c | 193 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()
|
D | rtc_xicor1241.c | 173 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.4.14/arch/sh/boards/mach-sh03/ |
D | rtc.c | 42 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.4.14/include/linux/ |
D | rtc.h | 19 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); 213 static inline bool is_leap_year(unsigned int year) in is_leap_year() argument 215 return (!(year % 4) && (year % 100)) || !(year % 400); in is_leap_year()
|
D | time.h | 42 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()
|
D | fb.h | 72 __u32 year; /* Year manufactured */ member
|
D | efi.h | 143 u16 year; member
|
/linux-4.4.14/arch/parisc/include/asm/ |
D | rtc.h | 35 # define __isleap(year) \ argument 36 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
|
/linux-4.4.14/arch/powerpc/platforms/maple/ |
D | time.c | 86 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.4.14/crypto/asymmetric_keys/ |
D | x509_cert_parser.c | 500 unsigned year, mon, day, hour, min, sec, mon_len; in x509_decode_time() local 509 year = DD2bin(p); in x509_decode_time() 510 if (year >= 50) in x509_decode_time() 511 year += 1900; in x509_decode_time() 513 year += 2000; in x509_decode_time() 518 year = DD2bin(p) * 100 + DD2bin(p); in x509_decode_time() 519 if (year >= 1950 && year <= 2049) in x509_decode_time() 534 if (year < 1970 || in x509_decode_time() 540 if (year % 4 == 0) { in x509_decode_time() 542 if (year % 100 == 0) { in x509_decode_time() [all …]
|
/linux-4.4.14/fs/fat/ |
D | misc.c | 193 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.4.14/arch/mips/include/asm/mach-jazz/ |
D | mc146818rtc.h | 36 #define mc146818_decode_year(year) ((year) + 1980) argument
|
/linux-4.4.14/net/netfilter/ |
D | xt_time.c | 107 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.4.14/arch/m68k/sun3/ |
D | intersil.c | 53 todintersil->year = t->tm_year - 68; in sun3_hwclk() 63 t->tm_year = todintersil->year + 68; in sun3_hwclk()
|
/linux-4.4.14/arch/ia64/hp/sim/boot/ |
D | fw-emu.c | 78 # 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.4.14/fs/ncpfs/ |
D | dir.c | 1198 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.4.14/drivers/firmware/ |
D | dmi_scan.c | 916 int year = 0, month = 0, day = 0; in dmi_get_date() local 937 year = simple_strtoul(y, &e, 10); in dmi_get_date() 938 if (y != e && year < 100) { /* 2-digit year */ in dmi_get_date() 939 year += 1900; in dmi_get_date() 940 if (year < 1996) /* no dates < spec 1.0 */ in dmi_get_date() 941 year += 100; in dmi_get_date() 943 if (year > 9999) /* year should fit in %04d */ in dmi_get_date() 944 year = 0; in dmi_get_date() 959 *yearp = year; in dmi_get_date()
|
/linux-4.4.14/drivers/isdn/hardware/eicon/ |
D | s_4bri.c | 190 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.4.14/arch/m68k/sun3x/ |
D | time.c | 55 h->year = bin2bcd(t->tm_year); in sun3x_hwclk() 65 t->tm_year = bcd2bin(h->year); in sun3x_hwclk()
|
D | time.h | 16 volatile unsigned char year; member
|
/linux-4.4.14/arch/x86/pci/ |
D | direct.c | 197 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()
|
D | acpi.c | 132 int year; in pci_acpi_crs_quirks() local 134 if (dmi_get_date(DMI_BIOS_DATE, &year, NULL, NULL) && year < 2008) { in pci_acpi_crs_quirks()
|
D | mmconfig-shared.c | 549 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.4.14/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_pro.h | 48 u8 year; member 62 u8 year; member
|
/linux-4.4.14/include/linux/mmc/ |
D | card.h | 23 unsigned short year; member 397 #define cid_rev(hwrev, fwrev, year, month) \ argument 400 ((u64) year) << 16 | \ 406 card->cid.year, \
|
/linux-4.4.14/arch/m68k/include/asm/ |
D | intersil.h | 34 unsigned char year; member
|
D | apollohw.h | 47 unsigned char month, year; member
|
/linux-4.4.14/arch/m68k/mac/ |
D | misc.c | 664 #define __isleap(year) \ in unmktime() argument 665 ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) in unmktime()
|
/linux-4.4.14/arch/m68k/apollo/ |
D | config.c | 225 t->tm_year=rtc->year; in dn_dummy_hwclk() 234 rtc->year=t->tm_year; in dn_dummy_hwclk()
|
/linux-4.4.14/drivers/acpi/ |
D | sleep.c | 326 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.4.14/arch/alpha/include/asm/ |
D | err_common.h | 75 u8 year; member
|
/linux-4.4.14/fs/cifs/ |
D | netmisc.c | 965 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.4.14/arch/powerpc/kernel/ |
D | time.c | 996 #define leapyear(year) ((year) % 4 == 0 && \ argument 997 ((year) % 100 != 0 || (year) % 400 == 0))
|
D | rtas-proc.c | 400 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.4.14/drivers/ata/ |
D | ahci.c | 1078 int year, month, date; in ahci_sb600_enable_64bit() local 1089 dmi_get_date(DMI_BIOS_DATE, &year, &month, &date); in ahci_sb600_enable_64bit() 1090 snprintf(buf, sizeof(buf), "%04d%02d%02d", year, month, date); in ahci_sb600_enable_64bit() 1213 int year, month, date; in ahci_broken_suspend() local 1219 dmi_get_date(DMI_BIOS_DATE, &year, &month, &date); in ahci_broken_suspend() 1220 snprintf(buf, sizeof(buf), "%04d%02d%02d", year, month, date); in ahci_broken_suspend()
|
/linux-4.4.14/Documentation/EDID/ |
D | edid.S | 74 year: .byte YEAR-1990 label
|
/linux-4.4.14/arch/s390/include/uapi/asm/ |
D | vtoc.h | 36 __u8 year; member
|
/linux-4.4.14/drivers/iio/imu/ |
D | adis16480.c | 156 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.4.14/Documentation/networking/ |
D | x25.txt | 3 As my third year dissertation at University I have taken it upon myself to
|
D | eql.txt | 235 year.
|
D | arcnet-hardware.txt | 2918 year!)
|
/linux-4.4.14/drivers/scsi/esas2r/ |
D | esas2r_flash.c | 1081 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()
|
D | esas2r_main.c | 1498 ci->date_time.year = le16_to_cpu(ci->date_time.year); in esas2r_nuxi_cfg_data()
|
D | atvda.h | 957 u16 year; member
|
/linux-4.4.14/drivers/mmc/core/ |
D | sd.c | 93 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() 659 MMC_DEV_ATTR(date, "%02d/%04d\n", card->cid.month, card->cid.year);
|
D | mmc.c | 88 card->cid.year = UNSTUFF_BITS(resp, 8, 4) + 1997; in mmc_decode_cid() 105 card->cid.year = UNSTUFF_BITS(resp, 8, 4) + 1997; in mmc_decode_cid() 499 if (card->cid.year < 2010) in mmc_decode_ext_csd() 500 card->cid.year += 16; in mmc_decode_ext_csd() 715 MMC_DEV_ATTR(date, "%02d/%04d\n", card->cid.month, card->cid.year);
|
/linux-4.4.14/drivers/media/rc/ |
D | imon.c | 691 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.4.14/include/acpi/ |
D | acbuffer.h | 79 u16 year; member
|
/linux-4.4.14/include/xen/interface/ |
D | platform.h | 137 uint16_t year; member
|
/linux-4.4.14/Documentation/video4linux/ |
D | meye.txt | 29 The third one, present in recent (more or less last year) Picturebooks
|
/linux-4.4.14/Documentation/ |
D | ManagementStyle | 77 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
|
D | CodingStyle | 360 less-than-gifted first-year high-school student might not even
|
/linux-4.4.14/security/tomoyo/ |
D | audit.c | 165 "fsuid=%u fsgid=%u }", stamp.year, stamp.month, in tomoyo_print_header()
|
D | util.c | 116 stamp->year = y; in tomoyo_convert_time()
|
D | common.h | 888 u16 year; member
|
D | common.c | 2299 stamp.year, stamp.month, stamp.day, in tomoyo_read_stat()
|
/linux-4.4.14/Documentation/scsi/ |
D | ChangeLog.sym53c8xx_2 | 23 - Add year 2001 to Copyright.
|
D | arcmsr_spec.txt | 98 ** byte 2 : year (04)
|
D | ChangeLog.ncr53c8xx | 116 - Add year 2000 copyright.
|
D | ChangeLog.sym53c8xx | 201 - Add year 2000 copyright.
|
/linux-4.4.14/drivers/scsi/ |
D | ips.c | 6003 int year; in ips_fix_ffdc_time() local 6030 year = IPS_EPOCH_YEAR; in ips_fix_ffdc_time() 6031 while (days < 0 || days >= year_lengths[yleap = IPS_IS_LEAP_YEAR(year)]) { in ips_fix_ffdc_time() 6034 newy = year + (days / IPS_DAYS_NORMAL_YEAR); in ips_fix_ffdc_time() 6037 days -= (newy - year) * IPS_DAYS_NORMAL_YEAR + in ips_fix_ffdc_time() 6039 IPS_NUM_LEAP_YEARS_THROUGH(year - 1); in ips_fix_ffdc_time() 6040 year = newy; in ips_fix_ffdc_time() 6043 scb->cmd.ffdc.yearH = year / 100; in ips_fix_ffdc_time() 6044 scb->cmd.ffdc.yearL = year % 100; in ips_fix_ffdc_time()
|
/linux-4.4.14/drivers/video/fbdev/core/ |
D | fbmon.c | 302 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.4.14/drivers/net/wireless/ath/wil6210/ |
D | wmi.h | 647 u8 year; member
|
/linux-4.4.14/arch/x86/platform/efi/ |
D | efi.c | 115 now->tv_sec = mktime(eft.year, eft.month, eft.day, eft.hour, in efi_get_time()
|
/linux-4.4.14/drivers/staging/rtl8192u/ |
D | copying | 294 Copyright (C) <year> <name of author> 316 Gnomovision version 69, Copyright (C) year name of author
|
/linux-4.4.14/tools/usb/usbip/ |
D | COPYING | 294 Copyright (C) <year> <name of author> 316 Gnomovision version 69, Copyright (C) year name of author
|
/linux-4.4.14/ |
D | COPYING | 310 Copyright (C) <year> <name of author> 332 Gnomovision version 69, Copyright (C) year name of author
|
D | CREDITS | 3576 D: One-week tutorials on Linux twice a year (free of charge)
|
/linux-4.4.14/Documentation/sound/alsa/ |
D | compress_offload.txt | 25 The design of this API was inspired by the 2-year experience with the
|
/linux-4.4.14/drivers/net/ethernet/neterion/vxge/ |
D | vxge-config.h | 216 u32 year; member
|
D | vxge-config.c | 825 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.4.14/Documentation/usb/ |
D | ehci.txt | 171 for a product that beat all the others to market by over a year!)
|
/linux-4.4.14/Documentation/development-process/ |
D | 3.Early-stage | 101 of this code (now called mac80211) was delayed for over a year.
|
D | 2.Process | 6 course of one year, the kernel has since had to evolve a number of
|
/linux-4.4.14/Documentation/input/ |
D | atarikbd.txt | 478 YY ; year (2 least significant digits) 495 YY ; year (2 least significant digits)
|
/linux-4.4.14/arch/ia64/kernel/ |
D | efi.c | 248 ts->tv_sec = mktime(tm.year, tm.month, tm.day, in STUB_GET_TIME()
|
/linux-4.4.14/drivers/scsi/aacraid/ |
D | aacraid.h | 210 u8 year; /* e.g., 1997 = 97 */ member
|
/linux-4.4.14/drivers/staging/rtl8192e/ |
D | license | 315 Gnomovision version 69, Copyright (C) year name of author Gnomovision comes
|
/linux-4.4.14/Documentation/arm64/ |
D | arm-acpi.txt | 433 The ACPI specification changes regularly. During the year 2014, for instance,
|
/linux-4.4.14/drivers/staging/speakup/ |
D | spkguide.txt | 1343 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.4.14/Documentation/laptops/ |
D | thinkpad-acpi.txt | 605 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.4.14/Documentation/virtual/kvm/ |
D | timekeeping.txt | 217 09h byte Current year (BCD)
|
/linux-4.4.14/Documentation/sound/oss/ |
D | README.OSS | 307 more than an year ago. The PnP version has the same name but with "PnP" 1309 should be available later this year.
|