Lines Matching defs:severity

239 static bool check_ocp_flag_mismatch(struct regulator_dev *rdev, int severity,
242 if ((severity == REGULATOR_SEVERITY_ERR &&
244 (severity == REGULATOR_SEVERITY_WARN &&
249 if (severity == REGULATOR_SEVERITY_WARN)
258 static bool check_uvd_flag_mismatch(struct regulator_dev *rdev, int severity,
261 if ((severity == REGULATOR_SEVERITY_ERR &&
263 (severity == REGULATOR_SEVERITY_WARN &&
267 if (severity == REGULATOR_SEVERITY_WARN)
276 static bool check_ovd_flag_mismatch(struct regulator_dev *rdev, int severity,
279 if ((severity == REGULATOR_SEVERITY_ERR &&
281 (severity == REGULATOR_SEVERITY_WARN &&
285 if (severity == REGULATOR_SEVERITY_WARN)
294 static bool check_temp_flag_mismatch(struct regulator_dev *rdev, int severity,
297 if ((severity == REGULATOR_SEVERITY_ERR &&
299 (severity == REGULATOR_SEVERITY_WARN &&
303 if (severity == REGULATOR_SEVERITY_WARN)
310 static int bd9576_set_ocp(struct regulator_dev *rdev, int lim_uA, int severity,
329 if (severity == REGULATOR_SEVERITY_PROT) {
363 if (check_ocp_flag_mismatch(rdev, severity, r))
366 bool warn = severity == REGULATOR_SEVERITY_WARN;
384 static int bd9576_set_uvp(struct regulator_dev *rdev, int lim_uV, int severity,
391 if (severity == REGULATOR_SEVERITY_PROT) {
414 if (check_uvd_flag_mismatch(rdev, severity, r))
417 bd9576_fill_uvd_flags(r, severity == REGULATOR_SEVERITY_WARN);
424 static int bd9576_set_ovp(struct regulator_dev *rdev, int lim_uV, int severity,
431 if (severity == REGULATOR_SEVERITY_PROT) {
454 if (check_ovd_flag_mismatch(rdev, severity, r))
457 bd9576_fill_ovd_flags(r, severity == REGULATOR_SEVERITY_WARN);
465 static int bd9576_set_tw(struct regulator_dev *rdev, int lim, int severity,
480 if (severity == REGULATOR_SEVERITY_PROT) {
495 if (check_temp_flag_mismatch(rdev, severity, r))
498 bd9576_fill_temp_flags(r, enable, severity == REGULATOR_SEVERITY_WARN);