Lines Matching refs:dev
30 __FBSDID("$FreeBSD: releng/11.0/sys/dev/drm/savage_drv.c 283999 2015-06-04 20:36:16Z jhb $");
32 #include "dev/drm/drmP.h"
33 #include "dev/drm/drm.h"
34 #include "dev/drm/savage_drm.h"
35 #include "dev/drm/savage_drv.h"
36 #include "dev/drm/drm_pciids.h"
43 static void savage_configure(struct drm_device *dev)
45 dev->driver->driver_features =
49 dev->driver->buf_priv_size = sizeof(drm_savage_buf_priv_t);
50 dev->driver->load = savage_driver_load;
51 dev->driver->firstopen = savage_driver_firstopen;
52 dev->driver->lastclose = savage_driver_lastclose;
53 dev->driver->unload = savage_driver_unload;
54 dev->driver->reclaim_buffers_locked = savage_reclaim_buffers;
55 dev->driver->dma_ioctl = savage_bci_buffers;
57 dev->driver->ioctls = savage_ioctls;
58 dev->driver->max_ioctl = savage_max_ioctl;
60 dev->driver->name = DRIVER_NAME;
61 dev->driver->desc = DRIVER_DESC;
62 dev->driver->date = DRIVER_DATE;
63 dev->driver->major = DRIVER_MAJOR;
64 dev->driver->minor = DRIVER_MINOR;
65 dev->driver->patchlevel = DRIVER_PATCHLEVEL;
77 struct drm_device *dev = device_get_softc(kdev);
79 dev->driver = malloc(sizeof(struct drm_driver_info), DRM_MEM_DRIVER,
82 savage_configure(dev);
90 struct drm_device *dev = device_get_softc(kdev);
95 free(dev->driver, DRM_MEM_DRIVER);