/Linux-v4.19/arch/mips/include/asm/ |
D | mc146818-time.h | 39 save_control = CMOS_READ(RTC_CONTROL); /* tell the clock it's being set */ in mc146818_set_rtc_mmss() 42 save_freq_select = CMOS_READ(RTC_FREQ_SELECT); /* stop and reset prescaler */ in mc146818_set_rtc_mmss() 45 cmos_minutes = CMOS_READ(RTC_MINUTES); in mc146818_set_rtc_mmss() 97 sec = CMOS_READ(RTC_SECONDS); in mc146818_get_cmos_time() 98 min = CMOS_READ(RTC_MINUTES); in mc146818_get_cmos_time() 99 hour = CMOS_READ(RTC_HOURS); in mc146818_get_cmos_time() 100 day = CMOS_READ(RTC_DAY_OF_MONTH); in mc146818_get_cmos_time() 101 mon = CMOS_READ(RTC_MONTH); in mc146818_get_cmos_time() 102 year = CMOS_READ(RTC_YEAR); in mc146818_get_cmos_time() 103 } while (sec != CMOS_READ(RTC_SECONDS)); in mc146818_get_cmos_time() [all …]
|
/Linux-v4.19/arch/mips/dec/ |
D | time.c | 30 sec = CMOS_READ(RTC_SECONDS); in read_persistent_clock64() 31 min = CMOS_READ(RTC_MINUTES); in read_persistent_clock64() 32 hour = CMOS_READ(RTC_HOURS); in read_persistent_clock64() 33 day = CMOS_READ(RTC_DAY_OF_MONTH); in read_persistent_clock64() 34 mon = CMOS_READ(RTC_MONTH); in read_persistent_clock64() 35 year = CMOS_READ(RTC_YEAR); in read_persistent_clock64() 41 real_year = CMOS_READ(RTC_DEC_YEAR); in read_persistent_clock64() 42 } while (sec != CMOS_READ(RTC_SECONDS)); in read_persistent_clock64() 46 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in read_persistent_clock64() 78 save_control = CMOS_READ(RTC_CONTROL); in update_persistent_clock64() [all …]
|
/Linux-v4.19/drivers/rtc/ |
D | rtc-mc146818-lib.c | 19 uip = (CMOS_READ(RTC_FREQ_SELECT) & RTC_UIP); in mc146818_is_updating() 53 time->tm_sec = CMOS_READ(RTC_SECONDS); in mc146818_get_time() 54 time->tm_min = CMOS_READ(RTC_MINUTES); in mc146818_get_time() 55 time->tm_hour = CMOS_READ(RTC_HOURS); in mc146818_get_time() 56 time->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH); in mc146818_get_time() 57 time->tm_mon = CMOS_READ(RTC_MONTH); in mc146818_get_time() 58 time->tm_year = CMOS_READ(RTC_YEAR); in mc146818_get_time() 60 real_year = CMOS_READ(RTC_DEC_YEAR); in mc146818_get_time() 65 century = CMOS_READ(acpi_gbl_FADT.century); in mc146818_get_time() 67 ctrl = CMOS_READ(RTC_CONTROL); in mc146818_get_time() [all …]
|
D | rtc-cmos.c | 256 t->time.tm_sec = CMOS_READ(RTC_SECONDS_ALARM); in cmos_read_alarm() 257 t->time.tm_min = CMOS_READ(RTC_MINUTES_ALARM); in cmos_read_alarm() 258 t->time.tm_hour = CMOS_READ(RTC_HOURS_ALARM); in cmos_read_alarm() 262 t->time.tm_mday = CMOS_READ(cmos->day_alrm) & 0x3f; in cmos_read_alarm() 267 t->time.tm_mon = CMOS_READ(cmos->mon_alrm); in cmos_read_alarm() 273 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_read_alarm() 318 rtc_intr = CMOS_READ(RTC_INTR_FLAGS); in cmos_checkintr() 335 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_irq_enable() 355 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_irq_disable() 455 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_set_alarm() [all …]
|
/Linux-v4.19/arch/mips/mti-malta/ |
D | malta-time.c | 95 while (CMOS_READ(RTC_REG_A) & RTC_UIP); in estimate_frequencies() 96 while (!(CMOS_READ(RTC_REG_A) & RTC_UIP)); in estimate_frequencies() 102 while (CMOS_READ(RTC_REG_A) & RTC_UIP); in estimate_frequencies() 103 secs1 = CMOS_READ(RTC_SECONDS); in estimate_frequencies() 106 while (!(CMOS_READ(RTC_REG_A) & RTC_UIP)); in estimate_frequencies() 112 while (CMOS_READ(RTC_REG_A) & RTC_UIP); in estimate_frequencies() 113 secs2 = CMOS_READ(RTC_SECONDS); in estimate_frequencies() 115 ctrl = CMOS_READ(RTC_CONTROL); in estimate_frequencies() 201 freq = CMOS_READ(RTC_FREQ_SELECT); in init_rtc() 206 ctrl = CMOS_READ(RTC_CONTROL); in init_rtc()
|
/Linux-v4.19/drivers/char/ |
D | rtc.c | 215 uip = (CMOS_READ(RTC_FREQ_SELECT) & RTC_UIP); in rtc_is_updating() 251 rtc_irq_data |= (CMOS_READ(RTC_INTR_FLAGS) & 0xF0); in rtc_interrupt() 503 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) || in rtc_do_ioctl() 600 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) in rtc_do_ioctl() 610 save_control = CMOS_READ(RTC_CONTROL); in rtc_do_ioctl() 612 save_freq_select = CMOS_READ(RTC_FREQ_SELECT); in rtc_do_ioctl() 673 val = CMOS_READ(RTC_FREQ_SELECT) & 0xf0; in rtc_do_ioctl() 755 tmp = CMOS_READ(RTC_CONTROL); in rtc_release() 760 CMOS_READ(RTC_INTR_FLAGS); in rtc_release() 977 year = CMOS_READ(RTC_YEAR); in rtc_init() [all …]
|
/Linux-v4.19/arch/x86/kernel/ |
D | rtc.c | 85 while ((CMOS_READ(RTC_FREQ_SELECT) & RTC_UIP)) in mach_get_cmos_time() 88 sec = CMOS_READ(RTC_SECONDS); in mach_get_cmos_time() 89 min = CMOS_READ(RTC_MINUTES); in mach_get_cmos_time() 90 hour = CMOS_READ(RTC_HOURS); in mach_get_cmos_time() 91 day = CMOS_READ(RTC_DAY_OF_MONTH); in mach_get_cmos_time() 92 mon = CMOS_READ(RTC_MONTH); in mach_get_cmos_time() 93 year = CMOS_READ(RTC_YEAR); in mach_get_cmos_time() 98 century = CMOS_READ(acpi_gbl_FADT.century); in mach_get_cmos_time() 101 status = CMOS_READ(RTC_CONTROL); in mach_get_cmos_time()
|
/Linux-v4.19/arch/arm/mach-footbridge/ |
D | isa-rtc.c | 35 reg_d = CMOS_READ(RTC_REG_D); in isa_rtc_init() 46 reg_b = CMOS_READ(RTC_REG_B) & 0x7f; in isa_rtc_init() 50 if ((CMOS_READ(RTC_REG_A) & 0x7f) == RTC_REF_CLCK_32KHZ && in isa_rtc_init() 51 CMOS_READ(RTC_REG_B) == reg_b) { in isa_rtc_init()
|
/Linux-v4.19/arch/mips/kernel/ |
D | cevt-ds1287.c | 30 return (CMOS_READ(RTC_REG_C) & RTC_PF) != 0; in ds1287_timer_state() 68 val = CMOS_READ(RTC_REG_B); in ds1287_shutdown() 82 val = CMOS_READ(RTC_REG_B); in ds1287_set_periodic() 109 CMOS_READ(RTC_REG_C); in ds1287_interrupt()
|
/Linux-v4.19/arch/alpha/kernel/ |
D | time.c | 210 x = CMOS_READ(RTC_FREQ_SELECT) & 0x3f; in common_init_rtc() 228 x = CMOS_READ(RTC_CONTROL); in common_init_rtc() 235 (void) CMOS_READ(RTC_INTR_FLAGS); in common_init_rtc() 383 do { } while (!(CMOS_READ(RTC_FREQ_SELECT) & RTC_UIP)); in rpcc_after_update_in_progress() 384 do { } while (CMOS_READ(RTC_FREQ_SELECT) & RTC_UIP); in rpcc_after_update_in_progress()
|
D | rtc.c | 59 ctrl = CMOS_READ(RTC_CONTROL); in init_rtc_epoch() 60 year = CMOS_READ(RTC_YEAR); in init_rtc_epoch()
|
/Linux-v4.19/arch/alpha/include/asm/ |
D | mc146818rtc.h | 19 #define CMOS_READ(addr) ({ \ macro
|
/Linux-v4.19/arch/m68k/include/asm/ |
D | mc146818rtc.h | 17 #define CMOS_READ(addr) ({ \ macro
|
/Linux-v4.19/arch/mips/include/asm/mach-jazz/ |
D | mc146818rtc.h | 22 static inline unsigned char CMOS_READ(unsigned long addr) in CMOS_READ() function
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | mc146818rtc.h | 26 #define CMOS_READ(addr) ({ \ macro
|
/Linux-v4.19/arch/sparc/include/asm/ |
D | mc146818rtc_32.h | 19 #define CMOS_READ(addr) ({ \ macro
|
D | mc146818rtc_64.h | 20 #define CMOS_READ(addr) ({ \ macro
|
/Linux-v4.19/arch/arm/include/asm/ |
D | mc146818rtc.h | 22 #define CMOS_READ(addr) ({ \ macro
|
/Linux-v4.19/arch/mips/include/asm/mach-dec/ |
D | mc146818rtc.h | 31 static inline unsigned char CMOS_READ(unsigned long addr) in CMOS_READ() function
|
/Linux-v4.19/arch/mips/include/asm/mach-malta/ |
D | mc146818rtc.h | 32 static inline unsigned char CMOS_READ(unsigned long addr) in CMOS_READ() function
|
/Linux-v4.19/arch/mips/include/asm/mach-loongson64/ |
D | mc146818rtc.h | 18 static inline unsigned char CMOS_READ(unsigned long addr) in CMOS_READ() function
|
/Linux-v4.19/arch/mips/include/asm/mach-generic/ |
D | mc146818rtc.h | 18 static inline unsigned char CMOS_READ(unsigned long addr) in CMOS_READ() function
|
/Linux-v4.19/drivers/char/mwave/ |
D | smapi.c | 547 usSmapiID = CMOS_READ(0x7C); in smapi_init() 548 usSmapiID |= (CMOS_READ(0x7D) << 8); in smapi_init() 554 g_usSmapiPort = CMOS_READ(0x7E); in smapi_init() 555 g_usSmapiPort |= (CMOS_READ(0x7F) << 8); in smapi_init()
|
/Linux-v4.19/arch/x86/include/asm/ |
D | floppy.h | 261 val = (CMOS_READ(0x10) >> 4) & 15; \ 271 val = CMOS_READ(0x10) & 15; \
|
D | mc146818rtc.h | 93 #define CMOS_READ(addr) rtc_cmos_read(addr) macro
|