/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 237 chip->max_uA = df->max_uA; in ad5398_probe()
|
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 | da9210-regulator.c | 44 int max_uA); 85 int max_uA) in da9210_set_current_limit() argument 94 max_uA >= da9210_buck_limits[i]) { in da9210_set_current_limit()
|
D | max77693.c | 60 unsigned int chg_max_uA = rdev->constraints->max_uA; in max77693_chg_get_current_limit() 85 int min_uA, int max_uA) in max77693_chg_set_current_limit() argument 93 if (chg_min_uA + CHGIN_ILIM_STEP_20mA * sel > max_uA) in max77693_chg_set_current_limit()
|
D | as3722-regulator.c | 321 static int as3722_current_to_index(int min_uA, int max_uA, in as3722_current_to_index() argument 327 if ((min_uA <= curr_table[i]) && (curr_table[i] <= max_uA)) in as3722_current_to_index() 353 int min_uA, int max_uA) in as3722_ldo_set_current_limit() argument 361 ret = as3722_current_to_index(min_uA, max_uA, as3722_ldo_current, in as3722_ldo_set_current_limit() 366 min_uA, max_uA); in as3722_ldo_set_current_limit() 556 int min_uA, int max_uA) in as3722_sd016_set_current_limit() argument 566 ret = as3722_current_to_index(min_uA, max_uA, as3722_sd016_current, in as3722_sd016_set_current_limit() 571 min_uA, max_uA); in as3722_sd016_set_current_limit()
|
D | core.c | 233 int *min_uA, int *max_uA) in regulator_check_current_limit() argument 235 BUG_ON(*min_uA > *max_uA); in regulator_check_current_limit() 246 if (*max_uA > rdev->constraints->max_uA) in regulator_check_current_limit() 247 *max_uA = rdev->constraints->max_uA; in regulator_check_current_limit() 251 if (*min_uA > *max_uA) { in regulator_check_current_limit() 253 *min_uA, *max_uA); in regulator_check_current_limit() 456 return sprintf(buf, "%d\n", rdev->constraints->max_uA); in regulator_max_uA_show() 807 if (constraints->min_uA && constraints->max_uA) { in print_constraints() 808 if (constraints->min_uA == constraints->max_uA) in print_constraints() 814 constraints->max_uA / 1000); in print_constraints() [all …]
|
D | of_regulator.c | 51 constraints->max_uA = pval; in of_get_regulation_constraints() 54 if (constraints->min_uA != constraints->max_uA) in of_get_regulation_constraints()
|
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() 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() 1326 led->isink_init.constraints.max_uA = pdata->max_uA; in wm8350_register_led()
|
D | max14577.c | 68 int min_uA, int max_uA) in max14577_reg_set_current_limit() argument 79 ret = maxim_charger_calc_reg_current(limits, min_uA, max_uA, ®_data); in max14577_reg_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 | da9052-regulator.c | 119 int max_uA) in da9052_dcdc_set_current_limit() argument 134 (da9052_current_limits[row][i] <= max_uA)) { in da9052_dcdc_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 | 186 int max_uA) in da9055_buck_set_current_limit() argument 194 (da9055_current_limits[i] <= max_uA)) in da9055_buck_set_current_limit()
|
D | da9063-regulator.c | 167 int min_uA, int max_uA) in da9063_set_current_limit() argument 175 if (tval >= min_uA && tval <= max_uA) in da9063_set_current_limit()
|
D | lp872x.c | 358 int min_uA, int max_uA) in lp8725_buck_set_current_limit() argument 378 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 | 213 if (pdata->max_uA < isink_cur[0]) { in wm8350_led_probe() 215 pdata->max_uA); in wm8350_led_probe() 244 if (isink_cur[i] >= pdata->max_uA) in wm8350_led_probe() 247 if (pdata->max_uA != isink_cur[i]) in wm8350_led_probe() 251 pdata->max_uA); in wm8350_led_probe()
|
/drivers/video/backlight/ |
D | wm831x_bl.c | 147 if (wm831x_isinkv_values[i] > pdata->max_uA) in wm831x_backlight_probe() 152 dev_err(&pdev->dev, "Invalid max_uA: %duA\n", pdata->max_uA); in wm831x_backlight_probe() 157 if (pdata->max_uA != wm831x_isinkv_values[max_isel]) in wm831x_backlight_probe() 160 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 | 1241 if (cable->attached && cable->min_uA != 0 && cable->max_uA != 0) { in charger_extcon_work() 1243 cable->min_uA, cable->max_uA); in charger_extcon_work() 1252 cable->min_uA, cable->max_uA); in charger_extcon_work() 1705 &cables->max_uA); in of_cm_parse_desc()
|
/drivers/scsi/ufs/ |
D | ufs.h | 475 int max_uA; member
|
D | ufshcd-pltfrm.c | 173 ret = of_property_read_u32(np, prop_name, &vreg->max_uA); in ufshcd_populate_vreg()
|
D | ufshcd.c | 4037 hba->vreg_info.vcc->max_uA, in ufshcd_find_max_sup_active_icc_level() 4043 hba->vreg_info.vccq->max_uA, in ufshcd_find_max_sup_active_icc_level() 4049 hba->vreg_info.vccq2->max_uA, in ufshcd_find_max_sup_active_icc_level() 4311 return ufshcd_config_vreg_load(hba->dev, vreg, vreg->max_uA); in ufshcd_config_vreg_hpm() 4336 uA_load = on ? vreg->max_uA : 0; in ufshcd_config_vreg()
|