Home
last modified time | relevance | path

Searched refs:max_uA (Results 1 – 17 of 17) sorted by relevance

/drivers/regulator/
Dad5398.c24 int max_uA; member
34 unsigned range_uA = chip->max_uA - chip->min_uA; 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()
94 if (max_uA > chip->max_uA) in ad5398_set_current_limit()
95 max_uA = chip->max_uA; in ad5398_set_current_limit()
97 if (min_uA > chip->max_uA || max_uA < chip->min_uA) in ad5398_set_current_limit()
102 if (ad5398_calc_current(chip, selector) > max_uA) in ad5398_set_current_limit()
202 int max_uA; member
238 chip->max_uA = df->max_uA; in ad5398_probe()
Dof_regulator.c23 const __be32 *min_uA, *max_uA, *ramp_delay; in of_get_regulation_constraints() local
48 max_uA = of_get_property(np, "regulator-max-microamp", NULL); in of_get_regulation_constraints()
49 if (max_uA) in of_get_regulation_constraints()
50 constraints->max_uA = be32_to_cpu(*max_uA); in of_get_regulation_constraints()
53 if (constraints->min_uA != constraints->max_uA) in of_get_regulation_constraints()
Dvirtual.c28 int max_uA; member
76 if (data->max_uA in update_current_limit_constraints()
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()
90 if (data->max_uA && !data->enabled) { in update_current_limit_constraints()
100 if (!(data->min_uA && data->max_uA) && data->enabled) { in update_current_limit_constraints()
193 return sprintf(buf, "%d\n", data->max_uA); in show_max_uA()
207 data->max_uA = val; in set_max_uA()
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.c227 int *min_uA, int *max_uA) in regulator_check_current_limit() argument
229 BUG_ON(*min_uA > *max_uA); in regulator_check_current_limit()
240 if (*max_uA > rdev->constraints->max_uA) in regulator_check_current_limit()
241 *max_uA = rdev->constraints->max_uA; in regulator_check_current_limit()
245 if (*min_uA > *max_uA) { in regulator_check_current_limit()
247 *min_uA, *max_uA); in regulator_check_current_limit()
449 return sprintf(buf, "%d\n", rdev->constraints->max_uA); in regulator_max_uA_show()
797 if (constraints->min_uA && constraints->max_uA) { in print_constraints()
798 if (constraints->min_uA == constraints->max_uA) in print_constraints()
804 constraints->max_uA / 1000); in print_constraints()
[all …]
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()
112 int max_uA) in wm8350_isink_set_current() argument
119 ret = get_isink_val(min_uA, max_uA, &setting); in wm8350_isink_set_current()
1351 led->isink_init.constraints.max_uA = pdata->max_uA; in wm8350_register_led()
Dda9052-regulator.c118 int max_uA) in da9052_dcdc_set_current_limit() argument
133 (da9052_current_limits[row][i] <= max_uA)) { in da9052_dcdc_set_current_limit()
Dgpio-regulator.c104 int min_uA, int max_uA) in gpio_regulator_set_current_limit() argument
112 data->states[ptr].value <= max_uA) { in gpio_regulator_set_current_limit()
Dtps6524x-regulator.c493 int max_uA) in set_current_limit() argument
507 max_uA >= info->ilimsels[i]) in set_current_limit()
Dda9055-regulator.c184 int max_uA) in da9055_buck_set_current_limit() argument
192 (da9055_current_limits[i] <= max_uA)) in da9055_buck_set_current_limit()
Dlp872x.c355 int min_uA, int max_uA) in lp8725_buck_set_current_limit() argument
375 lp8725_buck_uA[i] <= max_uA) in lp8725_buck_set_current_limit()
Dwm831x-dcdc.c335 int min_uA, int max_uA) in wm831x_buckv_set_current_limit() argument
344 (wm831x_dcdc_ilim[i] <= max_uA)) 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/leds/
Dleds-wm8350.c214 if (pdata->max_uA < isink_cur[0]) { in wm8350_led_probe()
216 pdata->max_uA); in wm8350_led_probe()
245 if (isink_cur[i] >= pdata->max_uA) in wm8350_led_probe()
248 if (pdata->max_uA != isink_cur[i]) in wm8350_led_probe()
252 pdata->max_uA); in wm8350_led_probe()
/drivers/video/backlight/
Dwm831x_bl.c148 if (wm831x_isinkv_values[i] > pdata->max_uA) in wm831x_backlight_probe()
153 dev_err(&pdev->dev, "Invalid max_uA: %duA\n", pdata->max_uA); in wm831x_backlight_probe()
158 if (pdata->max_uA != wm831x_isinkv_values[max_isel]) in wm831x_backlight_probe()
161 wm831x_isinkv_values[max_isel], pdata->max_uA); in wm831x_backlight_probe()
/drivers/power/
Dpda_power.c115 int max_uA = pdata->ac_max_uA; in update_charger() local
130 regulator_set_current_limit(ac_draw, max_uA, max_uA); in update_charger()
Dcharger-manager.c1136 if (cable->attached && cable->min_uA != 0 && cable->max_uA != 0) { in charger_extcon_work()
1138 cable->min_uA, cable->max_uA); in charger_extcon_work()
1147 cable->min_uA, cable->max_uA); in charger_extcon_work()