Lines Matching refs:dev
37 __FBSDID("$FreeBSD: releng/11.0/sys/dev/drm2/drm_vm.c 298955 2016-05-03 03:41:25Z pfg $");
43 #include <dev/drm2/drmP.h>
44 #include <dev/drm2/drm.h>
51 struct drm_device *dev = drm_get_device_from_kdev(kdev);
72 if (dev->dma && offset < ptoa(dev->dma->page_count)) {
73 drm_device_dma_t *dma = dev->dma;
75 DRM_SPINLOCK(&dev->dma_lock);
81 DRM_SPINUNLOCK(&dev->dma_lock);
85 DRM_SPINUNLOCK(&dev->dma_lock);
98 DRM_LOCK(dev);
99 TAILQ_FOREACH(map, &dev->maplist, link) {
107 TAILQ_FOREACH(map, &dev->maplist, link) {
111 DRM_UNLOCK(dev);
115 DRM_UNLOCK(dev);
120 DRM_UNLOCK(dev);