/drivers/regulator/ |
D | ad5398.c | 23 int min_uA; member 34 unsigned range_uA = chip->max_uA - chip->min_uA; in ad5398_calc_current() 36 return chip->min_uA + (selector * range_uA / chip->current_level); 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() 92 if (min_uA < chip->min_uA) in ad5398_set_current_limit() 93 min_uA = chip->min_uA; in ad5398_set_current_limit() 97 if (min_uA > chip->max_uA || max_uA < chip->min_uA) in ad5398_set_current_limit() 100 selector = DIV_ROUND_UP((min_uA - chip->min_uA) * chip->current_level, in ad5398_set_current_limit() 201 int min_uA; member [all …]
|
D | virtual.c | 27 int min_uA; member 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() 100 if (!(data->min_uA && data->max_uA) && data->enabled) { in update_current_limit_constraints() 167 return sprintf(buf, "%d\n", data->min_uA); in show_min_uA() 181 data->min_uA = val; in set_min_uA()
|
D | max77693.c | 59 unsigned int chg_min_uA = rdev->constraints->min_uA; in max77693_chg_get_current_limit() 85 int min_uA, int max_uA) in max77693_chg_set_current_limit() argument 87 unsigned int chg_min_uA = rdev->constraints->min_uA; in max77693_chg_set_current_limit() 90 while (chg_min_uA + CHGIN_ILIM_STEP_20mA * sel < min_uA) in max77693_chg_set_current_limit()
|
D | da9210-regulator.c | 43 static int da9210_set_current_limit(struct regulator_dev *rdev, int min_uA, 84 static int da9210_set_current_limit(struct regulator_dev *rdev, int min_uA, in da9210_set_current_limit() argument 93 if (min_uA <= da9210_buck_limits[i] && in da9210_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() 248 if (*min_uA < rdev->constraints->min_uA) in regulator_check_current_limit() 249 *min_uA = rdev->constraints->min_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() 444 return sprintf(buf, "%d\n", rdev->constraints->min_uA); in regulator_min_uA_show() 807 if (constraints->min_uA && constraints->max_uA) { in print_constraints() 808 if (constraints->min_uA == constraints->max_uA) in print_constraints() 810 constraints->min_uA / 1000); in print_constraints() [all …]
|
D | of_regulator.c | 49 constraints->min_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 | 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 | 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() 111 static int wm8350_isink_set_current(struct regulator_dev *rdev, int min_uA, in wm8350_isink_set_current() argument 119 ret = get_isink_val(min_uA, max_uA, &setting); in wm8350_isink_set_current() 1325 led->isink_init.constraints.min_uA = 0; in wm8350_register_led()
|
D | gpio-regulator.c | 104 int min_uA, int max_uA) in gpio_regulator_set_current_limit() argument 111 data->states[ptr].value >= min_uA && in gpio_regulator_set_current_limit()
|
D | da9052-regulator.c | 118 static int da9052_dcdc_set_current_limit(struct regulator_dev *rdev, int min_uA, in da9052_dcdc_set_current_limit() argument 133 if ((min_uA <= da9052_current_limits[row][i]) && in da9052_dcdc_set_current_limit()
|
D | tps6524x-regulator.c | 492 static int set_current_limit(struct regulator_dev *rdev, int min_uA, in set_current_limit() argument 506 if (min_uA <= info->ilimsels[i] && in set_current_limit()
|
D | da9055-regulator.c | 185 static int da9055_buck_set_current_limit(struct regulator_dev *rdev, int min_uA, in da9055_buck_set_current_limit() argument 193 if ((min_uA <= da9055_current_limits[i]) && 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 377 if (lp8725_buck_uA[i] >= min_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 343 if ((min_uA <= wm831x_dcdc_ilim[i]) && 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/scsi/ufs/ |
D | ufs.h | 474 int min_uA; member
|
D | ufshcd-pltfrm.c | 180 vreg->min_uA = 0; in ufshcd_populate_vreg()
|
/drivers/power/ |
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() 1702 &cables->min_uA); in of_cm_parse_desc()
|