Searched refs:curr_ua (Results 1 – 2 of 2) sorted by relevance
1056 static int ab8500_current_to_regval(struct ab8500_charger *di, int curr_ua) in ab8500_current_to_regval() argument1060 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() argument1080 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() local2688 curr_ua = ab8500_charge_input_curr_map[ in ab8500_charger_vbus_drop_end_work()[all …]
359 static int ab8500_fg_is_low_curr(struct ab8500_fg *di, int curr_ua) in ab8500_fg_is_low_curr() argument364 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() argument688 *curr_ua = val; in ab8500_fg_inst_curr_finalize()707 int curr_ua = 0; in ab8500_fg_inst_curr_blocking() local730 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()