Lines Matching full:acc
240 s64 acc; in cpcap_battery_cc_raw_div() local
245 acc = accumulator; in cpcap_battery_cc_raw_div()
246 acc -= (s64)sample * offset; in cpcap_battery_cc_raw_div()
247 acc *= ddata->cc_lsb; in cpcap_battery_cc_raw_div()
248 acc *= -1; in cpcap_battery_cc_raw_div()
249 acc = div_s64(acc, divider); in cpcap_battery_cc_raw_div()
251 return acc; in cpcap_battery_cc_raw_div()
342 int value, acc, error; in cpcap_battery_cc_get_avg_current() local
352 acc = sign_extend32(value, 13); in cpcap_battery_cc_get_avg_current()
355 acc = (s16)value; in cpcap_battery_cc_get_avg_current()
366 return cpcap_battery_cc_to_ua(ddata, sample, acc, offset); in cpcap_battery_cc_get_avg_current()