Searched refs:save_control (Results 1 – 9 of 9) sorted by relevance
/linux/arch/mips/include/asm/ |
A D | mc146818-time.h | 34 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 D | time.c | 73 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 D | rtc-twl.c | 263 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 D | rtc-ds1286.c | 153 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 D | rtc-mc146818-lib.c | 128 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 D | time.c | 90 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 D | time.c | 79 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 D | diskonchip.c | 1306 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 D | io_apic.c | 2079 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