Lines Matching refs:dma_buf
390 struct hwc_dma_buf *dma_buf; in mana_hwc_alloc_dma_buf() local
398 dma_buf = kzalloc(struct_size(dma_buf, reqs, q_depth), GFP_KERNEL); in mana_hwc_alloc_dma_buf()
399 if (!dma_buf) in mana_hwc_alloc_dma_buf()
402 dma_buf->num_reqs = q_depth; in mana_hwc_alloc_dma_buf()
406 gmi = &dma_buf->mem_info; in mana_hwc_alloc_dma_buf()
413 virt_addr = dma_buf->mem_info.virt_addr; in mana_hwc_alloc_dma_buf()
414 base_pa = (u8 *)dma_buf->mem_info.dma_handle; in mana_hwc_alloc_dma_buf()
417 hwc_wr = &dma_buf->reqs[i]; in mana_hwc_alloc_dma_buf()
425 *dma_buf_ptr = dma_buf; in mana_hwc_alloc_dma_buf()
428 kfree(dma_buf); in mana_hwc_alloc_dma_buf()
433 struct hwc_dma_buf *dma_buf) in mana_hwc_dealloc_dma_buf() argument
435 if (!dma_buf) in mana_hwc_dealloc_dma_buf()
438 mana_gd_free_memory(&dma_buf->mem_info); in mana_hwc_dealloc_dma_buf()
440 kfree(dma_buf); in mana_hwc_dealloc_dma_buf()