Lines Matching refs:elements
99 pool->elements = kmalloc_array(LPFC_MBUF_POOL_SIZE, in lpfc_mem_alloc()
102 if (!pool->elements) in lpfc_mem_alloc()
108 pool->elements[i].virt = dma_pool_alloc(phba->lpfc_mbuf_pool, in lpfc_mem_alloc()
109 GFP_KERNEL, &pool->elements[i].phys); in lpfc_mem_alloc()
110 if (!pool->elements[i].virt) in lpfc_mem_alloc()
181 dma_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt, in lpfc_mem_alloc()
182 pool->elements[i].phys); in lpfc_mem_alloc()
183 kfree(pool->elements); in lpfc_mem_alloc()
256 dma_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt, in lpfc_mem_free()
257 pool->elements[i].phys); in lpfc_mem_free()
258 kfree(pool->elements); in lpfc_mem_free()
379 ret = pool->elements[pool->current_count].virt; in lpfc_mbuf_alloc()
380 *handle = pool->elements[pool->current_count].phys; in lpfc_mbuf_alloc()
406 pool->elements[pool->current_count].virt = virt; in __lpfc_mbuf_free()
407 pool->elements[pool->current_count].phys = dma; in __lpfc_mbuf_free()