Lines Matching refs:vkdata
29 struct _vk_data *vkdata);
38 struct _vk_data *vkdata) in bcm_vk_dma_alloc() argument
52 data = get_unaligned(&vkdata->address); in bcm_vk_dma_alloc()
59 last = ((data + vkdata->size - 1) & PAGE_MASK) >> PAGE_SHIFT; in bcm_vk_dma_alloc()
70 data, vkdata->size, dma->nr_pages); in bcm_vk_dma_alloc()
99 dma->sglist[SGLIST_TOTALSIZE] = vkdata->size; in bcm_vk_dma_alloc()
100 remaining_size = vkdata->size; in bcm_vk_dma_alloc()
156 put_unaligned((u64)dma->handle, &vkdata->address); in bcm_vk_dma_alloc()
157 vkdata->size = (dma->sglist[SGLIST_NUM_SG] * sizeof(*sgdata)) + in bcm_vk_dma_alloc()
166 vkdata->size); in bcm_vk_dma_alloc()
167 for (i = 0; i < vkdata->size / sizeof(u32); i++) in bcm_vk_dma_alloc()
177 struct _vk_data *vkdata, in bcm_vk_sg_alloc() argument
185 if (vkdata[i].size && vkdata[i].address) { in bcm_vk_sg_alloc()
193 &vkdata[i]); in bcm_vk_sg_alloc()
194 } else if (vkdata[i].size || in bcm_vk_sg_alloc()
195 vkdata[i].address) { in bcm_vk_sg_alloc()
202 i, vkdata[i].size, vkdata[i].address); in bcm_vk_sg_alloc()
232 struct _vk_data *vkdata; in bcm_vk_dma_free() local
238 vkdata = (struct _vk_data *)&dma->sglist[SGLIST_VKDATA_START]; in bcm_vk_dma_free()
240 size = vkdata[i].size; in bcm_vk_dma_free()
241 addr = get_unaligned(&vkdata[i].address); in bcm_vk_dma_free()