Lines Matching refs:dev
33 __FBSDID("$FreeBSD: releng/11.0/sys/dev/drm/i915_drv.c 283999 2015-06-04 20:36:16Z jhb $");
35 #include "dev/drm/drmP.h"
36 #include "dev/drm/drm.h"
37 #include "dev/drm/drm_mm.h"
38 #include "dev/drm/i915_drm.h"
39 #include "dev/drm/i915_drv.h"
40 #include "dev/drm/drm_pciids.h"
49 struct drm_device *dev = device_get_softc(kdev);
51 if (!dev || !dev->dev_private) {
58 i915_save_state(dev);
66 struct drm_device *dev = device_get_softc(kdev);
69 i915_restore_state(dev);
76 static void i915_configure(struct drm_device *dev)
78 dev->driver->driver_features =
82 dev->driver->buf_priv_size = sizeof(drm_i915_private_t);
83 dev->driver->load = i915_driver_load;
84 dev->driver->unload = i915_driver_unload;
85 dev->driver->preclose = i915_driver_preclose;
86 dev->driver->lastclose = i915_driver_lastclose;
87 dev->driver->device_is_agp = i915_driver_device_is_agp;
88 dev->driver->enable_vblank = i915_enable_vblank;
89 dev->driver->disable_vblank = i915_disable_vblank;
90 dev->driver->irq_preinstall = i915_driver_irq_preinstall;
91 dev->driver->irq_postinstall = i915_driver_irq_postinstall;
92 dev->driver->irq_uninstall = i915_driver_irq_uninstall;
93 dev->driver->irq_handler = i915_driver_irq_handler;
95 dev->driver->ioctls = i915_ioctls;
96 dev->driver->max_ioctl = i915_max_ioctl;
98 dev->driver->name = DRIVER_NAME;
99 dev->driver->desc = DRIVER_DESC;
100 dev->driver->date = DRIVER_DATE;
101 dev->driver->major = DRIVER_MAJOR;
102 dev->driver->minor = DRIVER_MINOR;
103 dev->driver->patchlevel = DRIVER_PATCHLEVEL;
115 struct drm_device *dev = device_get_softc(kdev);
117 dev->driver = malloc(sizeof(struct drm_driver_info), DRM_MEM_DRIVER,
120 i915_configure(dev);
128 struct drm_device *dev = device_get_softc(kdev);
133 free(dev->driver, DRM_MEM_DRIVER);