Searched refs:bcd2bin (Results 1 – 4 of 4) sorted by relevance
251 timeptr->tm_year = bcd2bin(timeptr->tm_year); in rtc_mc146818_get_time()252 timeptr->tm_mon = bcd2bin(timeptr->tm_mon); in rtc_mc146818_get_time()253 timeptr->tm_mday = bcd2bin(timeptr->tm_mday); in rtc_mc146818_get_time()254 timeptr->tm_wday = bcd2bin(timeptr->tm_wday); in rtc_mc146818_get_time()255 timeptr->tm_hour = bcd2bin(timeptr->tm_hour); in rtc_mc146818_get_time()256 timeptr->tm_min = bcd2bin(timeptr->tm_min); in rtc_mc146818_get_time()257 timeptr->tm_sec = bcd2bin(timeptr->tm_sec); in rtc_mc146818_get_time()438 timeptr->tm_sec = bcd2bin(timeptr->tm_sec); in rtc_mc146818_alarm_get_time()439 timeptr->tm_min = bcd2bin(timeptr->tm_min); in rtc_mc146818_alarm_get_time()440 timeptr->tm_hour = bcd2bin(timeptr->tm_hour); in rtc_mc146818_alarm_get_time()
413 timeptr->tm_sec = bcd2bin(regs[3] & PCF8523_SECONDS_MASK); in pcf8523_get_time()414 timeptr->tm_min = bcd2bin(regs[4] & PCF8523_MINUTES_MASK); in pcf8523_get_time()415 timeptr->tm_hour = bcd2bin(regs[5] & PCF8523_HOURS_24H_MASK); in pcf8523_get_time()416 timeptr->tm_mday = bcd2bin(regs[6] & PCF8523_DAYS_MASK); in pcf8523_get_time()417 timeptr->tm_wday = bcd2bin(regs[7] & PCF8523_WEEKDAYS_MASK); in pcf8523_get_time()418 timeptr->tm_mon = bcd2bin(regs[8] & PCF8523_MONTHS_MASK) - PCF8523_MONTHS_OFFSET; in pcf8523_get_time()419 timeptr->tm_year = bcd2bin(regs[9] & PCF8523_YEARS_MASK) + PCF8523_YEARS_OFFSET; in pcf8523_get_time()514 timeptr->tm_min = bcd2bin(regs[0] & PCF8523_MINUTE_ALARM_MASK); in pcf8523_alarm_get_time()519 timeptr->tm_hour = bcd2bin(regs[1] & PCF8523_HOUR_ALARM_24H_MASK); in pcf8523_alarm_get_time()524 timeptr->tm_mday = bcd2bin(regs[2] & PCF8523_DAY_ALARM_MASK); in pcf8523_alarm_get_time()[all …]
294 tp->tm_sec = bcd2bin(reg & 0x7F); in decode_time()298 tp->tm_min = bcd2bin(reg & 0x7F); in decode_time()346 tm.tm_mday = bcd2bin(*dp & 0x3F); in decode_alarm()427 tm.tm_mday = bcd2bin(rp->dom & 0x3F); in decode_rtc()430 tm.tm_year = bcd2bin(rp->year); in decode_rtc()
458 static inline uint8_t bcd2bin(uint8_t bcd) in bcd2bin() function