Searched refs:hbqbp (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/scsi/lpfc/
H A Dlpfc_mem.c449 struct hbq_dmabuf *hbqbp; lpfc_els_hbq_alloc() local
451 hbqbp = kzalloc(sizeof(struct hbq_dmabuf), GFP_KERNEL); lpfc_els_hbq_alloc()
452 if (!hbqbp) lpfc_els_hbq_alloc()
455 hbqbp->dbuf.virt = pci_pool_alloc(phba->lpfc_hbq_pool, GFP_KERNEL, lpfc_els_hbq_alloc()
456 &hbqbp->dbuf.phys); lpfc_els_hbq_alloc()
457 if (!hbqbp->dbuf.virt) { lpfc_els_hbq_alloc()
458 kfree(hbqbp); lpfc_els_hbq_alloc()
461 hbqbp->size = LPFC_BPL_SIZE; lpfc_els_hbq_alloc()
462 return hbqbp; lpfc_els_hbq_alloc()
468 * @hbqbp: HBQ container returned by lpfc_els_hbq_alloc
478 lpfc_els_hbq_free(struct lpfc_hba *phba, struct hbq_dmabuf *hbqbp) lpfc_els_hbq_free() argument
480 pci_pool_free(phba->lpfc_hbq_pool, hbqbp->dbuf.virt, hbqbp->dbuf.phys); lpfc_els_hbq_free()
481 kfree(hbqbp); lpfc_els_hbq_free()

Completed in 34 milliseconds