Home
last modified time | relevance | path

Searched refs:max_uA (Results 1 – 25 of 25) sorted by relevance

/drivers/regulator/
Dad5398.c24 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()
Dvirtual.c28 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()
Dda9210-regulator.c44 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()
Dmax77693.c60 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()
Das3722-regulator.c321 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()
Dcore.c233 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 …]
Dof_regulator.c51 constraints->max_uA = pval; in of_get_regulation_constraints()
54 if (constraints->min_uA != constraints->max_uA) in of_get_regulation_constraints()
Dwm831x-isink.c96 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()
Dwm8350-regulator.c98 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()
Dmax14577.c68 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, &reg_data); in max14577_reg_set_current_limit()
Dgpio-regulator.c104 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()
Dda9052-regulator.c119 int max_uA) in da9052_dcdc_set_current_limit() argument
134 (da9052_current_limits[row][i] <= max_uA)) { in da9052_dcdc_set_current_limit()
Dtps6524x-regulator.c493 int max_uA) in set_current_limit() argument
507 max_uA >= info->ilimsels[i]) in set_current_limit()
Dda9055-regulator.c186 int max_uA) in da9055_buck_set_current_limit() argument
194 (da9055_current_limits[i] <= max_uA)) in da9055_buck_set_current_limit()
Dda9063-regulator.c167 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()
Dlp872x.c358 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()
Dwm831x-dcdc.c335 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()
Dmax8997.c799 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/
Dleds-wm8350.c213 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/
Dwm831x_bl.c147 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/
Dpda_power.c115 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()
Dcharger-manager.c1241 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/
Dufs.h475 int max_uA; member
Dufshcd-pltfrm.c173 ret = of_property_read_u32(np, prop_name, &vreg->max_uA); in ufshcd_populate_vreg()
Dufshcd.c4037 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()