Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/rtc/
Drtc-mc146818-lib.c104 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 …]
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.c59 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()
Dlib.c58 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()
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-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-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.c235 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()
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
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()
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()
DKconfig273 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/
Dtimeconv.c50 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/
Dcper.c508 __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/
Dactbl.h235 u8 century; /* Index to century in RTC CMOS RAM */ member
/linux-6.6.21/Documentation/admin-guide/
Drtc.rst32 be able to schedule one any time in the upcoming century.
/linux-6.6.21/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.
/linux-6.6.21/Documentation/virt/kvm/x86/
Dtimekeeping.rst266 32h byte Current century BCD (*)
/linux-6.6.21/Documentation/filesystems/
Dxfs-online-fsck-design.rst88 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/
DRequirements.rst1025 a century much less so. As an example of the latter, RCU's