Lines Matching refs:lpfc_mbuf_pool
97 * Description: Creates and allocates PCI pools lpfc_mbuf_pool,
115 phba->lpfc_mbuf_pool = dma_pool_create("lpfc_mbuf_pool", &phba->pcidev->dev,
118 if (!phba->lpfc_mbuf_pool)
130 pool->elements[i].virt = dma_pool_alloc(phba->lpfc_mbuf_pool,
203 dma_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt,
207 dma_pool_destroy(phba->lpfc_mbuf_pool);
208 phba->lpfc_mbuf_pool = NULL;
275 dma_pool_free(phba->lpfc_mbuf_pool, pool->elements[i].virt,
279 dma_pool_destroy(phba->lpfc_mbuf_pool);
280 phba->lpfc_mbuf_pool = NULL;
303 * used : lpfc_sg_dma_buf_pool, lpfc_mbuf_pool, lpfc_hrb_pool. Frees
369 * lpfc_mbuf_alloc - Allocate an mbuf from the lpfc_mbuf_pool PCI pool
374 * Description: Allocates a DMA-mapped buffer from the lpfc_mbuf_pool PCI pool.
393 ret = dma_pool_alloc(phba->lpfc_mbuf_pool, GFP_KERNEL, handle);
406 * __lpfc_mbuf_free - Free an mbuf from the lpfc_mbuf_pool PCI pool (locked)
409 * @dma: the DMA-mapped address of the lpfc_mbuf_pool to be freed
411 * Description: Returns an mbuf lpfc_mbuf_pool to the lpfc_mbuf_safety_pool if
429 dma_pool_free(phba->lpfc_mbuf_pool, virt, dma);
435 * lpfc_mbuf_free - Free an mbuf from the lpfc_mbuf_pool PCI pool (unlocked)
438 * @dma: the DMA-mapped address of the lpfc_mbuf_pool to be freed
440 * Description: Returns an mbuf lpfc_mbuf_pool to the lpfc_mbuf_safety_pool if