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
1317 SCSIIORequest_t *pScsiReq; in mptscsih_qcmd() local
1345 pScsiReq = (SCSIIORequest_t *) mf; in mptscsih_qcmd()
1378 pScsiReq->TargetID = (u8) vdevice->vtarget->id; in mptscsih_qcmd()
1379 pScsiReq->Bus = vdevice->vtarget->channel; in mptscsih_qcmd()
1380 pScsiReq->ChainOffset = 0; in mptscsih_qcmd()
1382 pScsiReq->Function = MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH; in mptscsih_qcmd()
1384 pScsiReq->Function = MPI_FUNCTION_SCSI_IO_REQUEST; in mptscsih_qcmd()
1385 pScsiReq->CDBLength = SCpnt->cmd_len; in mptscsih_qcmd()
1386 pScsiReq->SenseBufferLength = MPT_SENSE_BUFFER_SIZE; in mptscsih_qcmd()
1387 pScsiReq->Reserved = 0; in mptscsih_qcmd()
1388 pScsiReq->MsgFlags = mpt_msg_flags(ioc); in mptscsih_qcmd()
1389 int_to_scsilun(SCpnt->device->lun, (struct scsi_lun *)pScsiReq->LUN); in mptscsih_qcmd()
1390 pScsiReq->Control = cpu_to_le32(scsictl); in mptscsih_qcmd()
1397 pScsiReq->CDB[ii] = SCpnt->cmnd[ii]; in mptscsih_qcmd()
1400 pScsiReq->CDB[ii] = 0; in mptscsih_qcmd()
1403 pScsiReq->DataLength = cpu_to_le32(datalen); in mptscsih_qcmd()
1406 pScsiReq->SenseBufferLowAddr = cpu_to_le32(ioc->sense_buf_low_dma in mptscsih_qcmd()
1414 ioc->add_sge((char *)&pScsiReq->SGL, in mptscsih_qcmd()
1419 if (mptscsih_AddSGE(ioc, SCpnt, pScsiReq, my_idx) != SUCCESS) in mptscsih_qcmd()
2828 SCSIIORequest_t *pScsiReq; in mptscsih_do_cmd() local
2956 pScsiReq = (SCSIIORequest_t *) mf; in mptscsih_do_cmd()
2963 pScsiReq->TargetID = io->physDiskNum; in mptscsih_do_cmd()
2964 pScsiReq->Bus = 0; in mptscsih_do_cmd()
2965 pScsiReq->ChainOffset = 0; in mptscsih_do_cmd()
2966 pScsiReq->Function = MPI_FUNCTION_RAID_SCSI_IO_PASSTHROUGH; in mptscsih_do_cmd()
2968 pScsiReq->TargetID = io->id; in mptscsih_do_cmd()
2969 pScsiReq->Bus = io->channel; in mptscsih_do_cmd()
2970 pScsiReq->ChainOffset = 0; in mptscsih_do_cmd()
2971 pScsiReq->Function = MPI_FUNCTION_SCSI_IO_REQUEST; in mptscsih_do_cmd()
2974 pScsiReq->CDBLength = cmdLen; in mptscsih_do_cmd()
2975 pScsiReq->SenseBufferLength = MPT_SENSE_BUFFER_SIZE; in mptscsih_do_cmd()
2977 pScsiReq->Reserved = 0; in mptscsih_do_cmd()
2979 pScsiReq->MsgFlags = mpt_msg_flags(ioc); in mptscsih_do_cmd()
2982 int_to_scsilun(io->lun, (struct scsi_lun *)pScsiReq->LUN); in mptscsih_do_cmd()
2985 pScsiReq->Control = cpu_to_le32(dir | MPI_SCSIIO_CONTROL_SIMPLEQ); in mptscsih_do_cmd()
2987 pScsiReq->Control = cpu_to_le32(dir | MPI_SCSIIO_CONTROL_UNTAGGED); in mptscsih_do_cmd()
2990 pScsiReq->Control = cpu_to_le32(dir | MPI_SCSIIO_CONTROL_UNTAGGED); in mptscsih_do_cmd()
2996 pScsiReq->CDB[ii] = CDB[ii]; in mptscsih_do_cmd()
2998 pScsiReq->DataLength = cpu_to_le32(io->size); in mptscsih_do_cmd()
2999 pScsiReq->SenseBufferLowAddr = cpu_to_le32(ioc->sense_buf_low_dma in mptscsih_do_cmd()
3007 ioc->add_sge((char *) &pScsiReq->SGL, in mptscsih_do_cmd()
3010 ioc->add_sge((char *) &pScsiReq->SGL, in mptscsih_do_cmd()