Lines Matching refs:ers_res
50 static inline bool ers_result_indicates_abort(pci_ers_result_t ers_res) in ers_result_indicates_abort() argument
52 switch (ers_res) { in ers_result_indicates_abort()
90 pci_ers_result_t ers_res = PCI_ERS_RESULT_DISCONNECT; in zpci_event_notify_error_detected() local
92 ers_res = driver->err_handler->error_detected(pdev, pdev->error_state); in zpci_event_notify_error_detected()
93 if (ers_result_indicates_abort(ers_res)) in zpci_event_notify_error_detected()
95 else if (ers_res == PCI_ERS_RESULT_NEED_RESET) in zpci_event_notify_error_detected()
98 return ers_res; in zpci_event_notify_error_detected()
104 pci_ers_result_t ers_res = PCI_ERS_RESULT_DISCONNECT; in zpci_event_do_error_state_clear() local
117 ers_res = driver->err_handler->mmio_enabled(pdev); in zpci_event_do_error_state_clear()
118 if (ers_result_indicates_abort(ers_res)) { in zpci_event_do_error_state_clear()
121 return ers_res; in zpci_event_do_error_state_clear()
122 } else if (ers_res == PCI_ERS_RESULT_NEED_RESET) { in zpci_event_do_error_state_clear()
124 return ers_res; in zpci_event_do_error_state_clear()
138 return ers_res; in zpci_event_do_error_state_clear()
144 pci_ers_result_t ers_res = PCI_ERS_RESULT_DISCONNECT; in zpci_event_do_reset() local
149 return ers_res; in zpci_event_do_reset()
152 ers_res = driver->err_handler->slot_reset(pdev); in zpci_event_do_reset()
153 if (ers_result_indicates_abort(ers_res)) { in zpci_event_do_reset()
155 return ers_res; in zpci_event_do_reset()
158 return ers_res; in zpci_event_do_reset()
171 pci_ers_result_t ers_res = PCI_ERS_RESULT_DISCONNECT; in zpci_event_attempt_error_recovery() local
181 ers_res = PCI_ERS_RESULT_DISCONNECT; in zpci_event_attempt_error_recovery()
204 ers_res = zpci_event_notify_error_detected(pdev, driver); in zpci_event_attempt_error_recovery()
205 if (ers_result_indicates_abort(ers_res)) in zpci_event_attempt_error_recovery()
208 if (ers_res == PCI_ERS_RESULT_CAN_RECOVER) { in zpci_event_attempt_error_recovery()
209 ers_res = zpci_event_do_error_state_clear(pdev, driver); in zpci_event_attempt_error_recovery()
210 if (ers_result_indicates_abort(ers_res)) in zpci_event_attempt_error_recovery()
214 if (ers_res == PCI_ERS_RESULT_NEED_RESET) in zpci_event_attempt_error_recovery()
215 ers_res = zpci_event_do_reset(pdev, driver); in zpci_event_attempt_error_recovery()
217 if (ers_res != PCI_ERS_RESULT_RECOVERED) { in zpci_event_attempt_error_recovery()
229 return ers_res; in zpci_event_attempt_error_recovery()
262 pci_ers_result_t ers_res; in __zpci_event_error() local
292 ers_res = zpci_event_attempt_error_recovery(pdev); in __zpci_event_error()
293 if (ers_res != PCI_ERS_RESULT_RECOVERED) in __zpci_event_error()