Lines Matching refs:driver
74 return driver_attach(&drv->driver); in pci_add_dynid()
98 static ssize_t new_id_store(struct device_driver *driver, const char *buf, in new_id_store() argument
101 struct pci_driver *pdrv = to_pci_driver(driver); in new_id_store()
166 static ssize_t remove_id_store(struct device_driver *driver, const char *buf, in remove_id_store() argument
170 struct pci_driver *pdrv = to_pci_driver(driver); in remove_id_store()
305 pci_dev->driver = pci_drv; in local_pci_probe()
310 pci_dev->driver = NULL; in local_pci_probe()
380 if (!pci_dev->driver && drv->probe) { in __pci_device_probe()
416 struct pci_driver *drv = to_pci_driver(dev->driver); in pci_device_probe()
440 struct pci_driver *drv = pci_dev->driver; in pci_device_remove()
449 pci_dev->driver = NULL; in pci_device_remove()
479 struct pci_driver *drv = pci_dev->driver; in pci_device_shutdown()
569 struct pci_driver *drv = pci_dev->driver; in pci_legacy_suspend()
596 struct pci_driver *drv = pci_dev->driver; in pci_legacy_suspend_late()
630 struct pci_driver *drv = pci_dev->driver; in pci_legacy_resume_early()
639 struct pci_driver *drv = pci_dev->driver; in pci_legacy_resume()
664 struct pci_driver *drv = pci_dev->driver; in pci_has_legacy_pm_support()
673 WARN(ret && drv->driver.pm, "driver %s device %04x:%04x\n", in pci_has_legacy_pm_support()
683 struct device_driver *drv = dev->driver; in pci_pm_prepare()
737 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_suspend()
799 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_suspend_noirq()
874 struct device_driver *drv = dev->driver; in pci_pm_resume_noirq()
904 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_resume()
951 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_freeze()
995 struct device_driver *drv = dev->driver; in pci_pm_freeze_noirq()
1026 struct device_driver *drv = dev->driver; in pci_pm_thaw_noirq()
1070 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_thaw()
1091 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_poweroff()
1132 struct device_driver *drv = dev->driver; in pci_pm_poweroff_noirq()
1175 struct device_driver *drv = dev->driver; in pci_pm_restore_noirq()
1202 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_restore()
1247 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_runtime_suspend()
1256 if (!pci_dev->driver) { in pci_pm_runtime_suspend()
1303 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_runtime_resume()
1312 if (!pci_dev->driver) in pci_pm_runtime_resume()
1330 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL; in pci_pm_runtime_idle()
1337 if (!pci_dev->driver) in pci_pm_runtime_idle()
1399 drv->driver.name = drv->name; in __pci_register_driver()
1400 drv->driver.bus = &pci_bus_type; in __pci_register_driver()
1401 drv->driver.owner = owner; in __pci_register_driver()
1402 drv->driver.mod_name = mod_name; in __pci_register_driver()
1403 drv->driver.groups = drv->groups; in __pci_register_driver()
1409 return driver_register(&drv->driver); in __pci_register_driver()
1425 driver_unregister(&drv->driver); in pci_unregister_driver()
1443 if (dev->driver) in pci_dev_driver()
1444 return dev->driver; in pci_dev_driver()
1637 struct pcie_port_service_driver *driver; in pcie_port_bus_match() local
1643 driver = to_service_driver(drv); in pcie_port_bus_match()
1645 if (driver->service != pciedev->service) in pcie_port_bus_match()
1648 if (driver->port_type != PCIE_ANY_PORT && in pcie_port_bus_match()
1649 driver->port_type != pci_pcie_type(pciedev->port)) in pcie_port_bus_match()