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;
487 //One form package has one formset, exit current form package to search other form package in the packagelist.
1100 @param HiiPackageList Point to Hii package list.
1112 @retval EFI_INVALID_PARAMETER The config string or the Hii package is invalid.
1173 // Parse IFR opcode from the form package.
1705 // Only one form is in a package list.
1711 // Go to next package.
1728 @retval EFI_INVALID_PARAMETER The config string or the Hii package is invalid.
1971 @param HiiPackageList Point to Hii package list.
1975 @param HiiHandle The HiiHandle for this package.
1979 @retval EFI_INVALID_PARAMETER The config string or the Hii package is invalid.
2266 // This request string has no its Hii package.
3978 @param[in] Package The package header.
3983 @param[out] TempPackage The resultant package.
3994 IN EFI_HII_PACKAGE_HEADER *Package,
4011 CopyMem (TempPackage, Package, sizeof (EFI_HII_PACKAGE_HEADER));
4015 CopyMem (&PackageHeader, Package, sizeof (EFI_HII_PACKAGE_HEADER));
4016 IfrOpHdr = (EFI_IFR_OP_HEADER *)((UINT8 *) Package + sizeof (EFI_HII_PACKAGE_HEADER));
4099 // Copy the left package data.
4102 CopyMem (BufferPos, (UINT8 *) Package + Offset, PackageHeader.Length - Offset);
4127 // Update the package length.
4209 EFI_HII_PACKAGE_HEADER *Package;
4232 // Get the original package list
4266 // Allocate temp buffer to store the temp updated package buffer
4277 // Copy the package list header
4283 // Go through each package to find the matched package and update one by one
4289 Package = (EFI_HII_PACKAGE_HEADER *) (((UINT8 *) HiiPackageList) + Offset);
4290 CopyMem (&PackageHeader, Package, sizeof (EFI_HII_PACKAGE_HEADER));
4291 Offset += Package->Length;
4293 if (Package->Type == EFI_HII_PACKAGE_FORMS) {
4295 // Check this package is the matched package.
4297 Status = InternalHiiUpdateFormPackageData (FormSetGuid, FormId, Package, OpCodeBufferStart, OpCodeBufferEnd, TempPackage);
4299 // The matched package is found. Its package buffer will be updated by the input new data.
4307 // Add updated package buffer
4309 Package = TempPackage;
4316 CopyMem (&PackageHeader, Package, sizeof (EFI_HII_PACKAGE_HEADER));
4317 CopyMem (UpdateBufferPos, Package, PackageHeader.Length);
4323 // Update package list length
4329 // Update Package to show form