Lines Matching refs:to_bcd
152 ((uint32_t)to_bcd((uint8_t)(x % 100)) + \
153 ((uint32_t)to_bcd((uint8_t)((x % 1000) / 100)) << 8))
161 (to_bcd((uint8_t)stm.tm_sec) == (uint8_t)s->reg_almsec)) { in check_alarm_raise()
165 (to_bcd((uint8_t)stm.tm_min) == (uint8_t)s->reg_almmin)) { in check_alarm_raise()
169 (to_bcd((uint8_t)stm.tm_hour) == (uint8_t)s->reg_almhour)) { in check_alarm_raise()
173 (to_bcd((uint8_t)stm.tm_mday) == (uint8_t)s->reg_almday)) { in check_alarm_raise()
177 (to_bcd((uint8_t)stm.tm_mon) == (uint8_t)s->reg_almmon)) { in check_alarm_raise()
349 value = (uint32_t)to_bcd((uint8_t)s->current_tm.tm_sec); in exynos4210_rtc_read()
352 value = (uint32_t)to_bcd((uint8_t)s->current_tm.tm_min); in exynos4210_rtc_read()
355 value = (uint32_t)to_bcd((uint8_t)s->current_tm.tm_hour); in exynos4210_rtc_read()
358 value = (uint32_t)to_bcd((uint8_t)s->current_tm.tm_wday); in exynos4210_rtc_read()
361 value = (uint32_t)to_bcd((uint8_t)s->current_tm.tm_mday); in exynos4210_rtc_read()
364 value = (uint32_t)to_bcd((uint8_t)s->current_tm.tm_mon + 1); in exynos4210_rtc_read()