Lines Matching refs:nvmebuf
375 struct rqb_dmabuf *nvmebuf; in lpfc_nvmet_ctxbuf_post() local
396 nvmebuf = ctxp->rqb_buffer; in lpfc_nvmet_ctxbuf_post()
398 if (nvmebuf) { in lpfc_nvmet_ctxbuf_post()
403 nvmebuf->hrq->rqbp->rqb_free_buffer(phba, in lpfc_nvmet_ctxbuf_post()
404 nvmebuf); in lpfc_nvmet_ctxbuf_post()
408 lpfc_rq_buf_free(phba, &nvmebuf->hbuf); in lpfc_nvmet_ctxbuf_post()
419 nvmebuf, struct rqb_dmabuf, in lpfc_nvmet_ctxbuf_post()
425 fc_hdr = (struct fc_frame_header *)(nvmebuf->hbuf.virt); in lpfc_nvmet_ctxbuf_post()
428 size = nvmebuf->bytes_recv; in lpfc_nvmet_ctxbuf_post()
443 ctxp->rqb_buffer = (void *)nvmebuf; in lpfc_nvmet_ctxbuf_post()
846 struct hbq_dmabuf *nvmebuf = in lpfc_nvmet_xmt_ls_rsp() local
880 lpfc_in_buf_free(phba, &nvmebuf->dbuf); in lpfc_nvmet_xmt_ls_rsp()
911 lpfc_in_buf_free(phba, &nvmebuf->dbuf); in lpfc_nvmet_xmt_ls_rsp()
923 lpfc_in_buf_free(phba, &nvmebuf->dbuf); in lpfc_nvmet_xmt_ls_rsp()
1175 struct rqb_dmabuf *nvmebuf = ctxp->rqb_buffer; in lpfc_nvmet_defer_rcv() local
1183 if (!nvmebuf) { in lpfc_nvmet_defer_rcv()
1196 nvmebuf->hrq->rqbp->rqb_free_buffer(phba, nvmebuf); in lpfc_nvmet_defer_rcv()
1724 struct rqb_dmabuf *nvmebuf; in lpfc_nvmet_rcv_unsol_abort() local
1733 list_for_each_entry(nvmebuf, in lpfc_nvmet_rcv_unsol_abort()
1737 (nvmebuf->hbuf.virt); in lpfc_nvmet_rcv_unsol_abort()
1748 list_del_init(&nvmebuf->hbuf.list); in lpfc_nvmet_rcv_unsol_abort()
1758 nvmebuf->hrq->rqbp->rqb_free_buffer(phba, nvmebuf); in lpfc_nvmet_rcv_unsol_abort()
1952 struct hbq_dmabuf *nvmebuf) in lpfc_nvmet_unsol_ls_buffer() argument
1961 fc_hdr = (struct fc_frame_header *)(nvmebuf->hbuf.virt); in lpfc_nvmet_unsol_ls_buffer()
1975 payload = (uint32_t *)(nvmebuf->dbuf.virt); in lpfc_nvmet_unsol_ls_buffer()
1976 size = bf_get(lpfc_rcqe_length, &nvmebuf->cq_event.cqe.rcqe_cmpl); in lpfc_nvmet_unsol_ls_buffer()
1989 lpfc_in_buf_free(phba, &nvmebuf->dbuf); in lpfc_nvmet_unsol_ls_buffer()
1999 ctxp->rqb_buffer = (void *)nvmebuf; in lpfc_nvmet_unsol_ls_buffer()
2033 lpfc_in_buf_free(phba, &nvmebuf->dbuf); in lpfc_nvmet_unsol_ls_buffer()
2046 struct rqb_dmabuf *nvmebuf = ctxp->rqb_buffer; in lpfc_nvmet_process_rcv_fcp_req() local
2052 if (!nvmebuf) { in lpfc_nvmet_process_rcv_fcp_req()
2072 payload = (uint32_t *)(nvmebuf->dbuf.virt); in lpfc_nvmet_process_rcv_fcp_req()
2095 (nvmebuf != ctxp->rqb_buffer)) { in lpfc_nvmet_process_rcv_fcp_req()
2101 lpfc_rq_buf_free(phba, &nvmebuf->hbuf); /* repost */ in lpfc_nvmet_process_rcv_fcp_req()
2122 qno = nvmebuf->idx; in lpfc_nvmet_process_rcv_fcp_req()
2231 struct rqb_dmabuf *nvmebuf, in lpfc_nvmet_unsol_fcp_buffer() argument
2248 if (!nvmebuf || !phba->targetport) { in lpfc_nvmet_unsol_fcp_buffer()
2251 if (nvmebuf) in lpfc_nvmet_unsol_fcp_buffer()
2252 lpfc_rq_buf_free(phba, &nvmebuf->hbuf); in lpfc_nvmet_unsol_fcp_buffer()
2275 fc_hdr = (struct fc_frame_header *)(nvmebuf->hbuf.virt); in lpfc_nvmet_unsol_fcp_buffer()
2277 size = nvmebuf->bytes_recv; in lpfc_nvmet_unsol_fcp_buffer()
2300 list_add_tail(&nvmebuf->hbuf.list, in lpfc_nvmet_unsol_fcp_buffer()
2308 qno = nvmebuf->idx; in lpfc_nvmet_unsol_fcp_buffer()
2340 ctxp->rqb_buffer = (void *)nvmebuf; in lpfc_nvmet_unsol_fcp_buffer()
2399 struct hbq_dmabuf *nvmebuf; in lpfc_nvmet_unsol_ls_event() local
2402 nvmebuf = container_of(d_buf, struct hbq_dmabuf, dbuf); in lpfc_nvmet_unsol_ls_event()
2405 lpfc_in_buf_free(phba, &nvmebuf->dbuf); in lpfc_nvmet_unsol_ls_event()
2408 lpfc_nvmet_unsol_ls_buffer(phba, pring, nvmebuf); in lpfc_nvmet_unsol_ls_event()
2428 struct rqb_dmabuf *nvmebuf, in lpfc_nvmet_unsol_fcp_event() argument
2433 lpfc_rq_buf_free(phba, &nvmebuf->hbuf); in lpfc_nvmet_unsol_fcp_event()
2436 lpfc_nvmet_unsol_fcp_buffer(phba, idx, nvmebuf, isr_timestamp, cqflag); in lpfc_nvmet_unsol_fcp_event()