Lines Matching refs:driver
2 * drm_drv.h -- Generic driver template -*- linux-c -*-
183 if (dev->driver->use_agp) {
184 DRM_DEBUG("drm_firstopen: use_agp=%d", dev->driver->use_agp);
187 if (dev->driver->require_agp && dev->agp == NULL) {
193 if (dev->driver->firstopen)
194 retval = dev->driver->firstopen(dev);
197 DRM_ERROR("drm_firstopen: driver-specific firstopen failed");
203 if (dev->driver->use_dma) {
242 if (dev->driver->lastclose != NULL)
243 dev->driver->lastclose(dev);
298 /* Clean up maps that weren't set up by the driver. */
337 if (dev->driver->load != NULL) {
338 retcode = dev->driver->load(dev, 0);
351 if (dev->driver->use_gem == 1) {
367 dev->driver->driver_name,
368 dev->driver->driver_major,
369 dev->driver->driver_minor,
370 dev->driver->driver_patchlevel,
371 dev->driver->driver_date);
398 if (dev->driver->use_gem == 1) {
411 if (dev->driver->unload != NULL)
412 dev->driver->unload(dev);
471 if (dev->driver->preclose != NULL)
472 dev->driver->preclose(dev, fpriv);
486 if (dev->driver->reclaim_buffers_locked != NULL)
487 dev->driver->reclaim_buffers_locked(dev, fpriv);
490 } else if (dev->driver->reclaim_buffers_locked != NULL &&
496 if (dev->driver->use_dma) {
500 if (dev->driver->use_gem == 1) {
504 if (dev->driver->postclose != NULL) {
505 dev->driver->postclose(dev, fpriv);