Lines Matching defs:DescriptorArray
383 EFI_LEGACY_REGION_DESCRIPTOR *DescriptorArray;
395 DescriptorArray = AllocatePool (sizeof (EFI_LEGACY_REGION_DESCRIPTOR) * SectionCount * 3);
396 if (DescriptorArray == NULL) {
402 DescriptorArray[DescriptorIndex].Start = SectionInfo[Index].Start;
403 DescriptorArray[DescriptorIndex].Length = SectionInfo[Index].Length;
404 DescriptorArray[DescriptorIndex].Granularity = SectionInfo[Index].Length;
406 DescriptorArray[DescriptorIndex].Attribute = LegacyRegionDecoded;
408 DescriptorArray[DescriptorIndex].Attribute = LegacyRegionNotDecoded;
415 DescriptorArray[DescriptorIndex].Start = SectionInfo[Index].Start;
416 DescriptorArray[DescriptorIndex].Length = SectionInfo[Index].Length;
417 DescriptorArray[DescriptorIndex].Granularity = SectionInfo[Index].Length;
419 DescriptorArray[DescriptorIndex].Attribute = LegacyRegionWriteEnabled;
421 DescriptorArray[DescriptorIndex].Attribute = LegacyRegionWriteDisabled;
428 DescriptorArray[DescriptorIndex].Start = SectionInfo[Index].Start;
429 DescriptorArray[DescriptorIndex].Length = SectionInfo[Index].Length;
430 DescriptorArray[DescriptorIndex].Granularity = SectionInfo[Index].Length;
431 DescriptorArray[DescriptorIndex].Attribute = LegacyRegionNotLocked;
436 *Descriptor = DescriptorArray;