Lines Matching refs:mp_req
535 struct bnx2fc_mp_req *mp_req = &(io_req->mp_req); in bnx2fc_free_mp_resc() local
541 mp_req->tm_flags = 0; in bnx2fc_free_mp_resc()
542 if (mp_req->mp_req_bd) { in bnx2fc_free_mp_resc()
544 mp_req->mp_req_bd, in bnx2fc_free_mp_resc()
545 mp_req->mp_req_bd_dma); in bnx2fc_free_mp_resc()
546 mp_req->mp_req_bd = NULL; in bnx2fc_free_mp_resc()
548 if (mp_req->mp_resp_bd) { in bnx2fc_free_mp_resc()
550 mp_req->mp_resp_bd, in bnx2fc_free_mp_resc()
551 mp_req->mp_resp_bd_dma); in bnx2fc_free_mp_resc()
552 mp_req->mp_resp_bd = NULL; in bnx2fc_free_mp_resc()
554 if (mp_req->req_buf) { in bnx2fc_free_mp_resc()
556 mp_req->req_buf, in bnx2fc_free_mp_resc()
557 mp_req->req_buf_dma); in bnx2fc_free_mp_resc()
558 mp_req->req_buf = NULL; in bnx2fc_free_mp_resc()
560 if (mp_req->resp_buf) { in bnx2fc_free_mp_resc()
562 mp_req->resp_buf, in bnx2fc_free_mp_resc()
563 mp_req->resp_buf_dma); in bnx2fc_free_mp_resc()
564 mp_req->resp_buf = NULL; in bnx2fc_free_mp_resc()
570 struct bnx2fc_mp_req *mp_req; in bnx2fc_init_mp_req() local
578 mp_req = (struct bnx2fc_mp_req *)&(io_req->mp_req); in bnx2fc_init_mp_req()
579 memset(mp_req, 0, sizeof(struct bnx2fc_mp_req)); in bnx2fc_init_mp_req()
582 mp_req->req_len = sizeof(struct fcp_cmnd); in bnx2fc_init_mp_req()
583 io_req->data_xfer_len = mp_req->req_len; in bnx2fc_init_mp_req()
585 mp_req->req_len = io_req->data_xfer_len; in bnx2fc_init_mp_req()
587 mp_req->req_buf = dma_alloc_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2fc_init_mp_req()
588 &mp_req->req_buf_dma, in bnx2fc_init_mp_req()
590 if (!mp_req->req_buf) { in bnx2fc_init_mp_req()
596 mp_req->resp_buf = dma_alloc_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2fc_init_mp_req()
597 &mp_req->resp_buf_dma, in bnx2fc_init_mp_req()
599 if (!mp_req->resp_buf) { in bnx2fc_init_mp_req()
604 memset(mp_req->req_buf, 0, CNIC_PAGE_SIZE); in bnx2fc_init_mp_req()
605 memset(mp_req->resp_buf, 0, CNIC_PAGE_SIZE); in bnx2fc_init_mp_req()
609 mp_req->mp_req_bd = dma_alloc_coherent(&hba->pcidev->dev, sz, in bnx2fc_init_mp_req()
610 &mp_req->mp_req_bd_dma, in bnx2fc_init_mp_req()
612 if (!mp_req->mp_req_bd) { in bnx2fc_init_mp_req()
617 mp_req->mp_resp_bd = dma_alloc_coherent(&hba->pcidev->dev, sz, in bnx2fc_init_mp_req()
618 &mp_req->mp_resp_bd_dma, in bnx2fc_init_mp_req()
620 if (!mp_req->mp_resp_bd) { in bnx2fc_init_mp_req()
626 addr = mp_req->req_buf_dma; in bnx2fc_init_mp_req()
627 mp_req_bd = mp_req->mp_req_bd; in bnx2fc_init_mp_req()
638 mp_resp_bd = mp_req->mp_resp_bd; in bnx2fc_init_mp_req()
639 addr = mp_req->resp_buf_dma; in bnx2fc_init_mp_req()
714 tm_req = (struct bnx2fc_mp_req *)&(io_req->mp_req); in bnx2fc_initiate_tmf()
864 abts_req = (struct bnx2fc_mp_req *)&(abts_io_req->mp_req); in bnx2fc_initiate_abts()
1480 tm_req = &(io_req->mp_req); in bnx2fc_process_tm_compl()
1677 fcp_cmnd->fc_tm_flags = io_req->mp_req.tm_flags; in bnx2fc_build_fcp_cmnd()