Lines Matching defs:mpt_req
522 MSG_REQUEST_HEADER *mpt_req;
584 mpt_req = req->req_vbuf;
587 if (__predict_false(mpt_req->Function == MPI_FUNCTION_SCSI_TASK_MGMT)) {
595 if (__predict_false(mpt_req->Function == MPI_FUNCTION_PORT_ENABLE))
602 if (__predict_false(mpt_req->Function !=
606 __func__, mpt_req->Function, index);
829 MSG_SCSI_IO_REQUEST *mpt_req;
847 mpt_req = req->req_vbuf;
848 memset(mpt_req, 0, sizeof(*mpt_req));
850 mpt_req->Function = MPI_FUNCTION_SCSI_IO_REQUEST;
851 mpt_req->Bus = mpt->bus;
853 mpt_req->SenseBufferLength =
861 mpt_req->MsgContext = htole32(req->index);
864 mpt_req->TargetID = periph->periph_target;
865 mpt_req->LUN[1] = periph->periph_lun;
869 mpt_req->Control = MPI_SCSIIO_CONTROL_READ;
871 mpt_req->Control = MPI_SCSIIO_CONTROL_WRITE;
873 mpt_req->Control = MPI_SCSIIO_CONTROL_NODATATRANSFER;
881 mpt_req->Control |= MPI_SCSIIO_CONTROL_HEADOFQ;
886 mpt_req->Control |= MPI_SCSIIO_CONTROL_ACAQ;
891 mpt_req->Control |= MPI_SCSIIO_CONTROL_ORDEREDQ;
895 mpt_req->Control |= MPI_SCSIIO_CONTROL_SIMPLEQ;
900 mpt_req->Control |= MPI_SCSIIO_CONTROL_UNTAGGED;
902 mpt_req->Control |= MPI_SCSIIO_CONTROL_SIMPLEQ;
906 mpt_req->Control |= MPI_SCSIIO_CONTROL_UNTAGGED;
911 mpt_req->Control |= MPI_SCSIIO_CONTROL_NO_DISCONNECT;
913 mpt_req->Control = htole32(mpt_req->Control);
916 memcpy(mpt_req->CDB, xs->cmd, xs->cmdlen);
918 mpt_req->CDBLength = xs->cmdlen;
919 mpt_req->DataLength = htole32(xs->datalen);
920 mpt_req->SenseBufferLowAddr = htole32(req->sense_pbuf);
965 se = (SGE_SIMPLE32 *) &mpt_req->SGL;
986 mpt_req->ChainOffset =
987 ((char *)se - (char *)mpt_req) >> 2;
1013 ((char *)se - (char *)mpt_req));
1053 se = (SGE_SIMPLE32 *) &mpt_req->SGL;
1084 SGE_SIMPLE32 *se = (SGE_SIMPLE32 *) &mpt_req->SGL;
1093 mpt_print_scsi_io_request(mpt_req);