Home
last modified time | relevance | path

Searched refs:current_raw (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/power/supply/
H A Dds2780_battery.c218 s16 current_raw; in ds2780_get_current() local
251 ret = ds2780_read16(dev_info, &current_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() local
288 ret = ds2780_read16(dev_info, &current_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()
H A Dds2781_battery.c219 s16 current_raw; in ds2781_get_current() local
252 ret = ds2781_read16(dev_info, &current_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() local
289 ret = ds2781_read16(dev_info, &current_raw, DS2781_ACR_MSB); in ds2781_get_accumulated_current()
293 *accumulated_current = current_raw * (DS2781_CHARGE_UNITS / sense_res); in ds2781_get_accumulated_current()
H A Dds2760_battery.c97 int current_raw; /* units of 0.625 mA */ member
290 di->current_raw = in ds2760_battery_read_status()
293 di->current_uA = di->current_raw * 625; in ds2760_battery_read_status()
513 bias = (signed char) di->current_raw + in ds2760_battery_set_charged_work()