Home
last modified time | relevance | path

Searched refs:RTC_CENTURY (Results 1 – 12 of 12) sorted by relevance

/openbmc/u-boot/drivers/rtc/
H A Dds1556.c36 #define RTC_CENTURY ( RTC_BASE + 0x8 ) macro
38 #define RTC_CONTROLA RTC_CENTURY
72 century = rtc_read( RTC_CENTURY ); in rtc_get()
126 rtc_write( RTC_CENTURY, bin2bcd( tmp->tm_year / 100 )); in rtc_set()
H A Dds174x.c31 #define RTC_CENTURY ( RTC_BASE + 0 ) macro
33 #define RTC_CONTROLA RTC_CENTURY
67 century = rtc_read( RTC_CENTURY ); in rtc_get()
121 rtc_write( RTC_CENTURY, bin2bcd( tmp->tm_year / 100 )); in rtc_set()
/openbmc/qemu/tests/qtest/
H A Drtc-test.c186 cmos_write(RTC_CENTURY, 0x20); in set_year_20xx()
200 g_assert_cmpint(cmos_read(RTC_CENTURY), ==, 0x20); in set_year_20xx()
217 g_assert_cmpint(cmos_read(RTC_CENTURY), ==, 0x20); in set_year_20xx()
229 g_assert_cmpint(cmos_read(RTC_CENTURY), ==, 0x20); in set_year_20xx()
238 cmos_write(RTC_CENTURY, 0x19); in set_year_1980()
252 g_assert_cmpint(cmos_read(RTC_CENTURY), ==, 0x19); in set_year_1980()
324 cmos_write(RTC_CENTURY, y >> 8); in set_datetime_bcd()
335 cmos_write(RTC_CENTURY, y / 100); in set_datetime_dec()
368 g_assert_cmpint(cmos_read(RTC_CENTURY), ==, (y >> 8)); \
/openbmc/linux/drivers/rtc/
H A Drtc-ds1742.c26 #define RTC_CENTURY 0 macro
74 writeb(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY); in ds1742_rtc_set_time()
98 century = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK; in ds1742_rtc_read_time()
175 cen = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK; in ds1742_rtc_probe()
H A Drtc-ds1553.c31 #define RTC_CENTURY (RTC_OFFSET + 8) macro
90 writeb(RTC_WRITE | (century & RTC_CENTURY_MASK), ioaddr + RTC_CENTURY); in ds1553_rtc_set_time()
114 century = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK; in ds1553_rtc_read_time()
280 cen = readb(ioaddr + RTC_CENTURY) & RTC_CENTURY_MASK; in ds1553_rtc_probe()
H A Drtc-ds1511.c79 #define RTC_CENTURY DS1511_CENTURY macro
219 rtc_write(cen, RTC_CENTURY); in ds1511_rtc_set_time()
248 century = rtc_read(RTC_CENTURY); in ds1511_rtc_read_time()
H A Drtc-stk17ta8.c27 #define RTC_CENTURY (RTC_OFFSET + 1) macro
88 writeb(bin2bcd((tm->tm_year + 1900) / 100), ioaddr + RTC_CENTURY); in stk17ta8_rtc_set_time()
116 century = readb(ioaddr + RTC_CENTURY); in stk17ta8_rtc_read_time()
H A Drtc-ds1685.c276 century = rtc->read(rtc, RTC_CENTURY); in ds1685_rtc_read_time()
366 rtc->write(rtc, RTC_CENTURY, century); in ds1685_rtc_set_time()
/openbmc/qemu/include/hw/rtc/
H A Dmc146818rtc_regs.h50 #define RTC_CENTURY 0x32 macro
/openbmc/qemu/hw/rtc/
H A Dmc146818rtc.c452 s->cmos_index = RTC_CENTURY; in cmos_ioport_write()
454 case RTC_CENTURY: in cmos_ioport_write()
590 rtc_from_bcd(s, s->cmos_data[RTC_CENTURY]) * 100 - 1900; in rtc_get_time()
626 s->cmos_data[RTC_CENTURY] = rtc_to_bcd(s, year / 100); in rtc_set_cmos()
681 s->cmos_index = RTC_CENTURY; in cmos_ioport_read()
683 case RTC_CENTURY: in cmos_ioport_read()
/openbmc/linux/include/linux/rtc/
H A Dds1685.h96 #define RTC_CENTURY 0x48 /* Century 00-99 */ macro
/openbmc/qemu/hw/i386/
H A Dacpi-build.c163 .rtc_century = RTC_CENTURY, in init_common_fadt_data()