Home
last modified time | relevance | path

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

/Linux-v6.6/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-v6.6/arch/mips/dec/
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-v6.6/drivers/rtc/
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()
308 ret = twl_rtc_write_u8(twl_rtc, save_control, REG_RTC_CTRL_REG); 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()
[all …]
Drtc-mc146818-lib.c195 unsigned char save_control, save_freq_select; in mc146818_set_time() local
247 save_control = CMOS_READ(RTC_CONTROL); in mc146818_set_time()
249 if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in mc146818_set_time()
260 save_control = CMOS_READ(RTC_CONTROL); in mc146818_set_time()
261 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in mc146818_set_time()
283 CMOS_WRITE(save_control, RTC_CONTROL); in mc146818_set_time()
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()
/Linux-v6.6/arch/powerpc/platforms/chrp/
Dtime.c88 unsigned char save_control, save_freq_select; in chrp_set_rtc_time() local
93 save_control = chrp_cmos_clock_read(RTC_CONTROL); /* tell the clock it's being set */ in chrp_set_rtc_time()
95 chrp_cmos_clock_write((save_control|RTC_SET), RTC_CONTROL); in chrp_set_rtc_time()
101 if (!(save_control & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in chrp_set_rtc_time()
123 chrp_cmos_clock_write(save_control, RTC_CONTROL); in chrp_set_rtc_time()
/Linux-v6.6/arch/powerpc/platforms/maple/
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-v6.6/drivers/mtd/nand/raw/
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-v6.6/arch/x86/kernel/apic/
Dio_apic.c2077 unsigned char save_control, save_freq_select; in unlock_ExtINT_logic() local
2108 save_control = CMOS_READ(RTC_CONTROL); in unlock_ExtINT_logic()
2112 CMOS_WRITE(save_control | RTC_PIE, RTC_CONTROL); in unlock_ExtINT_logic()
2121 CMOS_WRITE(save_control, RTC_CONTROL); in unlock_ExtINT_logic()