Home
last modified time | relevance | path

Searched refs:century (Results 1 – 20 of 20) sorted by relevance

/kernel/linux/linux-5.10/drivers/rtc/
Drtc-mc146818-lib.c111 unsigned char century = 0; in mc146818_get_time() local
166 acpi_gbl_FADT.century) in mc146818_get_time()
167 century = CMOS_READ(acpi_gbl_FADT.century); in mc146818_get_time()
196 century = bcd2bin(century); in mc146818_get_time()
203 if (century > 19) in mc146818_get_time()
204 time->tm_year += (century - 19) * 100; in mc146818_get_time()
240 unsigned char century = 0; in mc146818_set_time() local
271 acpi_gbl_FADT.century) { in mc146818_set_time()
272 century = (yrs + 1900) / 100; in mc146818_set_time()
296 century = bin2bcd(century); in mc146818_set_time()
[all …]
Drtc-bq4802.c54 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()
Drtc-ds1347.c53 unsigned int status, century, secs; in ds1347_read_time() local
69 err = regmap_read(map, DS1347_CENTURY_REG, &century); 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()
Drtc-ds1742.c60 u8 century; in ds1742_rtc_set_time() local
62 century = bin2bcd((tm->tm_year + 1900) / 100); in ds1742_rtc_set_time()
75 writeb(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY); in ds1742_rtc_set_time()
76 writeb(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL); in ds1742_rtc_set_time()
85 unsigned int century; in ds1742_rtc_read_time() local
99 century = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK; in ds1742_rtc_read_time()
108 tm->tm_year = bcd2bin(year) + bcd2bin(century) * 100 - 1900; in ds1742_rtc_read_time()
Drtc-wilco-ec.c56 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()
Drtc-ds1553.c75 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()
Drtc-max6902.c54 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()
Drtc-ds1511.c241 unsigned int century; in ds1511_rtc_read_time() local
254 century = rtc_read(RTC_CENTURY); in ds1511_rtc_read_time()
266 century = bcd2bin(century) * 100; in ds1511_rtc_read_time()
272 century += rtc_tm->tm_year; in ds1511_rtc_read_time()
273 rtc_tm->tm_year = century - 1900; in ds1511_rtc_read_time()
Drtc-ds1685.c264 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()
Drtc-cmos.c89 u8 century; member
687 || off == cmos->century) in cmos_nvram_write()
864 cmos_rtc.century = acpi_gbl_FADT.century; in acpi_cmos_wake_setup()
1000 cmos_rtc.century = info->rtc_century; in cmos_do_probe()
1016 if (cmos_rtc.century >= 128) in cmos_do_probe()
1017 cmos_rtc.century = 0; in cmos_do_probe()
1118 cmos_rtc.century ? ", y3k" : "", in cmos_do_probe()
Drtc-stk17ta8.c99 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()
Drtc-ds3232.c104 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()
DKconfig264 century bit inconditionnally but never used it when reading the time.
266 Setting this option will add proper support for the century bit but if
268 reading the date will return a date in the next century.
/kernel/linux/linux-5.10/arch/x86/kernel/
Drtc.c65 unsigned int status, year, mon, day, hour, min, sec, century = 0; in mach_get_cmos_time() local
97 acpi_gbl_FADT.century) in mach_get_cmos_time()
98 century = CMOS_READ(acpi_gbl_FADT.century); in mach_get_cmos_time()
115 if (century) { in mach_get_cmos_time()
116 century = bcd2bin(century); in mach_get_cmos_time()
117 year += century * 100; in mach_get_cmos_time()
/kernel/linux/linux-5.10/drivers/firmware/efi/
Dcper.c477 __u8 hour, min, sec, day, mon, year, century, *timestamp; in cper_print_tstamp() local
487 century = bcd2bin(timestamp[7]); in cper_print_tstamp()
491 century, year, mon, day, hour, min, sec); in cper_print_tstamp()
/kernel/linux/linux-5.10/include/acpi/
Dactbl.h235 u8 century; /* Index to century in RTC CMOS RAM */ member
/kernel/linux/linux-5.10/Documentation/admin-guide/
Drtc.rst32 be able to schedule one any time in the upcoming century.
/kernel/linux/linux-5.10/Documentation/admin-guide/LSM/
DSmack.rst361 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.
/kernel/linux/linux-5.10/Documentation/virt/kvm/
Dtimekeeping.rst266 32h byte Current century BCD (*)
/kernel/linux/linux-5.10/Documentation/RCU/Design/Requirements/
DRequirements.rst1024 a century much less so. As an example of the latter, RCU's