Lines Matching refs:mp_req
580 struct bnx2fc_mp_req *mp_req = &(io_req->mp_req); in bnx2fc_free_mp_resc() local
586 mp_req->tm_flags = 0; in bnx2fc_free_mp_resc()
587 if (mp_req->mp_req_bd) { in bnx2fc_free_mp_resc()
589 mp_req->mp_req_bd, in bnx2fc_free_mp_resc()
590 mp_req->mp_req_bd_dma); in bnx2fc_free_mp_resc()
591 mp_req->mp_req_bd = NULL; in bnx2fc_free_mp_resc()
593 if (mp_req->mp_resp_bd) { in bnx2fc_free_mp_resc()
595 mp_req->mp_resp_bd, in bnx2fc_free_mp_resc()
596 mp_req->mp_resp_bd_dma); in bnx2fc_free_mp_resc()
597 mp_req->mp_resp_bd = NULL; in bnx2fc_free_mp_resc()
599 if (mp_req->req_buf) { in bnx2fc_free_mp_resc()
601 mp_req->req_buf, in bnx2fc_free_mp_resc()
602 mp_req->req_buf_dma); in bnx2fc_free_mp_resc()
603 mp_req->req_buf = NULL; in bnx2fc_free_mp_resc()
605 if (mp_req->resp_buf) { in bnx2fc_free_mp_resc()
607 mp_req->resp_buf, in bnx2fc_free_mp_resc()
608 mp_req->resp_buf_dma); in bnx2fc_free_mp_resc()
609 mp_req->resp_buf = NULL; in bnx2fc_free_mp_resc()
615 struct bnx2fc_mp_req *mp_req; in bnx2fc_init_mp_req() local
623 mp_req = (struct bnx2fc_mp_req *)&(io_req->mp_req); in bnx2fc_init_mp_req()
624 memset(mp_req, 0, sizeof(struct bnx2fc_mp_req)); in bnx2fc_init_mp_req()
626 mp_req->req_len = sizeof(struct fcp_cmnd); in bnx2fc_init_mp_req()
627 io_req->data_xfer_len = mp_req->req_len; in bnx2fc_init_mp_req()
628 mp_req->req_buf = dma_alloc_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2fc_init_mp_req()
629 &mp_req->req_buf_dma, in bnx2fc_init_mp_req()
631 if (!mp_req->req_buf) { in bnx2fc_init_mp_req()
637 mp_req->resp_buf = dma_alloc_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2fc_init_mp_req()
638 &mp_req->resp_buf_dma, in bnx2fc_init_mp_req()
640 if (!mp_req->resp_buf) { in bnx2fc_init_mp_req()
645 memset(mp_req->req_buf, 0, CNIC_PAGE_SIZE); in bnx2fc_init_mp_req()
646 memset(mp_req->resp_buf, 0, CNIC_PAGE_SIZE); in bnx2fc_init_mp_req()
650 mp_req->mp_req_bd = dma_alloc_coherent(&hba->pcidev->dev, sz, in bnx2fc_init_mp_req()
651 &mp_req->mp_req_bd_dma, in bnx2fc_init_mp_req()
653 if (!mp_req->mp_req_bd) { in bnx2fc_init_mp_req()
658 mp_req->mp_resp_bd = dma_alloc_coherent(&hba->pcidev->dev, sz, in bnx2fc_init_mp_req()
659 &mp_req->mp_resp_bd_dma, in bnx2fc_init_mp_req()
661 if (!mp_req->mp_resp_bd) { in bnx2fc_init_mp_req()
667 addr = mp_req->req_buf_dma; in bnx2fc_init_mp_req()
668 mp_req_bd = mp_req->mp_req_bd; in bnx2fc_init_mp_req()
679 mp_resp_bd = mp_req->mp_resp_bd; in bnx2fc_init_mp_req()
680 addr = mp_req->resp_buf_dma; in bnx2fc_init_mp_req()
755 tm_req = (struct bnx2fc_mp_req *)&(io_req->mp_req); in bnx2fc_initiate_tmf()
905 abts_req = (struct bnx2fc_mp_req *)&(abts_io_req->mp_req); in bnx2fc_initiate_abts()
1541 tm_req = &(io_req->mp_req); in bnx2fc_process_tm_compl()
1739 fcp_cmnd->fc_tm_flags = io_req->mp_req.tm_flags; in bnx2fc_build_fcp_cmnd()