/linux-4.19.296/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() 85 static int ad5398_set_current_limit(struct regulator_dev *rdev, int min_uA, int max_uA) in ad5398_set_current_limit() argument 89 unsigned range_uA = chip->max_uA - chip->min_uA; in ad5398_set_current_limit() 94 if (min_uA < chip->min_uA) in ad5398_set_current_limit() 95 min_uA = chip->min_uA; in ad5398_set_current_limit() 99 if (min_uA > chip->max_uA || max_uA < chip->min_uA) in ad5398_set_current_limit() 102 selector = DIV_ROUND_UP((min_uA - chip->min_uA) * chip->current_level, in ad5398_set_current_limit() 203 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-regulator.c | 58 unsigned int chg_min_uA = rdev->constraints->min_uA; in max77693_chg_get_current_limit() 84 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 + reg_data->uA_step * sel < min_uA) in max77693_chg_set_current_limit()
|
D | da9210-regulator.c | 44 static int da9210_set_current_limit(struct regulator_dev *rdev, int min_uA, 85 static int da9210_set_current_limit(struct regulator_dev *rdev, int min_uA, in da9210_set_current_limit() argument 94 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() 581 int min_uA, int max_uA) in as3722_sd016_set_current_limit() argument 591 ret = as3722_current_to_index(min_uA, max_uA, as3722_sd016_current, in as3722_sd016_set_current_limit() 596 min_uA, max_uA); in as3722_sd016_set_current_limit()
|
D | lp873x-regulator.c | 112 int min_uA, int max_uA) in lp873x_buck_set_current_limit() argument 119 if (lp873x_buck_uA[i] >= min_uA && in lp873x_buck_set_current_limit()
|
D | lp87565-regulator.c | 106 int min_uA, int max_uA) in lp87565_buck_set_current_limit() argument 113 if (lp87565_buck_uA[i] >= min_uA && in lp87565_buck_set_current_limit()
|
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 | core.c | 324 int *min_uA, int *max_uA) in regulator_check_current_limit() argument 326 BUG_ON(*min_uA > *max_uA); in regulator_check_current_limit() 335 if (*min_uA < rdev->constraints->min_uA) in regulator_check_current_limit() 336 *min_uA = rdev->constraints->min_uA; in regulator_check_current_limit() 338 if (*min_uA > *max_uA) { in regulator_check_current_limit() 340 *min_uA, *max_uA); in regulator_check_current_limit() 532 return sprintf(buf, "%d\n", rdev->constraints->min_uA); in regulator_min_uA_show() 889 if (constraints->min_uA && constraints->max_uA) { in print_constraints() 890 if (constraints->min_uA == constraints->max_uA) in print_constraints() 892 constraints->min_uA / 1000); in print_constraints() [all …]
|
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 | 211 int min_uA, int max_uA) in tps65218_pmic_set_current_limit() argument 222 if (index < 0 || ls3_currents[index] < min_uA) in tps65218_pmic_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 | of_regulator.c | 57 constraints->min_uA = pval; in of_get_regulation_constraints() 66 if (constraints->min_uA != constraints->max_uA) in of_get_regulation_constraints()
|
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 | 186 static int da9055_buck_set_current_limit(struct regulator_dev *rdev, int min_uA, in da9055_buck_set_current_limit() argument 194 if ((min_uA <= da9055_current_limits[i]) && in da9055_buck_set_current_limit()
|
D | da9063-regulator.c | 164 int min_uA, int max_uA) in da9063_set_current_limit() argument 172 if (tval >= min_uA && tval <= max_uA) in da9063_set_current_limit()
|
D | lp872x.c | 357 int min_uA, int max_uA) in lp8725_buck_set_current_limit() argument 376 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-regulator.c | 781 int min_uA, int max_uA) in max8997_set_current_limit() argument 790 return max8997_set_voltage_ldobuck(rdev, min_uA, max_uA, &dummy); in max8997_set_current_limit()
|
/linux-4.19.296/include/linux/regulator/ |
D | machine.h | 152 int min_uA; member
|
D | consumer.h | 256 int min_uA, int max_uA); 482 int min_uA, int max_uA) in regulator_set_current_limit() argument
|
D | driver.h | 163 int min_uA, int max_uA);
|
/linux-4.19.296/include/linux/power/ |
D | charger-manager.h | 82 int min_uA; member
|