• Home
  • Raw
  • Download

Lines Matching refs:mp_req

548 	struct bnx2fc_mp_req *mp_req = &(io_req->mp_req);  in bnx2fc_free_mp_resc()  local
554 mp_req->tm_flags = 0; in bnx2fc_free_mp_resc()
555 if (mp_req->mp_req_bd) { in bnx2fc_free_mp_resc()
557 mp_req->mp_req_bd, in bnx2fc_free_mp_resc()
558 mp_req->mp_req_bd_dma); in bnx2fc_free_mp_resc()
559 mp_req->mp_req_bd = NULL; in bnx2fc_free_mp_resc()
561 if (mp_req->mp_resp_bd) { in bnx2fc_free_mp_resc()
563 mp_req->mp_resp_bd, in bnx2fc_free_mp_resc()
564 mp_req->mp_resp_bd_dma); in bnx2fc_free_mp_resc()
565 mp_req->mp_resp_bd = NULL; in bnx2fc_free_mp_resc()
567 if (mp_req->req_buf) { in bnx2fc_free_mp_resc()
569 mp_req->req_buf, in bnx2fc_free_mp_resc()
570 mp_req->req_buf_dma); in bnx2fc_free_mp_resc()
571 mp_req->req_buf = NULL; in bnx2fc_free_mp_resc()
573 if (mp_req->resp_buf) { in bnx2fc_free_mp_resc()
575 mp_req->resp_buf, in bnx2fc_free_mp_resc()
576 mp_req->resp_buf_dma); in bnx2fc_free_mp_resc()
577 mp_req->resp_buf = NULL; in bnx2fc_free_mp_resc()
583 struct bnx2fc_mp_req *mp_req; in bnx2fc_init_mp_req() local
591 mp_req = (struct bnx2fc_mp_req *)&(io_req->mp_req); in bnx2fc_init_mp_req()
592 memset(mp_req, 0, sizeof(struct bnx2fc_mp_req)); in bnx2fc_init_mp_req()
595 mp_req->req_len = sizeof(struct fcp_cmnd); in bnx2fc_init_mp_req()
596 io_req->data_xfer_len = mp_req->req_len; in bnx2fc_init_mp_req()
598 mp_req->req_len = io_req->data_xfer_len; in bnx2fc_init_mp_req()
600 mp_req->req_buf = dma_alloc_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2fc_init_mp_req()
601 &mp_req->req_buf_dma, in bnx2fc_init_mp_req()
603 if (!mp_req->req_buf) { in bnx2fc_init_mp_req()
609 mp_req->resp_buf = dma_alloc_coherent(&hba->pcidev->dev, CNIC_PAGE_SIZE, in bnx2fc_init_mp_req()
610 &mp_req->resp_buf_dma, in bnx2fc_init_mp_req()
612 if (!mp_req->resp_buf) { in bnx2fc_init_mp_req()
617 memset(mp_req->req_buf, 0, CNIC_PAGE_SIZE); in bnx2fc_init_mp_req()
618 memset(mp_req->resp_buf, 0, CNIC_PAGE_SIZE); in bnx2fc_init_mp_req()
622 mp_req->mp_req_bd = dma_alloc_coherent(&hba->pcidev->dev, sz, in bnx2fc_init_mp_req()
623 &mp_req->mp_req_bd_dma, in bnx2fc_init_mp_req()
625 if (!mp_req->mp_req_bd) { in bnx2fc_init_mp_req()
630 mp_req->mp_resp_bd = dma_alloc_coherent(&hba->pcidev->dev, sz, in bnx2fc_init_mp_req()
631 &mp_req->mp_resp_bd_dma, in bnx2fc_init_mp_req()
633 if (!mp_req->mp_resp_bd) { in bnx2fc_init_mp_req()
639 addr = mp_req->req_buf_dma; in bnx2fc_init_mp_req()
640 mp_req_bd = mp_req->mp_req_bd; in bnx2fc_init_mp_req()
651 mp_resp_bd = mp_req->mp_resp_bd; in bnx2fc_init_mp_req()
652 addr = mp_req->resp_buf_dma; in bnx2fc_init_mp_req()
727 tm_req = (struct bnx2fc_mp_req *)&(io_req->mp_req); in bnx2fc_initiate_tmf()
878 abts_req = (struct bnx2fc_mp_req *)&(abts_io_req->mp_req); in bnx2fc_initiate_abts()
1546 tm_req = &(io_req->mp_req); in bnx2fc_process_tm_compl()
1754 fcp_cmnd->fc_tm_flags = io_req->mp_req.tm_flags; in bnx2fc_build_fcp_cmnd()