Lines Matching refs:Package
55 Extract Hii package list GUID for given HII handle.
61 @param Guid Package list GUID
116 the list of package is 0, then NULL is returned.
118 The variable arguments are pointers which point to package header that defined
128 @param[in] PackageListGuid The GUID of the package list.
141 @retval Other The HII Handle associated with the newly registered package list.
154 UINT32 *Package;
165 for (Length = 0, VA_START (Args, DeviceHandle); (Package = VA_ARG (Args, UINT32 *)) != NULL; ) {
166 Length += (ReadUnaligned32 (Package) - sizeof (UINT32));
179 // Add the length of the Package List Header and the terminating Package Header
184 // Allocate the storage for the entire Package List
189 // If the Package List can not be allocated, then return a NULL HII Handle
196 // Fill in the GUID and Length of the Package List Header
202 // Initialize a pointer to the beginning if the Package List data
207 // Copy the data from each package in the variable argument list
209 for (VA_START (Args, DeviceHandle); (Package = VA_ARG (Args, UINT32 *)) != NULL; ) {
210 Length = ReadUnaligned32 (Package) - sizeof (UINT32);
211 CopyMem (Data, Package + 1, Length);
217 // Append a package of type EFI_HII_PACKAGE_END to mark the end of the package list
222 // Register the package list with the HII Database
235 // Free the allocated package list
246 Removes a package list from the HII database.
270 package list GUID in the HII Database.
277 Package List GUID. If this parameter is NULL,
390 @retval EFI_NOT_FOUND Can't find the package data for the input Handle.
407 UINT8 *Package;
439 // Get Form package from this HII package List
446 Package = ((UINT8 *) HiiPackageList) + Offset;
447 CopyMem (&PackageHeader, Package, sizeof (EFI_HII_PACKAGE_HEADER));
455 // Search FormSet Opcode in this Form Package
459 OpCodeData = Package + Offset2;
478 //One form package has one formset, exit current form package to search other form package in the packagelist.
1090 @param HiiPackageList Point to Hii package list.
1102 @retval EFI_INVALID_PARAMETER The config string or the Hii package is invalid.
1163 // Parse IFR opcode from the form package.
1695 // Only one form is in a package list.
1701 // Go to next package.
1718 @retval EFI_INVALID_PARAMETER The config string or the Hii package is invalid.
1961 @param HiiPackageList Point to Hii package list.
1965 @param HiiHandle The HiiHandle for this package.
1969 @retval EFI_INVALID_PARAMETER The config string or the Hii package is invalid.
2255 // This request string has no its Hii package.
3967 @param[in] Package The package header.
3972 @param[out] TempPackage The resultant package.
3983 IN EFI_HII_PACKAGE_HEADER *Package,
4000 CopyMem (TempPackage, Package, sizeof (EFI_HII_PACKAGE_HEADER));
4004 CopyMem (&PackageHeader, Package, sizeof (EFI_HII_PACKAGE_HEADER));
4005 IfrOpHdr = (EFI_IFR_OP_HEADER *)((UINT8 *) Package + sizeof (EFI_HII_PACKAGE_HEADER));
4088 // Copy the left package data.
4091 CopyMem (BufferPos, (UINT8 *) Package + Offset, PackageHeader.Length - Offset);
4116 // Update the package length.
4198 EFI_HII_PACKAGE_HEADER *Package;
4221 // Get the original package list
4255 // Allocate temp buffer to store the temp updated package buffer
4266 // Copy the package list header
4272 // Go through each package to find the matched package and update one by one
4278 Package = (EFI_HII_PACKAGE_HEADER *) (((UINT8 *) HiiPackageList) + Offset);
4279 CopyMem (&PackageHeader, Package, sizeof (EFI_HII_PACKAGE_HEADER));
4280 Offset += Package->Length;
4282 if (Package->Type == EFI_HII_PACKAGE_FORMS) {
4284 // Check this package is the matched package.
4286 Status = InternalHiiUpdateFormPackageData (FormSetGuid, FormId, Package, OpCodeBufferStart, OpCodeBufferEnd, TempPacakge);
4288 // The matched package is found. Its package buffer will be updated by the input new data.
4296 // Add updated package buffer
4298 Package = TempPacakge;
4305 CopyMem (&PackageHeader, Package, sizeof (EFI_HII_PACKAGE_HEADER));
4306 CopyMem (UpdateBufferPos, Package, PackageHeader.Length);
4312 // Update package list length
4318 // Update Package to show form