Home
last modified time | relevance | path

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

/linux-4.19.296/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()
85 static int ad5398_set_current_limit(struct regulator_dev *rdev, int min_uA, int max_uA) in ad5398_set_current_limit() argument
89 unsigned range_uA = chip->max_uA - chip->min_uA; in ad5398_set_current_limit()
94 if (min_uA < chip->min_uA) in ad5398_set_current_limit()
95 min_uA = chip->min_uA; in ad5398_set_current_limit()
99 if (min_uA > chip->max_uA || max_uA < chip->min_uA) in ad5398_set_current_limit()
102 selector = DIV_ROUND_UP((min_uA - chip->min_uA) * chip->current_level, in ad5398_set_current_limit()
203 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-regulator.c58 unsigned int chg_min_uA = rdev->constraints->min_uA; in max77693_chg_get_current_limit()
84 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 + reg_data->uA_step * sel < min_uA) in max77693_chg_set_current_limit()
Dda9210-regulator.c44 static int da9210_set_current_limit(struct regulator_dev *rdev, int min_uA,
85 static int da9210_set_current_limit(struct regulator_dev *rdev, int min_uA, in da9210_set_current_limit() argument
94 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()
581 int min_uA, int max_uA) in as3722_sd016_set_current_limit() argument
591 ret = as3722_current_to_index(min_uA, max_uA, as3722_sd016_current, in as3722_sd016_set_current_limit()
596 min_uA, max_uA); in as3722_sd016_set_current_limit()
Dlp873x-regulator.c112 int min_uA, int max_uA) in lp873x_buck_set_current_limit() argument
119 if (lp873x_buck_uA[i] >= min_uA && in lp873x_buck_set_current_limit()
Dlp87565-regulator.c106 int min_uA, int max_uA) in lp87565_buck_set_current_limit() argument
113 if (lp87565_buck_uA[i] >= min_uA && in lp87565_buck_set_current_limit()
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()
Dcore.c324 int *min_uA, int *max_uA) in regulator_check_current_limit() argument
326 BUG_ON(*min_uA > *max_uA); in regulator_check_current_limit()
335 if (*min_uA < rdev->constraints->min_uA) in regulator_check_current_limit()
336 *min_uA = rdev->constraints->min_uA; in regulator_check_current_limit()
338 if (*min_uA > *max_uA) { in regulator_check_current_limit()
340 *min_uA, *max_uA); in regulator_check_current_limit()
532 return sprintf(buf, "%d\n", rdev->constraints->min_uA); in regulator_min_uA_show()
889 if (constraints->min_uA && constraints->max_uA) { in print_constraints()
890 if (constraints->min_uA == constraints->max_uA) in print_constraints()
892 constraints->min_uA / 1000); in print_constraints()
[all …]
Dmax14577-regulator.c58 int min_uA, int max_uA) in max14577_reg_set_current_limit() argument
69 ret = maxim_charger_calc_reg_current(limits, min_uA, max_uA, &reg_data); in max14577_reg_set_current_limit()
Dtps65218-regulator.c211 int min_uA, int max_uA) in tps65218_pmic_set_current_limit() argument
222 if (index < 0 || ls3_currents[index] < min_uA) in tps65218_pmic_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()
Dof_regulator.c57 constraints->min_uA = pval; in of_get_regulation_constraints()
66 if (constraints->min_uA != constraints->max_uA) in of_get_regulation_constraints()
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.c186 static int da9055_buck_set_current_limit(struct regulator_dev *rdev, int min_uA, in da9055_buck_set_current_limit() argument
194 if ((min_uA <= da9055_current_limits[i]) && in da9055_buck_set_current_limit()
Dda9063-regulator.c164 int min_uA, int max_uA) in da9063_set_current_limit() argument
172 if (tval >= min_uA && tval <= max_uA) in da9063_set_current_limit()
Dlp872x.c357 int min_uA, int max_uA) in lp8725_buck_set_current_limit() argument
376 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-regulator.c781 int min_uA, int max_uA) in max8997_set_current_limit() argument
790 return max8997_set_voltage_ldobuck(rdev, min_uA, max_uA, &dummy); in max8997_set_current_limit()
/linux-4.19.296/include/linux/regulator/
Dmachine.h152 int min_uA; member
Dconsumer.h256 int min_uA, int max_uA);
482 int min_uA, int max_uA) in regulator_set_current_limit() argument
Ddriver.h163 int min_uA, int max_uA);
/linux-4.19.296/include/linux/power/
Dcharger-manager.h82 int min_uA; member