Lines Matching refs:driver

230 		 * by the BIOS and the hot-plug service driver is not loaded.
252 * by the BIOS (the PME service driver will enable it when
386 if ((dev->bus == &pcie_port_bus_type) && dev->driver) {
387 service_driver = to_service_driver(dev->driver);
459 if (device->bus == &pcie_port_bus_type && device->driver) {
460 service_driver = to_service_driver(device->driver);
507 * pcie_port_probe_service - probe driver for given PCI Express port service
510 * If PCI Express port service driver is registered with
511 * pcie_port_service_register(), this function will be called by the driver core
512 * whenever match is found between the driver and a port service device.
517 struct pcie_port_service_driver *driver;
520 if (!dev || !dev->driver)
523 driver = to_service_driver(dev->driver);
524 if (!driver || !driver->probe)
528 status = driver->probe(pciedev);
537 * pcie_port_remove_service - detach driver from given PCI Express port service
540 * If PCI Express port service driver is registered with
541 * pcie_port_service_register(), this function will be called by the driver core
543 * with the driver.
548 struct pcie_port_service_driver *driver;
550 if (!dev || !dev->driver)
554 driver = to_service_driver(dev->driver);
555 if (driver && driver->remove) {
556 driver->remove(pciedev);
566 * If PCI Express port service driver is registered with
567 * pcie_port_service_register(), this function will be called by the driver core
569 * with the driver.
574 * pcie_port_service_register - register PCI Express port service driver
575 * @new: PCI Express port service driver to register
582 new->driver.name = new->name;
583 new->driver.bus = &pcie_port_bus_type;
584 new->driver.probe = pcie_port_probe_service;
585 new->driver.remove = pcie_port_remove_service;
586 new->driver.shutdown = pcie_port_shutdown_service;
588 return driver_register(&new->driver);
592 * pcie_port_service_unregister - unregister PCI Express port service driver
593 * @drv: PCI Express port service driver to unregister
597 driver_unregister(&drv->driver);
798 .driver.pm = PCIE_PORTDRV_PM_OPS,