/openbmc/qemu/tests/qtest/ |
H A D | rtc-test.c | 80 hour = cmos_read(RTC_HOURS); in cmos_get_date_time() 189 cmos_write(RTC_HOURS, 0x02); in set_year_20xx() 241 cmos_write(RTC_HOURS, 0x02); in set_year_1980() 305 cmos_write(RTC_HOURS, h); in set_time_regs() 320 cmos_write(RTC_HOURS, h); in set_datetime_bcd() 331 cmos_write(RTC_HOURS, h); in set_datetime_dec() 490 cmos_write(RTC_HOURS, 0x81); in am_pm_alarm() 498 g_assert(cmos_read(RTC_HOURS) == 0x82); in am_pm_alarm() 517 cmos_write(RTC_HOURS, 3); in am_pm_alarm() 525 g_assert(cmos_read(RTC_HOURS) == 0x82); in am_pm_alarm() [all …]
|
H A D | m48t59-test.c | 21 #define RTC_HOURS 0xb macro 118 hour = cmos_read(s, RTC_HOURS); in cmos_get_date_time()
|
/openbmc/u-boot/drivers/rtc/ |
H A D | ds164x.c | 37 #define RTC_HOURS ( RTC_BASE + 0x03 ) macro 65 hour = rtc_read( RTC_HOURS ); in rtc_get() 118 rtc_write( RTC_HOURS, bin2bcd( tmp->tm_hour )); in rtc_set()
|
H A D | ds1556.c | 33 #define RTC_HOURS ( RTC_BASE + 0xb ) macro 67 hour = rtc_read( RTC_HOURS ); in rtc_get() 120 rtc_write( RTC_HOURS, bin2bcd( tmp->tm_hour )); in rtc_set()
|
H A D | ds174x.c | 28 #define RTC_HOURS ( RTC_BASE + 3 ) macro 62 hour = rtc_read( RTC_HOURS ); in rtc_get() 115 rtc_write( RTC_HOURS, bin2bcd( tmp->tm_hour )); in rtc_set()
|
H A D | mc146818.c | 30 #define RTC_HOURS 0x04 macro 92 hour = mc146818_read8(RTC_HOURS); in mc146818_get() 149 mc146818_write8(RTC_HOURS, bin2bcd(tmp->tm_hour)); in mc146818_set()
|
H A D | mk48t59.c | 89 hour = rtc_read (RTC_HOURS); in rtc_get() 146 rtc_write (RTC_HOURS, bin2bcd(tmp->tm_hour)); in rtc_set()
|
H A D | ds1306.c | 24 #define RTC_HOURS 0x02 macro 305 hour = rtc_read (RTC_HOURS); in rtc_get() 372 rtc_write (RTC_HOURS, bin2bcd (tmp->tm_hour)); in rtc_set()
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-ds1742.c | 29 #define RTC_HOURS 3 macro 69 writeb(bin2bcd(tm->tm_hour), ioaddr + RTC_HOURS); in ds1742_rtc_set_time() 93 hour = readb(ioaddr + RTC_HOURS); in ds1742_rtc_read_time()
|
H A D | rtc-ds1553.c | 34 #define RTC_HOURS (RTC_OFFSET + 11) macro 85 writeb(bin2bcd(tm->tm_hour), ioaddr + RTC_HOURS); in ds1553_rtc_set_time() 109 hour = readb(ioaddr + RTC_HOURS); in ds1553_rtc_read_time()
|
H A D | rtc-mc146818-lib.c | 123 p->time->tm_hour = CMOS_READ(RTC_HOURS); in mc146818_get_time_callback() 295 CMOS_WRITE(hrs, RTC_HOURS); in mc146818_set_time()
|
H A D | rtc-stk17ta8.c | 37 #define RTC_HOURS (RTC_OFFSET + 11) macro 85 writeb(bin2bcd(tm->tm_hour), ioaddr + RTC_HOURS); in stk17ta8_rtc_set_time() 111 hour = readb(ioaddr + RTC_HOURS); in stk17ta8_rtc_read_time()
|
H A D | rtc-ds1286.c | 183 tm->tm_hour = ds1286_rtc_read(priv, RTC_HOURS) & 0x3f; in ds1286_read_time() 252 ds1286_rtc_write(priv, hrs, RTC_HOURS); in ds1286_set_time()
|
/openbmc/qemu/hw/rtc/ |
H A D | mc146818rtc.c | 306 if (s->cmos_data[RTC_HOURS] & 0x80) { in convert_hour() 327 cur_hour = rtc_from_bcd(s, s->cmos_data[RTC_HOURS]); in get_next_alarm() 457 case RTC_HOURS: in cmos_ioport_write() 578 tm->tm_hour = rtc_from_bcd(s, s->cmos_data[RTC_HOURS] & 0x7f); in rtc_get_time() 581 if (s->cmos_data[RTC_HOURS] & 0x80) { in rtc_get_time() 613 s->cmos_data[RTC_HOURS] = rtc_to_bcd(s, tm->tm_hour); in rtc_set_cmos() 617 s->cmos_data[RTC_HOURS] = rtc_to_bcd(s, h); in rtc_set_cmos() 619 s->cmos_data[RTC_HOURS] |= 0x80; in rtc_set_cmos() 686 case RTC_HOURS: in cmos_ioport_read()
|
/openbmc/linux/arch/powerpc/platforms/chrp/ |
H A D | time.c | 111 chrp_cmos_clock_write(tm.tm_hour,RTC_HOURS); in chrp_set_rtc_time() 137 hour = chrp_cmos_clock_read(RTC_HOURS); in chrp_get_rtc_time()
|
/openbmc/linux/arch/powerpc/platforms/maple/ |
H A D | time.c | 56 tm->tm_hour = maple_clock_read(RTC_HOURS); in maple_get_rtc_time() 109 maple_clock_write(hour, RTC_HOURS); in maple_set_rtc_time()
|
/openbmc/linux/include/linux/rtc/ |
H A D | ds1286.h | 18 #define RTC_HOURS 4 macro
|
/openbmc/u-boot/include/ |
H A D | mk48t59.h | 21 #define RTC_HOURS 0x1FFB macro
|
/openbmc/u-boot/include/linux/ |
H A D | mc146818rtc.h | 25 #define RTC_HOURS 4 macro
|
/openbmc/qemu/include/hw/rtc/ |
H A D | mc146818rtc_regs.h | 35 #define RTC_HOURS 4 macro
|
/openbmc/linux/include/linux/ |
H A D | mc146818rtc.h | 54 #define RTC_HOURS 4 macro
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | mc146818-time.h | 99 hour = CMOS_READ(RTC_HOURS); in mc146818_get_cmos_time()
|
/openbmc/linux/arch/sh/include/asm/ |
H A D | smc37c93x.h | 169 #define RTC_HOURS 4 macro
|
/openbmc/linux/arch/m68k/atari/ |
H A D | time.c | 266 hour = RTC_READ( RTC_HOURS ); in atari_tt_hwclk() 275 RTC_WRITE( RTC_HOURS, hour + pm); in atari_tt_hwclk()
|
/openbmc/linux/arch/mips/dec/ |
H A D | time.c | 32 hour = CMOS_READ(RTC_HOURS); in read_persistent_clock64()
|