Searched refs:bcd2int (Results 1 – 3 of 3) sorted by relevance
58 static int bcd2int (unsigned char b);175 *year = bcd2int (m147_rtc->bcd_year); in mvme147_gettod()176 *mon = bcd2int (m147_rtc->bcd_mth); in mvme147_gettod()177 *day = bcd2int (m147_rtc->bcd_dom); in mvme147_gettod()178 *hour = bcd2int (m147_rtc->bcd_hr); in mvme147_gettod()179 *min = bcd2int (m147_rtc->bcd_min); in mvme147_gettod()180 *sec = bcd2int (m147_rtc->bcd_sec); in mvme147_gettod()184 static int bcd2int (unsigned char b) in bcd2int() function
62 int bcd2int (unsigned char b);282 *year = bcd2int (rtc->bcd_year); in mvme16x_gettod()283 *mon = bcd2int (rtc->bcd_mth); in mvme16x_gettod()284 *day = bcd2int (rtc->bcd_dom); in mvme16x_gettod()285 *hour = bcd2int (rtc->bcd_hr); in mvme16x_gettod()286 *min = bcd2int (rtc->bcd_min); in mvme16x_gettod()287 *sec = bcd2int (rtc->bcd_sec); in mvme16x_gettod()291 int bcd2int (unsigned char b) in bcd2int() function
132 static inline int bcd2int(int val) in bcd2int() function183 sec = bcd2int(ds1302_readbyte(RTC_ADDR_SEC)); in snapgear_rtc_gettimeofday()184 min = bcd2int(ds1302_readbyte(RTC_ADDR_MIN)); in snapgear_rtc_gettimeofday()185 hr = bcd2int(ds1302_readbyte(RTC_ADDR_HOUR)); in snapgear_rtc_gettimeofday()186 day = bcd2int(ds1302_readbyte(RTC_ADDR_DATE)); in snapgear_rtc_gettimeofday()187 mon = bcd2int(ds1302_readbyte(RTC_ADDR_MON)); in snapgear_rtc_gettimeofday()188 yr = bcd2int(ds1302_readbyte(RTC_ADDR_YEAR)); in snapgear_rtc_gettimeofday()240 cmos_minutes = bcd2int(ds1302_readbyte(RTC_ADDR_MIN)); in snapgear_rtc_settimeofday()