Lines Matching refs:fw_health

105 	struct bnxt_fw_health *h = bp->fw_health;  in bnxt_fw_diagnose()
229 if (bp->fw_health->severity == SEVERITY_FATAL) in bnxt_fw_recover()
263 struct bnxt_fw_health *fw_health = bp->fw_health; in bnxt_dl_fw_reporters_create() local
265 if (fw_health && !fw_health->fw_reporter) in bnxt_dl_fw_reporters_create()
266 fw_health->fw_reporter = __bnxt_dl_reporter_create(bp, &bnxt_dl_fw_reporter_ops); in bnxt_dl_fw_reporters_create()
271 struct bnxt_fw_health *fw_health = bp->fw_health; in bnxt_dl_fw_reporters_destroy() local
273 if (fw_health && fw_health->fw_reporter) { in bnxt_dl_fw_reporters_destroy()
274 devlink_health_reporter_destroy(fw_health->fw_reporter); in bnxt_dl_fw_reporters_destroy()
275 fw_health->fw_reporter = NULL; in bnxt_dl_fw_reporters_destroy()
281 struct bnxt_fw_health *fw_health = bp->fw_health; in bnxt_devlink_health_fw_report() local
284 if (!fw_health) in bnxt_devlink_health_fw_report()
287 if (!fw_health->fw_reporter) { in bnxt_devlink_health_fw_report()
292 mutex_lock(&fw_health->lock); in bnxt_devlink_health_fw_report()
293 fw_health->severity = SEVERITY_RECOVERABLE; in bnxt_devlink_health_fw_report()
294 fw_health->remedy = REMEDY_DEVLINK_RECOVER; in bnxt_devlink_health_fw_report()
295 mutex_unlock(&fw_health->lock); in bnxt_devlink_health_fw_report()
296 rc = devlink_health_report(fw_health->fw_reporter, "FW error reported", in bnxt_devlink_health_fw_report()
297 fw_health); in bnxt_devlink_health_fw_report()
304 struct bnxt_fw_health *fw_health = bp->fw_health; in bnxt_dl_health_fw_status_update() local
307 mutex_lock(&fw_health->lock); in bnxt_dl_health_fw_status_update()
309 fw_health->severity = SEVERITY_NORMAL; in bnxt_dl_health_fw_status_update()
312 fw_health->severity = SEVERITY_FATAL; in bnxt_dl_health_fw_status_update()
313 fw_health->remedy = REMEDY_POWER_CYCLE_DEVICE; in bnxt_dl_health_fw_status_update()
316 mutex_unlock(&fw_health->lock); in bnxt_dl_health_fw_status_update()
317 devlink_health_reporter_state_update(fw_health->fw_reporter, state); in bnxt_dl_health_fw_status_update()
324 devlink_health_reporter_recovery_done(bp->fw_health->fw_reporter); in bnxt_dl_health_fw_recovery_done()
571 timeout = start + bp->fw_health->normal_func_wait_dsecs * HZ / 10; in bnxt_dl_reload_up()