Lines Matching refs:curr_ua
1056 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()
2691 if (di->max_usb_in_curr.calculated_max_ua != curr_ua) { in ab8500_charger_vbus_drop_end_work()
2693 di->max_usb_in_curr.calculated_max_ua = curr_ua; in ab8500_charger_vbus_drop_end_work()