/openbmc/qemu/tests/qtest/ |
H A D | rtc-test.c | 81 mday = cmos_read(RTC_DAY_OF_MONTH); in cmos_get_date_time() 188 cmos_write(RTC_DAY_OF_MONTH, 0x02); in set_year_20xx() 197 g_assert_cmpint(cmos_read(RTC_DAY_OF_MONTH), ==, 0x02); in set_year_20xx() 214 g_assert_cmpint(cmos_read(RTC_DAY_OF_MONTH), ==, 0x02); in set_year_20xx() 226 g_assert_cmpint(cmos_read(RTC_DAY_OF_MONTH), ==, 0x02); in set_year_20xx() 240 cmos_write(RTC_DAY_OF_MONTH, 0x02); in set_year_1980() 249 g_assert_cmpint(cmos_read(RTC_DAY_OF_MONTH), ==, 0x02); in set_year_1980() 326 cmos_write(RTC_DAY_OF_MONTH, d); in set_datetime_bcd() 337 cmos_write(RTC_DAY_OF_MONTH, d); in set_datetime_dec() 365 g_assert_cmpint(cmos_read(RTC_DAY_OF_MONTH), ==, d); \
|
H A D | m48t59-test.c | 24 #define RTC_DAY_OF_MONTH 0xd macro 119 mday = cmos_read(s, RTC_DAY_OF_MONTH); in cmos_get_date_time()
|
/openbmc/u-boot/drivers/rtc/ |
H A D | ds164x.c | 35 #define RTC_DAY_OF_MONTH ( RTC_BASE + 0x05 ) macro 66 mday = rtc_read( RTC_DAY_OF_MONTH ); in rtc_get() 117 rtc_write( RTC_DAY_OF_MONTH, bin2bcd( tmp->tm_mday )); in rtc_set()
|
H A D | ds1556.c | 31 #define RTC_DAY_OF_MONTH ( RTC_BASE + 0xd ) macro 68 mday = rtc_read( RTC_DAY_OF_MONTH ); in rtc_get() 119 rtc_write( RTC_DAY_OF_MONTH, bin2bcd( tmp->tm_mday )); in rtc_set()
|
H A D | ds174x.c | 26 #define RTC_DAY_OF_MONTH ( RTC_BASE + 5 ) macro 63 mday = rtc_read( RTC_DAY_OF_MONTH ); in rtc_get() 114 rtc_write( RTC_DAY_OF_MONTH, bin2bcd( tmp->tm_mday )); in rtc_set()
|
H A D | mk48t59.c | 90 mday = rtc_read (RTC_DAY_OF_MONTH); in rtc_get() 145 rtc_write (RTC_DAY_OF_MONTH, bin2bcd(tmp->tm_mday)); in rtc_set()
|
/openbmc/linux/arch/powerpc/platforms/chrp/ |
H A D | time.c | 113 chrp_cmos_clock_write(tm.tm_mday,RTC_DAY_OF_MONTH); in chrp_set_rtc_time() 138 day = chrp_cmos_clock_read(RTC_DAY_OF_MONTH); in chrp_get_rtc_time()
|
/openbmc/linux/arch/powerpc/platforms/maple/ |
H A D | time.c | 57 tm->tm_mday = maple_clock_read(RTC_DAY_OF_MONTH); in maple_get_rtc_time() 111 maple_clock_write(mday, RTC_DAY_OF_MONTH); in maple_set_rtc_time()
|
/openbmc/u-boot/include/ |
H A D | mk48t59.h | 23 #define RTC_DAY_OF_MONTH 0x1FFD macro
|
/openbmc/u-boot/include/linux/ |
H A D | mc146818rtc.h | 31 #define RTC_DAY_OF_MONTH 7 macro
|
/openbmc/qemu/include/hw/rtc/ |
H A D | mc146818rtc_regs.h | 40 #define RTC_DAY_OF_MONTH 7 macro
|
/openbmc/linux/include/linux/ |
H A D | mc146818rtc.h | 60 #define RTC_DAY_OF_MONTH 7 macro
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-mc146818-lib.c | 124 p->time->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH); in mc146818_get_time_callback() 294 CMOS_WRITE(day, RTC_DAY_OF_MONTH); in mc146818_set_time()
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | mc146818-time.h | 100 day = CMOS_READ(RTC_DAY_OF_MONTH); in mc146818_get_cmos_time()
|
/openbmc/linux/arch/sh/include/asm/ |
H A D | smc37c93x.h | 172 #define RTC_DAY_OF_MONTH 7 macro
|
/openbmc/linux/arch/m68k/atari/ |
H A D | time.c | 267 day = RTC_READ( RTC_DAY_OF_MONTH ); in atari_tt_hwclk() 276 RTC_WRITE( RTC_DAY_OF_MONTH, day ); in atari_tt_hwclk()
|
/openbmc/linux/arch/mips/dec/ |
H A D | time.c | 33 day = CMOS_READ(RTC_DAY_OF_MONTH); in read_persistent_clock64()
|
/openbmc/qemu/hw/rtc/ |
H A D | mc146818rtc.c | 459 case RTC_DAY_OF_MONTH: in cmos_ioport_write() 586 tm->tm_mday = rtc_from_bcd(s, s->cmos_data[RTC_DAY_OF_MONTH]); in rtc_get_time() 622 s->cmos_data[RTC_DAY_OF_MONTH] = rtc_to_bcd(s, tm->tm_mday); in rtc_set_cmos() 688 case RTC_DAY_OF_MONTH: in cmos_ioport_read()
|