Lines Matching refs:Index
45 UINT8 Index;
74 Index = 0;
81 for (FieldIndex = RP_FIELD_IDX_SERVERNAME; (FieldIndex < RP_FIELD_IDX_MAX) && (Index < Length); FieldIndex++) {
82 if (TmpStr[Index] != ISCSI_ROOT_PATH_FIELD_DELIMITER) {
83 Fields[FieldIndex].Str = &TmpStr[Index];
86 while ((TmpStr[Index] != ISCSI_ROOT_PATH_FIELD_DELIMITER) && (Index < Length)) {
87 Index++;
90 if (TmpStr[Index] == ISCSI_ROOT_PATH_FIELD_DELIMITER) {
92 TmpStr[Index] = '\0';
93 Index++;
218 UINT32 Index;
242 for (Index = 0; Index < OptionCount; Index++) {
243 if (OptionList[Index]->OpCode != DHCP4_TAG_ROOT_PATH) {
248 (CHAR8 *) &OptionList[Index]->Data[0],
249 OptionList[Index]->Length,
256 if ((Index == OptionCount)) {
288 UINT32 Index;
325 for (Index = 0; Index < OptionCount; Index++) {
329 if (OptionList[Index]->OpCode == DHCP4_TAG_DNS) {
331 if (((OptionList[Index]->Length & 0x3) != 0) || (OptionList[Index]->Length == 0)) {
338 CopyMem (&ConfigData->PrimaryDns, &OptionList[Index]->Data[0], sizeof (EFI_IPv4_ADDRESS));
340 if (OptionList[Index]->Length > 4) {
344 CopyMem (&ConfigData->SecondaryDns, &OptionList[Index]->Data[4], sizeof (EFI_IPv4_ADDRESS));
346 } else if (OptionList[Index]->OpCode == DHCP4_TAG_SERVER_ID) {
347 if (OptionList[Index]->Length != 4) {
352 CopyMem (&ConfigData->DhcpServer, &OptionList[Index]->Data[0], sizeof (EFI_IPv4_ADDRESS));