Home
last modified time | relevance | path

Searched refs:RTC_HOURS (Results 1 – 25 of 25) sorted by relevance

/openbmc/qemu/tests/qtest/
H A Drtc-test.c80 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 Dm48t59-test.c21 #define RTC_HOURS 0xb macro
118 hour = cmos_read(s, RTC_HOURS); in cmos_get_date_time()
/openbmc/u-boot/drivers/rtc/
H A Dds164x.c37 #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 Dds1556.c33 #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 Dds174x.c28 #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 Dmc146818.c30 #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 Dmk48t59.c89 hour = rtc_read (RTC_HOURS); in rtc_get()
146 rtc_write (RTC_HOURS, bin2bcd(tmp->tm_hour)); in rtc_set()
H A Dds1306.c24 #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 Drtc-ds1742.c29 #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 Drtc-ds1553.c34 #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 Drtc-mc146818-lib.c123 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 Drtc-stk17ta8.c37 #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 Drtc-ds1286.c183 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 Dmc146818rtc.c306 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 Dtime.c111 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 Dtime.c56 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 Dds1286.h18 #define RTC_HOURS 4 macro
/openbmc/u-boot/include/
H A Dmk48t59.h21 #define RTC_HOURS 0x1FFB macro
/openbmc/u-boot/include/linux/
H A Dmc146818rtc.h25 #define RTC_HOURS 4 macro
/openbmc/qemu/include/hw/rtc/
H A Dmc146818rtc_regs.h35 #define RTC_HOURS 4 macro
/openbmc/linux/include/linux/
H A Dmc146818rtc.h54 #define RTC_HOURS 4 macro
/openbmc/linux/arch/mips/include/asm/
H A Dmc146818-time.h99 hour = CMOS_READ(RTC_HOURS); in mc146818_get_cmos_time()
/openbmc/linux/arch/sh/include/asm/
H A Dsmc37c93x.h169 #define RTC_HOURS 4 macro
/openbmc/linux/arch/m68k/atari/
H A Dtime.c266 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 Dtime.c32 hour = CMOS_READ(RTC_HOURS); in read_persistent_clock64()