Home
last modified time | relevance | path

Searched refs:CONV_BIN_TO_BCD (Results 1 – 4 of 4) sorted by relevance

/linux-2.4.37.9/arch/mips/pmc-sierra/yosemite/
Dsetup.c100 rtc_base[0x7fff] = CONV_BIN_TO_BCD(tm.tm_year % 100); in m48t37y_set_time()
101 rtc_base[0x7ff1] = CONV_BIN_TO_BCD(tm.tm_year / 100); in m48t37y_set_time()
104 rtc_base[0x7ffe] = CONV_BIN_TO_BCD(tm.tm_mon); in m48t37y_set_time()
107 rtc_base[0x7ffd] = CONV_BIN_TO_BCD(tm.tm_mday); in m48t37y_set_time()
110 rtc_base[0x7ffb] = CONV_BIN_TO_BCD(tm.tm_hour); in m48t37y_set_time()
111 rtc_base[0x7ffa] = CONV_BIN_TO_BCD(tm.tm_min); in m48t37y_set_time()
112 rtc_base[0x7ff9] = CONV_BIN_TO_BCD(tm.tm_sec); in m48t37y_set_time()
115 rtc_base[0x7ffc] = CONV_BIN_TO_BCD(tm.tm_wday + 1); in m48t37y_set_time()
Dsetup.h19 #define CONV_BIN_TO_BCD(val) (((val) % 10) + (((val) / 10) << 4)) macro
/linux-2.4.37.9/arch/mips/momentum/jaguar_atx/
Dsetup.c136 #define CONV_BIN_TO_BCD(val) (((val) % 10) + (((val) / 10) << 4)) macro
184 rtc_base[0x7fff] = CONV_BIN_TO_BCD(tm.tm_year % 100); in m48t37y_set_time()
185 rtc_base[0x7ff1] = CONV_BIN_TO_BCD(tm.tm_year / 100); in m48t37y_set_time()
188 rtc_base[0x7ffe] = CONV_BIN_TO_BCD(tm.tm_mon); in m48t37y_set_time()
191 rtc_base[0x7ffd] = CONV_BIN_TO_BCD(tm.tm_mday); in m48t37y_set_time()
194 rtc_base[0x7ffb] = CONV_BIN_TO_BCD(tm.tm_hour); in m48t37y_set_time()
195 rtc_base[0x7ffa] = CONV_BIN_TO_BCD(tm.tm_min); in m48t37y_set_time()
196 rtc_base[0x7ff9] = CONV_BIN_TO_BCD(tm.tm_sec); in m48t37y_set_time()
199 rtc_base[0x7ffc] = CONV_BIN_TO_BCD(tm.tm_wday + 1); in m48t37y_set_time()
/linux-2.4.37.9/arch/mips/momentum/ocelot_c/
Dsetup.c134 #define CONV_BIN_TO_BCD(val) (((val) % 10) + (((val) / 10) << 4)) macro
182 rtc_base[0x7fff] = CONV_BIN_TO_BCD(tm.tm_year % 100); in m48t37y_set_time()
183 rtc_base[0x7ff1] = CONV_BIN_TO_BCD(tm.tm_year / 100); in m48t37y_set_time()
186 rtc_base[0x7ffe] = CONV_BIN_TO_BCD(tm.tm_mon); in m48t37y_set_time()
189 rtc_base[0x7ffd] = CONV_BIN_TO_BCD(tm.tm_mday); in m48t37y_set_time()
192 rtc_base[0x7ffb] = CONV_BIN_TO_BCD(tm.tm_hour); in m48t37y_set_time()
193 rtc_base[0x7ffa] = CONV_BIN_TO_BCD(tm.tm_min); in m48t37y_set_time()
194 rtc_base[0x7ff9] = CONV_BIN_TO_BCD(tm.tm_sec); in m48t37y_set_time()
197 rtc_base[0x7ffc] = CONV_BIN_TO_BCD(tm.tm_wday + 1); in m48t37y_set_time()