Lines Matching refs:driver

77  * of the device-driver, different interfaces are registered.
265 * DOC: driver instance overview
267 * A device instance for a drm driver is represented by &struct drm_device. This
269 * bus-specific ->probe() callbacks implemented by the driver. The driver then
284 * any other resources allocated at device initialization and drop the driver's
289 * driver is unbound from the underlying physical struct &device. Best to use
297 * Display driver example
300 * The following example shows a typical structure of a DRM display driver.
389 * .driver = {
400 * use drm_dev_unplug() instead of drm_dev_unregister(). The driver must protect
405 * paths are protected, they will not run on regular driver module unload,
576 * should point at &struct drm_device of the device instance, not some driver
582 * functions to find such components at driver load time, like
606 const struct drm_driver *driver,
622 dev->driver = driver;
633 DRM_ERROR("DRM driver can't be both a compute acceleration and graphics driver\n");
715 const struct drm_driver *driver)
719 ret = drm_dev_init(dev, driver, parent);
728 const struct drm_driver *driver,
740 ret = devm_drm_dev_init(parent, drm, driver);
753 * @driver: DRM driver to allocate device for
757 * subclassing through embedding the struct &drm_device in a driver private
763 struct drm_device *drm_dev_alloc(const struct drm_driver *driver,
773 ret = drm_dev_init(dev, driver, parent);
789 if (dev->driver->release)
790 dev->driver->release(dev);
845 * sysfs files to figure out whether it's a modeset driver. It only does
889 * @flags: Flags passed to the driver's .load() function
908 const struct drm_driver *driver = dev->driver;
911 if (!driver->load)
937 if (driver->load) {
938 ret = driver->load(dev, flags);
950 driver->name, driver->major, driver->minor,
951 driver->patchlevel, driver->date,
958 if (dev->driver->unload)
959 dev->driver->unload(dev);
1000 if (dev->driver->unload)
1001 dev->driver->unload(dev);
1045 new_fops = fops_get(minor->dev->driver->fops);