Lines Matching refs:driver

5  * Please see Documentation/driver-api/auxiliary_bus.rst for more information.
24 * too complex for a single device to be managed by a monolithic driver (e.g.
26 * of functionality (e.g. NICs + RDMA), or a driver may want to export an
31 * device-driver model.
55 * The auxiliary bus is to be used when a driver and one or more kernel
56 * modules, who share a common header file with the driver, need a mechanism to
58 * auxiliary_device's registering driver. The registering driver for the
67 * driver allocates and registers an auxiliary_device for each physical
68 * function on the NIC. The RDMA driver registers an auxiliary_driver that
70 * the parent PCI device/driver to the RDMA auxiliary_driver.
74 * function driver binds to such devices that creates its own one or more class
79 * initialized before a driver binds to an auxiliary_device.
114 * creates a match_name that is be used for matching and binding with a driver.
206 struct auxiliary_driver *auxdrv = to_auxiliary_drv(dev->driver);
225 struct auxiliary_driver *auxdrv = to_auxiliary_drv(dev->driver);
238 if (dev->driver) {
239 auxdrv = to_auxiliary_drv(dev->driver);
297 * @modname: name of the parent device's driver module
367 * __auxiliary_driver_register - register a driver for auxiliary bus devices
369 * @owner: owning module/driver
370 * @modname: KBUILD_MODNAME for parent driver
386 auxdrv->driver.name = kasprintf(GFP_KERNEL, "%s.%s", modname,
389 auxdrv->driver.name = kasprintf(GFP_KERNEL, "%s", modname);
390 if (!auxdrv->driver.name)
393 auxdrv->driver.owner = owner;
394 auxdrv->driver.bus = &auxiliary_bus_type;
395 auxdrv->driver.mod_name = modname;
397 ret = driver_register(&auxdrv->driver);
399 kfree(auxdrv->driver.name);
406 * auxiliary_driver_unregister - unregister a driver
411 driver_unregister(&auxdrv->driver);
412 kfree(auxdrv->driver.name);