Home
last modified time | relevance | path

Searched refs:CMOS_READ (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.12.1/arch/mips/include/asm/
Dmc146818-time.h39 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-6.12.1/arch/mips/dec/
Dtime.c30 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-6.12.1/drivers/rtc/
Drtc-mc146818-lib.c41 seconds = CMOS_READ(RTC_SECONDS); in mc146818_avoid_UIP()
43 if (CMOS_READ(RTC_FREQ_SELECT) & RTC_UIP) { in mc146818_avoid_UIP()
50 if (seconds != CMOS_READ(RTC_SECONDS)) { in mc146818_avoid_UIP()
62 if (CMOS_READ(RTC_FREQ_SELECT) & RTC_UIP) { in mc146818_avoid_UIP()
74 if (seconds != CMOS_READ(RTC_SECONDS)) { in mc146818_avoid_UIP()
122 p->time->tm_min = CMOS_READ(RTC_MINUTES); in mc146818_get_time_callback()
123 p->time->tm_hour = CMOS_READ(RTC_HOURS); in mc146818_get_time_callback()
124 p->time->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH); in mc146818_get_time_callback()
125 p->time->tm_mon = CMOS_READ(RTC_MONTH); in mc146818_get_time_callback()
126 p->time->tm_year = CMOS_READ(RTC_YEAR); in mc146818_get_time_callback()
[all …]
Drtc-cmos.c265 time->tm_sec = CMOS_READ(RTC_SECONDS_ALARM); in cmos_read_alarm_callback()
266 time->tm_min = CMOS_READ(RTC_MINUTES_ALARM); in cmos_read_alarm_callback()
267 time->tm_hour = CMOS_READ(RTC_HOURS_ALARM); in cmos_read_alarm_callback()
271 time->tm_mday = CMOS_READ(p->cmos->day_alrm) & 0x3f; in cmos_read_alarm_callback()
276 time->tm_mon = CMOS_READ(p->cmos->mon_alrm); in cmos_read_alarm_callback()
282 p->rtc_control = CMOS_READ(RTC_CONTROL); in cmos_read_alarm_callback()
355 rtc_intr = CMOS_READ(RTC_INTR_FLAGS); in cmos_checkintr()
372 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_irq_enable()
392 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_irq_disable()
541 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_set_alarm()
[all …]
/linux-6.12.1/arch/mips/mti-malta/
Dmalta-time.c78 while (CMOS_READ(RTC_REG_A) & RTC_UIP); in estimate_frequencies()
79 while (!(CMOS_READ(RTC_REG_A) & RTC_UIP)); in estimate_frequencies()
85 while (CMOS_READ(RTC_REG_A) & RTC_UIP); in estimate_frequencies()
86 secs1 = CMOS_READ(RTC_SECONDS); in estimate_frequencies()
89 while (!(CMOS_READ(RTC_REG_A) & RTC_UIP)); in estimate_frequencies()
95 while (CMOS_READ(RTC_REG_A) & RTC_UIP); in estimate_frequencies()
96 secs2 = CMOS_READ(RTC_SECONDS); in estimate_frequencies()
98 ctrl = CMOS_READ(RTC_CONTROL); in estimate_frequencies()
184 freq = CMOS_READ(RTC_FREQ_SELECT); in init_rtc()
189 ctrl = CMOS_READ(RTC_CONTROL); in init_rtc()
/linux-6.12.1/arch/arm/mach-footbridge/
Disa-rtc.c34 reg_d = CMOS_READ(RTC_REG_D); in isa_rtc_init()
45 reg_b = CMOS_READ(RTC_REG_B) & 0x7f; in isa_rtc_init()
49 if ((CMOS_READ(RTC_REG_A) & 0x7f) == RTC_REF_CLCK_32KHZ && in isa_rtc_init()
50 CMOS_READ(RTC_REG_B) == reg_b) { in isa_rtc_init()
/linux-6.12.1/arch/mips/kernel/
Dcevt-ds1287.c17 return (CMOS_READ(RTC_REG_C) & RTC_PF) != 0; in ds1287_timer_state()
55 val = CMOS_READ(RTC_REG_B); in ds1287_shutdown()
69 val = CMOS_READ(RTC_REG_B); in ds1287_set_periodic()
96 CMOS_READ(RTC_REG_C); in ds1287_interrupt()
/linux-6.12.1/arch/alpha/kernel/
Dtime.c210 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()
Drtc.c59 ctrl = CMOS_READ(RTC_CONTROL); in init_rtc_epoch()
60 year = CMOS_READ(RTC_YEAR); in init_rtc_epoch()
/linux-6.12.1/drivers/char/mwave/
Dsmapi.c547 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-6.12.1/arch/alpha/include/asm/
Dmc146818rtc.h19 #define CMOS_READ(addr) ({ \ macro
/linux-6.12.1/arch/m68k/include/asm/
Dmc146818rtc.h17 #define CMOS_READ(addr) ({ \ macro
/linux-6.12.1/arch/powerpc/include/asm/
Dmc146818rtc.h22 #define CMOS_READ(addr) ({ \ macro
/linux-6.12.1/arch/sparc/include/asm/
Dmc146818rtc_32.h19 #define CMOS_READ(addr) ({ \ macro
Dmc146818rtc_64.h20 #define CMOS_READ(addr) ({ \ macro
/linux-6.12.1/arch/mips/include/asm/mach-jazz/
Dmc146818rtc.h22 static inline unsigned char CMOS_READ(unsigned long addr) in CMOS_READ() function
/linux-6.12.1/arch/arm/include/asm/
Dmc146818rtc.h22 #define CMOS_READ(addr) ({ \ macro
/linux-6.12.1/arch/mips/include/asm/mach-dec/
Dmc146818rtc.h27 static inline unsigned char CMOS_READ(unsigned long addr) in CMOS_READ() function
/linux-6.12.1/arch/mips/include/asm/mach-malta/
Dmc146818rtc.h20 static inline unsigned char CMOS_READ(unsigned long addr) in CMOS_READ() function
/linux-6.12.1/arch/mips/include/asm/mach-generic/
Dmc146818rtc.h18 static inline unsigned char CMOS_READ(unsigned long addr) in CMOS_READ() function
/linux-6.12.1/arch/x86/include/asm/
Dfloppy.h261 val = (CMOS_READ(0x10) >> 4) & 15; \
271 val = CMOS_READ(0x10) & 15; \
Dmc146818rtc.h93 #define CMOS_READ(addr) rtc_cmos_read(addr) macro
/linux-6.12.1/arch/x86/kernel/
Dbootflag.c63 v = CMOS_READ(sbf_port); in sbf_read()
/linux-6.12.1/drivers/acpi/x86/
Dcmos_rtc.c45 *value = CMOS_READ(address); in acpi_cmos_rtc_space_handler()
/linux-6.12.1/arch/m68k/atari/
Dnvram.c39 return CMOS_READ(NVRAM_FIRST_BYTE + i); in __nvram_read_byte()

12