23 #include <linux/slab.h>
24 #include <linux/pci.h>
30 #include <scsi/scsi.h>
42 #define LPFC_MBUF_POOL_SIZE 64
43 #define LPFC_MEM_POOL_SIZE 64
69 pci_pool_create(
"lpfc_scsi_dma_buf_pool",
76 pci_pool_create(
"lpfc_scsi_dma_buf_pool",
86 goto fail_free_dma_buf_pool;
91 goto fail_free_lpfc_mbuf_pool;
99 goto fail_free_mbuf_pool;
107 goto fail_free_mbuf_pool;
112 goto fail_free_mbox_pool;
119 goto fail_free_nlp_mem_pool;
124 goto fail_free_rrq_mem_pool;
130 goto fail_free_hrb_pool;
136 goto fail_free_nlp_mem_pool;
145 fail_free_rrq_mem_pool:
148 fail_free_nlp_mem_pool:
159 fail_free_lpfc_mbuf_pool:
162 fail_free_dma_buf_pool:
266 spin_unlock_irq(&phba->
hbalock);
310 unsigned long iflags;
321 spin_unlock_irqrestore(&phba->
hbalock, iflags);
370 unsigned long iflags;
374 spin_unlock_irqrestore(&phba->
hbalock, iflags);
402 if (!hbqbp->
dbuf.virt) {
453 &dma_buf->
hbuf.phys);
454 if (!dma_buf->
hbuf.virt) {
459 &dma_buf->
dbuf.phys);
460 if (!dma_buf->
dbuf.virt) {
516 spin_unlock_irqrestore(&phba->
hbalock, flags);
521 if (hbq_entry->
tag == -1) {
527 spin_unlock_irqrestore(&phba->
hbalock, flags);