Home
last modified time | relevance | path

Searched refs:CMOS_WRITE (Results 1 – 25 of 36) sorted by relevance

12

/linux-2.4.37.9/drivers/char/
Dds1742.c111 CMOS_WRITE(RTC_READ, RTC_CONTROL); in rtc_ds1742_get_time()
119 CMOS_WRITE(0, RTC_CONTROL); in rtc_ds1742_get_time()
133 CMOS_WRITE(RTC_READ, RTC_CONTROL); in rtc_ds1742_set_time()
142 CMOS_WRITE(RTC_WRITE, RTC_CONTROL); in rtc_ds1742_set_time()
150 CMOS_WRITE(year,RTC_YEAR); in rtc_ds1742_set_time()
155 CMOS_WRITE((month & 0x1f) | (cmos_month & ~0x1f),RTC_MONTH); in rtc_ds1742_set_time()
160 CMOS_WRITE(day, RTC_DATE); in rtc_ds1742_set_time()
174 if (hour != cmos_hour) CMOS_WRITE(hour, RTC_HOURS); in rtc_ds1742_set_time()
178 CMOS_WRITE(minute, RTC_MINUTES); in rtc_ds1742_set_time()
183 CMOS_WRITE(second & RTC_SECONDS_MASK,RTC_SECONDS); in rtc_ds1742_set_time()
[all …]
Dds1286.c116 CMOS_WRITE(val, RTC_CMD); in ds1286_ioctl()
132 CMOS_WRITE(val, RTC_CMD); in ds1286_ioctl()
148 CMOS_WRITE(val, RTC_CMD); in ds1286_ioctl()
164 CMOS_WRITE(val, RTC_CMD); in ds1286_ioctl()
211 CMOS_WRITE(hrs, RTC_HOURS_ALARM); in ds1286_ioctl()
212 CMOS_WRITE(min, RTC_MINUTES_ALARM); in ds1286_ioctl()
421 CMOS_WRITE((save_control|RTC_TE), RTC_CMD); in ds1286_get_time()
430 CMOS_WRITE(save_control, RTC_CMD); in ds1286_get_time()
495 CMOS_WRITE((save_control|RTC_TE), RTC_CMD); in ds1286_set_time()
497 CMOS_WRITE(yrs, RTC_YEAR); in ds1286_set_time()
[all …]
Drtc.c414 CMOS_WRITE(hrs, RTC_HOURS_ALARM); in rtc_ioctl()
415 CMOS_WRITE(min, RTC_MINUTES_ALARM); in rtc_ioctl()
416 CMOS_WRITE(sec, RTC_SECONDS_ALARM); in rtc_ioctl()
504 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in rtc_ioctl()
506 CMOS_WRITE((save_freq_select|RTC_DIV_RESET2), RTC_FREQ_SELECT); in rtc_ioctl()
509 CMOS_WRITE(real_yrs, RTC_DEC_YEAR); in rtc_ioctl()
511 CMOS_WRITE(yrs, RTC_YEAR); in rtc_ioctl()
512 CMOS_WRITE(mon, RTC_MONTH); in rtc_ioctl()
513 CMOS_WRITE(day, RTC_DAY_OF_MONTH); in rtc_ioctl()
514 CMOS_WRITE(hrs, RTC_HOURS); in rtc_ioctl()
[all …]
/linux-2.4.37.9/arch/ppc/platforms/
Dprep_time.c66 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in mc146818_set_rtc_time()
71 CMOS_WRITE((save_freq_select|RTC_DIV_RESET2), RTC_FREQ_SELECT); in mc146818_set_rtc_time()
82 CMOS_WRITE(tm.tm_sec, RTC_SECONDS); in mc146818_set_rtc_time()
83 CMOS_WRITE(tm.tm_min, RTC_MINUTES); in mc146818_set_rtc_time()
84 CMOS_WRITE(tm.tm_hour, RTC_HOURS); in mc146818_set_rtc_time()
85 CMOS_WRITE(tm.tm_mon, RTC_MONTH); in mc146818_set_rtc_time()
86 CMOS_WRITE(tm.tm_mday, RTC_DAY_OF_MONTH); in mc146818_set_rtc_time()
87 CMOS_WRITE(tm.tm_year, RTC_YEAR); in mc146818_set_rtc_time()
96 CMOS_WRITE(save_control, RTC_CONTROL); in mc146818_set_rtc_time()
97 CMOS_WRITE(save_freq_select, RTC_FREQ_SELECT); in mc146818_set_rtc_time()
/linux-2.4.37.9/include/asm-arm/arch-riscstation/
Dtime.h107 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in set_isa_cmos_time()
110 CMOS_WRITE((save_freq_select|RTC_DIV_RESET2), RTC_FREQ_SELECT); in set_isa_cmos_time()
133 CMOS_WRITE(real_seconds,RTC_SECONDS); in set_isa_cmos_time()
134 CMOS_WRITE(real_minutes,RTC_MINUTES); in set_isa_cmos_time()
145 CMOS_WRITE(save_control, RTC_CONTROL); in set_isa_cmos_time()
146 CMOS_WRITE(save_freq_select, RTC_FREQ_SELECT); in set_isa_cmos_time()
165 CMOS_WRITE(RTC_REF_CLCK_32KHZ, RTC_REG_A); in setup_timer()
173 CMOS_WRITE(reg_b, RTC_REG_B); in setup_timer()
/linux-2.4.37.9/arch/mips/dec/
Dtime.c88 CMOS_WRITE((save_control | RTC_SET), RTC_CONTROL); in dec_rtc_set_mmss()
92 CMOS_WRITE((save_freq_select | RTC_DIV_RESET2), RTC_FREQ_SELECT); in dec_rtc_set_mmss()
115 CMOS_WRITE(real_seconds, RTC_SECONDS); in dec_rtc_set_mmss()
116 CMOS_WRITE(real_minutes, RTC_MINUTES); in dec_rtc_set_mmss()
130 CMOS_WRITE(save_control, RTC_CONTROL); in dec_rtc_set_mmss()
131 CMOS_WRITE(save_freq_select, RTC_FREQ_SELECT); in dec_rtc_set_mmss()
177 CMOS_WRITE(RTC_REF_CLCK_32KHZ | (16 - LOG_2_HZ), RTC_REG_A); in dec_time_init()
185 CMOS_WRITE(CMOS_READ(RTC_REG_B) | RTC_PIE, RTC_REG_B); in dec_timer_setup()
/linux-2.4.37.9/arch/mips/ite-boards/generic/
Dtime.c65 #undef CMOS_WRITE
67 #define CMOS_WRITE(data, addr) it8172_rtc_write_data(data, addr) macro
198 CMOS_WRITE(bin_to_hw(tm.tm_sec), RTC_SECONDS); in it8172_rtc_set_time()
199 CMOS_WRITE(bin_to_hw(tm.tm_min), RTC_MINUTES); in it8172_rtc_set_time()
200 CMOS_WRITE(hour_bin_to_hw(tm.tm_hour), RTC_HOURS); in it8172_rtc_set_time()
201 CMOS_WRITE(bin_to_hw(tm.tm_mday), RTC_DAY_OF_MONTH); in it8172_rtc_set_time()
202 CMOS_WRITE(bin_to_hw(tm.tm_mon+1), RTC_MONTH); /* tm_mon starts from 0 */ in it8172_rtc_set_time()
203 CMOS_WRITE(bin_to_hw(tm.tm_year%100), RTC_YEAR); in it8172_rtc_set_time()
/linux-2.4.37.9/include/asm-arm/arch-ebsa285/
Dtime.h135 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in set_isa_cmos_time()
138 CMOS_WRITE((save_freq_select|RTC_DIV_RESET2), RTC_FREQ_SELECT); in set_isa_cmos_time()
161 CMOS_WRITE(real_seconds,RTC_SECONDS); in set_isa_cmos_time()
162 CMOS_WRITE(real_minutes,RTC_MINUTES); in set_isa_cmos_time()
173 CMOS_WRITE(save_control, RTC_CONTROL); in set_isa_cmos_time()
174 CMOS_WRITE(save_freq_select, RTC_FREQ_SELECT); in set_isa_cmos_time()
226 CMOS_WRITE(RTC_REF_CLCK_32KHZ, RTC_REG_A); in setup_timer()
234 CMOS_WRITE(reg_b, RTC_REG_B); in setup_timer()
/linux-2.4.37.9/include/asm-arm/
Dmc146818rtc.h25 #define CMOS_WRITE(val, addr) ({ \ macro
37 #undef CMOS_WRITE
44 #define CMOS_WRITE(val, addr) ({ \ macro
/linux-2.4.37.9/arch/alpha/kernel/
Dtime.c150 CMOS_WRITE(0x26, RTC_FREQ_SELECT); in common_init_rtc()
159 CMOS_WRITE(x, RTC_CONTROL); in common_init_rtc()
507 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in set_rtc_mmss()
511 CMOS_WRITE((save_freq_select|RTC_DIV_RESET2), RTC_FREQ_SELECT); in set_rtc_mmss()
536 CMOS_WRITE(real_seconds,RTC_SECONDS); in set_rtc_mmss()
537 CMOS_WRITE(real_minutes,RTC_MINUTES); in set_rtc_mmss()
552 CMOS_WRITE(save_control, RTC_CONTROL); in set_rtc_mmss()
553 CMOS_WRITE(save_freq_select, RTC_FREQ_SELECT); in set_rtc_mmss()
/linux-2.4.37.9/arch/cris/drivers/
Dds1302.c404 CMOS_WRITE(yrs, RTC_YEAR); in rtc_ioctl()
405 CMOS_WRITE(mon, RTC_MONTH); in rtc_ioctl()
406 CMOS_WRITE(day, RTC_DAY_OF_MONTH); in rtc_ioctl()
407 CMOS_WRITE(hrs, RTC_HOURS); in rtc_ioctl()
408 CMOS_WRITE(min, RTC_MINUTES); in rtc_ioctl()
409 CMOS_WRITE(sec, RTC_SECONDS); in rtc_ioctl()
/linux-2.4.37.9/include/asm-cris/
Drtc.h81 # define CMOS_WRITE(val,reg) ds1302_writereg(reg,val) macro
88 # define CMOS_WRITE(val,reg) pcf8563_writereg(reg,val) macro
93 # define CMOS_WRITE(x,y) macro
/linux-2.4.37.9/arch/mips/mips-boards/generic/
Dtime.c121 CMOS_WRITE(save_control | RTC_SET, RTC_CONTROL); in mips_rtc_get_time()
140 CMOS_WRITE(save_control, RTC_CONTROL); in mips_rtc_get_time()
156 CMOS_WRITE(CMOS_READ(RTC_CONTROL) | RTC_DM_BINARY, RTC_CONTROL); in mips_time_init()
/linux-2.4.37.9/arch/x86_64/kernel/
Dtime.c280 CMOS_WRITE(control | RTC_SET, RTC_CONTROL); in set_rtc_mmss()
283 CMOS_WRITE(freq_select | RTC_DIV_RESET2, RTC_FREQ_SELECT); in set_rtc_mmss()
304 CMOS_WRITE(real_seconds, RTC_SECONDS); in set_rtc_mmss()
305 CMOS_WRITE(real_minutes, RTC_MINUTES); in set_rtc_mmss()
318 CMOS_WRITE(control, RTC_CONTROL); in set_rtc_mmss()
319 CMOS_WRITE(freq_select, RTC_FREQ_SELECT); in set_rtc_mmss()
/linux-2.4.37.9/arch/i386/kernel/
Dtime.c512 CMOS_WRITE((save_control|RTC_SET), RTC_CONTROL); in set_rtc_mmss()
515 CMOS_WRITE((save_freq_select|RTC_DIV_RESET2), RTC_FREQ_SELECT); in set_rtc_mmss()
538 CMOS_WRITE(real_seconds,RTC_SECONDS); in set_rtc_mmss()
539 CMOS_WRITE(real_minutes,RTC_MINUTES); in set_rtc_mmss()
554 CMOS_WRITE(save_control, RTC_CONTROL); in set_rtc_mmss()
555 CMOS_WRITE(save_freq_select, RTC_FREQ_SELECT); in set_rtc_mmss()
/linux-2.4.37.9/include/asm-sh/
Dmc146818rtc.h18 #define CMOS_WRITE(val,addr) __CMOS_WRITE(val,addr,b) macro
25 #define CMOS_WRITE(val,addr) secureedge5410_cmos_write(val,addr) macro
32 #define CMOS_WRITE(val,addr) __CMOS_WRITE(val,addr,w) macro
/linux-2.4.37.9/drivers/acpi/
Dsystem.c1021 CMOS_WRITE(hr, RTC_HOURS_ALARM); in acpi_system_write_alarm()
1022 CMOS_WRITE(min, RTC_MINUTES_ALARM); in acpi_system_write_alarm()
1023 CMOS_WRITE(sec, RTC_SECONDS_ALARM); in acpi_system_write_alarm()
1032 CMOS_WRITE(day, acpi_gbl_FADT->day_alrm); in acpi_system_write_alarm()
1034 CMOS_WRITE(mo, acpi_gbl_FADT->mon_alrm); in acpi_system_write_alarm()
1036 CMOS_WRITE(yr/100, acpi_gbl_FADT->century); in acpi_system_write_alarm()
1041 CMOS_WRITE(rtc_control,RTC_CONTROL); in acpi_system_write_alarm()
/linux-2.4.37.9/include/asm-ppc64/
Dmc146818rtc.h27 #define CMOS_WRITE(val, addr) ({ \ macro
/linux-2.4.37.9/include/asm-m68k/
Dmc146818rtc.h18 #define CMOS_WRITE(val, addr) ({ \ macro
/linux-2.4.37.9/include/asm-alpha/
Dmc146818rtc.h22 #define CMOS_WRITE(val, addr) ({ \ macro
/linux-2.4.37.9/include/asm-i386/
Dmc146818rtc.h22 #define CMOS_WRITE(val, addr) ({ \ macro
/linux-2.4.37.9/include/asm-sparc/
Dmc146818rtc.h22 #define CMOS_WRITE(val, addr) ({ \ macro
/linux-2.4.37.9/include/asm-x86_64/
Dmc146818rtc.h22 #define CMOS_WRITE(val, addr) ({ \ macro
/linux-2.4.37.9/include/asm-ppc/
Dmc146818rtc.h23 #define CMOS_WRITE(val, addr) ({ \ macro
/linux-2.4.37.9/include/asm-sparc64/
Dmc146818rtc.h28 #define CMOS_WRITE(val, addr) ({ \ macro

12