/drivers/regulator/ |
D | ad5398.c | 24 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() 92 if (min_uA > chip->max_uA || min_uA < chip->min_uA) in ad5398_set_current_limit() 94 if (max_uA > chip->max_uA || max_uA < chip->min_uA) in ad5398_set_current_limit() 99 if (ad5398_calc_current(chip, selector) > max_uA) in ad5398_set_current_limit() 199 int max_uA; member 230 chip->max_uA = df->max_uA; in ad5398_probe()
|
D | of_regulator.c | 22 const __be32 *min_uA, *max_uA; in of_get_regulation_constraints() local 47 max_uA = of_get_property(np, "regulator-max-microamp", NULL); in of_get_regulation_constraints() 48 if (max_uA) in of_get_regulation_constraints() 49 constraints->max_uA = be32_to_cpu(*max_uA); in of_get_regulation_constraints() 52 if (constraints->min_uA != constraints->max_uA) in of_get_regulation_constraints()
|
D | virtual.c | 28 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()
|
D | core.c | 217 int *min_uA, int *max_uA) in regulator_check_current_limit() argument 219 BUG_ON(*min_uA > *max_uA); in regulator_check_current_limit() 230 if (*max_uA > rdev->constraints->max_uA) in regulator_check_current_limit() 231 *max_uA = rdev->constraints->max_uA; in regulator_check_current_limit() 235 if (*min_uA > *max_uA) { in regulator_check_current_limit() 237 *min_uA, *max_uA); in regulator_check_current_limit() 445 return sprintf(buf, "%d\n", rdev->constraints->max_uA); in regulator_max_uA_show() 777 if (constraints->min_uA && constraints->max_uA) { in print_constraints() 778 if (constraints->min_uA == constraints->max_uA) in print_constraints() 784 constraints->max_uA / 1000); in print_constraints() [all …]
|
D | wm831x-isink.c | 96 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()
|
D | wm8350-regulator.c | 98 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() 139 int max_uA) in wm8350_isink_set_current() argument 146 ret = get_isink_val(min_uA, max_uA, &setting); in wm8350_isink_set_current() 1552 led->isink_init.constraints.max_uA = pdata->max_uA; in wm8350_register_led()
|
D | gpio-regulator.c | 147 int min_uA, int max_uA) in gpio_regulator_set_current_limit() argument 149 return gpio_regulator_set_value(dev, min_uA, max_uA); in gpio_regulator_set_current_limit()
|
D | da9052-regulator.c | 137 int max_uA) in da9052_dcdc_set_current_limit() argument 151 max_uA < da9052_current_limits[row][DA9052_MIN_UA]) in da9052_dcdc_set_current_limit()
|
D | tps6524x-regulator.c | 509 int max_uA) in set_current_limit() argument 523 max_uA >= info->ilimsels[i]) in set_current_limit()
|
D | wm831x-dcdc.c | 375 int min_uA, int max_uA) in wm831x_buckv_set_current_limit() argument 384 (wm831x_dcdc_ilim[i] <= max_uA)) in wm831x_buckv_set_current_limit()
|
/drivers/leds/ |
D | leds-wm8350.c | 211 if (pdata->max_uA < isink_cur[0]) { in wm8350_led_probe() 213 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/ |
D | wm831x_bl.c | 148 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/ |
D | pda_power.c | 119 int max_uA = pdata->ac_max_uA; in update_charger() local 134 regulator_set_current_limit(ac_draw, max_uA, max_uA); in update_charger()
|