Searched refs:current_uA (Results 1 – 6 of 6) sorted by relevance
/linux-6.1.9/drivers/power/supply/ |
D | ds2782_battery.c | 47 int (*get_battery_current)(struct ds278x_info *info, int *current_uA); 116 static int ds2782_get_current(struct ds278x_info *info, int *current_uA) in ds2782_get_current() argument 141 *current_uA = raw * (DS2782_CURRENT_UNITS / sense_res); in ds2782_get_current() 173 static int ds2786_get_current(struct ds278x_info *info, int *current_uA) in ds2786_get_current() argument 181 *current_uA = (raw / 16) * (DS2786_CURRENT_UNITS / info->rsns); in ds2786_get_current() 217 int current_uA; in ds278x_get_status() local 220 err = info->ops->get_battery_current(info, ¤t_uA); in ds278x_get_status() 232 else if (current_uA == 0) in ds278x_get_status() 234 else if (current_uA < 0) in ds278x_get_status()
|
D | ds2760_battery.c | 98 int current_uA; /* units of µA */ member 301 di->current_uA = di->current_raw * 625; in ds2760_battery_read_status() 364 if (di->current_uA < -100L) in ds2760_battery_read_status() 366 / (di->current_uA / 100L); in ds2760_battery_read_status() 399 if (di->current_uA > 10000) { in ds2760_battery_update_status() 402 } else if (di->current_uA < -5000) { in ds2760_battery_update_status() 408 } else if (di->current_uA < 10000 && in ds2760_battery_update_status() 565 val->intval = di->current_uA; in ds2760_battery_get_property()
|
D | ds2780_battery.c | 215 enum current_types type, int *current_uA) in ds2780_get_current() argument 255 *current_uA = current_raw * (DS2780_CURRENT_UNITS / sense_res); in ds2780_get_current() 312 int ret, current_uA, capacity; in ds2780_get_status() local 314 ret = ds2780_get_current(dev_info, CURRENT_NOW, ¤t_uA); in ds2780_get_status() 324 else if (current_uA == 0) in ds2780_get_status() 326 else if (current_uA < 0) in ds2780_get_status()
|
D | ds2781_battery.c | 216 enum current_types type, int *current_uA) in ds2781_get_current() argument 256 *current_uA = current_raw * (DS2781_CURRENT_UNITS / sense_res); in ds2781_get_current() 313 int ret, current_uA, capacity; in ds2781_get_status() local 315 ret = ds2781_get_current(dev_info, CURRENT_NOW, ¤t_uA); in ds2781_get_status() 326 else if (current_uA > 50000) in ds2781_get_status()
|
/linux-6.1.9/drivers/usb/musb/ |
D | da8xx.c | 432 int current_uA; in get_vbus_power() local 437 current_uA = regulator_get_current_limit(vbus_supply); in get_vbus_power() 439 if (current_uA <= 0 || current_uA > 510000) in get_vbus_power() 441 return current_uA / 1000 / 2; in get_vbus_power()
|
/linux-6.1.9/drivers/regulator/ |
D | core.c | 945 int current_uA = 0, output_uV, input_uV, err; in drms_uA_update() local 968 current_uA += sibling->uA_load; in drms_uA_update() 971 current_uA += rdev->constraints->system_load; in drms_uA_update() 975 err = rdev->desc->ops->set_load(rdev, current_uA); in drms_uA_update() 978 current_uA, ERR_PTR(err)); in drms_uA_update() 1018 output_uV, current_uA); in drms_uA_update() 1024 current_uA, input_uV, output_uV, ERR_PTR(err)); in drms_uA_update()
|