Lines Matching full:virt
130 pool->elements[i].virt = dma_pool_alloc(phba->lpfc_mbuf_pool, in lpfc_mem_alloc()
132 if (!pool->elements[i].virt) in lpfc_mem_alloc()
203 dma_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt, in lpfc_mem_alloc()
275 dma_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt, in lpfc_mem_free()
349 phba->cgn_i->virt, phba->cgn_i->phys); in lpfc_mem_free_all()
398 ret = pool->elements[pool->current_count].virt; in lpfc_mbuf_alloc()
408 * @virt: mbuf to free
420 __lpfc_mbuf_free(struct lpfc_hba * phba, void *virt, dma_addr_t dma) in __lpfc_mbuf_free() argument
425 pool->elements[pool->current_count].virt = virt; in __lpfc_mbuf_free()
429 dma_pool_free(phba->lpfc_mbuf_pool, virt, dma); in __lpfc_mbuf_free()
437 * @virt: mbuf to free
448 lpfc_mbuf_free(struct lpfc_hba * phba, void *virt, dma_addr_t dma) in lpfc_mbuf_free() argument
453 __lpfc_mbuf_free(phba, virt, dma); in lpfc_mbuf_free()
485 * @virt: nvmet_buf to free
491 lpfc_nvmet_buf_free(struct lpfc_hba *phba, void *virt, dma_addr_t dma) in lpfc_nvmet_buf_free() argument
493 dma_pool_free(phba->lpfc_sg_dma_buf_pool, virt, dma); in lpfc_nvmet_buf_free()
518 hbqbp->dbuf.virt = dma_pool_alloc(phba->lpfc_hbq_pool, GFP_KERNEL, in lpfc_els_hbq_alloc()
520 if (!hbqbp->dbuf.virt) { in lpfc_els_hbq_alloc()
543 dma_pool_free(phba->lpfc_hbq_pool, hbqbp->dbuf.virt, hbqbp->dbuf.phys); in lpfc_els_hbq_free()
570 dma_buf->hbuf.virt = dma_pool_alloc(phba->lpfc_hrb_pool, GFP_KERNEL, in lpfc_sli4_rb_alloc()
572 if (!dma_buf->hbuf.virt) { in lpfc_sli4_rb_alloc()
576 dma_buf->dbuf.virt = dma_pool_alloc(phba->lpfc_drb_pool, GFP_KERNEL, in lpfc_sli4_rb_alloc()
578 if (!dma_buf->dbuf.virt) { in lpfc_sli4_rb_alloc()
579 dma_pool_free(phba->lpfc_hrb_pool, dma_buf->hbuf.virt, in lpfc_sli4_rb_alloc()
603 dma_pool_free(phba->lpfc_hrb_pool, dmab->hbuf.virt, dmab->hbuf.phys); in lpfc_sli4_rb_free()
604 dma_pool_free(phba->lpfc_drb_pool, dmab->dbuf.virt, dmab->dbuf.phys); in lpfc_sli4_rb_free()
628 dma_buf->hbuf.virt = dma_pool_alloc(phba->lpfc_hrb_pool, GFP_KERNEL, in lpfc_sli4_nvmet_alloc()
630 if (!dma_buf->hbuf.virt) { in lpfc_sli4_nvmet_alloc()
634 dma_buf->dbuf.virt = dma_pool_alloc(phba->lpfc_nvmet_drb_pool, in lpfc_sli4_nvmet_alloc()
636 if (!dma_buf->dbuf.virt) { in lpfc_sli4_nvmet_alloc()
637 dma_pool_free(phba->lpfc_hrb_pool, dma_buf->hbuf.virt, in lpfc_sli4_nvmet_alloc()
661 dma_pool_free(phba->lpfc_hrb_pool, dmab->hbuf.virt, dmab->hbuf.phys); in lpfc_sli4_nvmet_free()
663 dmab->dbuf.virt, dmab->dbuf.phys); in lpfc_sli4_nvmet_free()
705 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_in_buf_free()