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)
1318 SCSIIORequest_t *pScsiReq;
1346 pScsiReq = (SCSIIORequest_t *) mf;
1379 pScsiReq->TargetID = (u8) vdevice->vtarget->id;
1380 pScsiReq->Bus = vdevice->vtarget->channel;
1381 pScsiReq->ChainOffset = 0;
1383 pScsiReq->Function = MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH;
1385 pScsiReq->Function = MPI_FUNCTION_SCSI_IO_REQUEST;
1386 pScsiReq->CDBLength = SCpnt->cmd_len;
1387 pScsiReq->SenseBufferLength = MPT_SENSE_BUFFER_SIZE;
1388 pScsiReq->Reserved = 0;
1389 pScsiReq->MsgFlags = mpt_msg_flags(ioc);
1390 int_to_scsilun(SCpnt->device->lun, (struct scsi_lun *)pScsiReq->LUN);
1391 pScsiReq->Control = cpu_to_le32(scsictl);
1398 pScsiReq->CDB[ii] = SCpnt->cmnd[ii];
1401 pScsiReq->CDB[ii] = 0;
1404 pScsiReq->DataLength = cpu_to_le32(datalen);
1407 pScsiReq->SenseBufferLowAddr = cpu_to_le32(ioc->sense_buf_low_dma
1415 ioc->add_sge((char *)&pScsiReq->SGL,
1420 if (mptscsih_AddSGE(ioc, SCpnt, pScsiReq, my_idx) != SUCCESS)
2779 SCSIIORequest_t *pScsiReq;
2907 pScsiReq = (SCSIIORequest_t *) mf;
2914 pScsiReq->TargetID = io->physDiskNum;
2915 pScsiReq->Bus = 0;
2916 pScsiReq->ChainOffset = 0;
2917 pScsiReq->Function = MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH;
2919 pScsiReq->TargetID = io->id;
2920 pScsiReq->Bus = io->channel;
2921 pScsiReq->ChainOffset = 0;
2922 pScsiReq->Function = MPI_FUNCTION_SCSI_IO_REQUEST;
2925 pScsiReq->CDBLength = cmdLen;
2926 pScsiReq->SenseBufferLength = MPT_SENSE_BUFFER_SIZE;
2928 pScsiReq->Reserved = 0;
2930 pScsiReq->MsgFlags = mpt_msg_flags(ioc);
2933 int_to_scsilun(io->lun, (struct scsi_lun *)pScsiReq->LUN);
2936 pScsiReq->Control = cpu_to_le32(dir | MPI_SCSIIO_CONTROL_SIMPLEQ);
2938 pScsiReq->Control = cpu_to_le32(dir | MPI_SCSIIO_CONTROL_UNTAGGED);
2941 pScsiReq->Control = cpu_to_le32(dir | MPI_SCSIIO_CONTROL_UNTAGGED);
2947 pScsiReq->CDB[ii] = CDB[ii];
2949 pScsiReq->DataLength = cpu_to_le32(io->size);
2950 pScsiReq->SenseBufferLowAddr = cpu_to_le32(ioc->sense_buf_low_dma
2958 ioc->add_sge((char *) &pScsiReq->SGL,
2961 ioc->add_sge((char *) &pScsiReq->SGL,