Lines Matching refs:bmp
307 struct lpfc_dmabuf *bmp, *cmp, *rmp; in lpfc_bsg_send_mgmt_cmd_cmp() local
335 bmp = cmdiocbq->context3; in lpfc_bsg_send_mgmt_cmd_cmp()
367 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_cmd_cmp()
368 kfree(bmp); in lpfc_bsg_send_mgmt_cmd_cmp()
399 struct lpfc_dmabuf *bmp = NULL, *cmp = NULL, *rmp = NULL; in lpfc_bsg_send_mgmt_cmd() local
431 bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_bsg_send_mgmt_cmd()
432 if (!bmp) { in lpfc_bsg_send_mgmt_cmd()
436 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_bsg_send_mgmt_cmd()
437 if (!bmp->virt) { in lpfc_bsg_send_mgmt_cmd()
442 INIT_LIST_HEAD(&bmp->list); in lpfc_bsg_send_mgmt_cmd()
444 bpl = (struct ulp_bde64 *) bmp->virt; in lpfc_bsg_send_mgmt_cmd()
465 cmd->un.genreq64.bdl.addrHigh = putPaddrHigh(bmp->phys); in lpfc_bsg_send_mgmt_cmd()
466 cmd->un.genreq64.bdl.addrLow = putPaddrLow(bmp->phys); in lpfc_bsg_send_mgmt_cmd()
483 cmdiocbq->context3 = bmp; in lpfc_bsg_send_mgmt_cmd()
491 cmdiocbq->context3 = bmp; in lpfc_bsg_send_mgmt_cmd()
539 if (bmp->virt) in lpfc_bsg_send_mgmt_cmd()
540 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_cmd()
541 kfree(bmp); in lpfc_bsg_send_mgmt_cmd()
1380 struct lpfc_dmabuf *bmp, *cmp; in lpfc_issue_ct_rsp_cmp() local
1403 bmp = cmdiocbq->context3; 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
1497 icmd->un.xseq64.bdl.addrHigh = putPaddrHigh(bmp->phys); in lpfc_issue_ct_rsp()
1498 icmd->un.xseq64.bdl.addrLow = putPaddrLow(bmp->phys); in lpfc_issue_ct_rsp()
1556 ctiocb->context3 = bmp; in lpfc_issue_ct_rsp()
1619 struct lpfc_dmabuf *bmp = NULL, *cmp = NULL; in lpfc_bsg_send_mgmt_rsp() local
1634 bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_bsg_send_mgmt_rsp()
1635 if (!bmp) { in lpfc_bsg_send_mgmt_rsp()
1640 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_bsg_send_mgmt_rsp()
1641 if (!bmp->virt) { in lpfc_bsg_send_mgmt_rsp()
1646 INIT_LIST_HEAD(&bmp->list); in lpfc_bsg_send_mgmt_rsp()
1647 bpl = (struct ulp_bde64 *) bmp->virt; in lpfc_bsg_send_mgmt_rsp()
1658 rc = lpfc_issue_ct_rsp(phba, job, tag, cmp, bmp, bpl_entries); in lpfc_bsg_send_mgmt_rsp()
1668 if (bmp->virt) in lpfc_bsg_send_mgmt_rsp()
1669 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_rsp()
1670 kfree(bmp); in lpfc_bsg_send_mgmt_rsp()
5075 struct lpfc_dmabuf *bmp, *cmp, *rmp; in lpfc_bsg_menlo_cmd_cmp() local
5084 bmp = cmdiocbq->context3; in lpfc_bsg_menlo_cmd_cmp()
5138 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_menlo_cmd_cmp()
5139 kfree(bmp); in lpfc_bsg_menlo_cmd_cmp()
5173 struct lpfc_dmabuf *bmp = NULL, *cmp = NULL, *rmp = NULL; in lpfc_menlo_cmd() local
5221 bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_menlo_cmd()
5222 if (!bmp) { in lpfc_menlo_cmd()
5227 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_menlo_cmd()
5228 if (!bmp->virt) { in lpfc_menlo_cmd()
5233 INIT_LIST_HEAD(&bmp->list); in lpfc_menlo_cmd()
5235 bpl = (struct ulp_bde64 *)bmp->virt; in lpfc_menlo_cmd()
5263 cmd->un.genreq64.bdl.addrHigh = putPaddrHigh(bmp->phys); in lpfc_menlo_cmd()
5264 cmd->un.genreq64.bdl.addrLow = putPaddrLow(bmp->phys); in lpfc_menlo_cmd()
5283 cmdiocbq->context3 = bmp; in lpfc_menlo_cmd()
5314 if (bmp->virt) in lpfc_menlo_cmd()
5315 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_menlo_cmd()
5316 kfree(bmp); in lpfc_menlo_cmd()