| /OK3568_Linux_fs/kernel/arch/alpha/kernel/ |
| H A D | rtc.c | 51 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() 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() 94 int year = tm->tm_year; in alpha_rtc_read_time() local 96 if (year >= 100) in alpha_rtc_read_time() 97 year -= 100; in alpha_rtc_read_time() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/rtc/ |
| H A D | lib.c | 30 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 …]
|
| H A D | rtc-pcf8583.c | 175 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() 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 228 .nr = sizeof(year), in pcf8583_rtc_set_time() 229 .data = year in pcf8583_rtc_set_time() 256 chk -= year[1] + year[0]; in pcf8583_rtc_set_time() 258 year[1] = proper_year / 100; in pcf8583_rtc_set_time() [all …]
|
| H A D | rtc-efi.c | 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() 207 eft.year, eft.month, eft.day, in efi_procfs() 223 alm.year, alm.month, alm.day, in efi_procfs()
|
| H A D | rtc-rtd119x.c | 50 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()
|
| H A D | rtc-wilco-ec.c | 55 u8 year; member 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()
|
| H A D | rtc-lp8788.c | 138 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()
|
| H A D | rtc-aspeed.c | 25 unsigned int cent, year; in aspeed_rtc_read_time() local 44 year = (reg2 >> 8) & 0x7f; in aspeed_rtc_read_time() 46 tm->tm_year = year + (cent * 100) - 1900; in aspeed_rtc_read_time() 57 int year, cent; in aspeed_rtc_set_time() local 60 year = tm->tm_year % 100; in aspeed_rtc_set_time() 65 reg2 = ((cent & 0x1f) << 16) | ((year & 0x7f) << 8) | in aspeed_rtc_set_time()
|
| /OK3568_Linux_fs/kernel/arch/mips/include/asm/mach-rm/ |
| H A 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
|
| /OK3568_Linux_fs/u-boot/drivers/rtc/ |
| H A D | date.c | 19 #define leapyear(year) ((year) % 4 == 0) argument 127 int year = tm->tm_year; in rtc_mktime() local 133 year -= 1; in rtc_mktime() 136 days = (unsigned long)(year / 4 - year / 100 + year / 400 + in rtc_mktime() 138 year * 365 - 719499; in rtc_mktime()
|
| H A D | davinci.c | 17 unsigned long sec, min, hour, mday, wday, mon_cent, year; in rtc_get() local 34 year = readl(&rtc->year); in rtc_get() 38 year, mon_cent, mday, wday, in rtc_get() 46 tmp->tm_year = bcd2bin(year) + 2000; in rtc_get() 65 writel(bin2bcd(tmp->tm_year % 100), &rtc->year); in rtc_set()
|
| H A D | s3c24x0_rtc.c | 49 uchar sec, min, hour, mday, wday, mon, year; in rtc_get() local 64 year = readb(&rtc->bcdyear); in rtc_get() 82 year, mon, mday, wday, hour, min, sec); in rtc_get() 93 tmp->tm_year = bcd2bin(year); in rtc_get() 113 uchar sec, min, hour, mday, wday, mon, year; in rtc_set() local 120 year = bin2bcd(tmp->tm_year % 100); in rtc_set() 138 writeb(year, &rtc->bcdyear); in rtc_set()
|
| /OK3568_Linux_fs/kernel/arch/m68k/atari/ |
| H A D | time.c | 141 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 …]
|
| /OK3568_Linux_fs/kernel/arch/x86/platform/intel-mid/ |
| H A D | intel_mid_vrtc.c | 60 u32 year; in vrtc_get_time() local 72 year = vrtc_cmos_read(RTC_YEAR); 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 99 year = tm.tm_year - 72; in vrtc_set_mmss() 101 vrtc_cmos_write(year, RTC_YEAR); in vrtc_set_mmss()
|
| /OK3568_Linux_fs/kernel/arch/mips/include/asm/ |
| H A 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 mktime64(year, mon, day, hour, min, sec); in mc146818_get_cmos_time()
|
| /OK3568_Linux_fs/kernel/Documentation/RCU/ |
| H A 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 …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/libcxx/include/ |
| H A D | chrono | 359 // 25.8.5, class year // C++20 360 class year; 361 constexpr bool operator==(const year& x, const year& y) noexcept; 362 constexpr bool operator!=(const year& x, const year& y) noexcept; 363 constexpr bool operator< (const year& x, const year& y) noexcept; 364 constexpr bool operator> (const year& x, const year& y) noexcept; 365 constexpr bool operator<=(const year& x, const year& y) noexcept; 366 constexpr bool operator>=(const year& x, const year& y) noexcept; 367 constexpr year operator+(const year& x, const years& y) noexcept; 368 constexpr year operator+(const years& x, const year& y) noexcept; [all …]
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/libcxx/include/ |
| H A D | chrono | 359 // 25.8.5, class year // C++20 360 class year; 361 constexpr bool operator==(const year& x, const year& y) noexcept; 362 constexpr bool operator!=(const year& x, const year& y) noexcept; 363 constexpr bool operator< (const year& x, const year& y) noexcept; 364 constexpr bool operator> (const year& x, const year& y) noexcept; 365 constexpr bool operator<=(const year& x, const year& y) noexcept; 366 constexpr bool operator>=(const year& x, const year& y) noexcept; 367 constexpr year operator+(const year& x, const years& y) noexcept; 368 constexpr year operator+(const years& x, const year& y) noexcept; [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/chrp/ |
| H A D | time.c | 134 unsigned int year, mon, day, hour, min, sec; in chrp_get_rtc_time() local 142 year = chrp_cmos_clock_read(RTC_YEAR); in chrp_get_rtc_time() 151 year = bcd2bin(year); in chrp_get_rtc_time() 153 if (year < 70) in chrp_get_rtc_time() 154 year += 100; in chrp_get_rtc_time() 160 tm->tm_year = year; in chrp_get_rtc_time()
|
| /OK3568_Linux_fs/kernel/arch/x86/kernel/ |
| H A D | rtc.c | 65 unsigned int status, year, mon, day, hour, min, sec, century = 0; in mach_get_cmos_time() local 93 year = CMOS_READ(RTC_YEAR); in mach_get_cmos_time() 112 year = bcd2bin(year); in mach_get_cmos_time() 117 year += century * 100; in mach_get_cmos_time() 119 year += CMOS_YEARS_OFFS; in mach_get_cmos_time() 121 now->tv_sec = mktime64(year, mon, day, hour, min, sec); in mach_get_cmos_time()
|
| /OK3568_Linux_fs/kernel/arch/mips/dec/ |
| H A D | time.c | 24 unsigned int year, mon, day, hour, min, sec, real_year; in read_persistent_clock64() local 35 year = CMOS_READ(RTC_YEAR); in read_persistent_clock64() 52 year = bcd2bin(year); in read_persistent_clock64() 55 year += real_year - 72 + 2000; in read_persistent_clock64() 57 ts->tv_sec = mktime64(year, mon, day, hour, min, sec); in read_persistent_clock64()
|
| /OK3568_Linux_fs/kernel/arch/mips/include/asm/mach-malta/ |
| H A D | mc146818rtc.h | 34 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900) argument
|
| /OK3568_Linux_fs/kernel/arch/mips/include/asm/mach-generic/ |
| H A D | mc146818rtc.h | 33 #define mc146818_decode_year(year) ((year) < 70 ? (year) + 2000 : (year) + 1900) argument
|
| /OK3568_Linux_fs/kernel/fs/isofs/ |
| H A D | util.c | 21 int year, month, day, hour, minute, second, tz; in iso_date() local 24 year = p[0]; in iso_date() 33 if (year < 0) { in iso_date() 36 crtime = mktime64(year+1900, month, day, hour, minute, second); in iso_date()
|
| /OK3568_Linux_fs/u-boot/cmd/ |
| H A D | date.c | 185 int year, century; in mk_date() local 188 cnvrt2 (datestr+10, &year) ) { in mk_date() 191 tmp->tm_year = 100 * century + year; in mk_date() 193 int year, century; in mk_date() local 196 if (cnvrt2 (datestr+ 8, &year)) in mk_date() 198 tmp->tm_year = 100 * century + year; in mk_date()
|