Lines Matching refs:virt
73 void *virt, *virt_next; in qed_chain_free_next_ptr() local
77 virt = chain->p_virt_addr; in qed_chain_free_next_ptr()
81 if (!virt) in qed_chain_free_next_ptr()
84 next = virt + size; in qed_chain_free_next_ptr()
88 dma_free_coherent(dev, chain->page_size, virt, phys); in qed_chain_free_next_ptr()
90 virt = virt_next; in qed_chain_free_next_ptr()
202 void *virt, *virt_prev = NULL; in qed_chain_alloc_next_ptr() local
207 virt = dma_alloc_coherent(dev, chain->page_size, &phys, in qed_chain_alloc_next_ptr()
209 if (!virt) in qed_chain_alloc_next_ptr()
213 qed_chain_init_mem(chain, virt, phys); in qed_chain_alloc_next_ptr()
216 qed_chain_init_next_ptr_elem(chain, virt_prev, virt, in qed_chain_alloc_next_ptr()
220 virt_prev = virt; in qed_chain_alloc_next_ptr()
236 void *virt; in qed_chain_alloc_single() local
238 virt = dma_alloc_coherent(&cdev->pdev->dev, chain->page_size, in qed_chain_alloc_single()
240 if (!virt) in qed_chain_alloc_single()
243 qed_chain_init_mem(chain, virt, phys); in qed_chain_alloc_single()
257 void *virt; in qed_chain_alloc_pbl() local
290 virt = dma_alloc_coherent(dev, chain->page_size, &phys, in qed_chain_alloc_pbl()
292 if (!virt) in qed_chain_alloc_pbl()
296 qed_chain_init_mem(chain, virt, phys); in qed_chain_alloc_pbl()
304 addr_tbl[i].virt_addr = virt; in qed_chain_alloc_pbl()