Home
last modified time | relevance | path

Searched refs:RTC_CONTROL (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.4/drivers/rtc/
Drtc-ds1742.c26 #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()
Drtc-mrst.c153 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()
Drtc-mc146818-lib.c68 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()
Drtc-cmos.c283 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 …]
Drtc-ds1553.c30 #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/
Dmc146818-time.h39 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/
Drtc.c499 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/
Dtime.c46 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/
Dtime.c95 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/
Dtime.c63 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/
Dmalta-time.c103 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/
Dtime.c205 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/
Dmc146818rtc.h93 #define RTC_CONTROL RTC_REG_B macro
/Linux-v5.4/arch/powerpc/platforms/
Dfsl_uli1575.c160 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/
Dtime.c228 x = CMOS_READ(RTC_CONTROL); in common_init_rtc()
233 CMOS_WRITE(x, RTC_CONTROL); in common_init_rtc()
Drtc.c59 ctrl = CMOS_READ(RTC_CONTROL); in init_rtc_epoch()
/Linux-v5.4/arch/sh/include/asm/
Dsmc37c93x.h181 #define RTC_CONTROL 11 macro
/Linux-v5.4/arch/x86/kernel/
Drtc.c101 status = CMOS_READ(RTC_CONTROL); in mach_get_cmos_time()
/Linux-v5.4/arch/x86/kernel/apic/
Dio_apic.c2067 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()