Lines Matching refs:elements
96 pool->elements = kmalloc(sizeof(struct lpfc_dmabuf) * in lpfc_mem_alloc()
98 if (!pool->elements) in lpfc_mem_alloc()
104 pool->elements[i].virt = pci_pool_alloc(phba->lpfc_mbuf_pool, in lpfc_mem_alloc()
105 GFP_KERNEL, &pool->elements[i].phys); in lpfc_mem_alloc()
106 if (!pool->elements[i].virt) in lpfc_mem_alloc()
164 pci_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt, in lpfc_mem_alloc()
165 pool->elements[i].phys); in lpfc_mem_alloc()
166 kfree(pool->elements); in lpfc_mem_alloc()
219 pci_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt, in lpfc_mem_free()
220 pool->elements[i].phys); in lpfc_mem_free()
221 kfree(pool->elements); in lpfc_mem_free()
326 ret = pool->elements[pool->current_count].virt; in lpfc_mbuf_alloc()
327 *handle = pool->elements[pool->current_count].phys; in lpfc_mbuf_alloc()
353 pool->elements[pool->current_count].virt = virt; in __lpfc_mbuf_free()
354 pool->elements[pool->current_count].phys = dma; in __lpfc_mbuf_free()