Lines Matching refs:desc_blocks
98 struct xdma_desc_block *desc_blocks; member
164 block = &sw_desc->desc_blocks[i - 1]; in xdma_link_sg_desc_blocks()
178 block = &sw_desc->desc_blocks[sw_desc->dblk_num - 2]; in xdma_link_sg_desc_blocks()
184 block = &sw_desc->desc_blocks[sw_desc->dblk_num - 1]; in xdma_link_sg_desc_blocks()
199 block = sw_desc->desc_blocks; in xdma_link_cyclic_desc_blocks()
251 if (!sw_desc->desc_blocks[i].virt_addr) in xdma_free_desc()
254 sw_desc->desc_blocks[i].virt_addr, in xdma_free_desc()
255 sw_desc->desc_blocks[i].dma_addr); in xdma_free_desc()
257 kfree(sw_desc->desc_blocks); in xdma_free_desc()
287 sw_desc->desc_blocks = kcalloc(dblk_num, sizeof(*sw_desc->desc_blocks), in xdma_alloc_desc()
289 if (!sw_desc->desc_blocks) in xdma_alloc_desc()
303 sw_desc->desc_blocks[i].virt_addr = addr; in xdma_alloc_desc()
304 sw_desc->desc_blocks[i].dma_addr = dma_addr; in xdma_alloc_desc()
355 block = &desc->desc_blocks[completed_blocks]; in xdma_xfer_start()
573 dblk = sw_desc->desc_blocks + (desc_num / XDMA_DESC_ADJACENT); in xdma_fill_descs()