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()
4631 struct be_error_recovery *err_rec = &adapter->error_recovery; in be_schedule_err_detection() local
4636 queue_delayed_work(be_err_recovery_workq, &err_rec->err_detection_work, in be_schedule_err_detection()
5263 struct be_error_recovery *err_rec = &adapter->error_recovery; in be_err_is_recoverable() local
5281 if (time_before_eq(jiffies - err_rec->probe_time, initial_idle_time)) { in be_err_is_recoverable()
5288 if (err_rec->last_recovery_time && time_before_eq( in be_err_is_recoverable()
5289 jiffies - err_rec->last_recovery_time, recovery_interval)) { in be_err_is_recoverable()
5296 if (ue_err_code == err_rec->last_err_code) { in be_err_is_recoverable()
5302 err_rec->last_recovery_time = jiffies; in be_err_is_recoverable()
5303 err_rec->last_err_code = ue_err_code; in be_err_is_recoverable()
5309 struct be_error_recovery *err_rec = &adapter->error_recovery; in be_tpe_recover() local
5313 switch (err_rec->recovery_state) { in be_tpe_recover()
5315 err_rec->recovery_state = ERR_RECOVERY_ST_DETECT; in be_tpe_recover()
5316 err_rec->resched_delay = ERR_RECOVERY_UE_DETECT_DURATION; in be_tpe_recover()
5326 err_rec->resched_delay = 0; in be_tpe_recover()
5338 err_rec->recovery_state = ERR_RECOVERY_ST_RESET; in be_tpe_recover()
5339 err_rec->resched_delay = err_rec->ue_to_reset_time - in be_tpe_recover()
5344 err_rec->recovery_state = ERR_RECOVERY_ST_PRE_POLL; in be_tpe_recover()
5345 err_rec->resched_delay = err_rec->ue_to_poll_time - in be_tpe_recover()
5354 err_rec->resched_delay = 0; 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()
5360 err_rec->ue_to_reset_time; in be_tpe_recover()
5364 err_rec->recovery_state = ERR_RECOVERY_ST_REINIT; in be_tpe_recover()
5365 err_rec->resched_delay = 0; in be_tpe_recover()
5371 err_rec->resched_delay = 0; in be_tpe_recover()
5414 struct be_error_recovery *err_rec = in be_err_detection_task() local
5418 container_of(err_rec, struct be_adapter, in be_err_detection_task()
5430 err_rec->recovery_retries = 0; in be_err_detection_task()
5431 err_rec->recovery_state = ERR_RECOVERY_ST_NONE; in be_err_detection_task()
5434 } else if (!lancer_chip(adapter) && err_rec->resched_delay) { in be_err_detection_task()
5437 err_rec->recovery_state > ERR_RECOVERY_ST_DETECT) in be_err_detection_task()
5440 resched_delay = err_rec->resched_delay; in be_err_detection_task()
5448 } else if (lancer_chip(adapter) && err_rec->recovery_retries++ < in be_err_detection_task()