Searched refs:sense_res (Results 1 – 3 of 3) sorted by relevance
113 int sense_res; in ds2782_get_current() local129 sense_res = 1000 / sense_res_raw; in ds2782_get_current()132 sense_res); in ds2782_get_current()136 *current_uA = raw * (DS2782_CURRENT_UNITS / sense_res); in ds2782_get_current()
229 int ret, sense_res; in ds2780_get_current() local245 sense_res = 1000 / sense_res_raw; in ds2780_get_current()267 *current_uA = current_raw * (DS2780_CURRENT_UNITS / sense_res); in ds2780_get_current()274 int ret, sense_res; in ds2780_get_accumulated_current() local290 sense_res = 1000 / sense_res_raw; in ds2780_get_accumulated_current()304 *accumulated_current = current_raw * (DS2780_CHARGE_UNITS / sense_res); in ds2780_get_accumulated_current()
231 int ret, sense_res; in ds2781_get_current() local247 sense_res = 1000 / sense_res_raw; in ds2781_get_current()269 *current_uA = current_raw * (DS2781_CURRENT_UNITS / sense_res); in ds2781_get_current()276 int ret, sense_res; in ds2781_get_accumulated_current() local292 sense_res = 1000 / sense_res_raw; in ds2781_get_accumulated_current()306 *accumulated_current = current_raw * (DS2781_CHARGE_UNITS / sense_res); in ds2781_get_accumulated_current()