/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() 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()
|
D | of_regulator.c | 23 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()
|
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 | 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 | core.c | 227 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 …]
|
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() 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()
|
D | da9052-regulator.c | 118 int max_uA) in da9052_dcdc_set_current_limit() argument 133 (da9052_current_limits[row][i] <= max_uA)) { in da9052_dcdc_set_current_limit()
|
D | gpio-regulator.c | 104 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()
|
D | tps6524x-regulator.c | 493 int max_uA) in set_current_limit() argument 507 max_uA >= info->ilimsels[i]) in set_current_limit()
|
D | da9055-regulator.c | 184 int max_uA) in da9055_buck_set_current_limit() argument 192 (da9055_current_limits[i] <= max_uA)) in da9055_buck_set_current_limit()
|
D | lp872x.c | 355 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()
|
D | wm831x-dcdc.c | 335 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()
|
D | max8997.c | 799 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/ |
D | leds-wm8350.c | 214 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/ |
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 | 115 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()
|
D | charger-manager.c | 1136 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()
|