Lines Matching defs:driver

32  * pci_add_dynid - add a new PCI device ID to this driver and re-probe devices
33 * @drv: target pci driver
40 * @driver_data: private driver data
42 * Adds a new dynamic pci device ID to this driver and causes the
43 * driver to probe for all devices again. @drv must have been
76 return driver_attach(&drv->driver);
94 * @driver: target device driver
98 * Allow PCI IDs to be added to an existing driver via sysfs.
100 static ssize_t new_id_store(struct device_driver *driver, const char *buf,
103 struct pci_driver *pdrv = to_pci_driver(driver);
161 * store_remove_id - remove a PCI device ID from this driver
162 * @driver: target device driver
166 * Removes a dynamic pci device ID to this driver.
168 static ssize_t remove_id_store(struct device_driver *driver, const char *buf,
172 struct pci_driver *pdrv = to_pci_driver(driver);
216 * Used by a driver to check whether a PCI device present in the
221 * that a driver might want to check for.
246 * @drv: the PCI driver to match against
249 * Used by a driver to check whether a PCI device present in the
259 /* When driver_override is set, only bind to the matching driver */
300 * active and the usage count is incremented. If the driver
307 pci_dev->driver = pci_drv;
312 pci_dev->driver = NULL;
342 * Execute driver initialization on node where the device is
343 * attached. This way the driver likely allocates its local memory
373 * __pci_device_probe - check if a driver wants to claim a specific PCI device
374 * @drv: driver to call to check if it wants the PCI device
378 * side-effect: pci_dev->driver is set to drv when drv claims pci_dev.
385 if (!pci_dev->driver && drv->probe) {
421 struct pci_driver *drv = to_pci_driver(dev->driver);
445 struct pci_driver *drv = pci_dev->driver;
450 * If the driver provides a .runtime_idle() callback and it has
460 pci_dev->driver = NULL;
468 * since it might change by the next time we load the driver.
475 * the driver should have called pci_disable_device(), but the
489 struct pci_driver *drv = pci_dev->driver;
549 * Default "suspend" method for devices that have no driver provided suspend,
550 * or not even a driver at all (second part).
563 * Default "resume" method for devices that have no driver provided resume,
564 * or not even a driver at all (second part).
585 struct pci_driver *drv = pci_dev->driver;
626 struct pci_driver *drv = pci_dev->driver;
645 struct pci_driver *drv = pci_dev->driver;
653 pci_WARN(pci_dev, ret && drv->driver.pm, "device %04x:%04x\n",
664 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
733 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
754 * Also if the driver of the device does not indicate that its system
799 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
899 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
941 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
981 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1017 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1042 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1050 * in case the driver's "freeze" callbacks put it into a low-power
1068 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1089 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1133 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1173 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1190 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1233 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1238 * If pci_dev->driver is not set (unbound), we leave the device in D0,
1242 if (!pci_dev->driver) {
1288 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1294 * to a driver because although we left it in D0, it may have gone to
1299 if (!pci_dev->driver)
1319 const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm : NULL;
1322 * If pci_dev->driver is not set (unbound), the device should
1325 if (!pci_dev->driver)
1373 * __pci_register_driver - register a new pci driver
1374 * @drv: the driver structure to register
1378 * Adds the driver structure to the list of registered drivers.
1380 * If no error occurred, the driver remains registered even if
1386 /* initialize common driver fields */
1387 drv->driver.name = drv->name;
1388 drv->driver.bus = &pci_bus_type;
1389 drv->driver.owner = owner;
1390 drv->driver.mod_name = mod_name;
1391 drv->driver.groups = drv->groups;
1397 return driver_register(&drv->driver);
1402 * pci_unregister_driver - unregister a pci driver
1403 * @drv: the driver structure to unregister
1405 * Deletes the driver structure from the list of registered PCI drivers,
1413 driver_unregister(&drv->driver);
1427 * registered driver for the device.
1431 if (dev->driver)
1432 return dev->driver;
1446 * @drv: the device driver to search for matching PCI device id structures
1448 * Used by a driver to check whether a PCI device present in the
1623 struct pcie_port_service_driver *driver;
1629 driver = to_service_driver(drv);
1631 if (driver->service != pciedev->service)
1634 if (driver->port_type != PCIE_ANY_PORT &&
1635 driver->port_type != pci_pcie_type(pciedev->port))