Lines Matching refs:acc
258 s64 acc; in cpcap_battery_cc_raw_div() local
263 acc = accumulator; in cpcap_battery_cc_raw_div()
264 acc -= (s64)sample * offset; in cpcap_battery_cc_raw_div()
265 acc *= ddata->cc_lsb; in cpcap_battery_cc_raw_div()
266 acc *= -1; in cpcap_battery_cc_raw_div()
267 acc = div_s64(acc, divider); in cpcap_battery_cc_raw_div()
269 return acc; in cpcap_battery_cc_raw_div()
442 int value, acc, error; in cpcap_battery_cc_get_avg_current() local
452 acc = sign_extend32(value, 13); in cpcap_battery_cc_get_avg_current()
455 acc = (s16)value; in cpcap_battery_cc_get_avg_current()
466 return cpcap_battery_cc_to_ua(ddata, sample, acc, offset); in cpcap_battery_cc_get_avg_current()