Lines Matching defs:driver
91 * of the device-driver, different interfaces are registered.
285 * DOC: driver instance overview
287 * A device instance for a drm driver is represented by &struct drm_device. This
289 * callbacks implemented by the driver. The driver then needs to initialize all
304 * any other resources allocated at device initialization and drop the driver's
311 * Display driver example
314 * The following example shows a typical structure of a DRM display driver.
349 * // lifetime can exceed the device lifetime if driver unbind
422 * .driver = {
433 * use drm_dev_unplug() instead of drm_dev_unregister(). The driver must protect
438 * paths are protected, they will not run on regular driver module unload,
624 * should point at &struct drm_device of the device instance, not some driver
630 * functions to find such components at driver load time, like
638 * @driver: DRM driver
659 * allow embedding of the drm_device inside the driver's device struct at an
667 struct drm_driver *driver,
682 dev->driver = driver;
793 * @driver: DRM driver
796 * automatically put on driver detach using drm_dev_put(). You must supply a
804 struct drm_driver *driver)
808 if (WARN_ON(!driver->release))
811 ret = drm_dev_init(dev, driver, parent);
830 * frees up all data allocated by it. All driver private data should be
878 * @driver: DRM driver to allocate device for
898 struct drm_device *drm_dev_alloc(struct drm_driver *driver,
908 ret = drm_dev_init(dev, driver, parent);
922 if (dev->driver->release) {
923 dev->driver->release(dev);
978 * sysfs files to figure out whether it's a modeset driver. It only does
1028 * @flags: Flags passed to the driver's .load() function
1047 struct drm_driver *driver = dev->driver;
1068 if (dev->driver->load) {
1069 ret = dev->driver->load(dev, flags);
1080 driver->name, driver->major, driver->minor,
1081 driver->patchlevel, driver->date,
1125 if (dev->driver->unload)
1126 dev->driver->unload(dev);
1198 new_fops = fops_get(minor->dev->driver->fops);