Lines Matching refs:driver

77  * of the device-driver, different interfaces are registered.
264 * DOC: driver instance overview
266 * A device instance for a drm driver is represented by &struct drm_device. This
268 * bus-specific ->probe() callbacks implemented by the driver. The driver then
283 * any other resources allocated at device initialization and drop the driver's
288 * driver is unbound from the underlying physical struct &device. Best to use
296 * Display driver example
299 * The following example shows a typical structure of a DRM display driver.
388 * .driver = {
399 * use drm_dev_unplug() instead of drm_dev_unregister(). The driver must protect
404 * paths are protected, they will not run on regular driver module unload,
575 * should point at &struct drm_device of the device instance, not some driver
581 * functions to find such components at driver load time, like
601 const struct drm_driver *driver,
617 dev->driver = driver;
628 DRM_ERROR("DRM driver can't be both a compute acceleration and graphics driver\n");
707 const struct drm_driver *driver)
711 ret = drm_dev_init(dev, driver, parent);
720 const struct drm_driver *driver,
732 ret = devm_drm_dev_init(parent, drm, driver);
745 * @driver: DRM driver to allocate device for
749 * subclassing through embedding the struct &drm_device in a driver private
755 struct drm_device *drm_dev_alloc(const struct drm_driver *driver,
765 ret = drm_dev_init(dev, driver, parent);
784 if (dev->driver->release)
785 dev->driver->release(dev);
840 * sysfs files to figure out whether it's a modeset driver. It only does
884 * @flags: Flags passed to the driver's .load() function
903 const struct drm_driver *driver = dev->driver;
906 if (!driver->load)
937 if (driver->load) {
938 ret = driver->load(dev, flags);
951 driver->name, driver->major, driver->minor,
952 driver->patchlevel, driver->date,
959 if (dev->driver->unload)
960 dev->driver->unload(dev);
1000 if (dev->driver->unload)
1001 dev->driver->unload(dev);
1043 new_fops = fops_get(minor->dev->driver->fops);