Home
last modified time | relevance | path

Searched refs:n_currents (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/regulator/
H A Dhelpers.c820 unsigned int n_currents = rdev->desc->n_current_limits; in regulator_set_current_limit_regmap() local
823 if (n_currents == 0) in regulator_set_current_limit_regmap()
828 bool ascend = curr_table[n_currents - 1] > curr_table[0]; in regulator_set_current_limit_regmap()
832 for (i = n_currents - 1; i >= 0; i--) { in regulator_set_current_limit_regmap()
840 for (i = 0; i < n_currents; i++) { in regulator_set_current_limit_regmap()
H A Dmax8998.c379 unsigned int n_currents = rdev->desc->n_current_limits; in max8998_set_current_limit() local
382 if (n_currents == 0) in max8998_set_current_limit()
387 bool ascend = curr_table[n_currents - 1] > curr_table[0]; in max8998_set_current_limit()
391 for (i = n_currents - 1; i >= 0; i--) { in max8998_set_current_limit()
399 for (i = 0; i < n_currents; i++) { in max8998_set_current_limit()
H A Dda9063-regulator.c525 unsigned int overdrive_mask, n_currents; in da9063_buck_set_current_limit() local
529 n_currents = rdev->desc->n_current_limits; in da9063_buck_set_current_limit()
530 if (n_currents == 0) in da9063_buck_set_current_limit()
533 if (max_uA > rdev->desc->curr_table[n_currents - 1]) in da9063_buck_set_current_limit()