Lines Matching refs:bufs
65 (void) memset(&dev->dma->bufs[i], 0, sizeof(dev->dma->bufs[0]));
90 if (dma->bufs[i].seg_count) {
94 dma->bufs[i].buf_count,
95 dma->bufs[i].seg_count);
96 kfree(dma->bufs[i].seglist,
97 dma->bufs[i].seg_count * sizeof (*dma->bufs[0].seglist));
99 if (dma->bufs[i].buf_count) {
100 for (j = 0; j < dma->bufs[i].buf_count; j++) {
101 if (dma->bufs[i].buflist[j].dev_private) {
102 kfree(dma->bufs[i].buflist[j].dev_private,
103 dma->bufs[i].buflist[j].dev_priv_size);
106 kfree(dma->bufs[i].buflist,
107 dma->bufs[i].buf_count * sizeof(*dma->bufs[0].buflist));