Lines Matching refs:elements
42 #define LPFC_MBUF_POOL_SIZE 64 /* max elements in MBUF safety pool */
89 pool->elements = kmalloc(sizeof(struct lpfc_dmabuf) *
91 if (!pool->elements)
97 pool->elements[i].virt = pci_pool_alloc(phba->lpfc_mbuf_pool,
98 GFP_KERNEL, &pool->elements[i].phys);
99 if (!pool->elements[i].virt)
158 pci_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt,
159 pool->elements[i].phys);
160 kfree(pool->elements);
212 pci_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt,
213 pool->elements[i].phys);
214 kfree(pool->elements);
319 ret = pool->elements[pool->current_count].virt;
320 *handle = pool->elements[pool->current_count].phys;
346 pool->elements[pool->current_count].virt = virt;
347 pool->elements[pool->current_count].phys = dma;