Lines Matching refs:desc_blocks
92 struct xdma_desc_block *desc_blocks; member
152 block = &sw_desc->desc_blocks[i - 1]; in xdma_link_desc_blocks()
166 block = &sw_desc->desc_blocks[sw_desc->dblk_num - 2]; in xdma_link_desc_blocks()
172 block = &sw_desc->desc_blocks[sw_desc->dblk_num - 1]; in xdma_link_desc_blocks()
220 if (!sw_desc->desc_blocks[i].virt_addr) in xdma_free_desc()
223 sw_desc->desc_blocks[i].virt_addr, in xdma_free_desc()
224 sw_desc->desc_blocks[i].dma_addr); in xdma_free_desc()
226 kfree(sw_desc->desc_blocks); in xdma_free_desc()
252 sw_desc->desc_blocks = kcalloc(dblk_num, sizeof(*sw_desc->desc_blocks), in xdma_alloc_desc()
254 if (!sw_desc->desc_blocks) in xdma_alloc_desc()
263 sw_desc->desc_blocks[i].virt_addr = addr; in xdma_alloc_desc()
264 sw_desc->desc_blocks[i].dma_addr = dma_addr; in xdma_alloc_desc()
312 block = &desc->desc_blocks[completed_blocks]; in xdma_xfer_start()
484 dblk = sw_desc->desc_blocks; in xdma_prep_device_sg()