Lines Matching refs:sglist
91 dma->sglist = dma_alloc_coherent(dev, in bcm_vk_dma_alloc()
95 if (!dma->sglist) in bcm_vk_dma_alloc()
98 dma->sglist[SGLIST_NUM_SG] = 0; in bcm_vk_dma_alloc()
99 dma->sglist[SGLIST_TOTALSIZE] = vkdata->size; in bcm_vk_dma_alloc()
101 sgdata = (struct _vk_data *)&dma->sglist[SGLIST_VKDATA_START]; in bcm_vk_dma_alloc()
142 dma->sglist[SGLIST_NUM_SG]++; in bcm_vk_dma_alloc()
153 dma->sglist[SGLIST_NUM_SG]++; in bcm_vk_dma_alloc()
157 vkdata->size = (dma->sglist[SGLIST_NUM_SG] * sizeof(*sgdata)) + in bcm_vk_dma_alloc()
163 (u64)dma->sglist, in bcm_vk_dma_alloc()
168 dev_dbg(dev, "i:0x%x 0x%x\n", i, dma->sglist[i]); in bcm_vk_dma_alloc()
220 if (dma[i].sglist) in bcm_vk_sg_alloc()
234 dev_dbg(dev, "free sglist=%p sglen=0x%x\n", dma->sglist, dma->sglen); in bcm_vk_dma_free()
237 num_sg = dma->sglist[SGLIST_NUM_SG]; in bcm_vk_dma_free()
238 vkdata = (struct _vk_data *)&dma->sglist[SGLIST_VKDATA_START]; in bcm_vk_dma_free()
247 dma_free_coherent(dev, dma->sglen, dma->sglist, dma->handle); in bcm_vk_dma_free()
255 dma->sglist = NULL; in bcm_vk_dma_free()
268 if (dma[i].sglist) { in bcm_vk_sg_free()