Home
last modified time | relevance | path

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

/linux-2.4.37.9/drivers/char/
Dds1742.c53 #define RTC_CONTROL (rtc_base + 0x7f8) macro
111 CMOS_WRITE(RTC_READ, RTC_CONTROL); in rtc_ds1742_get_time()
119 CMOS_WRITE(0, RTC_CONTROL); in rtc_ds1742_get_time()
133 CMOS_WRITE(RTC_READ, RTC_CONTROL); in rtc_ds1742_set_time()
142 CMOS_WRITE(RTC_WRITE, RTC_CONTROL); in rtc_ds1742_set_time()
187 CMOS_WRITE(cmos_century, RTC_CONTROL); in rtc_ds1742_set_time()
205 CMOS_WRITE(RTC_READ, RTC_CONTROL); in rtc_ds1742_init()
207 CMOS_WRITE(RTC_WRITE, RTC_CONTROL); in rtc_ds1742_init()
209 CMOS_WRITE(0, RTC_CONTROL); in rtc_ds1742_init()
Drtc.c402 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) || in rtc_ioctl()
493 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) in rtc_ioctl()
503 save_control = CMOS_READ(RTC_CONTROL); in rtc_ioctl()
504 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in rtc_ioctl()
518 CMOS_WRITE(save_control, RTC_CONTROL); in rtc_ioctl()
635 tmp = CMOS_READ(RTC_CONTROL); in rtc_release()
639 CMOS_WRITE(tmp, RTC_CONTROL); in rtc_release()
815 ctrl = CMOS_READ(RTC_CONTROL); in rtc_init()
944 ctrl = CMOS_READ(RTC_CONTROL); in rtc_proc_output()
1077 ctrl = CMOS_READ(RTC_CONTROL); in get_rtc_time()
[all …]
/linux-2.4.37.9/arch/mips/mips-boards/generic/
Dtime.c118 save_control = CMOS_READ(RTC_CONTROL); in mips_rtc_get_time()
121 CMOS_WRITE(save_control | RTC_SET, RTC_CONTROL); in mips_rtc_get_time()
140 CMOS_WRITE(save_control, RTC_CONTROL); in mips_rtc_get_time()
156 CMOS_WRITE(CMOS_READ(RTC_CONTROL) | RTC_DM_BINARY, RTC_CONTROL); in mips_time_init()
/linux-2.4.37.9/include/asm-arm/arch-riscstation/
Dtime.h78 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in get_isa_cmos_time()
106 save_control = CMOS_READ(RTC_CONTROL); /* tell the clock it's being set */ in set_isa_cmos_time()
107 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in set_isa_cmos_time()
145 CMOS_WRITE(save_control, RTC_CONTROL); in set_isa_cmos_time()
/linux-2.4.37.9/arch/mips/dec/
Dtime.c54 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in dec_rtc_get_time()
87 save_control = CMOS_READ(RTC_CONTROL); in dec_rtc_set_mmss()
88 CMOS_WRITE((save_control | RTC_SET), RTC_CONTROL); in dec_rtc_set_mmss()
130 CMOS_WRITE(save_control, RTC_CONTROL); in dec_rtc_set_mmss()
/linux-2.4.37.9/arch/ppc/platforms/
Dchrp_time.c82 save_control = chrp_cmos_clock_read(RTC_CONTROL); /* tell the clock it's being set */ in chrp_set_rtc_time()
84 chrp_cmos_clock_write((save_control|RTC_SET), RTC_CONTROL); in chrp_set_rtc_time()
113 chrp_cmos_clock_write(save_control, RTC_CONTROL); in chrp_set_rtc_time()
153 if (!(chrp_cmos_clock_read(RTC_CONTROL) & RTC_DM_BINARY) || RTC_ALWAYS_BCD) in chrp_get_rtc_time()
Dprep_time.c64 save_control = CMOS_READ(RTC_CONTROL); in mc146818_set_rtc_time()
66 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in mc146818_set_rtc_time()
96 CMOS_WRITE(save_control, RTC_CONTROL); in mc146818_set_rtc_time()
135 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) in mc146818_get_rtc_time()
/linux-2.4.37.9/arch/alpha/kernel/
Dtime.c154 x = CMOS_READ(RTC_CONTROL); in common_init_rtc()
159 CMOS_WRITE(x, RTC_CONTROL); in common_init_rtc()
342 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in time_init()
506 save_control = CMOS_READ(RTC_CONTROL); in set_rtc_mmss()
507 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in set_rtc_mmss()
552 CMOS_WRITE(save_control, RTC_CONTROL); in set_rtc_mmss()
/linux-2.4.37.9/include/asm-arm/arch-ebsa285/
Dtime.h113 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in get_isa_cmos_time()
134 save_control = CMOS_READ(RTC_CONTROL); /* tell the clock it's being set */ in set_isa_cmos_time()
135 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in set_isa_cmos_time()
173 CMOS_WRITE(save_control, RTC_CONTROL); in set_isa_cmos_time()
/linux-2.4.37.9/arch/m68k/atari/
Dtime.c144 ctrl = RTC_READ(RTC_CONTROL); in atari_tt_gettod()
234 ctrl = RTC_READ(RTC_CONTROL); /* control registers are in atari_tt_hwclk()
288 RTC_WRITE( RTC_CONTROL, ctrl | RTC_SET ); in atari_tt_hwclk()
307 RTC_WRITE( RTC_CONTROL, ctrl & ~RTC_SET ); in atari_tt_hwclk()
377 save_control = RTC_READ (RTC_CONTROL); /* tell the clock it's being set */ in atari_tt_set_clock_mmss()
378 RTC_WRITE (RTC_CONTROL, save_control | RTC_SET); in atari_tt_set_clock_mmss()
406 RTC_WRITE (RTC_CONTROL, save_control); in atari_tt_set_clock_mmss()
/linux-2.4.37.9/arch/i386/kernel/
Dtime.c511 save_control = CMOS_READ(RTC_CONTROL); /* tell the clock it's being set */ in set_rtc_mmss()
512 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in set_rtc_mmss()
554 CMOS_WRITE(save_control, RTC_CONTROL); in set_rtc_mmss()
743 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) || RTC_ALWAYS_BCD) in get_cmos_time()
Dio_apic.c1554 save_control = CMOS_READ(RTC_CONTROL); in unlock_ExtINT_logic()
1558 CMOS_WRITE(save_control | RTC_PIE, RTC_CONTROL); in unlock_ExtINT_logic()
1567 CMOS_WRITE(save_control, RTC_CONTROL); in unlock_ExtINT_logic()
/linux-2.4.37.9/arch/ppc/kernel/
Dtodc_time.c67 #ifdef RTC_CONTROL
68 #undef RTC_CONTROL
69 #define RTC_CONTROL control_a /* Register B */ macro
/linux-2.4.37.9/include/asm-mips/jmr3927/
Dds1742rtc.h25 #define RTC_CONTROL (RTC_OFFSET + 0) macro
/linux-2.4.37.9/include/linux/
Dmc146818rtc.h67 #define RTC_CONTROL RTC_REG_B macro
/linux-2.4.37.9/arch/x86_64/kernel/
Dtime.c279 control = CMOS_READ(RTC_CONTROL); in set_rtc_mmss()
280 CMOS_WRITE(control | RTC_SET, RTC_CONTROL); in set_rtc_mmss()
318 CMOS_WRITE(control, RTC_CONTROL); in set_rtc_mmss()
Dio_apic.c1552 save_control = CMOS_READ(RTC_CONTROL); in unlock_ExtINT_logic()
1556 CMOS_WRITE(save_control | RTC_PIE, RTC_CONTROL); in unlock_ExtINT_logic()
1565 CMOS_WRITE(save_control, RTC_CONTROL); in unlock_ExtINT_logic()
/linux-2.4.37.9/include/asm-cris/
Drtc.h15 # define RTC_CONTROL 7 macro
/linux-2.4.37.9/include/asm-sh/
Dsmc37c93x.h180 #define RTC_CONTROL 11 macro
/linux-2.4.37.9/arch/sparc64/kernel/
Dtime.c674 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in set_system_time()
1124 save_control = CMOS_READ(RTC_CONTROL); /* tell the clock it's being set */ in set_rtc_mmss()
1125 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in set_rtc_mmss()
1153 CMOS_WRITE(save_control, RTC_CONTROL); in set_rtc_mmss()
/linux-2.4.37.9/arch/mips/ite-boards/generic/
Dtime.c218 saved_control = CMOS_READ(RTC_CONTROL); in it8172_time_init()
/linux-2.4.37.9/drivers/acpi/
Dsystem.c959 rtc_control = CMOS_READ(RTC_CONTROL); in acpi_system_write_alarm()
1041 CMOS_WRITE(rtc_control,RTC_CONTROL); in acpi_system_write_alarm()