Lines Matching refs:bufs
56 memset(&dev->dma->bufs[i], 0, sizeof(dev->dma->bufs[0])); in drm_dma_setup()
79 if (dma->bufs[i].seg_count) { in drm_dma_takedown()
83 dma->bufs[i].buf_count, in drm_dma_takedown()
84 dma->bufs[i].seg_count); in drm_dma_takedown()
85 for (j = 0; j < dma->bufs[i].seg_count; j++) { in drm_dma_takedown()
86 if (dma->bufs[i].seglist[j]) { in drm_dma_takedown()
87 drm_pci_free(dev, dma->bufs[i].seglist[j]); in drm_dma_takedown()
90 free(dma->bufs[i].seglist, DRM_MEM_SEGS); in drm_dma_takedown()
92 if (dma->bufs[i].buf_count) { in drm_dma_takedown()
93 for (j = 0; j < dma->bufs[i].buf_count; j++) { in drm_dma_takedown()
94 free(dma->bufs[i].buflist[j].dev_private, in drm_dma_takedown()
97 free(dma->bufs[i].buflist, DRM_MEM_BUFS); in drm_dma_takedown()