Home
last modified time | relevance | path

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

/linux/arch/mips/include/asm/
A 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/arch/mips/dec/
A Dtime.c73 unsigned char save_control, save_freq_select; in update_persistent_clock64() local
78 save_control = CMOS_READ(RTC_CONTROL); in update_persistent_clock64()
79 CMOS_WRITE((save_control | RTC_SET), RTC_CONTROL); in update_persistent_clock64()
86 if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) in update_persistent_clock64()
101 if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in update_persistent_clock64()
120 CMOS_WRITE(save_control, RTC_CONTROL); in update_persistent_clock64()
/linux/drivers/rtc/
A Drtc-twl.c263 u8 save_control; in twl_rtc_read_time() local
266 ret = twl_rtc_read_u8(twl_rtc, &save_control, REG_RTC_CTRL_REG); in twl_rtc_read_time()
273 if (save_control & BIT_RTC_CTRL_REG_GET_TIME_M) { in twl_rtc_read_time()
274 save_control &= ~BIT_RTC_CTRL_REG_GET_TIME_M; in twl_rtc_read_time()
275 ret = twl_rtc_write_u8(twl_rtc, save_control, in twl_rtc_read_time()
286 rtc_control = save_control | BIT_RTC_CTRL_REG_GET_TIME_M; in twl_rtc_read_time()
329 unsigned char save_control; in twl_rtc_set_time() local
341 ret = twl_rtc_read_u8(twl_rtc, &save_control, REG_RTC_CTRL_REG); in twl_rtc_set_time()
345 save_control &= ~BIT_RTC_CTRL_REG_STOP_RTC_M; in twl_rtc_set_time()
346 ret = twl_rtc_write_u8(twl_rtc, save_control, REG_RTC_CTRL_REG); in twl_rtc_set_time()
[all …]
A Drtc-ds1286.c153 unsigned char save_control; in ds1286_read_time() local
178 save_control = ds1286_rtc_read(priv, RTC_CMD); in ds1286_read_time()
179 ds1286_rtc_write(priv, (save_control|RTC_TE), RTC_CMD); in ds1286_read_time()
188 ds1286_rtc_write(priv, save_control, RTC_CMD); in ds1286_read_time()
217 unsigned char save_control; in ds1286_set_time() local
246 save_control = ds1286_rtc_read(priv, RTC_CMD); in ds1286_set_time()
247 ds1286_rtc_write(priv, (save_control|RTC_TE), RTC_CMD); in ds1286_set_time()
257 ds1286_rtc_write(priv, save_control, RTC_CMD); in ds1286_set_time()
A Drtc-mc146818-lib.c128 unsigned char save_control, save_freq_select; in mc146818_set_time() local
191 save_control = CMOS_READ(RTC_CONTROL); in mc146818_set_time()
192 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in mc146818_set_time()
211 CMOS_WRITE(save_control, RTC_CONTROL); in mc146818_set_time()
/linux/arch/powerpc/platforms/chrp/
A Dtime.c90 unsigned char save_control, save_freq_select; in chrp_set_rtc_time() local
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()
103 if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in chrp_set_rtc_time()
125 chrp_cmos_clock_write(save_control, RTC_CONTROL); in chrp_set_rtc_time()
/linux/arch/powerpc/platforms/maple/
A Dtime.c79 unsigned char save_control, save_freq_select; in maple_set_rtc_time() local
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()
99 if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in maple_set_rtc_time()
121 maple_clock_write(save_control, RTC_CONTROL); in maple_set_rtc_time()
/linux/drivers/mtd/nand/raw/
A Ddiskonchip.c1306 unsigned char save_control; in doc_probe() local
1329 save_control = ReadDOC(virtadr, DOCControl); in doc_probe()
1509 WriteDOC(save_control, virtadr, DOCControl); in doc_probe()
/linux/arch/x86/kernel/apic/
A Dio_apic.c2079 unsigned char save_control, save_freq_select; in unlock_ExtINT_logic() local
2110 save_control = CMOS_READ(RTC_CONTROL); in unlock_ExtINT_logic()
2114 CMOS_WRITE(save_control | RTC_PIE, RTC_CONTROL); in unlock_ExtINT_logic()
2123 CMOS_WRITE(save_control, RTC_CONTROL); in unlock_ExtINT_logic()

Completed in 24 milliseconds