/kernel/linux/linux-5.10/drivers/regulator/ |
D | ad5398.c | 23 int max_uA; member 33 unsigned range_uA = chip->max_uA - chip->min_uA; in ad5398_calc_current() 84 static int ad5398_set_current_limit(struct regulator_dev *rdev, int min_uA, int max_uA) in ad5398_set_current_limit() argument 88 unsigned range_uA = chip->max_uA - chip->min_uA; in ad5398_set_current_limit() 95 if (max_uA > chip->max_uA) in ad5398_set_current_limit() 96 max_uA = chip->max_uA; in ad5398_set_current_limit() 98 if (min_uA > chip->max_uA || max_uA < chip->min_uA) in ad5398_set_current_limit() 103 if (ad5398_calc_current(chip, selector) > max_uA) in ad5398_set_current_limit() 203 int max_uA; member 238 chip->max_uA = df->max_uA; in ad5398_probe()
|
D | virtual.c | 24 int max_uA; member 72 if (data->max_uA in update_current_limit_constraints() 73 && data->min_uA <= data->max_uA) { in update_current_limit_constraints() 75 data->min_uA, data->max_uA); in update_current_limit_constraints() 77 data->min_uA, data->max_uA); in update_current_limit_constraints() 86 if (data->max_uA && !data->enabled) { in update_current_limit_constraints() 96 if (!(data->min_uA && data->max_uA) && data->enabled) { in update_current_limit_constraints() 189 return sprintf(buf, "%d\n", data->max_uA); in show_max_uA() 203 data->max_uA = val; in set_max_uA()
|
D | rtmv20-regulator.c | 108 int max_uA) in rtmv20_lsw_set_current_limit() argument 112 if (min_uA > RTMV20_LSW_MAXUA || max_uA < RTMV20_LSW_MINUA) in rtmv20_lsw_set_current_limit() 115 if (max_uA > RTMV20_LSW_MAXUA) in rtmv20_lsw_set_current_limit() 116 max_uA = RTMV20_LSW_MAXUA; in rtmv20_lsw_set_current_limit() 118 sel = (max_uA - RTMV20_LSW_MINUA) / RTMV20_LSW_STEPUA; in rtmv20_lsw_set_current_limit()
|
D | max77693-regulator.c | 59 unsigned int chg_max_uA = rdev->constraints->max_uA; in max77693_chg_get_current_limit() 84 int min_uA, int max_uA) in max77693_chg_set_current_limit() argument 93 if (chg_min_uA + reg_data->uA_step * sel > max_uA) in max77693_chg_set_current_limit()
|
D | max14577-regulator.c | 58 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, ®_data); in max14577_reg_set_current_limit()
|
D | tps65218-regulator.c | 215 int min_uA, int max_uA) in tps65218_pmic_set_current_limit() argument 221 while (index < num_currents && ls3_currents[index] <= max_uA) in tps65218_pmic_set_current_limit()
|
D | core.c | 496 int *min_uA, int *max_uA) in regulator_check_current_limit() argument 498 BUG_ON(*min_uA > *max_uA); in regulator_check_current_limit() 505 if (*max_uA > rdev->constraints->max_uA) in regulator_check_current_limit() 506 *max_uA = rdev->constraints->max_uA; in regulator_check_current_limit() 510 if (*min_uA > *max_uA) { in regulator_check_current_limit() 512 *min_uA, *max_uA); in regulator_check_current_limit() 747 return sprintf(buf, "%d\n", rdev->constraints->max_uA); in regulator_max_uA_show() 1094 if (constraints->min_uA && constraints->max_uA) { in print_constraints_debug() 1095 if (constraints->min_uA == constraints->max_uA) in print_constraints_debug() 1102 constraints->max_uA / 1000); in print_constraints_debug() [all …]
|
D | gpio-regulator.c | 98 int min_uA, int max_uA) in gpio_regulator_set_current_limit() argument 106 data->states[ptr].value <= max_uA) { in gpio_regulator_set_current_limit()
|
D | helpers.c | 776 int min_uA, int max_uA) in regulator_set_current_limit_regmap() argument 792 curr_table[i] <= max_uA) { in regulator_set_current_limit_regmap() 800 curr_table[i] <= max_uA) { in regulator_set_current_limit_regmap()
|
D | da9052-regulator.c | 111 int max_uA) in da9052_dcdc_set_current_limit() argument 126 (da9052_current_limits[row][i] <= max_uA)) { in da9052_dcdc_set_current_limit()
|
D | of_regulator.c | 62 constraints->max_uA = pval; in of_get_regulation_constraints() 69 if (constraints->min_uA != constraints->max_uA) in of_get_regulation_constraints()
|
D | max8998.c | 375 int min_uA, int max_uA) in max8998_set_current_limit() argument 393 curr_table[i] <= max_uA) { in max8998_set_current_limit() 401 curr_table[i] <= max_uA) { in max8998_set_current_limit()
|
D | tps6524x-regulator.c | 492 int max_uA) in set_current_limit() argument 506 max_uA >= info->ilimsels[i]) in set_current_limit()
|
/kernel/linux/linux-5.10/drivers/leds/ |
D | leds-wm8350.c | 198 if (pdata->max_uA < isink_cur[0]) { in wm8350_led_probe() 200 pdata->max_uA); in wm8350_led_probe() 229 if (isink_cur[i] >= pdata->max_uA) in wm8350_led_probe() 232 if (pdata->max_uA != isink_cur[i]) in wm8350_led_probe() 236 pdata->max_uA); in wm8350_led_probe()
|
/kernel/linux/linux-5.10/drivers/video/backlight/ |
D | wm831x_bl.c | 133 if (wm831x_isinkv_values[i] > pdata->max_uA) in wm831x_backlight_probe() 138 dev_err(&pdev->dev, "Invalid max_uA: %duA\n", pdata->max_uA); in wm831x_backlight_probe() 143 if (pdata->max_uA != wm831x_isinkv_values[max_isel]) in wm831x_backlight_probe() 146 wm831x_isinkv_values[max_isel], pdata->max_uA); in wm831x_backlight_probe()
|
/kernel/linux/linux-5.10/drivers/power/supply/ |
D | pda_power.c | 109 int max_uA = pdata->ac_max_uA; in update_charger() local 124 regulator_set_current_limit(ac_draw, max_uA, max_uA); in update_charger()
|
D | charger-manager.c | 919 if (cable->attached && cable->min_uA != 0 && cable->max_uA != 0) { in charger_extcon_work() 921 cable->min_uA, cable->max_uA); in charger_extcon_work() 930 cable->min_uA, cable->max_uA); in charger_extcon_work() 1401 &cables->max_uA); in of_cm_parse_desc()
|
/kernel/linux/linux-5.10/include/linux/regulator/ |
D | driver.h | 142 int min_uA, int max_uA); 532 int min_uA, int max_uA);
|
D | machine.h | 151 int max_uA; member
|
D | consumer.h | 254 int min_uA, int max_uA); 512 int min_uA, int max_uA) in regulator_set_current_limit() argument
|
/kernel/linux/linux-5.10/include/linux/mfd/wm831x/ |
D | pdata.h | 18 int max_uA; /** Maximum current to allow */ member
|
/kernel/linux/linux-5.10/include/linux/power/ |
D | charger-manager.h | 76 int max_uA; member
|
/kernel/linux/linux-5.10/drivers/scsi/ufs/ |
D | ufshcd-pltfrm.c | 151 if (of_property_read_u32(np, prop_name, &vreg->max_uA)) { in ufshcd_populate_vreg() 153 vreg->max_uA = 0; in ufshcd_populate_vreg()
|
D | ufs.h | 518 int max_uA; member
|
/kernel/linux/linux-5.10/Documentation/power/regulator/ |
D | consumer.rst | 113 int regulator_set_current_limit(regulator, min_uA, max_uA); 115 Where min_uA and max_uA are the minimum and maximum acceptable current limit in
|