Lines Matching refs:bmp
119 struct lpfc_dmabuf *mp, *bmp;
126 bmp = cmdiocb->bpl_dmabuf;
133 if (bmp) {
134 lpfc_mbuf_free(phba, bmp->virt, bmp->phys);
135 kfree(bmp);
161 struct lpfc_dmabuf *bmp = NULL;
181 bmp = kmalloc(sizeof(*bmp), GFP_KERNEL);
182 if (!bmp) {
187 bmp->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &bmp->phys);
188 if (!bmp->virt) {
194 INIT_LIST_HEAD(&bmp->list);
196 bpl = (struct ulp_bde64 *)bmp->virt;
224 lpfc_sli_prep_xmit_seq64(phba, cmdiocbq, bmp,
229 lpfc_sli_prep_xmit_seq64(phba, cmdiocbq, bmp, 0, ulp_context, 1,
236 cmdiocbq->bpl_dmabuf = bmp;
259 lpfc_mbuf_free(phba, bmp->virt, bmp->phys);
261 kfree(bmp);
577 * @bmp: Pointer to BPL for SLI command
586 lpfc_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp,
607 geniocb->bpl_dmabuf = bmp;
625 lpfc_sli_prep_gen_req(phba, geniocb, bmp, ulp_context, num_entry, tmo);
657 * @bmp: Pointer to BPL for SLI command
665 struct lpfc_dmabuf *bmp, struct lpfc_nodelist *ndlp,
671 struct ulp_bde64 *bpl = (struct ulp_bde64 *) bmp->virt;
689 status = lpfc_gen_req(vport, bmp, inmp, outmp, cmpl, ndlp,
1906 struct lpfc_dmabuf *mp, *bmp;
1938 bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
1939 if (!bmp) {
1944 INIT_LIST_HEAD(&bmp->list);
1945 bmp->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &(bmp->phys));
1946 if (!bmp->virt) {
1957 bpl = (struct ulp_bde64 *) bmp->virt;
2151 if (!lpfc_ct_cmd(vport, mp, bmp, ndlp, cmpl, rsp_size, retry)) {
2161 lpfc_mbuf_free(phba, bmp->virt, bmp->phys);
2163 kfree(bmp);
3689 struct lpfc_dmabuf *mp, *bmp;
3720 bmp = kmalloc(sizeof(*bmp), GFP_KERNEL);
3721 if (!bmp)
3724 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys);
3725 if (!bmp->virt)
3729 INIT_LIST_HEAD(&bmp->list);
3799 bpl = (struct ulp_bde64 *)bmp->virt;
3808 if (!lpfc_ct_cmd(vport, mp, bmp, ndlp, cmpl, rsp_size, retry))
3812 lpfc_mbuf_free(phba, bmp->virt, bmp->phys);
3814 kfree(bmp);