Lines Matching refs:curr_ua
1044 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()
2661 int ret, curr_ua; in ab8500_charger_vbus_drop_end_work() local
2677 curr_ua = ab8500_charge_input_curr_map[ in ab8500_charger_vbus_drop_end_work()
2680 if (di->max_usb_in_curr.calculated_max_ua != curr_ua) { in ab8500_charger_vbus_drop_end_work()
2682 di->max_usb_in_curr.calculated_max_ua = curr_ua; in ab8500_charger_vbus_drop_end_work()