Lines Matching refs:pScsiReq
89 static void mptscsih_report_queue_full(struct scsi_cmnd *sc, SCSIIOReply_t *pScsiReply, SCSIIORequest_t *pScsiReq);
590 SCSIIORequest_t *pScsiReq;
642 pScsiReq = (SCSIIORequest_t *) mf;
724 if (hd->sel_timeout[pScsiReq->TargetID] < 0xFFFF)
725 hd->sel_timeout[pScsiReq->TargetID]++;
830 if ((pScsiReq->CDB[0] == READ_6 && ((pScsiReq->CDB[1] & 0x02) == 0)) ||
831 pScsiReq->CDB[0] == READ_10 ||
832 pScsiReq->CDB[0] == READ_12 ||
833 (pScsiReq->CDB[0] == READ_16 &&
834 ((pScsiReq->CDB[1] & 0x02) == 0)) ||
835 pScsiReq->CDB[0] == VERIFY ||
836 pScsiReq->CDB[0] == VERIFY_16) {
878 mptscsih_report_queue_full(sc, pScsiReply, pScsiReq);
949 mptscsih_report_queue_full(sc, pScsiReply, pScsiReq);
973 mptscsih_report_queue_full(sc, pScsiReply, pScsiReq);
1137 * @pScsiReq: Pointer to original SCSI request
1144 mptscsih_report_queue_full(struct scsi_cmnd *sc, SCSIIOReply_t *pScsiReply, SCSIIORequest_t *pScsiReq)
1317 SCSIIORequest_t *pScsiReq;
1345 pScsiReq = (SCSIIORequest_t *) mf;
1378 pScsiReq->TargetID = (u8) vdevice->vtarget->id;
1379 pScsiReq->Bus = vdevice->vtarget->channel;
1380 pScsiReq->ChainOffset = 0;
1382 pScsiReq->Function = MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH;
1384 pScsiReq->Function = MPI_FUNCTION_SCSI_IO_REQUEST;
1385 pScsiReq->CDBLength = SCpnt->cmd_len;
1386 pScsiReq->SenseBufferLength = MPT_SENSE_BUFFER_SIZE;
1387 pScsiReq->Reserved = 0;
1388 pScsiReq->MsgFlags = mpt_msg_flags(ioc);
1389 int_to_scsilun(SCpnt->device->lun, (struct scsi_lun *)pScsiReq->LUN);
1390 pScsiReq->Control = cpu_to_le32(scsictl);
1397 pScsiReq->CDB[ii] = SCpnt->cmnd[ii];
1400 pScsiReq->CDB[ii] = 0;
1403 pScsiReq->DataLength = cpu_to_le32(datalen);
1406 pScsiReq->SenseBufferLowAddr = cpu_to_le32(ioc->sense_buf_low_dma
1414 ioc->add_sge((char *)&pScsiReq->SGL,
1419 if (mptscsih_AddSGE(ioc, SCpnt, pScsiReq, my_idx) != SUCCESS)
2778 SCSIIORequest_t *pScsiReq;
2906 pScsiReq = (SCSIIORequest_t *) mf;
2913 pScsiReq->TargetID = io->physDiskNum;
2914 pScsiReq->Bus = 0;
2915 pScsiReq->ChainOffset = 0;
2916 pScsiReq->Function = MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH;
2918 pScsiReq->TargetID = io->id;
2919 pScsiReq->Bus = io->channel;
2920 pScsiReq->ChainOffset = 0;
2921 pScsiReq->Function = MPI_FUNCTION_SCSI_IO_REQUEST;
2924 pScsiReq->CDBLength = cmdLen;
2925 pScsiReq->SenseBufferLength = MPT_SENSE_BUFFER_SIZE;
2927 pScsiReq->Reserved = 0;
2929 pScsiReq->MsgFlags = mpt_msg_flags(ioc);
2932 int_to_scsilun(io->lun, (struct scsi_lun *)pScsiReq->LUN);
2935 pScsiReq->Control = cpu_to_le32(dir | MPI_SCSIIO_CONTROL_SIMPLEQ);
2937 pScsiReq->Control = cpu_to_le32(dir | MPI_SCSIIO_CONTROL_UNTAGGED);
2940 pScsiReq->Control = cpu_to_le32(dir | MPI_SCSIIO_CONTROL_UNTAGGED);
2946 pScsiReq->CDB[ii] = CDB[ii];
2948 pScsiReq->DataLength = cpu_to_le32(io->size);
2949 pScsiReq->SenseBufferLowAddr = cpu_to_le32(ioc->sense_buf_low_dma
2957 ioc->add_sge((char *) &pScsiReq->SGL,
2960 ioc->add_sge((char *) &pScsiReq->SGL,