Home
last modified time | relevance | path

Searched refs:save_control (Results 1 – 14 of 14) sorted by relevance

/linux-2.6.39/arch/mn10300/kernel/
Drtc.c53 unsigned char save_control, save_freq_select; in set_rtc_mmss() local
59 save_control = CMOS_READ(RTC_CONTROL); /* tell the clock it's being in set_rtc_mmss()
61 CMOS_WRITE(save_control | RTC_SET, RTC_CONTROL); in set_rtc_mmss()
68 if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) in set_rtc_mmss()
85 if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in set_rtc_mmss()
105 CMOS_WRITE(save_control, RTC_CONTROL); in set_rtc_mmss()
/linux-2.6.39/arch/mips/include/asm/
Dmc146818-time.h34 unsigned char save_control, save_freq_select; in mc146818_set_rtc_mmss() local
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()
46 if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) in mc146818_set_rtc_mmss()
62 if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in mc146818_set_rtc_mmss()
82 CMOS_WRITE(save_control, RTC_CONTROL); in mc146818_set_rtc_mmss()
/linux-2.6.39/arch/mips/dec/
Dtime.c71 unsigned char save_control, save_freq_select; in rtc_mips_set_mmss() local
76 save_control = CMOS_READ(RTC_CONTROL); in rtc_mips_set_mmss()
77 CMOS_WRITE((save_control | RTC_SET), RTC_CONTROL); in rtc_mips_set_mmss()
84 if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) in rtc_mips_set_mmss()
100 if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in rtc_mips_set_mmss()
119 CMOS_WRITE(save_control, RTC_CONTROL); in rtc_mips_set_mmss()
/linux-2.6.39/arch/x86/kernel/
Drtc.c44 unsigned char save_control, save_freq_select; in mach_set_rtc_mmss() local
48 save_control = CMOS_READ(RTC_CONTROL); in mach_set_rtc_mmss()
49 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in mach_set_rtc_mmss()
56 if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) in mach_set_rtc_mmss()
73 if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in mach_set_rtc_mmss()
93 CMOS_WRITE(save_control, RTC_CONTROL); in mach_set_rtc_mmss()
/linux-2.6.39/arch/powerpc/platforms/chrp/
Dtime.c87 unsigned char save_control, save_freq_select; in chrp_set_rtc_time() local
92 save_control = chrp_cmos_clock_read(RTC_CONTROL); /* tell the clock it's being set */ in chrp_set_rtc_time()
94 chrp_cmos_clock_write((save_control|RTC_SET), RTC_CONTROL); in chrp_set_rtc_time()
100 if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in chrp_set_rtc_time()
122 chrp_cmos_clock_write(save_control, RTC_CONTROL); in chrp_set_rtc_time()
/linux-2.6.39/drivers/rtc/
Drtc-twl.c229 u8 save_control; in twl_rtc_read_time() local
231 ret = twl_rtc_read_u8(&save_control, REG_RTC_CTRL_REG); in twl_rtc_read_time()
235 save_control |= BIT_RTC_CTRL_REG_GET_TIME_M; in twl_rtc_read_time()
237 ret = twl_rtc_write_u8(save_control, REG_RTC_CTRL_REG); in twl_rtc_read_time()
261 unsigned char save_control; in twl_rtc_set_time() local
273 ret = twl_rtc_read_u8(&save_control, REG_RTC_CTRL_REG); in twl_rtc_set_time()
277 save_control &= ~BIT_RTC_CTRL_REG_STOP_RTC_M; in twl_rtc_set_time()
278 twl_rtc_write_u8(save_control, REG_RTC_CTRL_REG); in twl_rtc_set_time()
291 save_control |= BIT_RTC_CTRL_REG_STOP_RTC_M; in twl_rtc_set_time()
292 ret = twl_rtc_write_u8(save_control, REG_RTC_CTRL_REG); in twl_rtc_set_time()
Drtc-ds1286.c161 unsigned char save_control; in ds1286_read_time() local
186 save_control = ds1286_rtc_read(priv, RTC_CMD); in ds1286_read_time()
187 ds1286_rtc_write(priv, (save_control|RTC_TE), RTC_CMD); in ds1286_read_time()
196 ds1286_rtc_write(priv, save_control, RTC_CMD); in ds1286_read_time()
225 unsigned char save_control; in ds1286_set_time() local
254 save_control = ds1286_rtc_read(priv, RTC_CMD); in ds1286_set_time()
255 ds1286_rtc_write(priv, (save_control|RTC_TE), RTC_CMD); in ds1286_set_time()
265 ds1286_rtc_write(priv, save_control, RTC_CMD); in ds1286_set_time()
/linux-2.6.39/arch/powerpc/platforms/maple/
Dtime.c86 unsigned char save_control, save_freq_select; in maple_set_rtc_time() local
91 save_control = maple_clock_read(RTC_CONTROL); /* tell the clock it's being set */ in maple_set_rtc_time()
93 maple_clock_write((save_control|RTC_SET), RTC_CONTROL); in maple_set_rtc_time()
106 if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in maple_set_rtc_time()
128 maple_clock_write(save_control, RTC_CONTROL); in maple_set_rtc_time()
/linux-2.6.39/arch/alpha/kernel/
Dtime.c467 unsigned char save_control, save_freq_select; in set_rtc_mmss() local
472 save_control = CMOS_READ(RTC_CONTROL); in set_rtc_mmss()
473 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in set_rtc_mmss()
480 if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) in set_rtc_mmss()
498 if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in set_rtc_mmss()
518 CMOS_WRITE(save_control, RTC_CONTROL); in set_rtc_mmss()
/linux-2.6.39/include/asm-generic/
Drtc.h120 unsigned char save_control, save_freq_select; in __set_rtc_time() local
174 save_control = CMOS_READ(RTC_CONTROL); in __set_rtc_time()
175 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in __set_rtc_time()
189 CMOS_WRITE(save_control, RTC_CONTROL); in __set_rtc_time()
/linux-2.6.39/arch/m68k/atari/
Dtime.c316 unsigned char save_control, save_freq_select, rtc_minutes; in atari_tt_set_clock_mmss() local
318 save_control = RTC_READ (RTC_CONTROL); /* tell the clock it's being set */ in atari_tt_set_clock_mmss()
319 RTC_WRITE (RTC_CONTROL, save_control | RTC_SET); in atari_tt_set_clock_mmss()
325 if (!(save_control & RTC_DM_BINARY)) in atari_tt_set_clock_mmss()
335 if (!(save_control & RTC_DM_BINARY)) in atari_tt_set_clock_mmss()
347 RTC_WRITE (RTC_CONTROL, save_control); in atari_tt_set_clock_mmss()
/linux-2.6.39/drivers/char/
Drtc.c550 unsigned char save_control, save_freq_select; in rtc_do_ioctl() local
623 save_control = CMOS_READ(RTC_CONTROL); in rtc_do_ioctl()
624 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in rtc_do_ioctl()
638 CMOS_WRITE(save_control, RTC_CONTROL); in rtc_do_ioctl()
/linux-2.6.39/drivers/mtd/nand/
Ddiskonchip.c1506 unsigned char save_control; in doc_probe() local
1525 save_control = ReadDOC(virtadr, DOCControl); in doc_probe()
1696 WriteDOC(save_control, virtadr, DOCControl); in doc_probe()
/linux-2.6.39/arch/x86/kernel/apic/
Dio_apic.c2653 unsigned char save_control, save_freq_select; in unlock_ExtINT_logic() local
2681 save_control = CMOS_READ(RTC_CONTROL); in unlock_ExtINT_logic()
2685 CMOS_WRITE(save_control | RTC_PIE, RTC_CONTROL); in unlock_ExtINT_logic()
2694 CMOS_WRITE(save_control, RTC_CONTROL); in unlock_ExtINT_logic()