Lines Matching refs:bmp
302 struct lpfc_dmabuf *bmp, *cmp, *rmp; in lpfc_bsg_send_mgmt_cmd_cmp() local
329 bmp = cmdiocbq->context3; in lpfc_bsg_send_mgmt_cmd_cmp()
361 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_cmd_cmp()
362 kfree(bmp); in lpfc_bsg_send_mgmt_cmd_cmp()
391 struct lpfc_dmabuf *bmp = NULL, *cmp = NULL, *rmp = NULL; in lpfc_bsg_send_mgmt_cmd() local
430 bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_bsg_send_mgmt_cmd()
431 if (!bmp) { in lpfc_bsg_send_mgmt_cmd()
435 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_bsg_send_mgmt_cmd()
436 if (!bmp->virt) { in lpfc_bsg_send_mgmt_cmd()
441 INIT_LIST_HEAD(&bmp->list); in lpfc_bsg_send_mgmt_cmd()
443 bpl = (struct ulp_bde64 *) bmp->virt; in lpfc_bsg_send_mgmt_cmd()
464 cmd->un.genreq64.bdl.addrHigh = putPaddrHigh(bmp->phys); in lpfc_bsg_send_mgmt_cmd()
465 cmd->un.genreq64.bdl.addrLow = putPaddrLow(bmp->phys); in lpfc_bsg_send_mgmt_cmd()
482 cmdiocbq->context3 = bmp; in lpfc_bsg_send_mgmt_cmd()
490 cmdiocbq->context3 = bmp; in lpfc_bsg_send_mgmt_cmd()
534 if (bmp->virt) in lpfc_bsg_send_mgmt_cmd()
535 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_cmd()
536 kfree(bmp); in lpfc_bsg_send_mgmt_cmd()
1385 struct lpfc_dmabuf *bmp, *cmp; in lpfc_issue_ct_rsp_cmp() local
1408 bmp = cmdiocbq->context3; in lpfc_issue_ct_rsp_cmp()
1436 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_issue_ct_rsp_cmp()
1437 kfree(bmp); in lpfc_issue_ct_rsp_cmp()
1461 struct lpfc_dmabuf *cmp, struct lpfc_dmabuf *bmp, in lpfc_issue_ct_rsp() argument
1490 icmd->un.xseq64.bdl.addrHigh = putPaddrHigh(bmp->phys); in lpfc_issue_ct_rsp()
1491 icmd->un.xseq64.bdl.addrLow = putPaddrLow(bmp->phys); in lpfc_issue_ct_rsp()
1556 ctiocb->context3 = bmp; in lpfc_issue_ct_rsp()
1613 struct lpfc_dmabuf *bmp = NULL, *cmp = NULL; in lpfc_bsg_send_mgmt_rsp() local
1628 bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_bsg_send_mgmt_rsp()
1629 if (!bmp) { in lpfc_bsg_send_mgmt_rsp()
1634 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_bsg_send_mgmt_rsp()
1635 if (!bmp->virt) { in lpfc_bsg_send_mgmt_rsp()
1640 INIT_LIST_HEAD(&bmp->list); in lpfc_bsg_send_mgmt_rsp()
1641 bpl = (struct ulp_bde64 *) bmp->virt; in lpfc_bsg_send_mgmt_rsp()
1652 rc = lpfc_issue_ct_rsp(phba, job, tag, cmp, bmp, bpl_entries); in lpfc_bsg_send_mgmt_rsp()
1662 if (bmp->virt) in lpfc_bsg_send_mgmt_rsp()
1663 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_rsp()
1664 kfree(bmp); in lpfc_bsg_send_mgmt_rsp()
4941 struct lpfc_dmabuf *bmp, *cmp, *rmp; in lpfc_bsg_menlo_cmd_cmp() local
4950 bmp = cmdiocbq->context3; in lpfc_bsg_menlo_cmd_cmp()
5003 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_menlo_cmd_cmp()
5004 kfree(bmp); in lpfc_bsg_menlo_cmd_cmp()
5035 struct lpfc_dmabuf *bmp = NULL, *cmp = NULL, *rmp = NULL; in lpfc_menlo_cmd() local
5083 bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_menlo_cmd()
5084 if (!bmp) { in lpfc_menlo_cmd()
5089 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_menlo_cmd()
5090 if (!bmp->virt) { in lpfc_menlo_cmd()
5095 INIT_LIST_HEAD(&bmp->list); in lpfc_menlo_cmd()
5097 bpl = (struct ulp_bde64 *)bmp->virt; in lpfc_menlo_cmd()
5125 cmd->un.genreq64.bdl.addrHigh = putPaddrHigh(bmp->phys); in lpfc_menlo_cmd()
5126 cmd->un.genreq64.bdl.addrLow = putPaddrLow(bmp->phys); in lpfc_menlo_cmd()
5145 cmdiocbq->context3 = bmp; in lpfc_menlo_cmd()
5176 if (bmp->virt) in lpfc_menlo_cmd()
5177 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_menlo_cmd()
5178 kfree(bmp); in lpfc_menlo_cmd()