Lines Matching refs:driver
106 if (!pdev || !pdev->dev.driver) in eeh_pcid_get()
109 if (!try_module_get(pdev->dev.driver->owner)) in eeh_pcid_get()
112 return to_pci_driver(pdev->dev.driver); in eeh_pcid_get()
124 if (!pdev || !pdev->dev.driver) in eeh_pcid_put()
127 module_put(pdev->dev.driver->owner); in eeh_pcid_put()
257 struct pci_driver *driver;
271 driver = eeh_pcid_get(pdev);
273 if (!driver)
275 else if (!driver->err_handler)
280 new_result = fn(edev, pdev, driver);
282 driver->name,
288 if (driver)
325 struct pci_driver *driver) in eeh_report_error() argument
329 if (!driver->err_handler->error_detected) in eeh_report_error()
333 driver->name); in eeh_report_error()
334 rc = driver->err_handler->error_detected(pdev, pci_channel_io_frozen); in eeh_report_error()
351 struct pci_driver *driver) in eeh_report_mmio_enabled() argument
353 if (!driver->err_handler->mmio_enabled) in eeh_report_mmio_enabled()
355 eeh_edev_info(edev, "Invoking %s->mmio_enabled()", driver->name); in eeh_report_mmio_enabled()
356 return driver->err_handler->mmio_enabled(pdev); in eeh_report_mmio_enabled()
371 struct pci_driver *driver) in eeh_report_reset() argument
373 if (!driver->err_handler->slot_reset || !edev->in_error) in eeh_report_reset()
375 eeh_edev_info(edev, "Invoking %s->slot_reset()", driver->name); in eeh_report_reset()
376 return driver->err_handler->slot_reset(pdev); in eeh_report_reset()
417 struct pci_driver *driver) in eeh_report_resume() argument
419 if (!driver->err_handler->resume || !edev->in_error) in eeh_report_resume()
422 eeh_edev_info(edev, "Invoking %s->resume()", driver->name); in eeh_report_resume()
423 driver->err_handler->resume(pdev); in eeh_report_resume()
443 struct pci_driver *driver) in eeh_report_failure() argument
447 if (!driver->err_handler->error_detected) in eeh_report_failure()
451 driver->name); in eeh_report_failure()
452 rc = driver->err_handler->error_detected(pdev, in eeh_report_failure()
461 struct pci_driver *driver; in eeh_add_virt_device() local
469 driver = eeh_pcid_get(dev); in eeh_add_virt_device()
470 if (driver) { in eeh_add_virt_device()
471 if (driver->err_handler) { in eeh_add_virt_device()
486 struct pci_driver *driver; in eeh_rmv_device() local
502 driver = eeh_pcid_get(dev); in eeh_rmv_device()
503 if (driver) { in eeh_rmv_device()
504 if (driver->err_handler && in eeh_rmv_device()
505 driver->err_handler->error_detected && in eeh_rmv_device()
506 driver->err_handler->slot_reset) { in eeh_rmv_device()