Lines Matching refs:Index
19 // This is a map from the interested DHCP4 option tags' index to the tag value.
224 @return Index The count of the built-in options.
235 UINT32 Index;
239 Index = 0;
246 OptList[Index]->OpCode = PXEBC_DHCP4_TAG_MSG_TYPE;
247 OptList[Index]->Length = 1;
248 OptEnt.Mesg = (PXEBC_DHCP4_OPTION_MESG *) OptList[Index]->Data;
250 Index++;
251 OptList[Index] = GET_NEXT_DHCP_OPTION (OptList[Index - 1]);
256 OptList[Index]->OpCode = PXEBC_DHCP4_TAG_MAXMSG;
257 OptList[Index]->Length = (UINT8) sizeof (PXEBC_DHCP4_OPTION_MAX_MESG_SIZE);
258 OptEnt.MaxMesgSize = (PXEBC_DHCP4_OPTION_MAX_MESG_SIZE *) OptList[Index]->Data;
261 Index++;
262 OptList[Index] = GET_NEXT_DHCP_OPTION (OptList[Index - 1]);
268 OptList[Index]->OpCode = PXEBC_DHCP4_TAG_PARA_LIST;
269 OptList[Index]->Length = 35;
270 OptEnt.Para = (PXEBC_DHCP4_OPTION_PARA *) OptList[Index]->Data;
306 Index++;
307 OptList[Index] = GET_NEXT_DHCP_OPTION (OptList[Index - 1]);
312 OptList[Index]->OpCode = PXEBC_PXE_DHCP4_TAG_UUID;
313 OptList[Index]->Length = (UINT8) sizeof (PXEBC_DHCP4_OPTION_UUID);
314 OptEnt.Uuid = (PXEBC_DHCP4_OPTION_UUID *) OptList[Index]->Data;
316 Index++;
317 OptList[Index] = GET_NEXT_DHCP_OPTION (OptList[Index - 1]);
329 OptList[Index]->OpCode = PXEBC_PXE_DHCP4_TAG_UNDI;
330 OptList[Index]->Length = (UINT8) sizeof (PXEBC_DHCP4_OPTION_UNDI);
331 OptEnt.Undi = (PXEBC_DHCP4_OPTION_UNDI *) OptList[Index]->Data;
343 Index++;
344 OptList[Index] = GET_NEXT_DHCP_OPTION (OptList[Index - 1]);
349 OptList[Index]->OpCode = PXEBC_PXE_DHCP4_TAG_ARCH;
350 OptList[Index]->Length = (UINT8) sizeof (PXEBC_DHCP4_OPTION_ARCH);
351 OptEnt.Arch = (PXEBC_DHCP4_OPTION_ARCH *) OptList[Index]->Data;
354 Index++;
355 OptList[Index] = GET_NEXT_DHCP_OPTION (OptList[Index - 1]);
360 OptList[Index]->OpCode = PXEBC_DHCP4_TAG_CLASS_ID;
361 OptList[Index]->Length = (UINT8) sizeof (PXEBC_DHCP4_OPTION_CLID);
362 OptEnt.Clid = (PXEBC_DHCP4_OPTION_CLID *) OptList[Index]->Data;
380 Index++;
382 return Index;
459 UINTN Index;
477 for (Index = 0; Index < PXEBC_DHCP4_TAG_INDEX_MAX; Index++) {
478 Options[Index] = PxeBcParseDhcp4Options (
481 mInterestedDhcp4Tags[Index]
491 for (Index = 0; Index < PXEBC_DHCP4_TAG_INDEX_MAX; Index++) {
492 if (Options[Index] == NULL) {
493 Options[Index] = PxeBcParseDhcp4Options (
496 mInterestedDhcp4Tags[Index]
502 for (Index = 0; Index < PXEBC_DHCP4_TAG_INDEX_MAX; Index++) {
503 if (Options[Index] == NULL) {
504 Options[Index] = PxeBcParseDhcp4Options (
507 mInterestedDhcp4Tags[Index]
685 @param[in] Index The received order of offer packets.
694 IN UINT32 Index
703 ASSERT (Index < PXEBC_OFFER_MAX_NUM);
704 ASSERT (Private->OfferBuffer[Index].Dhcp4.OfferType == PxeOfferTypeDhcpBinl ||
705 Private->OfferBuffer[Index].Dhcp4.OfferType == PxeOfferTypeProxyBinl);
707 Offer = &Private->OfferBuffer[Index].Dhcp4.Packet.Offer;
715 Private->OfferBuffer[Index].Dhcp4.OptList[PXEBC_DHCP4_TAG_INDEX_SERVER_ID]->Data,
870 UINT32 Index;
926 for (Index = 0; Index < Private->OfferCount[PxeOfferTypeDhcpOnly]; Index++) {
927 OfferIndex = Private->OfferIndex[PxeOfferTypeDhcpOnly][Index];
947 for (Index = 0; Index < Private->OfferNum; Index++) {
949 Offer = &Private->OfferBuffer[Index].Dhcp4.Packet.Offer;
959 Private->OfferBuffer[Index].Dhcp4.OfferType == PxeOfferTypeDhcpOnly &&
960 Private->OfferBuffer[Index].Dhcp4.OptList[PXEBC_DHCP4_TAG_INDEX_BOOTFILE] == NULL) {
968 // Record the index of the select offer.
970 Private->SelectIndex = Index + 1;
994 UINT32 Index;
1036 for (Index = 0; Index < Private->OfferCount[Private->SelectProxyType]; Index++) {
1037 ASSERT (Index < PXEBC_OFFER_MAX_NUM);
1038 ProxyIndex = Private->OfferIndex[Private->SelectProxyType][Index];
1043 if (Index == Private->OfferCount[Private->SelectProxyType]) {
1058 for (Index = 0; Index < Private->OfferNum; Index++) {
1059 ASSERT (Index < PXEBC_OFFER_MAX_NUM);
1060 Offer = &Private->OfferBuffer[Index].Dhcp4.Packet.Offer;
1061 OfferType = Private->OfferBuffer[Index].Dhcp4.OfferType;
1073 if (EFI_ERROR (PxeBcRetryBinlOffer (Private, Index))) {
1079 ProxyIndex = Index;