Home
last modified time | relevance | path

Searched refs:curr_ua (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/power/supply/
H A Dab8500_charger.c1056 static int ab8500_current_to_regval(struct ab8500_charger *di, int curr_ua) in ab8500_current_to_regval() argument
1060 if (curr_ua < ab8500_charge_output_curr_map[0]) in ab8500_current_to_regval()
1064 if (curr_ua < ab8500_charge_output_curr_map[i]) in ab8500_current_to_regval()
1070 if (curr_ua == ab8500_charge_output_curr_map[i]) in ab8500_current_to_regval()
1076 static int ab8500_vbus_in_curr_to_regval(struct ab8500_charger *di, int curr_ua) in ab8500_vbus_in_curr_to_regval() argument
1080 if (curr_ua < ab8500_charge_input_curr_map[0]) in ab8500_vbus_in_curr_to_regval()
1084 if (curr_ua < ab8500_charge_input_curr_map[i]) in ab8500_vbus_in_curr_to_regval()
1090 if (curr_ua == ab8500_charge_input_curr_map[i]) in ab8500_vbus_in_curr_to_regval()
2672 int ret, curr_ua; in ab8500_charger_vbus_drop_end_work() local
2688 curr_ua = ab8500_charge_input_curr_map[ in ab8500_charger_vbus_drop_end_work()
[all …]
H A Dab8500_fg.c359 static int ab8500_fg_is_low_curr(struct ab8500_fg *di, int curr_ua) in ab8500_fg_is_low_curr() argument
364 if (curr_ua > -di->bm->fg_params->high_curr_threshold_ua) in ab8500_fg_is_low_curr()
608 int ab8500_fg_inst_curr_finalize(struct ab8500_fg *di, int *curr_ua) in ab8500_fg_inst_curr_finalize() argument
688 *curr_ua = val; in ab8500_fg_inst_curr_finalize()
707 int curr_ua = 0; in ab8500_fg_inst_curr_blocking() local
730 ret = ab8500_fg_inst_curr_finalize(di, &curr_ua); in ab8500_fg_inst_curr_blocking()
736 dev_dbg(di->dev, "%s instant current: %d uA", __func__, curr_ua); in ab8500_fg_inst_curr_blocking()
737 return curr_ua; in ab8500_fg_inst_curr_blocking()