Home
last modified time | relevance | path

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

12

/linux-3.4.99/arch/mips/dec/ !
Dtime.c29 sec = CMOS_READ(RTC_SECONDS); in read_persistent_clock()
30 min = CMOS_READ(RTC_MINUTES); in read_persistent_clock()
31 hour = CMOS_READ(RTC_HOURS); in read_persistent_clock()
32 day = CMOS_READ(RTC_DAY_OF_MONTH); in read_persistent_clock()
33 mon = CMOS_READ(RTC_MONTH); in read_persistent_clock()
34 year = CMOS_READ(RTC_YEAR); in read_persistent_clock()
40 real_year = CMOS_READ(RTC_DEC_YEAR); in read_persistent_clock()
41 } while (sec != CMOS_READ(RTC_SECONDS)); in read_persistent_clock()
45 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in read_persistent_clock()
76 save_control = CMOS_READ(RTC_CONTROL); in rtc_mips_set_mmss()
[all …]
/linux-3.4.99/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-3.4.99/include/asm-generic/ !
Drtc.h40 uip = (CMOS_READ(RTC_FREQ_SELECT) & RTC_UIP); in rtc_is_updating()
73 time->tm_sec = CMOS_READ(RTC_SECONDS); in __get_rtc_time()
74 time->tm_min = CMOS_READ(RTC_MINUTES); in __get_rtc_time()
75 time->tm_hour = CMOS_READ(RTC_HOURS); in __get_rtc_time()
76 time->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH); in __get_rtc_time()
77 time->tm_mon = CMOS_READ(RTC_MONTH); in __get_rtc_time()
78 time->tm_year = CMOS_READ(RTC_YEAR); in __get_rtc_time()
80 real_year = CMOS_READ(RTC_DEC_YEAR); in __get_rtc_time()
82 ctrl = CMOS_READ(RTC_CONTROL); in __get_rtc_time()
164 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) in __set_rtc_time()
[all …]
/linux-3.4.99/arch/x86/kernel/ !
Drtc.c53 save_control = CMOS_READ(RTC_CONTROL); in mach_set_rtc_mmss()
57 save_freq_select = CMOS_READ(RTC_FREQ_SELECT); in mach_set_rtc_mmss()
60 cmos_minutes = CMOS_READ(RTC_MINUTES); in mach_set_rtc_mmss()
119 while ((CMOS_READ(RTC_FREQ_SELECT) & RTC_UIP)) in mach_get_cmos_time()
122 sec = CMOS_READ(RTC_SECONDS); in mach_get_cmos_time()
123 min = CMOS_READ(RTC_MINUTES); in mach_get_cmos_time()
124 hour = CMOS_READ(RTC_HOURS); in mach_get_cmos_time()
125 day = CMOS_READ(RTC_DAY_OF_MONTH); in mach_get_cmos_time()
126 mon = CMOS_READ(RTC_MONTH); in mach_get_cmos_time()
127 year = CMOS_READ(RTC_YEAR); in mach_get_cmos_time()
[all …]
/linux-3.4.99/arch/alpha/kernel/ !
Dtime.c122 sec = CMOS_READ(RTC_SECONDS); in read_persistent_clock()
123 min = CMOS_READ(RTC_MINUTES); in read_persistent_clock()
124 hour = CMOS_READ(RTC_HOURS); in read_persistent_clock()
125 day = CMOS_READ(RTC_DAY_OF_MONTH); in read_persistent_clock()
126 mon = CMOS_READ(RTC_MONTH); in read_persistent_clock()
127 year = CMOS_READ(RTC_YEAR); in read_persistent_clock()
129 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) || RTC_ALWAYS_BCD) { in read_persistent_clock()
209 x = CMOS_READ(RTC_FREQ_SELECT) & 0x3f; in common_init_rtc()
218 x = CMOS_READ(RTC_CONTROL); in common_init_rtc()
225 (void) CMOS_READ(RTC_INTR_FLAGS); in common_init_rtc()
[all …]
/linux-3.4.99/drivers/char/ !
Drtc.c223 uip = (CMOS_READ(RTC_FREQ_SELECT) & RTC_UIP); in rtc_is_updating()
259 rtc_irq_data |= (CMOS_READ(RTC_INTR_FLAGS) & 0xF0); in rtc_interrupt()
516 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) || in rtc_do_ioctl()
613 if (!(CMOS_READ(RTC_CONTROL) & RTC_DM_BINARY) in rtc_do_ioctl()
623 save_control = CMOS_READ(RTC_CONTROL); in rtc_do_ioctl()
625 save_freq_select = CMOS_READ(RTC_FREQ_SELECT); in rtc_do_ioctl()
686 val = CMOS_READ(RTC_FREQ_SELECT) & 0xf0; in rtc_do_ioctl()
768 tmp = CMOS_READ(RTC_CONTROL); in rtc_release()
773 CMOS_READ(RTC_INTR_FLAGS); in rtc_release()
857 tmp = CMOS_READ(RTC_CONTROL); in rtc_unregister()
[all …]
Dds1302.c125 rtc_tm->tm_sec = CMOS_READ(RTC_SECONDS); in get_rtc_time()
126 rtc_tm->tm_min = CMOS_READ(RTC_MINUTES); in get_rtc_time()
127 rtc_tm->tm_hour = CMOS_READ(RTC_HOURS); in get_rtc_time()
128 rtc_tm->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH); in get_rtc_time()
129 rtc_tm->tm_mon = CMOS_READ(RTC_MONTH); in get_rtc_time()
130 rtc_tm->tm_year = CMOS_READ(RTC_YEAR); in get_rtc_time()
/linux-3.4.99/arch/cris/kernel/ !
Dtime.c68 cmos_minutes = CMOS_READ(RTC_MINUTES); in set_rtc_mmss()
107 sec = CMOS_READ(RTC_SECONDS); in get_cmos_time()
108 min = CMOS_READ(RTC_MINUTES); in get_cmos_time()
109 hour = CMOS_READ(RTC_HOURS); in get_cmos_time()
110 day = CMOS_READ(RTC_DAY_OF_MONTH); in get_cmos_time()
111 mon = CMOS_READ(RTC_MONTH); in get_cmos_time()
112 year = CMOS_READ(RTC_YEAR); in get_cmos_time()
/linux-3.4.99/arch/mips/mipssim/ !
Dsim_time.c51 while (CMOS_READ(RTC_REG_A) & RTC_UIP); in estimate_cpu_frequency()
52 while (!(CMOS_READ(RTC_REG_A) & RTC_UIP)); in estimate_cpu_frequency()
58 while (CMOS_READ(RTC_REG_A) & RTC_UIP); in estimate_cpu_frequency()
59 while (!(CMOS_READ(RTC_REG_A) & RTC_UIP)); in estimate_cpu_frequency()
109 CMOS_WRITE(CMOS_READ(RTC_CONTROL) | RTC_DM_BINARY, RTC_CONTROL); in plat_time_init()
/linux-3.4.99/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-3.4.99/arch/mips/mti-malta/ !
Dmalta-time.c78 while (CMOS_READ(RTC_REG_A) & RTC_UIP); in estimate_cpu_frequency()
79 while (!(CMOS_READ(RTC_REG_A) & RTC_UIP)); in estimate_cpu_frequency()
85 while (CMOS_READ(RTC_REG_A) & RTC_UIP); in estimate_cpu_frequency()
86 while (!(CMOS_READ(RTC_REG_A) & RTC_UIP)); in estimate_cpu_frequency()
150 CMOS_WRITE(CMOS_READ(RTC_CONTROL) | RTC_DM_BINARY, RTC_CONTROL); in plat_time_init()
/linux-3.4.99/arch/mips/sgi-ip32/ !
Dip32-reset.c58 reg_a = CMOS_READ(RTC_REG_A); in ip32_machine_power_off()
66 xctrl_b = CMOS_READ(DS_B1_XCTRL4B) in ip32_machine_power_off()
69 xctrl_a = CMOS_READ(DS_B1_XCTRL4A) & ~DS_XCTRL4A_IFS; in ip32_machine_power_off()
95 reg_c = CMOS_READ(RTC_INTR_FLAGS); in debounce()
96 reg_a = CMOS_READ(RTC_REG_A); in debounce()
99 xctrl_a = CMOS_READ(DS_B1_XCTRL4A); in debounce()
142 reg_c = CMOS_READ(RTC_INTR_FLAGS); in ip32_rtc_int()
/linux-3.4.99/drivers/rtc/ !
Drtc-cmos.c224 t->time.tm_sec = CMOS_READ(RTC_SECONDS_ALARM); in cmos_read_alarm()
225 t->time.tm_min = CMOS_READ(RTC_MINUTES_ALARM); in cmos_read_alarm()
226 t->time.tm_hour = CMOS_READ(RTC_HOURS_ALARM); in cmos_read_alarm()
230 t->time.tm_mday = CMOS_READ(cmos->day_alrm) & 0x3f; in cmos_read_alarm()
235 t->time.tm_mon = CMOS_READ(cmos->mon_alrm); in cmos_read_alarm()
241 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_read_alarm()
287 rtc_intr = CMOS_READ(RTC_INTR_FLAGS); in cmos_checkintr()
304 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_irq_enable()
318 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_irq_disable()
340 rtc_control = CMOS_READ(RTC_CONTROL); in cmos_set_alarm()
[all …]
/linux-3.4.99/arch/mips/kernel/ !
Dcevt-ds1287.c30 return (CMOS_READ(RTC_REG_C) & RTC_PF) != 0; in ds1287_timer_state()
69 val = CMOS_READ(RTC_REG_B); in ds1287_set_mode()
102 CMOS_READ(RTC_REG_C); in ds1287_interrupt()
/linux-3.4.99/arch/cris/include/asm/ !
Drtc.h60 # define CMOS_READ(x) ds1302_readreg(x) macro
67 # define CMOS_READ(x) pcf8563_readreg(x) macro
72 # define CMOS_READ(x) 42 macro
/linux-3.4.99/arch/mn10300/kernel/ !
Drtc.c59 save_control = CMOS_READ(RTC_CONTROL); /* tell the clock it's being in set_rtc_mmss()
63 save_freq_select = CMOS_READ(RTC_FREQ_SELECT); /* stop and reset in set_rtc_mmss()
67 cmos_minutes = CMOS_READ(RTC_MINUTES); in set_rtc_mmss()
/linux-3.4.99/arch/cris/arch-v10/drivers/ !
Dds1302.c210 rtc_tm->tm_sec = CMOS_READ(RTC_SECONDS); in get_rtc_time()
211 rtc_tm->tm_min = CMOS_READ(RTC_MINUTES); in get_rtc_time()
212 rtc_tm->tm_hour = CMOS_READ(RTC_HOURS); in get_rtc_time()
213 rtc_tm->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH); in get_rtc_time()
214 rtc_tm->tm_mon = CMOS_READ(RTC_MONTH); in get_rtc_time()
215 rtc_tm->tm_year = CMOS_READ(RTC_YEAR); in get_rtc_time()
/linux-3.4.99/arch/m32r/include/asm/ !
Drtc.h31 # define CMOS_READ(x) ds1302_readreg(x) macro
36 # define CMOS_READ(x) 42 macro
Dmc146818rtc.h18 #define CMOS_READ(addr) ({ \ macro
/linux-3.4.99/drivers/acpi/ !
Dproc.c47 rtc_control = CMOS_READ(RTC_CONTROL); in acpi_system_alarm_seq_show()
55 day = CMOS_READ(acpi_gbl_FADT.day_alarm) & 0x3F; in acpi_system_alarm_seq_show()
160 u32 val = CMOS_READ(offset); in cmos_bcd_read()
214 rtc_control = CMOS_READ(RTC_CONTROL); in acpi_system_write_alarm()
255 CMOS_READ(RTC_INTR_FLAGS); in acpi_system_write_alarm()
279 CMOS_READ(RTC_INTR_FLAGS); in acpi_system_write_alarm()
/linux-3.4.99/arch/mips/include/asm/mach-ip32/ !
Dmc146818rtc.h18 static unsigned char CMOS_READ(unsigned long addr) in CMOS_READ() function
/linux-3.4.99/arch/alpha/include/asm/ !
Dmc146818rtc.h18 #define CMOS_READ(addr) ({ \ macro
/linux-3.4.99/arch/powerpc/include/asm/ !
Dmc146818rtc.h26 #define CMOS_READ(addr) ({ \ macro
/linux-3.4.99/arch/sparc/include/asm/ !
Dmc146818rtc_32.h18 #define CMOS_READ(addr) ({ \ macro
/linux-3.4.99/arch/mips/include/asm/mach-jazz/ !
Dmc146818rtc.h22 static inline unsigned char CMOS_READ(unsigned long addr) in CMOS_READ() function

12