Lines Matching defs:driver
105 const struct drm_driver *driver;
138 * of the device-driver, different interfaces are registered.
340 * DOC: driver instance overview
342 * A device instance for a drm driver is represented by &struct drm_device. This
344 * bus-specific ->probe() callbacks implemented by the driver. The driver then
359 * any other resources allocated at device initialization and drop the driver's
364 * driver is unbound from the underlying physical struct &device. Best to use
372 * Display driver example
375 * The following example shows a typical structure of a DRM display driver.
464 * .driver = {
475 * use drm_dev_unplug() instead of drm_dev_unregister(). The driver must protect
480 * paths are protected, they will not run on regular driver module unload,
661 * should point at &struct drm_device of the device instance, not some driver
667 * functions to find such components at driver load time, like
695 const struct drm_driver *driver,
711 dev->driver = driver;
722 DRM_ERROR("DRM driver can't be both a compute acceleration and graphics driver\n");
804 const struct drm_driver *driver)
808 ret = drm_dev_init(dev, driver, parent);
819 const struct drm_driver *driver,
834 ret = devm_drm_dev_init(parent, drm, driver);
850 * @driver: DRM driver to allocate device for
854 * subclassing through embedding the struct &drm_device in a driver private
860 struct drm_device *drm_dev_alloc(const struct drm_driver *driver,
870 ret = drm_dev_init(dev, driver, parent);
888 if (dev->driver->release)
889 dev->driver->release(dev);
944 * sysfs files to figure out whether it's a modeset driver. It only does
988 * @flags: Flags passed to the driver's .load() function
1007 const struct drm_driver *driver = dev->driver;
1010 if (!driver->load)
1036 if (driver->load) {
1037 ret = driver->load(dev, flags);
1049 driver->name, driver->major, driver->minor,
1050 driver->patchlevel, driver->date,
1057 if (dev->driver->unload)
1058 dev->driver->unload(dev);
1099 if (dev->driver->unload)
1100 dev->driver->unload(dev);
1145 new_fops = fops_get(minor->dev->driver->fops);
1229 drm_attach_platform(struct drm_driver *driver, bus_space_tag_t iot,
1235 arg.driver = driver;
1246 drm_attach_pci(const struct drm_driver *driver, struct pci_attach_args *pa,
1253 arg.driver = driver;
1359 dev->driver = da->driver;
1454 if (dev->driver->gem_size > 0) {
1455 KASSERT(dev->driver->gem_size >= sizeof(struct drm_gem_object));
1457 pool_init(&dev->objpl, dev->driver->gem_size, 0, IPL_NONE, 0,
1495 if (dev->driver->gem_size > 0)