Searched refs:CONV_BCD_TO_BIN (Results 1 – 4 of 4) sorted by relevance
70 year = CONV_BCD_TO_BIN(rtc_base[0x7fff]); in m48t37y_get_time()71 year += CONV_BCD_TO_BIN(rtc_base[0x7fff1]) * 100; in m48t37y_get_time()73 month = CONV_BCD_TO_BIN(rtc_base[0x7ffe]); in m48t37y_get_time()74 day = CONV_BCD_TO_BIN(rtc_base[0x7ffd]); in m48t37y_get_time()75 hour = CONV_BCD_TO_BIN(rtc_base[0x7ffb]); in m48t37y_get_time()76 min = CONV_BCD_TO_BIN(rtc_base[0x7ffa]); in m48t37y_get_time()77 sec = CONV_BCD_TO_BIN(rtc_base[0x7ff9]); in m48t37y_get_time()
18 #define CONV_BCD_TO_BIN(val) (((val) & 0xf) + (((val) >> 4) * 10)) macro
135 #define CONV_BCD_TO_BIN(val) (((val) & 0xf) + (((val) >> 4) * 10)) macro150 year = CONV_BCD_TO_BIN(rtc_base[0x7fff]); in m48t37y_get_time()151 year += CONV_BCD_TO_BIN(rtc_base[0x7ff1]) * 100; in m48t37y_get_time()153 month = CONV_BCD_TO_BIN(rtc_base[0x7ffe]); in m48t37y_get_time()155 day = CONV_BCD_TO_BIN(rtc_base[0x7ffd]); in m48t37y_get_time()157 hour = CONV_BCD_TO_BIN(rtc_base[0x7ffb]); in m48t37y_get_time()158 min = CONV_BCD_TO_BIN(rtc_base[0x7ffa]); in m48t37y_get_time()159 sec = CONV_BCD_TO_BIN(rtc_base[0x7ff9]); in m48t37y_get_time()
133 #define CONV_BCD_TO_BIN(val) (((val) & 0xf) + (((val) >> 4) * 10)) macro148 year = CONV_BCD_TO_BIN(rtc_base[0x7fff]); in m48t37y_get_time()149 year += CONV_BCD_TO_BIN(rtc_base[0x7ff1]) * 100; in m48t37y_get_time()151 month = CONV_BCD_TO_BIN(rtc_base[0x7ffe]); in m48t37y_get_time()153 day = CONV_BCD_TO_BIN(rtc_base[0x7ffd]); in m48t37y_get_time()155 hour = CONV_BCD_TO_BIN(rtc_base[0x7ffb]); in m48t37y_get_time()156 min = CONV_BCD_TO_BIN(rtc_base[0x7ffa]); in m48t37y_get_time()157 sec = CONV_BCD_TO_BIN(rtc_base[0x7ff9]); in m48t37y_get_time()