Searched refs:century (Results 1 - 34 of 34) sorted by relevance

/linux-4.1.27/drivers/rtc/
H A Drtc-bq4802.c54 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 Drtc-max6902.c58 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 Drtc-ds1742.c68 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 Drtc-ds1553.c81 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 Drtc-ds1511.c246 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 Drtc-pcf8563.c55 #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 Drtc-ds1390.c91 /* mask off century bit */ ds1390_read_time()
93 /* adjust for century bit */ ds1390_read_time()
H A Drtc-max6900.c34 #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 Drtc-pcf85063.c32 #define PCF85063_MO_C 0x80 /* century */
116 /* year and century */ pcf85063_set_datetime()
H A Drtc-stk17ta8.c106 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 Drtc-ds3232.c110 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 Drtc-cmos.c64 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 Drtc-ds1685.c254 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 Drtc-at91rm9200.c135 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 Drtc-m48t59.c89 tm->tm_year += 100; /* one century */ m48t59_rtc_read_time()
185 tm->tm_year += 100; /* one century */ m48t59_rtc_readalarm()
H A Drtc-isl12022.c222 /* year and century */ isl12022_set_datetime()
H A Drtc-rc5t583.c67 * - Years are 0..99 vs Linux 1900..N (we assume 21st century)
H A Drtc-rx4581.c205 /* year and century */ rx4581_set_datetime()
H A Drtc-tps65910.c54 * - Years are 0..99 vs Linux 1900..N (we assume 21st century)
H A Drtc-rs5c372.c90 * - we're in the 21st century, so it's safe to ignore the century
H A Drtc-rx8581.c198 /* year and century */ rx8581_set_datetime()
H A Drtc-hym8563.c143 * While the HYM8563 has a century flag in the month register, hym8563_rtc_set_time()
H A Drtc-twl.c246 * - Years are 0..99 vs Linux 1900..N (we assume 21st century)
H A Drtc-ds1307.c45 /* RTC registers don't differ much, except for the century flag */
1147 * NOTE: ignores century bits; fix before deploying ds1307_probe()
H A Drtc-ds1305.c33 * - Are a 21st-century clock (2000 <= year < 2100)
H A Drtc-isl12057.c117 * It also has a century bit encoded in MO flag which provides isl12057_rtc_tm_to_regs()
H A Drtc-omap.c31 * with century-range alarm matching, driven by the 32kHz clock.
/linux-4.1.27/arch/x86/kernel/
H A Drtc.c64 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 Dm48t37.h14 volatile u8 century; member in struct:m48t37_rtc
/linux-4.1.27/arch/mips/sibyte/swarm/
H A Drtc_m41t81.c33 #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 Dmc146818rtc.h23 * than 24 hours in the future; or dates that include a century code.
/linux-4.1.27/arch/alpha/kernel/
H A Drtc.c91 /* 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 Ddrbd_protocol.h71 P_CONNECTION_FEATURES = 0xfffe /* FIXED for the next century! */
/linux-4.1.27/include/acpi/
H A Dactbl.h267 u8 century; /* Index to century in RTC CMOS RAM */ member in struct:acpi_table_fadt

Completed in 594 milliseconds