Searched refs:current_uA (Results 1 – 5 of 5) sorted by relevance
/drivers/power/ |
D | ds2782_battery.c | 51 int (*get_battery_current)(struct ds278x_info *info, int *current_uA); 119 static int ds2782_get_current(struct ds278x_info *info, int *current_uA) in ds2782_get_current() argument 144 *current_uA = raw * (DS2782_CURRENT_UNITS / sense_res); in ds2782_get_current() 176 static int ds2786_get_current(struct ds278x_info *info, int *current_uA) in ds2786_get_current() argument 184 *current_uA = (raw / 16) * (DS2786_CURRENT_UNITS / info->rsns); in ds2786_get_current() 220 int current_uA; in ds278x_get_status() local 223 err = info->ops->get_battery_current(info, ¤t_uA); in ds278x_get_status() 235 else if (current_uA == 0) in ds278x_get_status() 237 else if (current_uA < 0) in ds278x_get_status()
|
D | ds2760_battery.c | 43 int current_uA; /* units of µA */ member 160 di->current_uA = di->current_raw * 625; in ds2760_battery_read_status() 223 if (di->current_uA < -100L) in ds2760_battery_read_status() 225 / (di->current_uA / 100L); in ds2760_battery_read_status() 258 if (di->current_uA > 10000) { in ds2760_battery_update_status() 261 } else if (di->current_uA < -5000) { in ds2760_battery_update_status() 267 } else if (di->current_uA < 10000 && in ds2760_battery_update_status() 427 val->intval = di->current_uA; in ds2760_battery_get_property()
|
D | ds2780_battery.c | 223 enum current_types type, int *current_uA) in ds2780_get_current() argument 263 *current_uA = current_raw * (DS2780_CURRENT_UNITS / sense_res); in ds2780_get_current() 320 int ret, current_uA, capacity; in ds2780_get_status() local 322 ret = ds2780_get_current(dev_info, CURRENT_NOW, ¤t_uA); in ds2780_get_status() 332 else if (current_uA == 0) in ds2780_get_status() 334 else if (current_uA < 0) in ds2780_get_status()
|
D | ds2781_battery.c | 224 enum current_types type, int *current_uA) in ds2781_get_current() argument 264 *current_uA = current_raw * (DS2781_CURRENT_UNITS / sense_res); in ds2781_get_current() 321 int ret, current_uA, capacity; in ds2781_get_status() local 323 ret = ds2781_get_current(dev_info, CURRENT_NOW, ¤t_uA); in ds2781_get_status() 334 else if (current_uA > 50000) in ds2781_get_status()
|
/drivers/regulator/ |
D | core.c | 669 int current_uA = 0, output_uV, input_uV, err; in drms_uA_update() local 695 current_uA += sibling->uA_load; in drms_uA_update() 699 output_uV, current_uA); in drms_uA_update()
|