Searched refs:current_raw (Results 1 – 3 of 3) sorted by relevance
219 s16 current_raw; in ds2781_get_current() local252 ret = ds2781_read16(dev_info, ¤t_raw, reg_msb); in ds2781_get_current()256 *current_uA = current_raw * (DS2781_CURRENT_UNITS / sense_res); in ds2781_get_current()264 s16 current_raw; in ds2781_get_accumulated_current() local289 ret = ds2781_read16(dev_info, ¤t_raw, DS2781_ACR_MSB); in ds2781_get_accumulated_current()293 *accumulated_current = current_raw * (DS2781_CHARGE_UNITS / sense_res); in ds2781_get_accumulated_current()
218 s16 current_raw; in ds2780_get_current() local251 ret = ds2780_read16(dev_info, ¤t_raw, reg_msb); in ds2780_get_current()255 *current_uA = current_raw * (DS2780_CURRENT_UNITS / sense_res); in ds2780_get_current()263 s16 current_raw; in ds2780_get_accumulated_current() local288 ret = ds2780_read16(dev_info, ¤t_raw, DS2780_ACR_MSB_REG); in ds2780_get_accumulated_current()292 *accumulated_current = current_raw * (DS2780_CHARGE_UNITS / sense_res); in ds2780_get_accumulated_current()
97 int current_raw; /* units of 0.625 mA */ member298 di->current_raw = in ds2760_battery_read_status()301 di->current_uA = di->current_raw * 625; in ds2760_battery_read_status()521 bias = (signed char) di->current_raw + in ds2760_battery_set_charged_work()