Lines Matching refs:bin2bcd
105 rtc_data[0] = bin2bcd(tm->tm_sec); in tps65910_rtc_set_time()
106 rtc_data[1] = bin2bcd(tm->tm_min); in tps65910_rtc_set_time()
107 rtc_data[2] = bin2bcd(tm->tm_hour); in tps65910_rtc_set_time()
108 rtc_data[3] = bin2bcd(tm->tm_mday); in tps65910_rtc_set_time()
109 rtc_data[4] = bin2bcd(tm->tm_mon + 1); in tps65910_rtc_set_time()
110 rtc_data[5] = bin2bcd(tm->tm_year - 100); in tps65910_rtc_set_time()
181 alarm_data[0] = bin2bcd(alm->time.tm_sec); in tps65910_rtc_set_alarm()
182 alarm_data[1] = bin2bcd(alm->time.tm_min); in tps65910_rtc_set_alarm()
183 alarm_data[2] = bin2bcd(alm->time.tm_hour); in tps65910_rtc_set_alarm()
184 alarm_data[3] = bin2bcd(alm->time.tm_mday); in tps65910_rtc_set_alarm()
185 alarm_data[4] = bin2bcd(alm->time.tm_mon + 1); in tps65910_rtc_set_alarm()
186 alarm_data[5] = bin2bcd(alm->time.tm_year - 100); in tps65910_rtc_set_alarm()