Lines Matching refs:virt
54 b->virt = dev->mem_virt + offset; in s5p_mfc_alloc_priv_buf()
61 b->virt = dma_alloc_coherent(mem_dev, b->size, &b->dma, GFP_KERNEL); in s5p_mfc_alloc_priv_buf()
62 if (!b->virt) in s5p_mfc_alloc_priv_buf()
67 dma_free_coherent(mem_dev, b->size, b->virt, b->dma); in s5p_mfc_alloc_priv_buf()
72 mfc_debug(3, "Allocated addr %p %pad\n", b->virt, &b->dma); in s5p_mfc_alloc_priv_buf()
87 b->virt = dma_alloc_coherent(mem_dev, b->size, &b->dma, GFP_KERNEL); in s5p_mfc_alloc_generic_buf()
88 if (!b->virt) in s5p_mfc_alloc_generic_buf()
91 mfc_debug(3, "Allocated addr %p %pad\n", b->virt, &b->dma); in s5p_mfc_alloc_generic_buf()
109 dma_free_coherent(mem_dev, b->size, b->virt, b->dma); in s5p_mfc_release_priv_buf()
111 b->virt = NULL; in s5p_mfc_release_priv_buf()
120 dma_free_coherent(mem_dev, b->size, b->virt, b->dma); in s5p_mfc_release_generic_buf()
121 b->virt = NULL; in s5p_mfc_release_generic_buf()