Home
last modified time | relevance | path

Searched refs:min_uA (Results 1 – 21 of 21) sorted by relevance

/drivers/regulator/
Dad5398.c23 int min_uA; member
34 unsigned range_uA = chip->max_uA - chip->min_uA; in ad5398_calc_current()
36 return chip->min_uA + (selector * range_uA / chip->current_level); in ad5398_calc_current()
83 static int ad5398_set_current_limit(struct regulator_dev *rdev, int min_uA, int max_uA) in ad5398_set_current_limit() argument
87 unsigned range_uA = chip->max_uA - chip->min_uA; in ad5398_set_current_limit()
92 if (min_uA < chip->min_uA) in ad5398_set_current_limit()
93 min_uA = chip->min_uA; in ad5398_set_current_limit()
97 if (min_uA > chip->max_uA || max_uA < chip->min_uA) in ad5398_set_current_limit()
100 selector = DIV_ROUND_UP((min_uA - chip->min_uA) * chip->current_level, in ad5398_set_current_limit()
201 int min_uA; member
[all …]
Dvirtual.c27 int min_uA; member
77 && data->min_uA <= data->max_uA) { in update_current_limit_constraints()
79 data->min_uA, data->max_uA); in update_current_limit_constraints()
81 data->min_uA, data->max_uA); in update_current_limit_constraints()
100 if (!(data->min_uA && data->max_uA) && data->enabled) { in update_current_limit_constraints()
167 return sprintf(buf, "%d\n", data->min_uA); in show_min_uA()
181 data->min_uA = val; in set_min_uA()
Dmax77693.c59 unsigned int chg_min_uA = rdev->constraints->min_uA; in max77693_chg_get_current_limit()
85 int min_uA, int max_uA) in max77693_chg_set_current_limit() argument
87 unsigned int chg_min_uA = rdev->constraints->min_uA; in max77693_chg_set_current_limit()
90 while (chg_min_uA + CHGIN_ILIM_STEP_20mA * sel < min_uA) in max77693_chg_set_current_limit()
Dda9210-regulator.c43 static int da9210_set_current_limit(struct regulator_dev *rdev, int min_uA,
84 static int da9210_set_current_limit(struct regulator_dev *rdev, int min_uA, in da9210_set_current_limit() argument
93 if (min_uA <= da9210_buck_limits[i] && in da9210_set_current_limit()
Das3722-regulator.c321 static int as3722_current_to_index(int min_uA, int max_uA, in as3722_current_to_index() argument
327 if ((min_uA <= curr_table[i]) && (curr_table[i] <= max_uA)) in as3722_current_to_index()
353 int min_uA, int max_uA) in as3722_ldo_set_current_limit() argument
361 ret = as3722_current_to_index(min_uA, max_uA, as3722_ldo_current, in as3722_ldo_set_current_limit()
366 min_uA, max_uA); in as3722_ldo_set_current_limit()
556 int min_uA, int max_uA) in as3722_sd016_set_current_limit() argument
566 ret = as3722_current_to_index(min_uA, max_uA, as3722_sd016_current, in as3722_sd016_set_current_limit()
571 min_uA, max_uA); in as3722_sd016_set_current_limit()
Dcore.c233 int *min_uA, int *max_uA) in regulator_check_current_limit() argument
235 BUG_ON(*min_uA > *max_uA); in regulator_check_current_limit()
248 if (*min_uA < rdev->constraints->min_uA) in regulator_check_current_limit()
249 *min_uA = rdev->constraints->min_uA; in regulator_check_current_limit()
251 if (*min_uA > *max_uA) { in regulator_check_current_limit()
253 *min_uA, *max_uA); in regulator_check_current_limit()
444 return sprintf(buf, "%d\n", rdev->constraints->min_uA); in regulator_min_uA_show()
807 if (constraints->min_uA && constraints->max_uA) { in print_constraints()
808 if (constraints->min_uA == constraints->max_uA) in print_constraints()
810 constraints->min_uA / 1000); in print_constraints()
[all …]
Dof_regulator.c49 constraints->min_uA = pval; in of_get_regulation_constraints()
54 if (constraints->min_uA != constraints->max_uA) in of_get_regulation_constraints()
Dwm831x-isink.c96 int min_uA, int max_uA) in wm831x_isink_set_current() argument
104 if (min_uA <= val && val <= max_uA) { in wm831x_isink_set_current()
Dmax14577.c68 int min_uA, int max_uA) in max14577_reg_set_current_limit() argument
79 ret = maxim_charger_calc_reg_current(limits, min_uA, max_uA, &reg_data); in max14577_reg_set_current_limit()
Dwm8350-regulator.c98 static int get_isink_val(int min_uA, int max_uA, u16 *setting) in get_isink_val() argument
103 if (min_uA <= isink_cur[i] && max_uA >= isink_cur[i]) { in get_isink_val()
111 static int wm8350_isink_set_current(struct regulator_dev *rdev, int min_uA, in wm8350_isink_set_current() argument
119 ret = get_isink_val(min_uA, max_uA, &setting); in wm8350_isink_set_current()
1325 led->isink_init.constraints.min_uA = 0; in wm8350_register_led()
Dgpio-regulator.c104 int min_uA, int max_uA) in gpio_regulator_set_current_limit() argument
111 data->states[ptr].value >= min_uA && in gpio_regulator_set_current_limit()
Dda9052-regulator.c118 static int da9052_dcdc_set_current_limit(struct regulator_dev *rdev, int min_uA, in da9052_dcdc_set_current_limit() argument
133 if ((min_uA <= da9052_current_limits[row][i]) && in da9052_dcdc_set_current_limit()
Dtps6524x-regulator.c492 static int set_current_limit(struct regulator_dev *rdev, int min_uA, in set_current_limit() argument
506 if (min_uA <= info->ilimsels[i] && in set_current_limit()
Dda9055-regulator.c185 static int da9055_buck_set_current_limit(struct regulator_dev *rdev, int min_uA, in da9055_buck_set_current_limit() argument
193 if ((min_uA <= da9055_current_limits[i]) && in da9055_buck_set_current_limit()
Dda9063-regulator.c167 int min_uA, int max_uA) in da9063_set_current_limit() argument
175 if (tval >= min_uA && tval <= max_uA) in da9063_set_current_limit()
Dlp872x.c358 int min_uA, int max_uA) in lp8725_buck_set_current_limit() argument
377 if (lp8725_buck_uA[i] >= min_uA && in lp8725_buck_set_current_limit()
Dwm831x-dcdc.c335 int min_uA, int max_uA) in wm831x_buckv_set_current_limit() argument
343 if ((min_uA <= wm831x_dcdc_ilim[i]) && in wm831x_buckv_set_current_limit()
Dmax8997.c799 int min_uA, int max_uA) in max8997_set_current_limit() argument
808 return max8997_set_voltage_ldobuck(rdev, min_uA, max_uA, &dummy); in max8997_set_current_limit()
/drivers/scsi/ufs/
Dufs.h474 int min_uA; member
Dufshcd-pltfrm.c180 vreg->min_uA = 0; in ufshcd_populate_vreg()
/drivers/power/
Dcharger-manager.c1241 if (cable->attached && cable->min_uA != 0 && cable->max_uA != 0) { in charger_extcon_work()
1243 cable->min_uA, cable->max_uA); in charger_extcon_work()
1252 cable->min_uA, cable->max_uA); in charger_extcon_work()
1702 &cables->min_uA); in of_cm_parse_desc()