/openbmc/linux/drivers/regulator/ |
H A 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()
|
H A D | virtual.c | 25 int max_uA; member 73 if (data->max_uA in update_current_limit_constraints() 74 && data->min_uA <= data->max_uA) { in update_current_limit_constraints() 76 data->min_uA, data->max_uA); in update_current_limit_constraints() 78 data->min_uA, data->max_uA); in update_current_limit_constraints() 87 if (data->max_uA && !data->enabled) { in update_current_limit_constraints() 97 if (!(data->min_uA && data->max_uA) && data->enabled) { in update_current_limit_constraints() 190 return sprintf(buf, "%d\n", data->max_uA); in show_max_uA() 204 data->max_uA = val; in set_max_uA()
|
H A 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()
|
H A 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()
|
H A D | da9063-regulator.c | 453 int min_uA, int max_uA, in da9063_buck_set_limit_set_overdrive() argument 477 ret = regulator_set_current_limit_regmap(rdev, min_uA / 2, max_uA / 2); in da9063_buck_set_limit_set_overdrive() 492 int min_uA, int max_uA, in da9063_buck_set_limit_clear_overdrive() argument 506 ret = regulator_set_current_limit_regmap(rdev, min_uA, max_uA); in da9063_buck_set_limit_clear_overdrive() 523 int min_uA, int max_uA) in da9063_buck_set_current_limit() argument 533 if (max_uA > rdev->desc->curr_table[n_currents - 1]) in da9063_buck_set_current_limit() 535 max_uA, in da9063_buck_set_current_limit() 539 max_uA, in da9063_buck_set_current_limit() 542 return regulator_set_current_limit_regmap(rdev, min_uA, max_uA); in da9063_buck_set_current_limit()
|
H A D | max77857-regulator.c | 221 static int max77859_set_current_limit(struct regulator_dev *rdev, int min_uA, int max_uA) in max77859_set_current_limit() argument 225 if (max_uA < MAX77859_CURRENT_MIN) in max77859_set_current_limit() 228 selector = 0x12 + (max_uA - MAX77859_CURRENT_MIN) / MAX77859_CURRENT_STEP; in max77859_set_current_limit()
|
H A 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()
|
H A D | rt6190-regulator.c | 150 int max_uA) in rt6190_out_set_current_limit() argument 156 if (min_uA < RT6190_OUT_MIN_UA || max_uA > RT6190_OUT_MAX_UA) in rt6190_out_set_current_limit() 162 if (clim > max_uA) in rt6190_out_set_current_limit()
|
H A D | tps65218-regulator.c | 207 int min_uA, int max_uA) in tps65218_pmic_set_current_limit() argument 213 while (index < num_currents && ls3_currents[index] <= max_uA) in tps65218_pmic_set_current_limit()
|
H A D | core.c | 553 int *min_uA, int *max_uA) in regulator_check_current_limit() argument 555 BUG_ON(*min_uA > *max_uA); in regulator_check_current_limit() 562 if (*max_uA > rdev->constraints->max_uA) in regulator_check_current_limit() 563 *max_uA = rdev->constraints->max_uA; in regulator_check_current_limit() 567 if (*min_uA > *max_uA) { in regulator_check_current_limit() 569 *min_uA, *max_uA); in regulator_check_current_limit() 1186 if (constraints->min_uA == constraints->max_uA) in print_constraints_debug() 1193 constraints->max_uA / 1000); in print_constraints_debug() 1397 constraints->max_uA); in machine_constraints_current() 4525 int min_uA, int max_uA) in regulator_set_current_limit() argument [all …]
|
H A 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()
|
H A 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()
|
/openbmc/linux/drivers/leds/ |
H A 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()
|
/openbmc/linux/drivers/video/backlight/ |
H A 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()
|
/openbmc/u-boot/drivers/power/regulator/ |
H A D | regulator-uclass.c | 112 if (uc_pdata->max_uA != -ENODATA && uA > uc_pdata->max_uA) in regulator_set_current() 375 uc_pdata->max_uA = dev_read_u32_default(dev, "regulator-max-microamp", in regulator_pre_probe() 390 (uc_pdata->max_uA != -ENODATA) && in regulator_pre_probe() 391 (uc_pdata->min_uA == uc_pdata->max_uA)) in regulator_pre_probe()
|
H A D | fixed.c | 84 if (uc_pdata->min_uA != uc_pdata->max_uA) { in fixed_regulator_get_current()
|
/openbmc/linux/drivers/power/supply/ |
H A D | smb347-charger.c | 1352 int max_uA) in smb347_usb_vbus_set_new_current_limit() argument 1359 if (max_uA >= 750000) in smb347_usb_vbus_set_new_current_limit() 1370 int min_uA, int max_uA) in smb347_usb_vbus_set_current_limit() argument 1379 ret = smb347_usb_vbus_set_new_current_limit(smb, max_uA); in smb347_usb_vbus_set_current_limit() 1388 int ret, max_uA; in smb347_usb_vbus_regulator_enable() local 1420 max_uA = ret; in smb347_usb_vbus_regulator_enable() 1436 ret = smb347_usb_vbus_set_new_current_limit(smb, max_uA); in smb347_usb_vbus_regulator_enable()
|
/openbmc/linux/include/linux/mfd/wm831x/ |
H A D | pdata.h | 18 int max_uA; /** Maximum current to allow */ member
|
/openbmc/linux/include/linux/power/ |
H A D | charger-manager.h | 76 int max_uA; member
|
/openbmc/linux/include/linux/regulator/ |
H A D | machine.h | 169 int max_uA; member
|
H A D | driver.h | 174 int min_uA, int max_uA); 762 int min_uA, int max_uA);
|
H A D | consumer.h | 280 int min_uA, int max_uA); 564 int min_uA, int max_uA) in regulator_set_current_limit() argument
|
/openbmc/u-boot/include/power/ |
H A D | regulator.h | 172 int max_uA; member
|
/openbmc/linux/drivers/ufs/host/ |
H A 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()
|
/openbmc/u-boot/cmd/ |
H A D | regulator.c | 167 constraint(" - max uA:", uc_pdata->max_uA, NULL); in do_info() 331 if (current < uc_pdata->min_uA || current > uc_pdata->max_uA) { in do_current()
|