Lines Matching refs:hbqbp
502 struct hbq_dmabuf *hbqbp; in lpfc_els_hbq_alloc() local
504 hbqbp = kzalloc(sizeof(struct hbq_dmabuf), GFP_KERNEL); in lpfc_els_hbq_alloc()
505 if (!hbqbp) in lpfc_els_hbq_alloc()
508 hbqbp->dbuf.virt = dma_pool_alloc(phba->lpfc_hbq_pool, GFP_KERNEL, in lpfc_els_hbq_alloc()
509 &hbqbp->dbuf.phys); in lpfc_els_hbq_alloc()
510 if (!hbqbp->dbuf.virt) { in lpfc_els_hbq_alloc()
511 kfree(hbqbp); in lpfc_els_hbq_alloc()
514 hbqbp->total_size = LPFC_BPL_SIZE; in lpfc_els_hbq_alloc()
515 return hbqbp; in lpfc_els_hbq_alloc()
531 lpfc_els_hbq_free(struct lpfc_hba *phba, struct hbq_dmabuf *hbqbp) in lpfc_els_hbq_free() argument
533 dma_pool_free(phba->lpfc_hbq_pool, hbqbp->dbuf.virt, hbqbp->dbuf.phys); in lpfc_els_hbq_free()
534 kfree(hbqbp); in lpfc_els_hbq_free()