Home
last modified time | relevance | path

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

12

/openbmc/qemu/tests/qtest/
H A Drtc-test.c78 sec = cmos_read(RTC_SECONDS); in cmos_get_date_time()
191 cmos_write(RTC_SECONDS, 0x58); in set_year_20xx()
196 g_assert_cmpint(cmos_read(RTC_SECONDS), >=, 0x58); in set_year_20xx()
213 g_assert_cmpint(cmos_read(RTC_SECONDS), >=, 0x58); in set_year_20xx()
225 g_assert_cmpint(cmos_read(RTC_SECONDS), >=, 0x58); in set_year_20xx()
243 cmos_write(RTC_SECONDS, 0x58); in set_year_1980()
248 g_assert_cmpint(cmos_read(RTC_SECONDS), >=, 0x58); in set_year_1980()
307 cmos_write(RTC_SECONDS, s); in set_time_regs()
322 cmos_write(RTC_SECONDS, s); in set_datetime_bcd()
333 cmos_write(RTC_SECONDS, s); in set_datetime_dec()
[all …]
H A Dm48t59-test.c19 #define RTC_SECONDS 0x9 macro
116 sec = cmos_read(s, RTC_SECONDS); in cmos_get_date_time()
/openbmc/u-boot/drivers/rtc/
H A Dds164x.c39 #define RTC_SECONDS ( RTC_BASE + 0x01 ) macro
45 #define RTC_CONTROLB RTC_SECONDS /* OSC=bit7 */
63 sec = rtc_read( RTC_SECONDS ); in rtc_get()
120 rtc_write( RTC_SECONDS, bin2bcd( tmp->tm_sec )); in rtc_set()
H A Dds174x.c30 #define RTC_SECONDS ( RTC_BASE + 1 ) macro
34 #define RTC_CONTROLB RTC_SECONDS
60 sec = rtc_read( RTC_SECONDS ); in rtc_get()
117 rtc_write( RTC_SECONDS, bin2bcd( tmp->tm_sec )); in rtc_set()
H A Dds1556.c35 #define RTC_SECONDS ( RTC_BASE + 0x9 ) macro
39 #define RTC_CONTROLB RTC_SECONDS
65 sec = rtc_read( RTC_SECONDS ); in rtc_get()
122 rtc_write( RTC_SECONDS, bin2bcd( tmp->tm_sec )); in rtc_set()
H A Dmc146818.c26 #define RTC_SECONDS 0x00 macro
90 sec = mc146818_read8(RTC_SECONDS); in mc146818_get()
151 mc146818_write8(RTC_SECONDS, bin2bcd(tmp->tm_sec)); in mc146818_set()
H A Dds1306.c22 #define RTC_SECONDS 0x00 macro
303 sec = rtc_read (RTC_SECONDS); in rtc_get()
370 rtc_write (RTC_SECONDS, bin2bcd (tmp->tm_sec)); in rtc_set()
H A Dmk48t59.c87 sec = rtc_read (RTC_SECONDS); in rtc_get()
148 rtc_write (RTC_SECONDS, bin2bcd(tmp->tm_sec )); in rtc_set()
/openbmc/linux/drivers/rtc/
H A Drtc-ds1742.c27 #define RTC_SECONDS 1 macro
71 writeb(bin2bcd(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS); in ds1742_rtc_set_time()
91 second = readb(ioaddr + RTC_SECONDS) & RTC_SECONDS_MASK; in ds1742_rtc_read_time()
172 sec = readb(ioaddr + RTC_SECONDS); in ds1742_rtc_probe()
177 writeb(sec, ioaddr + RTC_SECONDS); in ds1742_rtc_probe()
H A Drtc-mc146818-lib.c41 seconds = CMOS_READ(RTC_SECONDS); in mc146818_avoid_UIP()
50 if (seconds != CMOS_READ(RTC_SECONDS)) { in mc146818_avoid_UIP()
74 if (seconds != CMOS_READ(RTC_SECONDS)) { in mc146818_avoid_UIP()
297 CMOS_WRITE(sec, RTC_SECONDS); in mc146818_set_time()
H A Drtc-ds1553.c32 #define RTC_SECONDS (RTC_OFFSET + 9) macro
87 writeb(bin2bcd(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS); in ds1553_rtc_set_time()
107 second = readb(ioaddr + RTC_SECONDS) & RTC_SECONDS_MASK; in ds1553_rtc_read_time()
277 sec = readb(ioaddr + RTC_SECONDS); in ds1553_rtc_probe()
282 writeb(sec, ioaddr + RTC_SECONDS); in ds1553_rtc_probe()
H A Drtc-stk17ta8.c35 #define RTC_SECONDS (RTC_OFFSET + 9) macro
87 writeb(bin2bcd(tm->tm_sec) & RTC_SECONDS_MASK, ioaddr + RTC_SECONDS); in stk17ta8_rtc_set_time()
109 second = readb(ioaddr + RTC_SECONDS) & RTC_SECONDS_MASK; in stk17ta8_rtc_read_time()
/openbmc/linux/arch/mips/include/asm/
H A Dmc146818-time.h66 CMOS_WRITE(real_seconds, RTC_SECONDS); in mc146818_set_rtc_mmss()
97 sec = CMOS_READ(RTC_SECONDS); in mc146818_get_cmos_time()
103 } while (sec != CMOS_READ(RTC_SECONDS)); in mc146818_get_cmos_time()
/openbmc/linux/arch/mips/dec/
H A Dtime.c30 sec = CMOS_READ(RTC_SECONDS); in read_persistent_clock64()
42 } while (sec != CMOS_READ(RTC_SECONDS)); in read_persistent_clock64()
105 CMOS_WRITE(real_seconds, RTC_SECONDS); in update_persistent_clock64()
/openbmc/linux/arch/powerpc/platforms/chrp/
H A Dtime.c109 chrp_cmos_clock_write(tm.tm_sec,RTC_SECONDS); in chrp_set_rtc_time()
135 sec = chrp_cmos_clock_read(RTC_SECONDS); in chrp_get_rtc_time()
141 } while (sec != chrp_cmos_clock_read(RTC_SECONDS)); in chrp_get_rtc_time()
/openbmc/linux/arch/powerpc/platforms/maple/
H A Dtime.c54 tm->tm_sec = maple_clock_read(RTC_SECONDS); in maple_get_rtc_time()
60 } while (tm->tm_sec != maple_clock_read(RTC_SECONDS)); in maple_get_rtc_time()
107 maple_clock_write(sec, RTC_SECONDS); in maple_set_rtc_time()
/openbmc/linux/arch/mips/mti-malta/
H A Dmalta-time.c86 secs1 = CMOS_READ(RTC_SECONDS); in estimate_frequencies()
96 secs2 = CMOS_READ(RTC_SECONDS); in estimate_frequencies()
/openbmc/linux/include/linux/rtc/
H A Dds1286.h15 #define RTC_SECONDS 1 macro
/openbmc/u-boot/include/
H A Dmk48t59.h19 #define RTC_SECONDS 0x1FF9 macro
/openbmc/u-boot/include/linux/
H A Dmc146818rtc.h21 #define RTC_SECONDS 0 macro
/openbmc/qemu/include/hw/rtc/
H A Dmc146818rtc_regs.h31 #define RTC_SECONDS 0 macro
/openbmc/linux/include/linux/
H A Dmc146818rtc.h50 #define RTC_SECONDS 0 macro
/openbmc/qemu/hw/rtc/
H A Dmc146818rtc.c325 cur_sec = rtc_from_bcd(s, s->cmos_data[RTC_SECONDS]); in get_next_alarm()
455 case RTC_SECONDS: in cmos_ioport_write()
576 tm->tm_sec = rtc_from_bcd(s, s->cmos_data[RTC_SECONDS]); in rtc_get_time()
609 s->cmos_data[RTC_SECONDS] = rtc_to_bcd(s, tm->tm_sec); in rtc_set_cmos()
684 case RTC_SECONDS: in cmos_ioport_read()
/openbmc/linux/arch/m68k/atari/
H A Dtime.c264 sec = RTC_READ( RTC_SECONDS ); in atari_tt_hwclk()
273 RTC_WRITE( RTC_SECONDS, sec ); in atari_tt_hwclk()
/openbmc/linux/arch/sh/include/asm/
H A Dsmc37c93x.h165 #define RTC_SECONDS 0 macro

12