Lines Matching refs:driver
6 * drm_drv.h -- Generic driver template -*- linux-c -*-
96 /* The DRM_IOCTL_DMA ioctl should be defined by the driver. */
169 if (dev->driver->lastclose)
170 dev->driver->lastclose(dev);
171 DRM_DEBUG("driver lastclose completed\n");
225 * after the initialization for driver customization.
227 int drm_init(struct drm_device *dev, struct drm_driver *driver)
240 for (i = 0; driver->id_table[i].vendor != 0; i++) {
241 if ((driver->id_table[i].vendor == pdev->vendor) &&
242 (driver->id_table[i].device == pdev->device)) {
243 ret = drm_get_dev(dev, pdev, driver, driver->id_table[i].driver_data);
309 /* let userspace know exact length of driver value (which could be
333 version->version_major = dev->driver->major;
334 version->version_minor = dev->driver->minor;
335 version->version_patchlevel = dev->driver->patchlevel;
337 dev->driver->name);
340 dev->driver->date);
343 dev->driver->desc);
376 (nr < DRM_COMMAND_BASE + dev->driver->num_ioctls)) {
377 ioctl = &dev->driver->ioctls[nr - DRM_COMMAND_BASE];
391 if ((nr == DRM_IOCTL_NR(DRM_IOCTL_DMA)) && dev->driver->dma_ioctl)
392 func = dev->driver->dma_ioctl;