/openbmc/linux/drivers/rtc/ |
H A D | rtc-ds1742.c | 25 #define RTC_CONTROL 0 macro 63 writeb(RTC_WRITE, ioaddr + RTC_CONTROL); in ds1742_rtc_set_time() 75 writeb(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL); in ds1742_rtc_set_time() 90 writeb(RTC_READ, ioaddr + RTC_CONTROL); in ds1742_rtc_read_time() 99 writeb(0, ioaddr + RTC_CONTROL); in ds1742_rtc_read_time() 176 writeb(RTC_WRITE, ioaddr + RTC_CONTROL); in ds1742_rtc_probe() 178 writeb(cen & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL); in ds1742_rtc_probe()
|
H A D | rtc-cmos.c | 282 p->rtc_control = CMOS_READ(RTC_CONTROL); in cmos_read_alarm_callback() 372 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_irq_enable() 376 CMOS_WRITE(rtc_control, RTC_CONTROL); in cmos_irq_enable() 392 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_irq_disable() 394 CMOS_WRITE(rtc_control, RTC_CONTROL); in cmos_irq_disable() 541 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_set_alarm() 591 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_procfs() 711 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_interrupt() 730 CMOS_WRITE(rtc_control, RTC_CONTROL); in cmos_interrupt() 768 rtc_control = CMOS_READ(RTC_CONTROL); in rtc_handler() [all …]
|
H A D | rtc-ds1553.c | 30 #define RTC_CONTROL (RTC_OFFSET + 8) macro 79 writeb(RTC_WRITE, pdata->ioaddr + RTC_CONTROL); in ds1553_rtc_set_time() 91 writeb(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL); in ds1553_rtc_set_time() 106 writeb(RTC_READ, ioaddr + RTC_CONTROL); in ds1553_rtc_read_time() 115 writeb(0, ioaddr + RTC_CONTROL); in ds1553_rtc_read_time() 281 writeb(RTC_WRITE, ioaddr + RTC_CONTROL); in ds1553_rtc_probe() 283 writeb(cen & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL); in ds1553_rtc_probe()
|
H A D | rtc-mc146818-lib.c | 139 p->ctrl = CMOS_READ(RTC_CONTROL); in mc146818_get_time_callback() 268 save_control = CMOS_READ(RTC_CONTROL); in mc146818_set_time() 281 save_control = CMOS_READ(RTC_CONTROL); in mc146818_set_time() 282 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in mc146818_set_time() 304 CMOS_WRITE(save_control, RTC_CONTROL); in mc146818_set_time()
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | mc146818-time.h | 39 save_control = CMOS_READ(RTC_CONTROL); /* tell the clock it's being set */ in mc146818_set_rtc_mmss() 40 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in mc146818_set_rtc_mmss() 82 CMOS_WRITE(save_control, RTC_CONTROL); in mc146818_set_rtc_mmss() 105 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in mc146818_get_cmos_time()
|
/openbmc/linux/arch/mips/dec/ |
H A D | time.c | 46 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in read_persistent_clock64() 78 save_control = CMOS_READ(RTC_CONTROL); in update_persistent_clock64() 79 CMOS_WRITE((save_control | RTC_SET), RTC_CONTROL); in update_persistent_clock64() 120 CMOS_WRITE(save_control, RTC_CONTROL); in update_persistent_clock64()
|
/openbmc/linux/arch/powerpc/platforms/chrp/ |
H A D | time.c | 93 save_control = chrp_cmos_clock_read(RTC_CONTROL); /* tell the clock it's being set */ in chrp_set_rtc_time() 95 chrp_cmos_clock_write((save_control|RTC_SET), RTC_CONTROL); in chrp_set_rtc_time() 123 chrp_cmos_clock_write(save_control, RTC_CONTROL); in chrp_set_rtc_time() 143 if (!(chrp_cmos_clock_read(RTC_CONTROL) & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in chrp_get_rtc_time()
|
/openbmc/linux/arch/powerpc/platforms/maple/ |
H A D | time.c | 62 if (!(maple_clock_read(RTC_CONTROL) & RTC_DM_BINARY) in maple_get_rtc_time() 84 save_control = maple_clock_read(RTC_CONTROL); /* tell the clock it's being set */ in maple_set_rtc_time() 86 maple_clock_write((save_control|RTC_SET), RTC_CONTROL); in maple_set_rtc_time() 121 maple_clock_write(save_control, RTC_CONTROL); in maple_set_rtc_time()
|
/openbmc/linux/arch/mips/mti-malta/ |
H A D | malta-time.c | 98 ctrl = CMOS_READ(RTC_CONTROL); in estimate_frequencies() 189 ctrl = CMOS_READ(RTC_CONTROL); in init_rtc() 191 CMOS_WRITE(ctrl & ~RTC_SET, RTC_CONTROL); in init_rtc()
|
/openbmc/u-boot/drivers/rtc/ |
H A D | ds164x.c | 40 #define RTC_CONTROL ( RTC_BASE + 0x00 ) macro 42 #define RTC_CONTROLA RTC_CONTROL /* W=bit6, R=bit5 */
|
H A D | ds1306.c | 40 #define RTC_CONTROL 0x0f macro 398 rtc_write (RTC_CONTROL, 0x00); /* 1st step: reset WP */ in rtc_reset() 399 rtc_write (RTC_CONTROL, 0x00); /* 2nd step: reset 1Hz, AIE1, AIE0 */ in rtc_reset()
|
/openbmc/linux/arch/m68k/atari/ |
H A D | time.c | 206 ctrl = RTC_READ(RTC_CONTROL); /* control registers are in atari_tt_hwclk() 262 RTC_WRITE( RTC_CONTROL, ctrl | RTC_SET ); in atari_tt_hwclk() 281 RTC_WRITE( RTC_CONTROL, ctrl & ~RTC_SET ); in atari_tt_hwclk()
|
/openbmc/u-boot/include/linux/ |
H A D | mc146818rtc.h | 64 #define RTC_CONTROL RTC_REG_B macro
|
/openbmc/linux/arch/alpha/kernel/ |
H A D | time.c | 228 x = CMOS_READ(RTC_CONTROL); in common_init_rtc() 233 CMOS_WRITE(x, RTC_CONTROL); in common_init_rtc()
|
H A D | rtc.c | 59 ctrl = CMOS_READ(RTC_CONTROL); in init_rtc_epoch()
|
/openbmc/linux/include/linux/ |
H A D | mc146818rtc.h | 95 #define RTC_CONTROL RTC_REG_B macro
|
/openbmc/linux/arch/powerpc/platforms/ |
H A D | fsl_uli1575.c | 164 CMOS_WRITE(RTC_SET, RTC_CONTROL); in quirk_final_uli1575() 165 CMOS_WRITE(RTC_24H, RTC_CONTROL); in quirk_final_uli1575()
|
/openbmc/linux/arch/sh/include/asm/ |
H A D | smc37c93x.h | 181 #define RTC_CONTROL 11 macro
|
/openbmc/linux/arch/x86/kernel/apic/ |
H A D | io_apic.c | 2099 save_control = CMOS_READ(RTC_CONTROL); in unlock_ExtINT_logic() 2103 CMOS_WRITE(save_control | RTC_PIE, RTC_CONTROL); in unlock_ExtINT_logic() 2112 CMOS_WRITE(save_control, RTC_CONTROL); in unlock_ExtINT_logic()
|