Lines Matching refs:driver
67 static bool is_driver_supported(struct pci_driver *driver) in is_driver_supported() argument
69 if (!driver || !driver->err_handler) in is_driver_supported()
71 if (!driver->err_handler->error_detected) in is_driver_supported()
73 if (!driver->err_handler->slot_reset) in is_driver_supported()
75 if (!driver->err_handler->resume) in is_driver_supported()
81 struct pci_driver *driver) in zpci_event_notify_error_detected() argument
85 ers_res = driver->err_handler->error_detected(pdev, pdev->error_state); in zpci_event_notify_error_detected()
95 struct pci_driver *driver) in zpci_event_do_error_state_clear() argument
109 if (driver->err_handler->mmio_enabled) { in zpci_event_do_error_state_clear()
110 ers_res = driver->err_handler->mmio_enabled(pdev); in zpci_event_do_error_state_clear()
135 struct pci_driver *driver) in zpci_event_do_reset() argument
145 ers_res = driver->err_handler->slot_reset(pdev); in zpci_event_do_reset()
165 struct pci_driver *driver; in zpci_event_attempt_error_recovery() local
185 driver = to_pci_driver(pdev->dev.driver); in zpci_event_attempt_error_recovery()
186 if (!is_driver_supported(driver)) { in zpci_event_attempt_error_recovery()
187 if (!driver) in zpci_event_attempt_error_recovery()
193 driver->name); in zpci_event_attempt_error_recovery()
197 ers_res = zpci_event_notify_error_detected(pdev, driver); in zpci_event_attempt_error_recovery()
202 ers_res = zpci_event_do_error_state_clear(pdev, driver); in zpci_event_attempt_error_recovery()
208 ers_res = zpci_event_do_reset(pdev, driver); in zpci_event_attempt_error_recovery()
217 if (driver->err_handler->resume) in zpci_event_attempt_error_recovery()
218 driver->err_handler->resume(pdev); in zpci_event_attempt_error_recovery()
231 struct pci_driver *driver; in zpci_event_io_failure() local
244 driver = to_pci_driver(pdev->dev.driver); in zpci_event_io_failure()
245 if (driver && driver->err_handler && driver->err_handler->error_detected) in zpci_event_io_failure()
246 driver->err_handler->error_detected(pdev, pdev->error_state); in zpci_event_io_failure()