Lines Matching refs:hbqbp
505 struct hbq_dmabuf *hbqbp; in lpfc_els_hbq_alloc() local
507 hbqbp = kzalloc(sizeof(struct hbq_dmabuf), GFP_KERNEL); in lpfc_els_hbq_alloc()
508 if (!hbqbp) in lpfc_els_hbq_alloc()
511 hbqbp->dbuf.virt = dma_pool_alloc(phba->lpfc_hbq_pool, GFP_KERNEL, in lpfc_els_hbq_alloc()
512 &hbqbp->dbuf.phys); in lpfc_els_hbq_alloc()
513 if (!hbqbp->dbuf.virt) { in lpfc_els_hbq_alloc()
514 kfree(hbqbp); in lpfc_els_hbq_alloc()
517 hbqbp->total_size = LPFC_BPL_SIZE; in lpfc_els_hbq_alloc()
518 return hbqbp; in lpfc_els_hbq_alloc()
534 lpfc_els_hbq_free(struct lpfc_hba *phba, struct hbq_dmabuf *hbqbp) in lpfc_els_hbq_free() argument
536 dma_pool_free(phba->lpfc_hbq_pool, hbqbp->dbuf.virt, hbqbp->dbuf.phys); in lpfc_els_hbq_free()
537 kfree(hbqbp); in lpfc_els_hbq_free()