Lines Matching refs:driver

74  * of the device-driver, different interfaces are registered.
240 * DOC: driver instance overview
242 * A device instance for a drm driver is represented by &struct drm_device. This
244 * bus-specific ->probe() callbacks implemented by the driver. The driver then
259 * any other resources allocated at device initialization and drop the driver's
264 * driver is unbound from the underlying physical struct &device. Best to use
272 * Display driver example
275 * The following example shows a typical structure of a DRM display driver.
364 * .driver = {
375 * use drm_dev_unplug() instead of drm_dev_unregister(). The driver must protect
380 * paths are protected, they will not run on regular driver module unload,
548 * should point at &struct drm_device of the device instance, not some driver
554 * functions to find such components at driver load time, like
577 struct drm_driver *driver,
593 dev->driver = driver;
669 struct drm_driver *driver)
673 ret = drm_dev_init(dev, driver, parent);
684 void *__devm_drm_dev_alloc(struct device *parent, struct drm_driver *driver,
696 ret = devm_drm_dev_init(parent, drm, driver);
709 * @driver: DRM driver to allocate device for
713 * subclassing through embedding the struct &drm_device in a driver private
719 struct drm_device *drm_dev_alloc(struct drm_driver *driver,
729 ret = drm_dev_init(dev, driver, parent);
745 if (dev->driver->release)
746 dev->driver->release(dev);
801 * sysfs files to figure out whether it's a modeset driver. It only does
845 * @flags: Flags passed to the driver's .load() function
864 struct drm_driver *driver = dev->driver;
867 if (!driver->load)
889 if (dev->driver->load) {
890 ret = dev->driver->load(dev, flags);
904 driver->name, driver->major, driver->minor,
905 driver->patchlevel, driver->date,
912 if (dev->driver->unload)
913 dev->driver->unload(dev);
951 if (dev->driver->unload)
952 dev->driver->unload(dev);
1017 new_fops = fops_get(minor->dev->driver->fops);