Lines Matching refs:pReq
164 SCSIIORequest_t *pReq, int req_idx);
185 static void mptscsih_set_dvflags(MPT_SCSI_HOST *hd, SCSIIORequest_t *pReq);
484 SCSIIORequest_t *pReq, int req_idx) in mptscsih_AddSGE() argument
500 sgdir = le32_to_cpu(pReq->Control) & MPI_SCSIIO_CONTROL_DATADIRECTION_MASK; in mptscsih_AddSGE()
507 psge = (char *) &pReq->SGL; in mptscsih_AddSGE()
536 mptscsih_add_sge((char *) &pReq->SGL, in mptscsih_AddSGE()
615 pReq->ChainOffset = 0; in mptscsih_AddSGE()
660 pReq->ChainOffset = (u8) (sgeOffset >> 2); in mptscsih_AddSGE()
3935 SCSIIORequest_t *pReq; in copy_sense_data() local
3943 pReq = (SCSIIORequest_t *) mf; in copy_sense_data()
3944 index = (int) pReq->TargetID; in copy_sense_data()
3969 ioc->events[idx].data[0] = (pReq->LUN[1] << 24) || in copy_sense_data()
3971 (pReq->Bus << 8) || pReq->TargetID; in copy_sense_data()
3988 pReq->TargetID, in copy_sense_data()
3989 pReq->LUN[1]); in copy_sense_data()
5195 static void mptscsih_set_dvflags(MPT_SCSI_HOST *hd, SCSIIORequest_t *pReq) in mptscsih_set_dvflags() argument
5199 if ((pReq->LUN[1] != 0) || (hd->negoNvram != 0)) in mptscsih_set_dvflags()
5202 cmd = pReq->CDB[0]; in mptscsih_set_dvflags()
5206 if ((pSpi->isRaid & (1 << pReq->TargetID)) && pSpi->pIocPg3) { in mptscsih_set_dvflags()
5219 pSpi->dvStatus[pReq->TargetID] |= MPT_SCSICFG_NEED_DV; in mptscsih_set_dvflags()
5220 ddvtprintk(("NEED_DV set for visible disk id %d\n", pReq->TargetID)); in mptscsih_set_dvflags()
5306 Config_t *pReq; in mptscsih_writeSDP1() local
5431 pReq = (Config_t *)mf; in mptscsih_writeSDP1()
5441 pReq->Action = MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT; in mptscsih_writeSDP1()
5442 pReq->Reserved = 0; in mptscsih_writeSDP1()
5443 pReq->ChainOffset = 0; in mptscsih_writeSDP1()
5444 pReq->Function = MPI_FUNCTION_CONFIG; in mptscsih_writeSDP1()
5445 pReq->ExtPageLength = 0; in mptscsih_writeSDP1()
5446 pReq->ExtPageType = 0; in mptscsih_writeSDP1()
5447 pReq->MsgFlags = 0; in mptscsih_writeSDP1()
5449 pReq->Reserved2[ii] = 0; in mptscsih_writeSDP1()
5451 pReq->Header.PageVersion = ioc->spi_data.sdp1version; in mptscsih_writeSDP1()
5452 pReq->Header.PageLength = ioc->spi_data.sdp1length; in mptscsih_writeSDP1()
5453 pReq->Header.PageNumber = 1; in mptscsih_writeSDP1()
5454 pReq->Header.PageType = MPI_CONFIG_PAGETYPE_SCSI_DEVICE; in mptscsih_writeSDP1()
5455 pReq->PageAddress = cpu_to_le32(id | (bus << 8 )); in mptscsih_writeSDP1()
5461 mpt_add_sge((char *)&pReq->PageBufferSGE, flagsLength, dataDma); in mptscsih_writeSDP1()
5465 pData->Header.PageVersion = pReq->Header.PageVersion; in mptscsih_writeSDP1()
5466 pData->Header.PageLength = pReq->Header.PageLength; in mptscsih_writeSDP1()
5467 pData->Header.PageNumber = pReq->Header.PageNumber; in mptscsih_writeSDP1()
5468 pData->Header.PageType = pReq->Header.PageType; in mptscsih_writeSDP1()
5498 Config_t *pReq; in mptscsih_writeIOCPage4() local
5521 pReq = (Config_t *)mf; in mptscsih_writeIOCPage4()
5528 pReq->Action = MPI_CONFIG_ACTION_PAGE_WRITE_CURRENT; in mptscsih_writeIOCPage4()
5529 pReq->Reserved = 0; in mptscsih_writeIOCPage4()
5530 pReq->ChainOffset = 0; in mptscsih_writeIOCPage4()
5531 pReq->Function = MPI_FUNCTION_CONFIG; in mptscsih_writeIOCPage4()
5532 pReq->ExtPageLength = 0; in mptscsih_writeIOCPage4()
5533 pReq->ExtPageType = 0; in mptscsih_writeIOCPage4()
5534 pReq->MsgFlags = 0; in mptscsih_writeIOCPage4()
5536 pReq->Reserved2[ii] = 0; in mptscsih_writeIOCPage4()
5544 pReq->Header = IOCPage4Ptr->Header; in mptscsih_writeIOCPage4()
5545 pReq->PageAddress = cpu_to_le32(target_id | (bus << 8 )); in mptscsih_writeIOCPage4()
5552 mpt_add_sge((char *)&pReq->PageBufferSGE, flagsLength, dataDma); in mptscsih_writeIOCPage4()
5632 SCSIIORequest_t *pReq; in mptscsih_scandv_complete() local
5648 pReq = (SCSIIORequest_t *) mf; in mptscsih_scandv_complete()
5724 sz = MIN (pReq->SenseBufferLength, in mptscsih_scandv_complete()
5731 if (pReq->CDB[0] == CMD_Inquiry) in mptscsih_scandv_complete()
5810 SCSIIORequest_t *pReq = (SCSIIORequest_t *) hd->cmdPtr; in mptscsih_timer_expired() local
5820 pReq->Bus, 0, 0, 0, NO_SLEEP) < 0) { in mptscsih_timer_expired()
5863 MpiRaidActionRequest_t *pReq; in mptscsih_do_raid() local
5881 pReq = (MpiRaidActionRequest_t *)mf; in mptscsih_do_raid()
5882 pReq->Action = action; in mptscsih_do_raid()
5883 pReq->Reserved1 = 0; in mptscsih_do_raid()
5884 pReq->ChainOffset = 0; in mptscsih_do_raid()
5885 pReq->Function = MPI_FUNCTION_RAID_ACTION; in mptscsih_do_raid()
5886 pReq->VolumeID = io->id; in mptscsih_do_raid()
5887 pReq->VolumeBus = io->bus; in mptscsih_do_raid()
5888 pReq->PhysDiskNum = io->physDiskNum; in mptscsih_do_raid()
5889 pReq->MsgFlags = 0; in mptscsih_do_raid()
5890 pReq->Reserved2 = 0; in mptscsih_do_raid()
5891 pReq->ActionDataWord = 0; /* Reserved for this action */ in mptscsih_do_raid()
5894 mpt_add_sge((char *)&pReq->ActionDataSGE, in mptscsih_do_raid()