Lines Matching refs:elements
123 pool->elements = kmalloc_array(LPFC_MBUF_POOL_SIZE, in lpfc_mem_alloc()
126 if (!pool->elements) in lpfc_mem_alloc()
132 pool->elements[i].virt = dma_pool_alloc(phba->lpfc_mbuf_pool, in lpfc_mem_alloc()
133 GFP_KERNEL, &pool->elements[i].phys); in lpfc_mem_alloc()
134 if (!pool->elements[i].virt) in lpfc_mem_alloc()
205 dma_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt, in lpfc_mem_alloc()
206 pool->elements[i].phys); in lpfc_mem_alloc()
207 kfree(pool->elements); in lpfc_mem_alloc()
286 dma_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt, in lpfc_mem_free()
287 pool->elements[i].phys); in lpfc_mem_free()
288 kfree(pool->elements); in lpfc_mem_free()
406 ret = pool->elements[pool->current_count].virt; in lpfc_mbuf_alloc()
407 *handle = pool->elements[pool->current_count].phys; in lpfc_mbuf_alloc()
433 pool->elements[pool->current_count].virt = virt; in __lpfc_mbuf_free()
434 pool->elements[pool->current_count].phys = dma; in __lpfc_mbuf_free()