/linux-6.6.21/drivers/rtc/ |
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 252 acpi_gbl_FADT.century) { in mc146818_set_time() 253 century = (yrs + 1900) / 100; in mc146818_set_time() [all …]
|
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()
|
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()
|
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()
|
D | lib.c | 58 u32 u32tmp, udays, century, day_of_century, year_of_century, year, in rtc_time64_to_tm() local 99 century = u32tmp / 146097; in rtc_time64_to_tm() 107 year = 100 * century + year_of_century; in rtc_time64_to_tm() 109 year_of_century % 4 == 0 : century % 4 == 0; in rtc_time64_to_tm()
|
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()
|
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()
|
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()
|
D | rtc-ds1511.c | 235 unsigned int century; in ds1511_rtc_read_time() local 248 century = rtc_read(RTC_CENTURY); in ds1511_rtc_read_time() 260 century = bcd2bin(century) * 100; in ds1511_rtc_read_time() 266 century += rtc_tm->tm_year; in ds1511_rtc_read_time() 267 rtc_tm->tm_year = century - 1900; in ds1511_rtc_read_time()
|
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()
|
D | rtc-cmos.c | 89 u8 century; member 681 || off == cmos->century) in cmos_nvram_write() 864 cmos_rtc.century = acpi_gbl_FADT.century; in acpi_cmos_wake_setup() 1004 cmos_rtc.century = info->rtc_century; in cmos_do_probe() 1020 if (cmos_rtc.century >= 128) in cmos_do_probe() 1021 cmos_rtc.century = 0; in cmos_do_probe() 1130 cmos_rtc.century ? ", y3k" : "", in cmos_do_probe()
|
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()
|
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()
|
D | Kconfig | 273 century bit inconditionnally but never used it when reading the time. 275 Setting this option will add proper support for the century bit but if 277 reading the date will return a date in the next century.
|
/linux-6.6.21/kernel/time/ |
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-6.6.21/drivers/firmware/efi/ |
D | cper.c | 508 __u8 hour, min, sec, day, mon, year, century, *timestamp; in cper_print_tstamp() local 518 century = bcd2bin(timestamp[7]); in cper_print_tstamp() 522 century, year, mon, day, hour, min, sec); in cper_print_tstamp()
|
/linux-6.6.21/include/acpi/ |
D | actbl.h | 235 u8 century; /* Index to century in RTC CMOS RAM */ member
|
/linux-6.6.21/Documentation/admin-guide/ |
D | rtc.rst | 32 be able to schedule one any time in the upcoming century.
|
/linux-6.6.21/Documentation/admin-guide/LSM/ |
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-6.6.21/Documentation/virt/kvm/x86/ |
D | timekeeping.rst | 266 32h byte Current century BCD (*)
|
/linux-6.6.21/Documentation/filesystems/ |
D | xfs-online-fsck-design.rst | 88 Filesystems of the 20th century generally lacked any redundancy in the ondisk 976 Filesystems designers in the early 21st century choose different strategies to
|
/linux-6.6.21/Documentation/RCU/Design/Requirements/ |
D | Requirements.rst | 1025 a century much less so. As an example of the latter, RCU's
|