| /linux/drivers/rtc/ |
| H A D | rtc-mc146818-lib.c | 104 unsigned char century; member 132 acpi_gbl_FADT.century) { in mc146818_get_time_callback() 133 p->century = CMOS_READ(acpi_gbl_FADT.century); in mc146818_get_time_callback() 135 p->century = 0; in mc146818_get_time_callback() 174 p.century = bcd2bin(p.century); in mc146818_get_time() 183 if (p.century > 19) in mc146818_get_time() 184 time->tm_year += (p.century - 19) * 100; in mc146818_get_time() 221 unsigned char century = 0; in mc146818_set_time() local 250 acpi_gbl_FADT.century) { in mc146818_set_time() 251 century = (yrs + 1900) / 100; in mc146818_set_time() [all …]
|
| H A D | rtc-bq4802.c | 54 unsigned int century; in bq4802_read_time() local 69 century = p->read(p, 0x0f); in bq4802_read_time() 82 century = bcd2bin(century); in bq4802_read_time() 84 tm->tm_year += (century * 100); in bq4802_read_time() 95 u8 sec, min, hrs, day, mon, yrs, century, val; in bq4802_set_time() local 100 century = year / 100; in bq4802_set_time() 115 century = bin2bcd(century); in bq4802_set_time() 128 p->write(p, 0x0f, century); in bq4802_set_time()
|
| H A D | rtc-ds1347.c | 53 unsigned int status, century, secs; in ds1347_read_time() local 69 err = regmap_read(map, DS1347_CENTURY_REG, ¢ury); in ds1347_read_time() 84 dt->tm_year = (bcd2bin(century) * 100) + bcd2bin(buf[6]) - 1900; in ds1347_read_time() 92 unsigned int century; in ds1347_set_time() local 114 century = (dt->tm_year / 100) + 19; in ds1347_set_time() 115 err = regmap_write(map, DS1347_CENTURY_REG, bin2bcd(century)); in ds1347_set_time()
|
| H A D | rtc-ds1742.c | 59 u8 century; in ds1742_rtc_set_time() local 61 century = bin2bcd((tm->tm_year + 1900) / 100); in ds1742_rtc_set_time() 74 writeb(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY); in ds1742_rtc_set_time() 75 writeb(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL); in ds1742_rtc_set_time() 84 unsigned int century; in ds1742_rtc_read_time() local 98 century = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK; in ds1742_rtc_read_time() 107 tm->tm_year = bcd2bin(year) + bcd2bin(century) * 100 - 1900; in ds1742_rtc_read_time()
|
| H A D | lib.c | 57 u32 u32tmp, udays, century, day_of_century, year_of_century, year, in rtc_time64_to_tm() local 111 century = u32tmp / 146097; in rtc_time64_to_tm() 119 year = 100 * century + year_of_century; in rtc_time64_to_tm() 121 year_of_century % 4 == 0 : century % 4 == 0; in rtc_time64_to_tm()
|
| H A D | rtc-ds1553.c | 75 u8 century; in ds1553_rtc_set_time() local 77 century = bin2bcd((tm->tm_year + 1900) / 100); in ds1553_rtc_set_time() 90 writeb(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY); in ds1553_rtc_set_time() 91 writeb(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL); in ds1553_rtc_set_time() 100 unsigned int century; in ds1553_rtc_read_time() local 114 century = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK; in ds1553_rtc_read_time() 123 tm->tm_year = bcd2bin(year) + bcd2bin(century) * 100 - 1900; in ds1553_rtc_read_time()
|
| H A D | rtc-wilco-ec.c | 56 u8 century; member 79 u8 century; member 112 tm->tm_year = rtc.year + (rtc.century * 100) - 1900; in wilco_ec_rtc_read() 139 rtc.century = bin2bcd(year / 100); in wilco_ec_rtc_write()
|
| H A D | rtc-ds1511.c | 137 unsigned int century; in ds1511_rtc_read_time() local 150 century = rtc_read(DS1511_CENTURY); in ds1511_rtc_read_time() 162 century = bcd2bin(century) * 100; in ds1511_rtc_read_time() 168 century += rtc_tm->tm_year; in ds1511_rtc_read_time() 169 rtc_tm->tm_year = century - 1900; in ds1511_rtc_read_time()
|
| H A D | rtc-max6902.c | 54 int err, century; in max6902_read_time() local 79 century = bcd2bin(buf[0]) * 100; in max6902_read_time() 81 dt->tm_year += century; in max6902_read_time()
|
| H A D | rtc-ds1685.c | 264 u8 century; in ds1685_rtc_read_time() local 276 century = rtc->read(rtc, RTC_CENTURY); in ds1685_rtc_read_time() 282 century = ds1685_rtc_bcd2bin(rtc, century, RTC_CENTURY_MASK, in ds1685_rtc_read_time() 296 tm->tm_year = ((years + (century * 100)) - 1900); in ds1685_rtc_read_time() 312 u8 ctrlb, seconds, minutes, hours, wday, mday, month, years, century; in ds1685_rtc_set_time() local 329 century = ds1685_rtc_bin2bcd(rtc, ((tm->tm_year + 1900) / 100), in ds1685_rtc_set_time() 366 rtc->write(rtc, RTC_CENTURY, century); in ds1685_rtc_set_time()
|
| H A D | rtc-cmos.c | 90 u8 century; member 678 || off == cmos->century) in cmos_nvram_write() 867 cmos_rtc.century = acpi_gbl_FADT.century; in acpi_cmos_wake_setup() 1008 cmos_rtc.century = info->rtc_century; in cmos_do_probe() 1024 if (cmos_rtc.century >= 128) in cmos_do_probe() 1025 cmos_rtc.century = 0; in cmos_do_probe() 1135 cmos_rtc.century ? ", y3k" : "", in cmos_do_probe()
|
| H A D | rtc-stk17ta8.c | 99 unsigned int century; in stk17ta8_rtc_read_time() local 116 century = readb(ioaddr + RTC_CENTURY); in stk17ta8_rtc_read_time() 125 tm->tm_year = bcd2bin(year) + bcd2bin(century) * 100 - 1900; in stk17ta8_rtc_read_time()
|
| H A D | rtc-ds3232.c | 104 unsigned int century, add_century = 0; in ds3232_read_time() local 122 century = month & 0x80; in ds3232_read_time() 143 if (century) in ds3232_read_time()
|
| H A D | rtc-renesas-rtca3.c | 234 u32 century = bcd2bin((y == 0x99) ? 0x19 : 0x20); in rtca3_decode_year() local 236 return (century * 100 + bcd2bin(y)) - 1900; in rtca3_decode_year()
|
| /linux/kernel/time/ |
| H A D | timeconv.c | 50 u64 u64tmp, udays, century, year; in time64_to_tm() local 108 century = div64_u64_rem(u64tmp, 146097, &u64tmp); in time64_to_tm() 116 year = 100 * century + year_of_century; in time64_to_tm() 117 is_leap_year = year_of_century ? !(year_of_century % 4) : !(century % 4); in time64_to_tm()
|
| /linux/drivers/firmware/efi/ |
| H A D | cper.c | 578 __u8 hour, min, sec, day, mon, year, century, *timestamp; in cper_print_tstamp() local 588 century = bcd2bin(timestamp[7]); in cper_print_tstamp() 592 century, year, mon, day, hour, min, sec); in cper_print_tstamp()
|
| /linux/Documentation/admin-guide/ |
| H A D | rtc.rst | 32 be able to schedule one any time in the upcoming century.
|
| /linux/Documentation/admin-guide/LSM/ |
| H A D | Smack.rst | 361 From the middle of the 1980's until the turn of the century Mandatory Access 371 Around the turn of the century Domain Type Enforcement (DTE) became popular.
|
| /linux/Documentation/virt/kvm/x86/ |
| H A D | timekeeping.rst | 266 32h byte Current century BCD (*)
|
| /linux/Documentation/RCU/Design/Requirements/ |
| H A D | Requirements.rst | 1025 a century much less so. As an example of the latter, RCU's
|