/Linux-v5.4/drivers/rtc/ |
D | rtc-ds1742.c | 26 #define RTC_CONTROL 0 macro 64 writeb(RTC_WRITE, ioaddr + RTC_CONTROL); in ds1742_rtc_set_time() 76 writeb(century & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL); in ds1742_rtc_set_time() 91 writeb(RTC_READ, ioaddr + RTC_CONTROL); in ds1742_rtc_read_time() 100 writeb(0, ioaddr + RTC_CONTROL); in ds1742_rtc_read_time() 178 writeb(RTC_WRITE, ioaddr + RTC_CONTROL); in ds1742_rtc_probe() 180 writeb(cen & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL); in ds1742_rtc_probe()
|
D | rtc-mrst.c | 153 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_read_alarm() 184 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_irq_enable() 188 vrtc_cmos_write(rtc_control, RTC_CONTROL); in mrst_irq_enable() 197 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_irq_disable() 199 vrtc_cmos_write(rtc_control, RTC_CONTROL); in mrst_irq_disable() 263 rtc_control = vrtc_cmos_read(RTC_CONTROL); in mrst_procfs() 347 rtc_control = vrtc_cmos_read(RTC_CONTROL); in vrtc_mrst_do_probe() 402 mrst->suspend_ctrl = tmp = vrtc_cmos_read(RTC_CONTROL); in mrst_suspend() 411 vrtc_cmos_write(tmp, RTC_CONTROL); in mrst_suspend() 453 vrtc_cmos_write(tmp, RTC_CONTROL); in mrst_resume()
|
D | rtc-mc146818-lib.c | 68 ctrl = CMOS_READ(RTC_CONTROL); in mc146818_get_time() 161 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) in mc146818_set_time() 172 save_control = CMOS_READ(RTC_CONTROL); in mc146818_set_time() 173 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in mc146818_set_time() 192 CMOS_WRITE(save_control, RTC_CONTROL); in mc146818_set_time()
|
D | rtc-cmos.c | 283 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_read_alarm() 345 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_irq_enable() 349 CMOS_WRITE(rtc_control, RTC_CONTROL); in cmos_irq_enable() 365 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_irq_disable() 367 CMOS_WRITE(rtc_control, RTC_CONTROL); in cmos_irq_disable() 466 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_set_alarm() 536 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_procfs() 665 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_interrupt() 684 CMOS_WRITE(rtc_control, RTC_CONTROL); in cmos_interrupt() 824 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_do_probe() [all …]
|
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() 283 writeb(RTC_WRITE, ioaddr + RTC_CONTROL); in ds1553_rtc_probe() 285 writeb(cen & RTC_CENTURY_MASK, ioaddr + RTC_CONTROL); in ds1553_rtc_probe()
|
/Linux-v5.4/arch/mips/include/asm/ |
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()
|
/Linux-v5.4/drivers/char/ |
D | rtc.c | 499 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) || in rtc_do_ioctl() 596 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) in rtc_do_ioctl() 606 save_control = CMOS_READ(RTC_CONTROL); in rtc_do_ioctl() 607 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in rtc_do_ioctl() 621 CMOS_WRITE(save_control, RTC_CONTROL); in rtc_do_ioctl() 751 tmp = CMOS_READ(RTC_CONTROL); in rtc_release() 755 CMOS_WRITE(tmp, RTC_CONTROL); in rtc_release() 974 ctrl = CMOS_READ(RTC_CONTROL); in rtc_init() 1112 ctrl = CMOS_READ(RTC_CONTROL); in rtc_proc_show() 1219 ctrl = CMOS_READ(RTC_CONTROL); in rtc_get_rtc_time() [all …]
|
/Linux-v5.4/arch/mips/dec/ |
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()
|
/Linux-v5.4/arch/powerpc/platforms/chrp/ |
D | time.c | 95 save_control = chrp_cmos_clock_read(RTC_CONTROL); /* tell the clock it's being set */ in chrp_set_rtc_time() 97 chrp_cmos_clock_write((save_control|RTC_SET), RTC_CONTROL); in chrp_set_rtc_time() 125 chrp_cmos_clock_write(save_control, RTC_CONTROL); in chrp_set_rtc_time() 145 if (!(chrp_cmos_clock_read(RTC_CONTROL) & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in chrp_get_rtc_time()
|
/Linux-v5.4/arch/powerpc/platforms/maple/ |
D | time.c | 63 if (!(maple_clock_read(RTC_CONTROL) & RTC_DM_BINARY) in maple_get_rtc_time() 85 save_control = maple_clock_read(RTC_CONTROL); /* tell the clock it's being set */ in maple_set_rtc_time() 87 maple_clock_write((save_control|RTC_SET), RTC_CONTROL); in maple_set_rtc_time() 122 maple_clock_write(save_control, RTC_CONTROL); in maple_set_rtc_time()
|
/Linux-v5.4/arch/mips/mti-malta/ |
D | malta-time.c | 103 ctrl = CMOS_READ(RTC_CONTROL); in estimate_frequencies() 194 ctrl = CMOS_READ(RTC_CONTROL); in init_rtc() 196 CMOS_WRITE(ctrl & ~RTC_SET, RTC_CONTROL); in init_rtc()
|
/Linux-v5.4/arch/m68k/atari/ |
D | time.c | 205 ctrl = RTC_READ(RTC_CONTROL); /* control registers are in atari_tt_hwclk() 261 RTC_WRITE( RTC_CONTROL, ctrl | RTC_SET ); in atari_tt_hwclk() 280 RTC_WRITE( RTC_CONTROL, ctrl & ~RTC_SET ); in atari_tt_hwclk()
|
/Linux-v5.4/include/linux/ |
D | mc146818rtc.h | 93 #define RTC_CONTROL RTC_REG_B macro
|
/Linux-v5.4/arch/powerpc/platforms/ |
D | fsl_uli1575.c | 160 CMOS_WRITE(RTC_SET, RTC_CONTROL); in quirk_final_uli1575() 161 CMOS_WRITE(RTC_24H, RTC_CONTROL); in quirk_final_uli1575()
|
/Linux-v5.4/arch/alpha/kernel/ |
D | time.c | 228 x = CMOS_READ(RTC_CONTROL); in common_init_rtc() 233 CMOS_WRITE(x, RTC_CONTROL); in common_init_rtc()
|
D | rtc.c | 59 ctrl = CMOS_READ(RTC_CONTROL); in init_rtc_epoch()
|
/Linux-v5.4/arch/sh/include/asm/ |
D | smc37c93x.h | 181 #define RTC_CONTROL 11 macro
|
/Linux-v5.4/arch/x86/kernel/ |
D | rtc.c | 101 status = CMOS_READ(RTC_CONTROL); in mach_get_cmos_time()
|
/Linux-v5.4/arch/x86/kernel/apic/ |
D | io_apic.c | 2067 save_control = CMOS_READ(RTC_CONTROL); in unlock_ExtINT_logic() 2071 CMOS_WRITE(save_control | RTC_PIE, RTC_CONTROL); in unlock_ExtINT_logic() 2080 CMOS_WRITE(save_control, RTC_CONTROL); in unlock_ExtINT_logic()
|