Lines Matching defs:driver

33  * pci_add_dynid - add a new PCI device ID to this driver and re-probe devices
34 * @drv: target pci driver
41 * @driver_data: private driver data
43 * Adds a new dynamic pci device ID to this driver and causes the
44 * driver to probe for all devices again. @drv must have been
77 return driver_attach(&drv->driver);
98 * Used by a driver to check whether a PCI device is in its list of
103 * that a driver might want to check for.
127 * pci_match_device - See if a device matches a driver's list of IDs
128 * @drv: the PCI driver to match against
131 * Used by a driver to check whether a PCI device is in its list of
142 /* When driver_override is set, only bind to the matching driver */
182 * @driver: target device driver
186 * Allow PCI IDs to be added to an existing driver via sysfs.
188 static ssize_t new_id_store(struct device_driver *driver, const char *buf,
191 struct pci_driver *pdrv = to_pci_driver(driver);
249 * remove_id_store - remove a PCI device ID from this driver
250 * @driver: target device driver
254 * Removes a dynamic pci device ID to this driver.
256 static ssize_t remove_id_store(struct device_driver *driver, const char *buf,
260 struct pci_driver *pdrv = to_pci_driver(driver);
316 * active and the usage count is incremented. If the driver
323 pci_dev->driver = pci_drv;
328 pci_dev->driver = NULL;
357 * Execute driver initialization on node where the device is
358 * attached. This way the driver likely allocates its local memory
400 * __pci_device_probe - check if a driver wants to claim a specific PCI device
401 * @drv: driver to call to check if it wants the PCI device
405 * side-effect: pci_dev->driver is set to drv when drv claims pci_dev.
439 struct pci_driver *drv = to_pci_driver(dev->driver);
463 struct pci_driver *drv = pci_dev->driver;
468 * If the driver provides a .runtime_idle() callback and it has
478 pci_dev->driver = NULL;
486 * since it might change by the next time we load the driver.
493 * the driver should have called pci_disable_device(), but the
506 struct pci_driver *drv = pci_dev->driver;
600 * Default "suspend" method for devices that have no driver provided suspend,
601 * or not even a driver at all (second part).
614 * Default "resume" method for devices that have no driver provided resume,
615 * or not even a driver at all (second part).
636 struct pci_driver *drv = pci_dev->driver;
677 struct pci_driver *drv = pci_dev->driver;
696 struct pci_driver *drv = pci_dev->driver;
704 pci_WARN(pci_dev, ret && drv->driver.pm, "device %04x:%04x\n",
715 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
784 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
811 * Also if the driver of the device does not indicate that its system
856 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
951 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
993 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1035 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1071 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1096 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1104 * in case the driver's "freeze" callbacks put it into a low-power
1122 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1143 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1187 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1227 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1244 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1287 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1294 * If pci_dev->driver is not set (unbound), we leave the device in D0,
1298 if (!pci_dev->driver) {
1344 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1350 * to a driver because although we left it in D0, it may have gone to
1356 if (!pci_dev->driver)
1374 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1377 * If pci_dev->driver is not set (unbound), the device should
1380 if (!pci_dev->driver)
1425 * __pci_register_driver - register a new pci driver
1426 * @drv: the driver structure to register
1430 * Adds the driver structure to the list of registered drivers.
1432 * If no error occurred, the driver remains registered even if
1438 /* initialize common driver fields */
1439 drv->driver.name = drv->name;
1440 drv->driver.bus = &pci_bus_type;
1441 drv->driver.owner = owner;
1442 drv->driver.mod_name = mod_name;
1443 drv->driver.groups = drv->groups;
1444 drv->driver.dev_groups = drv->dev_groups;
1450 return driver_register(&drv->driver);
1455 * pci_unregister_driver - unregister a pci driver
1456 * @drv: the driver structure to unregister
1458 * Deletes the driver structure from the list of registered PCI drivers,
1466 driver_unregister(&drv->driver);
1480 * registered driver for the device.
1486 if (dev->driver)
1487 return dev->driver;
1500 * @drv: the device driver to search for matching PCI device id structures
1502 * Used by a driver to check whether a PCI device present in the
1639 struct pci_driver *driver = to_pci_driver(dev->driver);
1656 if (!ret && !driver->driver_managed_dma) {
1667 struct pci_driver *driver = to_pci_driver(dev->driver);
1669 if (!driver->driver_managed_dma)
1694 struct pcie_port_service_driver *driver;
1700 driver = to_service_driver(drv);
1702 if (driver->service != pciedev->service)
1705 if (driver->port_type != PCIE_ANY_PORT &&
1706 driver->port_type != pci_pcie_type(pciedev->port))