Lines Matching refs:bmp
307 struct lpfc_dmabuf *bmp, *cmp, *rmp; in lpfc_bsg_send_mgmt_cmd_cmp() local
335 bmp = cmdiocbq->bpl_dmabuf; in lpfc_bsg_send_mgmt_cmd_cmp()
368 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_cmd_cmp()
369 kfree(bmp); in lpfc_bsg_send_mgmt_cmd_cmp()
398 struct lpfc_dmabuf *bmp = NULL, *cmp = NULL, *rmp = NULL; in lpfc_bsg_send_mgmt_cmd() local
433 bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_bsg_send_mgmt_cmd()
434 if (!bmp) { in lpfc_bsg_send_mgmt_cmd()
438 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_bsg_send_mgmt_cmd()
439 if (!bmp->virt) { in lpfc_bsg_send_mgmt_cmd()
444 INIT_LIST_HEAD(&bmp->list); in lpfc_bsg_send_mgmt_cmd()
446 bpl = (struct ulp_bde64 *) bmp->virt; in lpfc_bsg_send_mgmt_cmd()
473 lpfc_sli_prep_gen_req(phba, cmdiocbq, bmp, ulp_context, num_entry, in lpfc_bsg_send_mgmt_cmd()
479 cmdiocbq->bpl_dmabuf = bmp; in lpfc_bsg_send_mgmt_cmd()
531 if (bmp->virt) in lpfc_bsg_send_mgmt_cmd()
532 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_cmd()
533 kfree(bmp); in lpfc_bsg_send_mgmt_cmd()
1377 struct lpfc_dmabuf *bmp, *cmp; in lpfc_issue_ct_rsp_cmp() local
1401 bmp = cmdiocbq->bpl_dmabuf; in lpfc_issue_ct_rsp_cmp()
1432 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_issue_ct_rsp_cmp()
1433 kfree(bmp); in lpfc_issue_ct_rsp_cmp()
1459 struct lpfc_dmabuf *cmp, struct lpfc_dmabuf *bmp, in lpfc_issue_ct_rsp() argument
1502 lpfc_sli_prep_xmit_seq64(phba, ctiocb, bmp, in lpfc_issue_ct_rsp()
1512 lpfc_sli_prep_xmit_seq64(phba, ctiocb, bmp, 0, tag, num_entry, in lpfc_issue_ct_rsp()
1530 ctiocb->bpl_dmabuf = bmp; in lpfc_issue_ct_rsp()
1593 struct lpfc_dmabuf *bmp = NULL, *cmp = NULL; in lpfc_bsg_send_mgmt_rsp() local
1608 bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_bsg_send_mgmt_rsp()
1609 if (!bmp) { in lpfc_bsg_send_mgmt_rsp()
1614 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_bsg_send_mgmt_rsp()
1615 if (!bmp->virt) { in lpfc_bsg_send_mgmt_rsp()
1620 INIT_LIST_HEAD(&bmp->list); in lpfc_bsg_send_mgmt_rsp()
1621 bpl = (struct ulp_bde64 *) bmp->virt; in lpfc_bsg_send_mgmt_rsp()
1632 rc = lpfc_issue_ct_rsp(phba, job, tag, cmp, bmp, bpl_entries); in lpfc_bsg_send_mgmt_rsp()
1642 if (bmp->virt) in lpfc_bsg_send_mgmt_rsp()
1643 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_rsp()
1644 kfree(bmp); in lpfc_bsg_send_mgmt_rsp()