Lines Matching refs:dev
150 #define DRM_LOCK() mutex_enter(&dev->dev_lock)
151 #define DRM_UNLOCK() mutex_exit(&dev->dev_lock)
152 #define DRM_LOCK_OWNED() ASSERT(mutex_owned(&dev->dev_lock))
166 #define DRM_DEVICE drm_device_t *dev = dev1
268 DRM_SPINLOCK_ASSERT(&dev->dev_lock); \
269 TAILQ_FOREACH(map, &dev->maplist, link) { \
278 #define LOCK_TEST_WITH_RETURN(dev, fpriv) \
279 if (!_DRM_LOCK_IS_HELD(dev->lock.hw_lock->lock) || \
280 dev->lock.filp != fpriv) { \
295 /* Capabilities taken from src/sys/dev/pci/pcireg.h. */
441 struct drm_device *dev;
507 dev_t dev;
522 * is open. dev->dma_lock protects the incrementing of dev->buf_use, which
667 void (*irq_uninstall)(struct drm_device *dev);
672 u32 (*get_vblank_counter)(struct drm_device *dev, int crtc);
673 int (*enable_vblank)(struct drm_device *dev, int crtc);
674 void (*disable_vblank)(struct drm_device *dev, int crtc);
716 #define DRM_INTR_PRI(dev) \
717 DDI_INTR_PRI((dev)->intr_block)
739 kmutex_t dma_lock; /* protects dev->dma */
805 /* protected by dev->vbl_lock, used for wraparound handling */
817 void (*locked_tasklet_func)(struct drm_device *dev);
915 void drm_handle_vblank(struct drm_device *dev, int crtc);
916 u32 drm_vblank_count(struct drm_device *dev, int crtc);
917 int drm_vblank_get(struct drm_device *dev, int crtc);
918 void drm_vblank_put(struct drm_device *dev, int crtc);
919 int drm_vblank_init(struct drm_device *dev, int num_crtcs);
920 void drm_vblank_cleanup(struct drm_device *dev);
930 uint32_t type, drm_device_t *dev);
931 int drm_agp_free_memory(agp_allocate_t *handle, drm_device_t *dev);
934 int drm_agp_bind_pages(drm_device_t *dev,
938 int drm_agp_unbind_pages(drm_device_t *dev,
942 void drm_agp_chipset_flush(struct drm_device *dev);
943 void drm_agp_rebind(struct drm_device *dev);
1079 int drm_gem_init(struct drm_device *dev);
1081 struct drm_gem_object *drm_gem_object_alloc(struct drm_device *dev,
1101 void drm_gem_release(struct drm_device *dev, struct drm_file *file_private);