Lines Matching refs:hbqbp
489 struct hbq_dmabuf *hbqbp; in lpfc_els_hbq_alloc() local
491 hbqbp = kzalloc(sizeof(struct hbq_dmabuf), GFP_KERNEL); in lpfc_els_hbq_alloc()
492 if (!hbqbp) in lpfc_els_hbq_alloc()
495 hbqbp->dbuf.virt = dma_pool_alloc(phba->lpfc_hbq_pool, GFP_KERNEL, in lpfc_els_hbq_alloc()
496 &hbqbp->dbuf.phys); in lpfc_els_hbq_alloc()
497 if (!hbqbp->dbuf.virt) { in lpfc_els_hbq_alloc()
498 kfree(hbqbp); in lpfc_els_hbq_alloc()
501 hbqbp->total_size = LPFC_BPL_SIZE; in lpfc_els_hbq_alloc()
502 return hbqbp; in lpfc_els_hbq_alloc()
518 lpfc_els_hbq_free(struct lpfc_hba *phba, struct hbq_dmabuf *hbqbp) in lpfc_els_hbq_free() argument
520 dma_pool_free(phba->lpfc_hbq_pool, hbqbp->dbuf.virt, hbqbp->dbuf.phys); in lpfc_els_hbq_free()
521 kfree(hbqbp); in lpfc_els_hbq_free()