Lines Matching refs:mp
84 struct lpfc_dmabuf *mp, uint32_t size) in lpfc_ct_ignore_hbq_buffer() argument
86 if (!mp) { in lpfc_ct_ignore_hbq_buffer()
100 struct lpfc_dmabuf *mp, uint32_t size) in lpfc_ct_unsol_buffer() argument
102 lpfc_ct_ignore_hbq_buffer(phba, piocbq, mp, size); in lpfc_ct_unsol_buffer()
119 struct lpfc_dmabuf *mp, *bmp; in lpfc_ct_unsol_cmpl() local
125 mp = cmdiocb->rsp_dmabuf; in lpfc_ct_unsol_cmpl()
127 if (mp) { in lpfc_ct_unsol_cmpl()
128 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_ct_unsol_cmpl()
129 kfree(mp); in lpfc_ct_unsol_cmpl()
162 struct lpfc_dmabuf *mp = NULL; in lpfc_ct_reject_event() local
168 mp = kmalloc(sizeof(*mp), GFP_KERNEL); in lpfc_ct_reject_event()
169 if (!mp) { in lpfc_ct_reject_event()
174 mp->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &mp->phys); in lpfc_ct_reject_event()
175 if (!mp->virt) { in lpfc_ct_reject_event()
193 INIT_LIST_HEAD(&mp->list); in lpfc_ct_reject_event()
198 bpl->addrHigh = le32_to_cpu(putPaddrHigh(mp->phys)); in lpfc_ct_reject_event()
199 bpl->addrLow = le32_to_cpu(putPaddrLow(mp->phys)); in lpfc_ct_reject_event()
204 ct_rsp = (struct lpfc_sli_ct_request *)mp->virt; in lpfc_ct_reject_event()
235 cmdiocbq->rsp_dmabuf = mp; in lpfc_ct_reject_event()
263 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_ct_reject_event()
265 kfree(mp); in lpfc_ct_reject_event()
340 struct lpfc_dmabuf *mp = NULL; in lpfc_ct_unsol_event() local
440 mp = lpfc_sli_ringpostbuf_get(phba, pring, in lpfc_ct_unsol_event()
443 lpfc_ct_unsol_buffer(phba, iocbq, mp, size); in lpfc_ct_unsol_event()
444 lpfc_in_buf_free(phba, mp); in lpfc_ct_unsol_event()
493 struct lpfc_dmabuf *mp; in lpfc_alloc_ct_rsp() local
501 mp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_alloc_ct_rsp()
502 if (!mp) { in lpfc_alloc_ct_rsp()
508 INIT_LIST_HEAD(&mp->list); in lpfc_alloc_ct_rsp()
512 mp->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &(mp->phys)); in lpfc_alloc_ct_rsp()
514 mp->virt = lpfc_mbuf_alloc(phba, 0, &(mp->phys)); in lpfc_alloc_ct_rsp()
516 if (!mp->virt) { in lpfc_alloc_ct_rsp()
517 kfree(mp); in lpfc_alloc_ct_rsp()
525 mlist = mp; in lpfc_alloc_ct_rsp()
527 list_add_tail(&mp->list, &mlist->list); in lpfc_alloc_ct_rsp()
531 bpl->addrLow = le32_to_cpu(putPaddrLow(mp->phys) ); in lpfc_alloc_ct_rsp()
532 bpl->addrHigh = le32_to_cpu(putPaddrHigh(mp->phys) ); in lpfc_alloc_ct_rsp()
844 lpfc_ns_rsp(struct lpfc_vport *vport, struct lpfc_dmabuf *mp, uint8_t fc4_type, in lpfc_ns_rsp() argument
848 (struct lpfc_sli_ct_request *) mp->virt; in lpfc_ns_rsp()
861 list_add_tail(&head, &mp->list); in lpfc_ns_rsp()
862 list_for_each_entry_safe(mp, next_mp, &head, list) { in lpfc_ns_rsp()
863 mlast = mp; in lpfc_ns_rsp()
1861 struct lpfc_dmabuf *mp; in lpfc_get_gidft_type() local
1864 mp = cmdiocb->cmd_dmabuf; in lpfc_get_gidft_type()
1865 if (mp == NULL) in lpfc_get_gidft_type()
1867 CtReq = (struct lpfc_sli_ct_request *)mp->virt; in lpfc_get_gidft_type()
1887 struct lpfc_dmabuf *mp, *bmp; in lpfc_ns_cmd() local
1905 mp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_ns_cmd()
1906 if (!mp) { in lpfc_ns_cmd()
1911 INIT_LIST_HEAD(&mp->list); in lpfc_ns_cmd()
1912 mp->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &(mp->phys)); in lpfc_ns_cmd()
1913 if (!mp->virt) { in lpfc_ns_cmd()
1940 bpl->addrHigh = le32_to_cpu(putPaddrHigh(mp->phys) ); in lpfc_ns_cmd()
1941 bpl->addrLow = le32_to_cpu(putPaddrLow(mp->phys) ); in lpfc_ns_cmd()
1967 CtReq = (struct lpfc_sli_ct_request *) mp->virt; in lpfc_ns_cmd()
2132 if (!lpfc_ct_cmd(vport, mp, bmp, ndlp, cmpl, rsp_size, retry)) { in lpfc_ns_cmd()
2146 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_ns_cmd()
2148 kfree(mp); in lpfc_ns_cmd()
3661 struct lpfc_dmabuf *mp, *bmp; in lpfc_vmid_cmd() local
3683 mp = kmalloc(sizeof(*mp), GFP_KERNEL); in lpfc_vmid_cmd()
3684 if (!mp) in lpfc_vmid_cmd()
3687 mp->virt = lpfc_mbuf_alloc(phba, 0, &mp->phys); in lpfc_vmid_cmd()
3688 if (!mp->virt) in lpfc_vmid_cmd()
3700 INIT_LIST_HEAD(&mp->list); in lpfc_vmid_cmd()
3706 ctreq = (struct lpfc_sli_ct_request *)mp->virt; in lpfc_vmid_cmd()
3707 data = mp->virt; in lpfc_vmid_cmd()
3772 bpl->addrHigh = putPaddrHigh(mp->phys); in lpfc_vmid_cmd()
3773 bpl->addrLow = putPaddrLow(mp->phys); in lpfc_vmid_cmd()
3780 if (!lpfc_ct_cmd(vport, mp, bmp, ndlp, cmpl, rsp_size, retry)) in lpfc_vmid_cmd()
3788 lpfc_mbuf_free(phba, mp->virt, mp->phys); in lpfc_vmid_cmd()
3790 kfree(mp); in lpfc_vmid_cmd()