Searched refs:current_uA (Results 1 - 5 of 5) sorted by relevance

/drivers/power/
H A Dds2782_battery.c51 int (*get_battery_current)(struct ds278x_info *info, int *current_uA);
119 static int ds2782_get_current(struct ds278x_info *info, int *current_uA) argument
144 *current_uA = raw * (DS2782_CURRENT_UNITS / sense_res);
176 static int ds2786_get_current(struct ds278x_info *info, int *current_uA) argument
184 *current_uA = (raw / 16) * (DS2786_CURRENT_UNITS / info->rsns);
220 int current_uA; local
223 err = info->ops->get_battery_current(info, &current_uA);
235 else if (current_uA == 0)
237 else if (current_uA < 0)
H A Dds2760_battery.c43 int current_uA; /* units of µA */ member in struct:ds2760_device_info
160 di->current_uA = di->current_raw * 625;
223 if (di->current_uA < -100L)
225 / (di->current_uA / 100L);
258 if (di->current_uA > 10000) {
261 } else if (di->current_uA < -5000) {
267 } else if (di->current_uA < 10000 &&
427 val->intval = di->current_uA;
H A Dds2780_battery.c223 enum current_types type, int *current_uA)
263 *current_uA = current_raw * (DS2780_CURRENT_UNITS / sense_res);
320 int ret, current_uA, capacity; local
322 ret = ds2780_get_current(dev_info, CURRENT_NOW, &current_uA);
332 else if (current_uA == 0)
334 else if (current_uA < 0)
222 ds2780_get_current(struct ds2780_device_info *dev_info, enum current_types type, int *current_uA) argument
H A Dds2781_battery.c224 enum current_types type, int *current_uA)
264 *current_uA = current_raw * (DS2781_CURRENT_UNITS / sense_res);
321 int ret, current_uA, capacity; local
323 ret = ds2781_get_current(dev_info, CURRENT_NOW, &current_uA);
334 else if (current_uA > 50000)
223 ds2781_get_current(struct ds2781_device_info *dev_info, enum current_types type, int *current_uA) argument
/drivers/regulator/
H A Dcore.c664 int current_uA = 0, output_uV, input_uV, err; local
690 current_uA += sibling->uA_load;
694 output_uV, current_uA);

Completed in 80 milliseconds