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