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()
1387 struct lpfc_dmabuf *bmp, *cmp; in lpfc_issue_ct_rsp_cmp() local
1410 bmp = cmdiocbq->context3; in lpfc_issue_ct_rsp_cmp()
1438 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_issue_ct_rsp_cmp()
1439 kfree(bmp); in lpfc_issue_ct_rsp_cmp()
1463 struct lpfc_dmabuf *cmp, struct lpfc_dmabuf *bmp, in lpfc_issue_ct_rsp() argument
1492 icmd->un.xseq64.bdl.addrHigh = putPaddrHigh(bmp->phys); in lpfc_issue_ct_rsp()
1493 icmd->un.xseq64.bdl.addrLow = putPaddrLow(bmp->phys); in lpfc_issue_ct_rsp()
1558 ctiocb->context3 = bmp; in lpfc_issue_ct_rsp()
1615 struct lpfc_dmabuf *bmp = NULL, *cmp = NULL; in lpfc_bsg_send_mgmt_rsp() local
1630 bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_bsg_send_mgmt_rsp()
1631 if (!bmp) { in lpfc_bsg_send_mgmt_rsp()
1636 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_bsg_send_mgmt_rsp()
1637 if (!bmp->virt) { in lpfc_bsg_send_mgmt_rsp()
1642 INIT_LIST_HEAD(&bmp->list); in lpfc_bsg_send_mgmt_rsp()
1643 bpl = (struct ulp_bde64 *) bmp->virt; in lpfc_bsg_send_mgmt_rsp()
1654 rc = lpfc_issue_ct_rsp(phba, job, tag, cmp, bmp, bpl_entries); in lpfc_bsg_send_mgmt_rsp()
1664 if (bmp->virt) in lpfc_bsg_send_mgmt_rsp()
1665 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_rsp()
1666 kfree(bmp); in lpfc_bsg_send_mgmt_rsp()
4957 struct lpfc_dmabuf *bmp, *cmp, *rmp; in lpfc_bsg_menlo_cmd_cmp() local
4966 bmp = cmdiocbq->context3; in lpfc_bsg_menlo_cmd_cmp()
5019 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_menlo_cmd_cmp()
5020 kfree(bmp); in lpfc_bsg_menlo_cmd_cmp()
5052 struct lpfc_dmabuf *bmp = NULL, *cmp = NULL, *rmp = NULL; in lpfc_menlo_cmd() local
5103 bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_menlo_cmd()
5104 if (!bmp) { in lpfc_menlo_cmd()
5109 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_menlo_cmd()
5110 if (!bmp->virt) { in lpfc_menlo_cmd()
5115 INIT_LIST_HEAD(&bmp->list); in lpfc_menlo_cmd()
5117 bpl = (struct ulp_bde64 *)bmp->virt; in lpfc_menlo_cmd()
5145 cmd->un.genreq64.bdl.addrHigh = putPaddrHigh(bmp->phys); in lpfc_menlo_cmd()
5146 cmd->un.genreq64.bdl.addrLow = putPaddrLow(bmp->phys); in lpfc_menlo_cmd()
5165 cmdiocbq->context3 = bmp; in lpfc_menlo_cmd()
5196 if (bmp->virt) in lpfc_menlo_cmd()
5197 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_menlo_cmd()
5198 kfree(bmp); in lpfc_menlo_cmd()