Lines Matching refs:TIME_NUM
54 #define TIME_NUM 8 macro
84 if (len < TIME_NUM) in tm_calc()
115 if (len < TIME_NUM) in data_calc()
154 unsigned char buf[TIME_NUM]; in max8925_rtc_read_time()
157 ret = max8925_bulk_read(info->rtc, MAX8925_RTC_SEC, TIME_NUM, buf); in max8925_rtc_read_time()
160 ret = tm_calc(tm, buf, TIME_NUM); in max8925_rtc_read_time()
168 unsigned char buf[TIME_NUM]; in max8925_rtc_set_time()
171 ret = data_calc(buf, tm, TIME_NUM); in max8925_rtc_set_time()
174 ret = max8925_bulk_write(info->rtc, MAX8925_RTC_SEC, TIME_NUM, buf); in max8925_rtc_set_time()
182 unsigned char buf[TIME_NUM]; in max8925_rtc_read_alarm()
185 ret = max8925_bulk_read(info->rtc, MAX8925_ALARM0_SEC, TIME_NUM, buf); in max8925_rtc_read_alarm()
188 ret = tm_calc(&alrm->time, buf, TIME_NUM); in max8925_rtc_read_alarm()
220 unsigned char buf[TIME_NUM]; in max8925_rtc_set_alarm()
223 ret = data_calc(buf, &alrm->time, TIME_NUM); in max8925_rtc_set_alarm()
226 ret = max8925_bulk_write(info->rtc, MAX8925_ALARM0_SEC, TIME_NUM, buf); in max8925_rtc_set_alarm()