Lines Matching refs:bufs
68 memset(&dev->dma->bufs[i], 0, sizeof(dev->dma->bufs[0])); in drm_legacy_dma_setup()
96 if (dma->bufs[i].seg_count) { in drm_legacy_dma_takedown()
100 dma->bufs[i].buf_count, in drm_legacy_dma_takedown()
101 dma->bufs[i].seg_count); in drm_legacy_dma_takedown()
102 for (j = 0; j < dma->bufs[i].seg_count; j++) { in drm_legacy_dma_takedown()
103 if (dma->bufs[i].seglist[j]) { in drm_legacy_dma_takedown()
104 dmah = dma->bufs[i].seglist[j]; in drm_legacy_dma_takedown()
112 kfree(dma->bufs[i].seglist); in drm_legacy_dma_takedown()
114 if (dma->bufs[i].buf_count) { in drm_legacy_dma_takedown()
115 for (j = 0; j < dma->bufs[i].buf_count; j++) { in drm_legacy_dma_takedown()
116 kfree(dma->bufs[i].buflist[j].dev_private); in drm_legacy_dma_takedown()
118 kfree(dma->bufs[i].buflist); in drm_legacy_dma_takedown()