Lines Matching refs:min_uA
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()
813 constraints->min_uA / 1000, in print_constraints()
817 if (!constraints->min_uA || in print_constraints()
818 constraints->min_uA != constraints->max_uA) { in print_constraints()
949 if (!constraints->min_uA && !constraints->max_uA) in machine_constraints_current()
952 if (constraints->min_uA > constraints->max_uA) { in machine_constraints_current()
963 ret = ops->set_current_limit(rdev, constraints->min_uA, in machine_constraints_current()
2859 int min_uA, int max_uA) in regulator_set_current_limit() argument
2873 ret = regulator_check_current_limit(rdev, &min_uA, &max_uA); in regulator_set_current_limit()
2877 ret = rdev->desc->ops->set_current_limit(rdev, min_uA, max_uA); in regulator_set_current_limit()