Lines Matching refs:elements
115 pool->elements = kmalloc(sizeof(struct lpfc_dmabuf) * in lpfc_mem_alloc()
117 if (!pool->elements) in lpfc_mem_alloc()
123 pool->elements[i].virt = pci_pool_alloc(phba->lpfc_mbuf_pool, in lpfc_mem_alloc()
124 GFP_KERNEL, &pool->elements[i].phys); in lpfc_mem_alloc()
125 if (!pool->elements[i].virt) in lpfc_mem_alloc()
193 pci_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt, in lpfc_mem_alloc()
194 pool->elements[i].phys); in lpfc_mem_alloc()
195 kfree(pool->elements); in lpfc_mem_alloc()
253 pci_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt, in lpfc_mem_free()
254 pool->elements[i].phys); in lpfc_mem_free()
255 kfree(pool->elements); in lpfc_mem_free()
373 ret = pool->elements[pool->current_count].virt; in lpfc_mbuf_alloc()
374 *handle = pool->elements[pool->current_count].phys; in lpfc_mbuf_alloc()
400 pool->elements[pool->current_count].virt = virt; in __lpfc_mbuf_free()
401 pool->elements[pool->current_count].phys = dma; in __lpfc_mbuf_free()