Lines Matching refs:err_rec
3960 struct be_error_recovery *err_rec = &adapter->error_recovery; in be_cancel_err_detection() local
3966 cancel_delayed_work_sync(&err_rec->err_detection_work); in be_cancel_err_detection()
4632 struct be_error_recovery *err_rec = &adapter->error_recovery; in be_schedule_err_detection() local
4637 queue_delayed_work(be_err_recovery_workq, &err_rec->err_detection_work, in be_schedule_err_detection()
5277 struct be_error_recovery *err_rec = &adapter->error_recovery; in be_err_is_recoverable() local
5295 if (time_before_eq(jiffies - err_rec->probe_time, initial_idle_time)) { in be_err_is_recoverable()
5302 if (err_rec->last_recovery_time && time_before_eq( in be_err_is_recoverable()
5303 jiffies - err_rec->last_recovery_time, recovery_interval)) { in be_err_is_recoverable()
5310 if (ue_err_code == err_rec->last_err_code) { in be_err_is_recoverable()
5316 err_rec->last_recovery_time = jiffies; in be_err_is_recoverable()
5317 err_rec->last_err_code = ue_err_code; in be_err_is_recoverable()
5323 struct be_error_recovery *err_rec = &adapter->error_recovery; in be_tpe_recover() local
5327 switch (err_rec->recovery_state) { in be_tpe_recover()
5329 err_rec->recovery_state = ERR_RECOVERY_ST_DETECT; in be_tpe_recover()
5330 err_rec->resched_delay = ERR_RECOVERY_UE_DETECT_DURATION; in be_tpe_recover()
5340 err_rec->resched_delay = 0; in be_tpe_recover()
5352 err_rec->recovery_state = ERR_RECOVERY_ST_RESET; in be_tpe_recover()
5353 err_rec->resched_delay = err_rec->ue_to_reset_time - in be_tpe_recover()
5358 err_rec->recovery_state = ERR_RECOVERY_ST_PRE_POLL; in be_tpe_recover()
5359 err_rec->resched_delay = err_rec->ue_to_poll_time - in be_tpe_recover()
5368 err_rec->resched_delay = 0; in be_tpe_recover()
5372 err_rec->recovery_state = ERR_RECOVERY_ST_PRE_POLL; in be_tpe_recover()
5373 err_rec->resched_delay = err_rec->ue_to_poll_time - in be_tpe_recover()
5374 err_rec->ue_to_reset_time; in be_tpe_recover()
5378 err_rec->recovery_state = ERR_RECOVERY_ST_REINIT; in be_tpe_recover()
5379 err_rec->resched_delay = 0; in be_tpe_recover()
5385 err_rec->resched_delay = 0; in be_tpe_recover()
5428 struct be_error_recovery *err_rec = in be_err_detection_task() local
5432 container_of(err_rec, struct be_adapter, in be_err_detection_task()
5444 err_rec->recovery_retries = 0; in be_err_detection_task()
5445 err_rec->recovery_state = ERR_RECOVERY_ST_NONE; in be_err_detection_task()
5448 } else if (!lancer_chip(adapter) && err_rec->resched_delay) { in be_err_detection_task()
5451 err_rec->recovery_state > ERR_RECOVERY_ST_DETECT) in be_err_detection_task()
5454 resched_delay = err_rec->resched_delay; in be_err_detection_task()
5462 } else if (lancer_chip(adapter) && err_rec->recovery_retries++ < in be_err_detection_task()