Lines Matching refs:elements
121 pool->elements = kmalloc_array(LPFC_MBUF_POOL_SIZE, in lpfc_mem_alloc()
124 if (!pool->elements) in lpfc_mem_alloc()
130 pool->elements[i].virt = dma_pool_alloc(phba->lpfc_mbuf_pool, in lpfc_mem_alloc()
131 GFP_KERNEL, &pool->elements[i].phys); 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()
204 pool->elements[i].phys); in lpfc_mem_alloc()
205 kfree(pool->elements); in lpfc_mem_alloc()
275 dma_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt, in lpfc_mem_free()
276 pool->elements[i].phys); in lpfc_mem_free()
277 kfree(pool->elements); in lpfc_mem_free()
398 ret = pool->elements[pool->current_count].virt; in lpfc_mbuf_alloc()
399 *handle = pool->elements[pool->current_count].phys; in lpfc_mbuf_alloc()
425 pool->elements[pool->current_count].virt = virt; in __lpfc_mbuf_free()
426 pool->elements[pool->current_count].phys = dma; in __lpfc_mbuf_free()