Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/power/supply/
Dab8500_charger.c1044 static int ab8500_current_to_regval(struct ab8500_charger *di, int curr_ua) in ab8500_current_to_regval() argument
1048 if (curr_ua < ab8500_charge_output_curr_map[0]) in ab8500_current_to_regval()
1052 if (curr_ua < ab8500_charge_output_curr_map[i]) in ab8500_current_to_regval()
1058 if (curr_ua == ab8500_charge_output_curr_map[i]) in ab8500_current_to_regval()
1064 static int ab8500_vbus_in_curr_to_regval(struct ab8500_charger *di, int curr_ua) in ab8500_vbus_in_curr_to_regval() argument
1068 if (curr_ua < ab8500_charge_input_curr_map[0]) in ab8500_vbus_in_curr_to_regval()
1072 if (curr_ua < ab8500_charge_input_curr_map[i]) in ab8500_vbus_in_curr_to_regval()
1078 if (curr_ua == ab8500_charge_input_curr_map[i]) in ab8500_vbus_in_curr_to_regval()
2684 int ret, curr_ua; in ab8500_charger_vbus_drop_end_work() local
2700 curr_ua = ab8500_charge_input_curr_map[ in ab8500_charger_vbus_drop_end_work()
[all …]
Dab8500_fg.c364 static int ab8500_fg_is_low_curr(struct ab8500_fg *di, int curr_ua) in ab8500_fg_is_low_curr() argument
369 if (curr_ua > -di->bm->fg_params->high_curr_threshold_ua) in ab8500_fg_is_low_curr()
613 int ab8500_fg_inst_curr_finalize(struct ab8500_fg *di, int *curr_ua) in ab8500_fg_inst_curr_finalize() argument
693 *curr_ua = val; in ab8500_fg_inst_curr_finalize()
712 int curr_ua = 0; in ab8500_fg_inst_curr_blocking() local
735 ret = ab8500_fg_inst_curr_finalize(di, &curr_ua); in ab8500_fg_inst_curr_blocking()
741 dev_dbg(di->dev, "%s instant current: %d uA", __func__, curr_ua); in ab8500_fg_inst_curr_blocking()
742 return curr_ua; in ab8500_fg_inst_curr_blocking()