Lines Matching refs:pScsiReq
89 …csih_report_queue_full(struct scsi_cmnd *sc, SCSIIOReply_t *pScsiReply, SCSIIORequest_t *pScsiReq);
590 SCSIIORequest_t *pScsiReq; in mptscsih_io_done() local
642 pScsiReq = (SCSIIORequest_t *) mf; in mptscsih_io_done()
724 if (hd->sel_timeout[pScsiReq->TargetID] < 0xFFFF) in mptscsih_io_done()
725 hd->sel_timeout[pScsiReq->TargetID]++; in mptscsih_io_done()
830 if ((pScsiReq->CDB[0] == READ_6 && ((pScsiReq->CDB[1] & 0x02) == 0)) || in mptscsih_io_done()
831 pScsiReq->CDB[0] == READ_10 || in mptscsih_io_done()
832 pScsiReq->CDB[0] == READ_12 || in mptscsih_io_done()
833 (pScsiReq->CDB[0] == READ_16 && in mptscsih_io_done()
834 ((pScsiReq->CDB[1] & 0x02) == 0)) || in mptscsih_io_done()
835 pScsiReq->CDB[0] == VERIFY || in mptscsih_io_done()
836 pScsiReq->CDB[0] == VERIFY_16) { in mptscsih_io_done()
878 mptscsih_report_queue_full(sc, pScsiReply, pScsiReq); in mptscsih_io_done()
949 mptscsih_report_queue_full(sc, pScsiReply, pScsiReq); in mptscsih_io_done()
973 mptscsih_report_queue_full(sc, pScsiReply, pScsiReq); in mptscsih_io_done()
1144 …scsih_report_queue_full(struct scsi_cmnd *sc, SCSIIOReply_t *pScsiReply, SCSIIORequest_t *pScsiReq) in mptscsih_report_queue_full() argument
1318 SCSIIORequest_t *pScsiReq; in mptscsih_qcmd() local
1346 pScsiReq = (SCSIIORequest_t *) mf; in mptscsih_qcmd()
1379 pScsiReq->TargetID = (u8) vdevice->vtarget->id; in mptscsih_qcmd()
1380 pScsiReq->Bus = vdevice->vtarget->channel; in mptscsih_qcmd()
1381 pScsiReq->ChainOffset = 0; in mptscsih_qcmd()
1383 pScsiReq->Function = MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH; in mptscsih_qcmd()
1385 pScsiReq->Function = MPI_FUNCTION_SCSI_IO_REQUEST; in mptscsih_qcmd()
1386 pScsiReq->CDBLength = SCpnt->cmd_len; in mptscsih_qcmd()
1387 pScsiReq->SenseBufferLength = MPT_SENSE_BUFFER_SIZE; in mptscsih_qcmd()
1388 pScsiReq->Reserved = 0; in mptscsih_qcmd()
1389 pScsiReq->MsgFlags = mpt_msg_flags(ioc); in mptscsih_qcmd()
1390 int_to_scsilun(SCpnt->device->lun, (struct scsi_lun *)pScsiReq->LUN); in mptscsih_qcmd()
1391 pScsiReq->Control = cpu_to_le32(scsictl); in mptscsih_qcmd()
1398 pScsiReq->CDB[ii] = SCpnt->cmnd[ii]; in mptscsih_qcmd()
1401 pScsiReq->CDB[ii] = 0; in mptscsih_qcmd()
1404 pScsiReq->DataLength = cpu_to_le32(datalen); in mptscsih_qcmd()
1407 pScsiReq->SenseBufferLowAddr = cpu_to_le32(ioc->sense_buf_low_dma in mptscsih_qcmd()
1415 ioc->add_sge((char *)&pScsiReq->SGL, in mptscsih_qcmd()
1420 if (mptscsih_AddSGE(ioc, SCpnt, pScsiReq, my_idx) != SUCCESS) in mptscsih_qcmd()
2779 SCSIIORequest_t *pScsiReq; in mptscsih_do_cmd() local
2907 pScsiReq = (SCSIIORequest_t *) mf; in mptscsih_do_cmd()
2914 pScsiReq->TargetID = io->physDiskNum; in mptscsih_do_cmd()
2915 pScsiReq->Bus = 0; in mptscsih_do_cmd()
2916 pScsiReq->ChainOffset = 0; in mptscsih_do_cmd()
2917 pScsiReq->Function = MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH; in mptscsih_do_cmd()
2919 pScsiReq->TargetID = io->id; in mptscsih_do_cmd()
2920 pScsiReq->Bus = io->channel; in mptscsih_do_cmd()
2921 pScsiReq->ChainOffset = 0; in mptscsih_do_cmd()
2922 pScsiReq->Function = MPI_FUNCTION_SCSI_IO_REQUEST; in mptscsih_do_cmd()
2925 pScsiReq->CDBLength = cmdLen; in mptscsih_do_cmd()
2926 pScsiReq->SenseBufferLength = MPT_SENSE_BUFFER_SIZE; in mptscsih_do_cmd()
2928 pScsiReq->Reserved = 0; in mptscsih_do_cmd()
2930 pScsiReq->MsgFlags = mpt_msg_flags(ioc); in mptscsih_do_cmd()
2933 int_to_scsilun(io->lun, (struct scsi_lun *)pScsiReq->LUN); in mptscsih_do_cmd()
2936 pScsiReq->Control = cpu_to_le32(dir | MPI_SCSIIO_CONTROL_SIMPLEQ); in mptscsih_do_cmd()
2938 pScsiReq->Control = cpu_to_le32(dir | MPI_SCSIIO_CONTROL_UNTAGGED); in mptscsih_do_cmd()
2941 pScsiReq->Control = cpu_to_le32(dir | MPI_SCSIIO_CONTROL_UNTAGGED); in mptscsih_do_cmd()
2947 pScsiReq->CDB[ii] = CDB[ii]; in mptscsih_do_cmd()
2949 pScsiReq->DataLength = cpu_to_le32(io->size); in mptscsih_do_cmd()
2950 pScsiReq->SenseBufferLowAddr = cpu_to_le32(ioc->sense_buf_low_dma in mptscsih_do_cmd()
2958 ioc->add_sge((char *) &pScsiReq->SGL, in mptscsih_do_cmd()
2961 ioc->add_sge((char *) &pScsiReq->SGL, in mptscsih_do_cmd()