Lines Matching defs:dev
41 * \param dev DRM device.
46 int drm_dma_setup(struct drm_device *dev)
50 dev->dma = kzalloc(sizeof(*dev->dma), GFP_KERNEL);
51 if (!dev->dma)
55 memset(&dev->dma->bufs[i], 0, sizeof(dev->dma->bufs[0]));
63 * \param dev DRM device.
68 void drm_dma_takedown(struct drm_device *dev)
70 struct drm_device_dma *dma = dev->dma;
86 drm_pci_free(dev, dma->bufs[i].seglist[j]);
101 kfree(dev->dma);
102 dev->dma = NULL;
108 * \param dev DRM device.
113 void drm_free_buffer(struct drm_device *dev, struct drm_buf * buf)
123 if (drm_core_check_feature(dev, DRIVER_DMA_QUEUE)
136 void drm_core_reclaim_buffers(struct drm_device *dev,
139 struct drm_device_dma *dma = dev->dma;
148 drm_free_buffer(dev, dma->buflist[i]);