Lines Matching refs:pReply

420                                                   PMptConfigurationReply pReply);
676 * @param pReply Pointer to the reply message.
679 static void lsilogicFinishAddressReply(PLSILOGICSCSI pThis, PMptReplyUnion pReply, bool fForceReplyFifo)
689 pThis->cReplySize = pReply->Header.u8MessageLength * 2;
728 PDMDevHlpPCIPhysWrite(pThis->CTX_SUFF(pDevIns), GCPhysReplyMessage, pReply, cbReplyCopied);
1003 * @param pReply Pointer to the reply.
1005 static int lsilogicR3ProcessMessageRequest(PLSILOGICSCSI pThis, PMptMessageHdr pMessageHdr, PMptReplyUnion pReply)
1017 memset(pReply, 0, sizeof(MptReplyUnion));
1028 pReply->SCSITaskManagement.u8MessageLength = 6; /* 6 32bit dwords. */
1029 pReply->SCSITaskManagement.u8TaskType = pTaskMgmtReq->u8TaskType;
1030 pReply->SCSITaskManagement.u32TerminationCount = 0;
1056 pReply->IOCInit.u8MessageLength = 5;
1057 pReply->IOCInit.u8WhoInit = pThis->enmWhoInit;
1058 pReply->IOCInit.u8MaxDevices = pThis->cMaxDevices;
1059 pReply->IOCInit.u8MaxBuses = pThis->cMaxBuses;
1064 pReply->IOCFacts.u8MessageLength = 15; /* 15 32bit dwords. */
1068 pReply->IOCFacts.u16MessageVersion = 0x0102; /* Version from the specification. */
1069 pReply->IOCFacts.u8NumberOfPorts = pThis->cPorts;
1073 pReply->IOCFacts.u16MessageVersion = 0x0105; /* Version from the specification. */
1074 pReply->IOCFacts.u8NumberOfPorts = pThis->cPorts;
1079 pReply->IOCFacts.u8IOCNumber = 0; /* PCI function number. */
1080 pReply->IOCFacts.u16IOCExceptions = 0;
1081 pReply->IOCFacts.u8MaxChainDepth = LSILOGICSCSI_MAXIMUM_CHAIN_DEPTH;
1082 pReply->IOCFacts.u8WhoInit = pThis->enmWhoInit;
1083 pReply->IOCFacts.u8BlockSize = 12; /* Block size in 32bit dwords. This is the largest request we can get (SCSI I/O). */
1084 pReply->IOCFacts.u8Flags = 0; /* Bit 0 is set if the guest must upload the FW prior to using the controller. Obviously not needed here. */
1085 pReply->IOCFacts.u16ReplyQueueDepth = pThis->cReplyQueueEntries - 1; /* One entry is always free. */
1086 pReply->IOCFacts.u16RequestFrameSize = 128; /* @todo Figure out where it is needed. */
1087 pReply->IOCFacts.u32CurrentHostMFAHighAddr = pThis->u32HostMFAHighAddr;
1088 pReply->IOCFacts.u16GlobalCredits = pThis->cRequestQueueEntries - 1; /* One entry is always free. */
1090 pReply->IOCFacts.u8EventState = 0; /* Event notifications not enabled. */
1091 pReply->IOCFacts.u32CurrentSenseBufferHighAddr = pThis->u32SenseBufferHighAddr;
1092 pReply->IOCFacts.u16CurReplyFrameSize = pThis->cbReplyFrame;
1093 pReply->IOCFacts.u8MaxDevices = pThis->cMaxDevices;
1094 pReply->IOCFacts.u8MaxBuses = pThis->cMaxBuses;
1113 pReply->IOCFacts.u16ProductID = pFwImgHdr->u16ProductId;
1114 pReply->IOCFacts.u32FwImageSize = pFwImgHdr->u32ImageSize;
1115 pReply->IOCFacts.u32FWVersion = pFwImgHdr->u32FwVersion;
1120 pReply->IOCFacts.u16ProductID = 0xcafe; /* Our own product ID :) */
1121 pReply->IOCFacts.u32FwImageSize = 0; /* No image needed. */
1122 pReply->IOCFacts.u32FWVersion = 0;
1130 pReply->PortFacts.u8MessageLength = 10;
1131 pReply->PortFacts.u8PortNumber = pPortFactsReq->u8PortNumber;
1138 pReply->PortFacts.u8PortType = 0; /* Not existant. */
1142 pReply->PortFacts.u8PortType = 0x01; /* SCSI Port. */
1143 pReply->PortFacts.u16MaxDevices = LSILOGICSCSI_PCI_SPI_DEVICES_PER_BUS_MAX;
1144 pReply->PortFacts.u16ProtocolFlags = RT_BIT(3) | RT_BIT(0); /* SCSI initiator and LUN supported. */
1145 pReply->PortFacts.u16PortSCSIID = 7; /* Default */
1146 pReply->PortFacts.u16MaxPersistentIDs = 0;
1147 pReply->PortFacts.u16MaxPostedCmdBuffers = 0; /* Only applies for target mode which we dont support. */
1148 pReply->PortFacts.u16MaxLANBuckets = 0; /* Only for the LAN controller. */
1155 pReply->PortFacts.u8PortType = 0; /* Not existant. */
1159 pReply->PortFacts.u8PortType = 0x30; /* SAS Port. */
1160 pReply->PortFacts.u16MaxDevices = pThis->cPorts;
1161 pReply->PortFacts.u16ProtocolFlags = RT_BIT(3) | RT_BIT(0); /* SCSI initiator and LUN supported. */
1162 pReply->PortFacts.u16PortSCSIID = pThis->cPorts;
1163 pReply->PortFacts.u16MaxPersistentIDs = 0;
1164 pReply->PortFacts.u16MaxPostedCmdBuffers = 0; /* Only applies for target mode which we dont support. */
1165 pReply->PortFacts.u16MaxLANBuckets = 0; /* Only for the LAN controller. */
1180 pReply->PortEnable.u8MessageLength = 5;
1181 pReply->PortEnable.u8PortNumber = pPortEnableReq->u8PortNumber;
1193 pReply->EventNotification.u16EventDataLength = 1; /* 1 32bit D-Word. */
1194 pReply->EventNotification.u8MessageLength = 8;
1195 pReply->EventNotification.u8MessageFlags = (1 << 7);
1196 pReply->EventNotification.u8AckRequired = 0;
1197 pReply->EventNotification.u32Event = MPT_EVENT_EVENT_CHANGE;
1198 pReply->EventNotification.u32EventContext = 0;
1199 pReply->EventNotification.u32EventData = pThis->fEventNotificationEnabled ? 1 : 0;
1212 rc = lsilogicR3ProcessConfigurationRequest(pThis, pConfigurationReq, &pReply->Configuration);
1220 pReply->FWUpload.u8ImageType = pFWUploadReq->u8ImageType;
1221 pReply->FWUpload.u8MessageLength = 6;
1222 pReply->FWUpload.u32ActualImageSize = 0;
1229 pReply->FWDownload.u8MessageLength = 5;
1239 pReply->Header.u8Function = pMessageHdr->u8Function;
1240 pReply->Header.u32MessageContext = pMessageHdr->u32MessageContext;
1242 lsilogicFinishAddressReply(pThis, pReply, fForceReplyPostFifo);
2986 * @param pReply Pointer to the reply message frame
2989 PMptConfigurationReply pReply)
3012 pReply->u8MessageLength = 6; /* 6 32bit D-Words. */
3013 pReply->u8Action = pConfigurationReq->u8Action;
3014 pReply->u8Function = pConfigurationReq->u8Function;
3015 pReply->u32MessageContext = pConfigurationReq->u32MessageContext;
3089 pReply->u8PageType = pConfigurationReq->u8PageType;
3090 pReply->u8PageNumber = pConfigurationReq->u8PageNumber;
3091 pReply->u8PageLength = pConfigurationReq->u8PageLength;
3092 pReply->u8PageVersion = pConfigurationReq->u8PageVersion;
3093 pReply->u16IOCStatus = MPT_IOCSTATUS_CONFIG_INVALID_PAGE;
3099 pReply->u8PageType = pExtPageHeader->u8PageType;
3100 pReply->u8PageNumber = pExtPageHeader->u8PageNumber;
3101 pReply->u8PageVersion = pExtPageHeader->u8PageVersion;
3102 pReply->u8ExtPageType = pExtPageHeader->u8ExtPageType;
3103 pReply->u16ExtPageLength = pExtPageHeader->u16ExtPageLength;
3110 pReply->u8PageType = pPageHeader->u8PageType;
3111 pReply->u8PageNumber = pPageHeader->u8PageNumber;
3112 pReply->u8PageLength = pPageHeader->u8PageLength;
3113 pReply->u8PageVersion = pPageHeader->u8PageVersion;
3115 for (int i = 0; i < pReply->u8PageLength; i++)