Lines Matching refs:bin2bcd
159 RTC_TIME_REG_SET_FIELD(S, rtc_time_reg, bin2bcd(timeptr->tm_sec)); /*[0, 59]*/ in rtc_time_to_bcd()
160 RTC_TIME_REG_SET_FIELD(M, rtc_time_reg, bin2bcd(timeptr->tm_min)); /*[0, 59]*/ in rtc_time_to_bcd()
161 RTC_TIME_REG_SET_FIELD(HR, rtc_time_reg, bin2bcd(timeptr->tm_hour)); /*[0, 23]*/ in rtc_time_to_bcd()
170 RTC_CALENDAR_REG_SET_FIELD(D, rtc_calendar_reg, bin2bcd(timeptr->tm_mday)); /*[1, 31]*/ in rtc_calendar_to_bcd()
172 bin2bcd((timeptr->tm_year + TM_YEAR_REF) % 100)); /*[year - 1900]*/ in rtc_calendar_to_bcd()
174 bin2bcd((timeptr->tm_year + TM_YEAR_REF) / 100)); in rtc_calendar_to_bcd()
175 RTC_CALENDAR_REG_SET_FIELD(M, rtc_calendar_reg, bin2bcd(timeptr->tm_mon + 1)); /*[0, 11]*/ in rtc_calendar_to_bcd()
299 bin2bcd(timeptr->tm_mday)); in alarm_calendar_to_bcd()
304 bin2bcd(timeptr->tm_mon + 1)); in alarm_calendar_to_bcd()
320 RTC_TIME_ALARM_REG_SET_FIELD(S, rtc_time_alarm_reg, bin2bcd(timeptr->tm_sec)); in alarm_time_to_bcd()
325 RTC_TIME_ALARM_REG_SET_FIELD(M, rtc_time_alarm_reg, bin2bcd(timeptr->tm_min)); in alarm_time_to_bcd()
330 RTC_TIME_ALARM_REG_SET_FIELD(HR, rtc_time_alarm_reg, bin2bcd(timeptr->tm_hour)); in alarm_time_to_bcd()