/linux-4.1.27/drivers/rtc/ |
H A D | rtc-bq4802.c | 54 unsigned int century; bq4802_read_time() local 69 century = p->read(p, 0x0f); bq4802_read_time() 82 century = bcd2bin(century); bq4802_read_time() 84 tm->tm_year += (century * 100); bq4802_read_time() 96 u8 sec, min, hrs, day, mon, yrs, century, val; bq4802_set_time() local 101 century = year / 100; bq4802_set_time() 116 century = bin2bcd(century); bq4802_set_time() 129 p->write(p, 0x0f, century); bq4802_set_time()
|
H A D | rtc-max6902.c | 58 int err, century; max6902_read_time() local 78 /* Read century */ max6902_read_time() 83 century = bcd2bin(buf[0]) * 100; max6902_read_time() 85 dt->tm_year += century; max6902_read_time()
|
H A D | rtc-ds1742.c | 68 u8 century; ds1742_rtc_set_time() local 70 century = bin2bcd((tm->tm_year + 1900) / 100); ds1742_rtc_set_time() 83 writeb(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY); ds1742_rtc_set_time() 84 writeb(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL); ds1742_rtc_set_time() 94 unsigned int century; ds1742_rtc_read_time() local 108 century = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK; ds1742_rtc_read_time() 117 tm->tm_year = bcd2bin(year) + bcd2bin(century) * 100 - 1900; ds1742_rtc_read_time()
|
H A D | rtc-ds1553.c | 81 u8 century; ds1553_rtc_set_time() local 83 century = bin2bcd((tm->tm_year + 1900) / 100); ds1553_rtc_set_time() 96 writeb(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY); ds1553_rtc_set_time() 97 writeb(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL); ds1553_rtc_set_time() 107 unsigned int century; ds1553_rtc_read_time() local 121 century = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK; ds1553_rtc_read_time() 130 tm->tm_year = bcd2bin(year) + bcd2bin(century) * 100 - 1900; ds1553_rtc_read_time()
|
H A D | rtc-ds1511.c | 246 unsigned int century; ds1511_rtc_read_time() local 259 century = rtc_read(RTC_CENTURY); ds1511_rtc_read_time() 271 century = bcd2bin(century) * 100; ds1511_rtc_read_time() 277 century += rtc_tm->tm_year; ds1511_rtc_read_time() 278 rtc_tm->tm_year = century - 1900; ds1511_rtc_read_time()
|
H A D | rtc-pcf8563.c | 55 #define PCF8563_MO_C 0x80 /* century */ 65 * 0 indicates the century is 20xx 66 * 1 indicates the century is 19xx 68 * century. When the year digit data overflows from 99 to 00, 70 * 20th century, it will be set in year 2000, ... 267 /* year and century */ pcf8563_set_datetime()
|
H A D | rtc-ds1390.c | 91 /* mask off century bit */ ds1390_read_time() 93 /* adjust for century bit */ ds1390_read_time()
|
H A D | rtc-max6900.c | 34 #define MAX6900_REG_CENTURY 9 /* century */ 118 * we write the century byte first, since we set the write-protect max6900_i2c_write_regs()
|
H A D | rtc-pcf85063.c | 32 #define PCF85063_MO_C 0x80 /* century */ 116 /* year and century */ pcf85063_set_datetime()
|
H A D | rtc-stk17ta8.c | 106 unsigned int century; stk17ta8_rtc_read_time() local 123 century = readb(ioaddr + RTC_CENTURY); stk17ta8_rtc_read_time() 132 tm->tm_year = bcd2bin(year) + bcd2bin(century) * 100 - 1900; stk17ta8_rtc_read_time()
|
H A D | rtc-ds3232.c | 110 unsigned int century, add_century = 0; ds3232_read_time() local 127 /* Extract additional information for AM/PM and century */ ds3232_read_time() 131 century = month & 0x80; ds3232_read_time() 152 if (century) ds3232_read_time()
|
H A D | rtc-cmos.c | 64 u8 century; member in struct:cmos_rtc 192 /* REVISIT: if the clock has a "century" register, use cmos_read_time() 202 /* REVISIT: set the "century" register if available cmos_set_time() 564 || off == cmos->century) cmos_nvram_write() 720 cmos_rtc.century = info->rtc_century; cmos_do_probe() 808 cmos_rtc.century ? ", y3k" : "", cmos_do_probe() 1046 acpi_rtc_info.rtc_century = acpi_gbl_FADT.century; cmos_wake_setup()
|
H A D | rtc-ds1685.c | 254 u8 ctrlb, century; ds1685_rtc_read_time() local 266 century = rtc->read(rtc, RTC_CENTURY); ds1685_rtc_read_time() 273 century = ds1685_rtc_bcd2bin(rtc, century, RTC_CENTURY_MASK, ds1685_rtc_read_time() 287 tm->tm_year = ((years + (century * 100)) - 1900); ds1685_rtc_read_time() 304 u8 ctrlb, seconds, minutes, hours, wday, mday, month, years, century; ds1685_rtc_set_time() local 321 century = ds1685_rtc_bin2bcd(rtc, ((tm->tm_year + 1900) / 100), ds1685_rtc_set_time() 358 rtc->write(rtc, RTC_CENTURY, century); ds1685_rtc_set_time() 1551 { "century", RTC_CENTURY, RTC_CENTURY_MASK, 0, 99 }, 1568 { "century", RTC_CENTURY, RTC_CENTURY_MASK, 0x00, 0x63 }, 1695 DS1685_RTC_SYSFS_TIME_REG_RW(century); variable
|
H A D | rtc-at91rm9200.c | 135 tm->tm_year = bcd2bin(date & AT91_RTC_CENT) * 100; /* century */ at91_rtc_decodetime() 186 bin2bcd((tm->tm_year + 1900) / 100) /* century */ at91_rtc_settime()
|
H A D | rtc-m48t59.c | 89 tm->tm_year += 100; /* one century */ m48t59_rtc_read_time() 185 tm->tm_year += 100; /* one century */ m48t59_rtc_readalarm()
|
H A D | rtc-isl12022.c | 222 /* year and century */ isl12022_set_datetime()
|
H A D | rtc-rc5t583.c | 67 * - Years are 0..99 vs Linux 1900..N (we assume 21st century)
|
H A D | rtc-rx4581.c | 205 /* year and century */ rx4581_set_datetime()
|
H A D | rtc-tps65910.c | 54 * - Years are 0..99 vs Linux 1900..N (we assume 21st century)
|
H A D | rtc-rs5c372.c | 90 * - we're in the 21st century, so it's safe to ignore the century
|
H A D | rtc-rx8581.c | 198 /* year and century */ rx8581_set_datetime()
|
H A D | rtc-hym8563.c | 143 * While the HYM8563 has a century flag in the month register, hym8563_rtc_set_time()
|
H A D | rtc-twl.c | 246 * - Years are 0..99 vs Linux 1900..N (we assume 21st century)
|
H A D | rtc-ds1307.c | 45 /* RTC registers don't differ much, except for the century flag */ 1147 * NOTE: ignores century bits; fix before deploying ds1307_probe()
|
H A D | rtc-ds1305.c | 33 * - Are a 21st-century clock (2000 <= year < 2100)
|
H A D | rtc-isl12057.c | 117 * It also has a century bit encoded in MO flag which provides isl12057_rtc_tm_to_regs()
|
H A D | rtc-omap.c | 31 * with century-range alarm matching, driven by the 32kHz clock.
|
/linux-4.1.27/arch/x86/kernel/ |
H A D | rtc.c | 64 unsigned int status, year, mon, day, hour, min, sec, century = 0; mach_get_cmos_time() local 87 acpi_gbl_FADT.century) mach_get_cmos_time() 88 century = CMOS_READ(acpi_gbl_FADT.century); mach_get_cmos_time() 105 if (century) { mach_get_cmos_time() 106 century = bcd2bin(century); mach_get_cmos_time() 107 year += century * 100; mach_get_cmos_time()
|
/linux-4.1.27/arch/mips/include/asm/ |
H A D | m48t37.h | 14 volatile u8 century; member in struct:m48t37_rtc
|
/linux-4.1.27/arch/mips/sibyte/swarm/ |
H A D | rtc_m41t81.c | 33 #define M41T81REG_HR_CB 0x40 /* century bit */ 34 #define M41T81REG_HR_CEB 0x80 /* century enable bit */ 69 #define M41T81REG_HR 0x03 /* hour/century */ 149 /* Note we don't care about the century */ m41t81_set_time() 182 /* we don't do century, everything is beyond 2000 */ m41t81_set_time()
|
/linux-4.1.27/include/linux/ |
H A D | mc146818rtc.h | 23 * than 24 hours in the future; or dates that include a century code.
|
/linux-4.1.27/arch/alpha/kernel/ |
H A D | rtc.c | 91 /* Undo the century adjustment made in __get_rtc_time. */ alpha_rtc_read_time() 95 /* Redo the century adjustment with the epoch in place. */ alpha_rtc_read_time()
|
/linux-4.1.27/drivers/block/drbd/ |
H A D | drbd_protocol.h | 71 P_CONNECTION_FEATURES = 0xfffe /* FIXED for the next century! */
|
/linux-4.1.27/include/acpi/ |
H A D | actbl.h | 267 u8 century; /* Index to century in RTC CMOS RAM */ member in struct:acpi_table_fadt
|