Lines Matching refs:driver
107 if (!pdev || !pdev->driver) in eeh_pcid_get()
110 if (!try_module_get(pdev->driver->driver.owner)) in eeh_pcid_get()
113 return pdev->driver; in eeh_pcid_get()
125 if (!pdev || !pdev->driver) in eeh_pcid_put()
128 module_put(pdev->driver->driver.owner); in eeh_pcid_put()
258 struct pci_driver *driver; in eeh_pe_report_edev() local
272 driver = eeh_pcid_get(pdev); in eeh_pe_report_edev()
274 if (!driver) in eeh_pe_report_edev()
276 else if (!driver->err_handler) in eeh_pe_report_edev()
281 new_result = fn(edev, pdev, driver); in eeh_pe_report_edev()
283 driver->name, in eeh_pe_report_edev()
289 if (driver) in eeh_pe_report_edev()
326 struct pci_driver *driver) in eeh_report_error() argument
330 if (!driver->err_handler->error_detected) in eeh_report_error()
334 driver->name); in eeh_report_error()
335 rc = driver->err_handler->error_detected(pdev, pci_channel_io_frozen); in eeh_report_error()
352 struct pci_driver *driver) in eeh_report_mmio_enabled() argument
354 if (!driver->err_handler->mmio_enabled) in eeh_report_mmio_enabled()
356 eeh_edev_info(edev, "Invoking %s->mmio_enabled()", driver->name); in eeh_report_mmio_enabled()
357 return driver->err_handler->mmio_enabled(pdev); in eeh_report_mmio_enabled()
372 struct pci_driver *driver) in eeh_report_reset() argument
374 if (!driver->err_handler->slot_reset || !edev->in_error) in eeh_report_reset()
376 eeh_edev_info(edev, "Invoking %s->slot_reset()", driver->name); in eeh_report_reset()
377 return driver->err_handler->slot_reset(pdev); in eeh_report_reset()
418 struct pci_driver *driver) in eeh_report_resume() argument
420 if (!driver->err_handler->resume || !edev->in_error) in eeh_report_resume()
423 eeh_edev_info(edev, "Invoking %s->resume()", driver->name); in eeh_report_resume()
424 driver->err_handler->resume(pdev); in eeh_report_resume()
444 struct pci_driver *driver) in eeh_report_failure() argument
448 if (!driver->err_handler->error_detected) in eeh_report_failure()
452 driver->name); in eeh_report_failure()
453 rc = driver->err_handler->error_detected(pdev, in eeh_report_failure()
462 struct pci_driver *driver; in eeh_add_virt_device() local
470 driver = eeh_pcid_get(dev); in eeh_add_virt_device()
471 if (driver) { in eeh_add_virt_device()
472 if (driver->err_handler) { in eeh_add_virt_device()
487 struct pci_driver *driver; in eeh_rmv_device() local
503 driver = eeh_pcid_get(dev); in eeh_rmv_device()
504 if (driver) { in eeh_rmv_device()
505 if (driver->err_handler && in eeh_rmv_device()
506 driver->err_handler->error_detected && in eeh_rmv_device()
507 driver->err_handler->slot_reset) { in eeh_rmv_device()