Home | History | Annotate | Download | only in HiiDatabaseDxe

Lines Matching refs:Package

24                                  package list

92 // Insert the Package List node to Package List link of the whole database.
140 @param PackageInstance Points to the package referred to by the
142 @param PackageType Package type
143 @param Handle The handle of the package list which contains the
144 specified package.
162 EFI_HII_PACKAGE_HEADER *Package;
180 Package = NULL;
183 // Convert the incoming package from hii database storage format to UEFI
188 Package = (EFI_HII_PACKAGE_HEADER *) (((HII_GUID_PACKAGE_INSTANCE *) PackageInstance)->GuidPkg);
205 Package = (EFI_HII_PACKAGE_HEADER *) Buffer;
209 Package = (EFI_HII_PACKAGE_HEADER *) (((HII_KEYBOARD_LAYOUT_PACKAGE_INSTANCE *) PackageInstance)->KeyboardPkg);
227 Package = (EFI_HII_PACKAGE_HEADER *) Buffer;
245 Package = (EFI_HII_PACKAGE_HEADER *) Buffer;
288 Package = (EFI_HII_PACKAGE_HEADER *) Buffer;
300 Package = (EFI_HII_PACKAGE_HEADER *) Buffer;
304 Package = (EFI_HII_PACKAGE_HEADER *) PackageInstance;
318 // Check in case PackageGuid is not NULL when Package is GUID package
329 Package,
345 This function insert a GUID package to a package list node.
348 @param PackageHdr Pointer to a buffer stored with GUID package
351 @param PackageList Pointer to a package list which will be inserted
353 @param Package Created GUID pacakge
355 @retval EFI_SUCCESS Guid Package is inserted successfully.
357 Guid package.
366 OUT HII_GUID_PACKAGE_INSTANCE **Package
379 // Create a GUID package node
394 *Package = GuidPackage;
409 @param Handle Identification of a package list.
410 @param PackageList Pointer to a package list which will be exported.
415 package list.
473 This function deletes all GUID packages from a package list node.
477 @param Handle Handle of the package list which contains the to
479 @param PackageList Pointer to a package list that contains removing
482 @retval EFI_SUCCESS GUID Package(s) is deleted successfully.
494 HII_GUID_PACKAGE_INSTANCE *Package;
501 Package = CR (
510 (VOID *) Package,
518 RemoveEntryList (&Package->GuidEntry);
519 CopyMem (&PackageHeader, Package->GuidPkg, sizeof (EFI_HII_PACKAGE_HEADER));
521 FreePool (Package->GuidPkg);
522 FreePool (Package);
530 This function insert a Form package to a package list node.
533 @param PackageHdr Pointer to a buffer stored with Form package
536 @param PackageList Pointer to a package list which will be inserted
538 @param Package Created Form package
540 @retval EFI_SUCCESS Form Package is inserted successfully.
542 Form package.
551 OUT HII_IFR_PACKAGE_INSTANCE **Package
562 // Get the length of the package, including package header itself
567 // Create a Form package node
582 // Copy Package Header
596 *Package = FormPackage;
610 @param Handle Identification of a package list.
611 @param PackageList Pointer to a package list which will be exported.
616 package list.
668 // Copy the Form package content.
689 This function deletes all Form packages from a package list node.
693 @param Handle Handle of the package list which contains the to
695 @param PackageList Pointer to a package list that contains removing
698 @retval EFI_SUCCESS Form Package(s) is deleted successfully.
710 HII_IFR_PACKAGE_INSTANCE *Package;
716 Package = CR (
725 (VOID *) Package,
733 RemoveEntryList (&Package->IfrEntry);
734 PackageList->PackageListHdr.PackageLength -= Package->FormPkgHdr.Length;
735 FreePool (Package->IfrData);
736 FreePool (Package);
746 This function insert a String package to a package list node.
750 @param PackageHdr Pointer to a buffer stored with String package
753 @param PackageList Pointer to a package list which will be inserted
755 @param Package Created String package
757 @retval EFI_SUCCESS String Package is inserted successfully.
759 String package.
761 @retval EFI_UNSUPPORTED A string package with the same language already
762 exists in current package list.
771 OUT HII_STRING_PACKAGE_INSTANCE **Package
812 // Create a String package node
837 // Copy the String package header.
859 // Insert to String package array
862 *Package = StringPackage;
886 Adjust all string packages in a single package list to have the same max string ID.
888 @param PackageList Pointer to a package list which will be adjusted.
968 @param Handle Identification of a package list.
969 @param PackageList Pointer to a package list which will be exported.
974 package list.
1023 // Copy String package header
1046 This function deletes all String packages from a package list node.
1050 @param Handle Handle of the package list which contains the to
1052 @param PackageList Pointer to a package list that contains removing
1055 @retval EFI_SUCCESS String Package(s) is deleted successfully.
1067 HII_STRING_PACKAGE_INSTANCE *Package;
1074 Package = CR (
1083 (VOID *) Package,
1091 RemoveEntryList (&Package->StringEntry);
1092 PackageList->PackageListHdr.PackageLength -= Package->StringPkgHdr->Header.Length;
1093 FreePool (Package->StringBlock);
1094 FreePool (Package->StringPkgHdr);
1098 while (!IsListEmpty (&Package->FontInfoList)) {
1100 Package->FontInfoList.ForwardLink,
1109 FreePool (Package);
1117 This function insert a Font package to a package list node.
1121 @param PackageHdr Pointer to a buffer stored with Font package
1124 @param PackageList Pointer to a package list which will be inserted
1126 @param Package Created Font package
1128 @retval EFI_SUCCESS Font Package is inserted successfully.
1130 Font package.
1132 @retval EFI_UNSUPPORTED A font package with same EFI_FONT_INFO already
1142 OUT HII_FONT_PACKAGE_INSTANCE **Package
1193 // Create a Font package node
1220 // This font package describes an unique EFI_FONT_INFO. Backup it in global
1235 // Insert this font package to Font package array
1238 *Package = FontPackage;
1274 @param Handle Identification of a package list.
1275 @param PackageList Pointer to a package list which will be exported.
1280 package list.
1300 HII_FONT_PACKAGE_INSTANCE *Package;
1315 Package = CR (Link, HII_FONT_PACKAGE_INSTANCE, FontEntry, HII_FONT_PACKAGE_SIGNATURE);
1316 PackageLength += Package->FontPkgHdr->Header.Length;
1324 (VOID *) Package,
1330 // Copy Font package header
1332 CopyMem (Buffer, Package->FontPkgHdr, Package->FontPkgHdr->HdrSize);
1333 Buffer = (UINT8 *) Buffer + Package->FontPkgHdr->HdrSize;
1340 Package->GlyphBlock,
1341 Package->FontPkgHdr->Header.Length - Package->FontPkgHdr->HdrSize
1343 Buffer = (UINT8 *) Buffer + Package->FontPkgHdr->Header.Length - Package->FontPkgHdr->HdrSize;
1353 This function deletes all Font packages from a package list node.
1357 @param Handle Handle of the package list which contains the to
1359 @param PackageList Pointer to a package list that contains removing
1362 @retval EFI_SUCCESS Font Package(s) is deleted successfully.
1374 HII_FONT_PACKAGE_INSTANCE *Package;
1383 Package = CR (
1392 (VOID *) Package,
1400 RemoveEntryList (&Package->FontEntry);
1401 PackageList->PackageListHdr.PackageLength -= Package->FontPkgHdr->Header.Length;
1403 if (Package->GlyphBlock != NULL) {
1404 FreePool (Package->GlyphBlock);
1406 FreePool (Package->FontPkgHdr);
1410 while (!IsListEmpty (&Package->GlyphInfoList)) {
1412 Package->GlyphInfoList.ForwardLink,
1426 if (GlobalFont->FontPackage == Package) {
1434 FreePool (Package);
1442 This function insert a Image package to a package list node.
1445 @param PackageHdr Pointer to a buffer stored with Image package
1448 @param PackageList Pointer to a package list which will be inserted
1450 @param Package Created Image package
1452 Package is inserted successfully.
1454 Image package.
1463 OUT HII_IMAGE_PACKAGE_INSTANCE **Package
1481 // Less than one image package is allowed in one package list.
1488 // Create a Image package node
1496 // Copy the Image package header.
1504 // If PaletteInfoOffset is zero, there are no palettes in this image package.
1533 // If ImageInfoOffset is zero, there are no images in this package.
1556 *Package = ImagePackage;
1571 @param Handle Identification of a package list.
1572 @param PackageList Pointer to a package list which will be exported.
1577 package list.
1596 HII_IMAGE_PACKAGE_INSTANCE *Package;
1607 Package = PackageList->ImagePkg;
1609 if (Package == NULL) {
1613 PackageLength = Package->ImagePkgHdr.Header.Length;
1622 (VOID *) Package,
1627 ASSERT (Package->ImagePkgHdr.Header.Length ==
1628 sizeof (EFI_HII_IMAGE_PACKAGE_HDR) + Package->ImageBlockSize + Package->PaletteInfoSize);
1630 // Copy Image package header,
1633 CopyMem (Buffer, &Package->ImagePkgHdr, sizeof (EFI_HII_IMAGE_PACKAGE_HDR));
1639 if (Package->ImageBlockSize != 0) {
1640 CopyMem (Buffer, Package->ImageBlock, Package->ImageBlockSize);
1641 Buffer = (UINT8 *) Buffer + Package->ImageBlockSize;
1646 if (Package->PaletteInfoSize != 0) {
1647 CopyMem (Buffer, Package->PaletteBlock, Package->PaletteInfoSize);
1648 Buffer = (UINT8 *) Buffer + Package->PaletteInfoSize;
1658 This function deletes Image package from a package list node.
1662 @param Handle Handle of the package list which contains the to
1664 @param PackageList Package List which contains the to be removed
1665 Image package.
1667 @retval EFI_SUCCESS Image Package(s) is deleted successfully.
1678 HII_IMAGE_PACKAGE_INSTANCE *Package;
1681 Package = PackageList->ImagePkg;
1684 // Image package does not exist, return directly.
1686 if (Package == NULL) {
1693 (VOID *) Package,
1701 PackageList->PackageListHdr.PackageLength -= Package->ImagePkgHdr.Header.Length;
1703 FreePool (Package->ImageBlock);
1704 if (Package->PaletteBlock != NULL) {
1705 FreePool (Package->PaletteBlock);
1707 FreePool (Package);
1716 This function insert a Simple Font package to a package list node.
1720 package information.
1722 @param PackageList Pointer to a package list which will be inserted
1724 @param Package Created Simple Font package
1726 @retval EFI_SUCCESS Simple Font Package is inserted successfully.
1728 Simple Font package.
1737 OUT HII_SIMPLE_FONT_PACKAGE_INSTANCE **Package
1749 // Create a Simple Font package node
1759 // Copy the Simple Font package.
1772 // Insert to Simple Font package array
1775 *Package = SimpleFontPackage;
1800 @param Handle Identification of a package list.
1801 @param PackageList Pointer to a package list which will be exported.
1806 package list.
1826 HII_SIMPLE_FONT_PACKAGE_INSTANCE *Package;
1840 Package = CR (Link, HII_SIMPLE_FONT_PACKAGE_INSTANCE, SimpleFontEntry, HII_S_FONT_PACKAGE_SIGNATURE);
1841 PackageLength += Package->SimpleFontPkgHdr->Header.Length;
1849 (VOID *) Package,
1856 // Copy SimpleFont package
1858 CopyMem (Buffer, Package->SimpleFontPkgHdr, Package->SimpleFontPkgHdr->Header.Length);
1859 Buffer = (UINT8 *) Buffer + Package->SimpleFontPkgHdr->Header.Length;
1869 This function deletes all Simple Font packages from a package list node.
1873 @param Handle Handle of the package list which contains the to
1875 @param PackageList Pointer to a package list that contains removing
1878 @retval EFI_SUCCESS Simple Font Package(s) is deleted successfully.
1890 HII_SIMPLE_FONT_PACKAGE_INSTANCE *Package;
1896 Package = CR (
1905 (VOID *) Package,
1913 RemoveEntryList (&Package->SimpleFontEntry);
1914 PackageList->PackageListHdr.PackageLength -= Package->SimpleFontPkgHdr->Header.Length;
1915 FreePool (Package->SimpleFontPkgHdr);
1916 FreePool (Package);
1924 This function insert a Device path package to a package list node.
1930 @param PackageList Pointer to a package list which will be inserted
1933 @retval EFI_SUCCESS Device path Package is inserted successfully.
1935 Device path package.
1953 // Less than one device path package is allowed in one package list.
1975 // Since Device Path package is created by NewPackageList, either NEW_PACK
1976 // or ADD_PACK should increase the length of package list.
1984 This function exports device path package to a buffer.
1988 @param Handle Identification of a package list.
1989 @param PackageList Pointer to a package list which will be exported.
1994 package list.
1996 @retval EFI_SUCCESS Device path Package is exported successfully.
2012 UINT8 *Package;
2022 Package = PackageList->DevicePathPkg;
2024 if (Package == NULL) {
2028 CopyMem (&Header, Package, sizeof (EFI_HII_PACKAGE_HEADER));
2037 (VOID *) Package,
2044 // Copy Device path package
2046 CopyMem (Buffer, Package, Header.Length);
2055 This function deletes Device Path package from a package list node.
2059 @param Handle Handle of the package list.
2060 @param PackageList Package List which contains the to be removed
2061 Device Path package.
2063 @retval EFI_SUCCESS Device Path Package is deleted successfully.
2075 UINT8 *Package;
2078 Package = PackageList->DevicePathPkg;
2083 if (Package == NULL) {
2090 (VOID *) Package,
2098 CopyMem (&Header, Package, sizeof (EFI_HII_PACKAGE_HEADER));
2101 FreePool (Package);
2110 This function will insert a device path package to package list firstly then
2118 @param DatabaseRecord Pointer to a database record contains a package
2121 @retval EFI_SUCCESS Device path Package is inserted successfully.
2123 Device path package.
2145 // Create a device path package and insert to packagelist
2167 This function insert a Keyboard Layout package to a package list node.
2171 package information.
2173 @param PackageList Pointer to a package list which will be inserted
2175 @param Package Created Keyboard Layout package
2177 @retval EFI_SUCCESS Keyboard Layout Package is inserted successfully.
2179 Keyboard Layout package.
2188 OUT HII_KEYBOARD_LAYOUT_PACKAGE_INSTANCE **Package
2202 // Create a Keyboard Layout package node
2220 *Package = KeyboardLayoutPackage;
2247 @param Handle Identification of a package list.
2248 @param PackageList Pointer to a package list which will be exported.
2253 package list.
2274 HII_KEYBOARD_LAYOUT_PACKAGE_INSTANCE *Package;
2289 Package = CR (Link, HII_KEYBOARD_LAYOUT_PACKAGE_INSTANCE, KeyboardEntry, HII_KB_LAYOUT_PACKAGE_SIGNATURE);
2290 CopyMem (&PackageHeader, Package->KeyboardPkg, sizeof (EFI_HII_PACKAGE_HEADER));
2299 (EFI_HII_PACKAGE_HEADER *) Package,
2306 // Copy Keyboard Layout package
2308 CopyMem (Buffer, Package->KeyboardPkg, PackageHeader.Length);
2319 This function deletes all Keyboard Layout packages from a package list node.
2323 @param Handle Handle of the package list which contains the to
2325 @param PackageList Pointer to a package list that contains removing
2328 @retval EFI_SUCCESS Keyboard Layout Package(s) is deleted
2341 HII_KEYBOARD_LAYOUT_PACKAGE_INSTANCE *Package;
2348 Package = CR (
2357 (VOID *) Package,
2365 RemoveEntryList (&Package->KeyboardEntry);
2366 CopyMem (&PackageHeader, Package->KeyboardPkg, sizeof (EFI_HII_PACKAGE_HEADER));
2368 FreePool (Package->KeyboardPkg);
2369 FreePool (Package);
2377 This function will insert a package list to hii database firstly then
2385 @param PackageList Pointer to a package list.
2386 @param DatabaseRecord Pointer to a database record contains a package
2392 Device path package.
2430 // Process the package list header
2595 // goto header of next package
2602 // Adjust String Package to make sure all string packages have the same max string ID.
2613 This function exports a package list to a buffer. It is the worker function
2619 @param Handle Identification of a package list.
2620 @param PackageList Pointer to a package list which will be exported.
2622 package lists when Handle is NULL.
2654 // Copy the package list header
2655 // ResultSize indicates the length of the exported bytes of this package list
2761 // Append the package list end.
2780 This function adds the packages in the package list to the database and returns a handle. If there is a
2782 create a package of type EFI_PACKAGE_TYPE_DEVICE_PATH and add it to the package list.
2788 @param DriverHandle Associate the package list with this EFI handle.
2793 @retval EFI_SUCCESS The package list associated with the Handle was
2825 // Check the Package list GUID to guarantee this GUID is unique in database.
2846 // Fill in information of the created Package List node
2847 // according to incoming package list.
2857 // Create a Device path package and add into the package list if exists.
2875 This function removes the package list that is associated with a handle Handle
2876 from the HII database. Before removing the package, any registered functions
2877 with the notification type REMOVE_PACK and the same package type will be called.
2961 // Free resources of the package list
2984 This function updates the existing package list (which has the specified Handle)
2985 in the HII databases, using the new package list specified by PackageList.
2992 package.
3039 // Remove the package if its type matches one of the package types which is
3040 // contained in the new package list.
3080 // Add all of the packages within the new package list
3091 This function returns a list of the package handles of the specified type
3093 EFI_HII_PACKAGE_TYPE_ALL will cause all package handles to be listed.
3097 @param PackageType Specifies the package type of the packages to list
3215 // Pesudo-type EFI_HII_PACKAGE_TYPE_ALL will cause all package handles
3226 // This active package list has the specified package type, list it.
3252 This function will export one or all package lists in the database to a buffer.
3253 For each package list exported, this function will call functions registered
3254 with EXPORT_PACK and then copy the package list to the buffer.
3259 package list in the HII database to export or NULL
3260 to indicate all package lists should be exported.
3267 @retval EFI_SUCCESS Package exported.
3311 // Export all package lists in current hii database.
3355 notified when specific package types are added, removed or updated in the HII database.
3361 @param PackageType Specifies the package type of the packages to list
3449 Removes the specified HII database package-related notification.
3562 HII_KEYBOARD_LAYOUT_PACKAGE_INSTANCE *Package;
3576 // Search all package lists in whole database to retrieve keyboard layout.
3586 // Find out all Keyboard Layout packages in this package list.
3588 Package = CR (
3594 Layout = (UINT8 *) Package->KeyboardPkg + sizeof (EFI_HII_PACKAGE_HEADER) + sizeof (UINT16);
3597 (UINT8 *) Package->KeyboardPkg + sizeof (EFI_HII_PACKAGE_HEADER),
3669 HII_KEYBOARD_LAYOUT_PACKAGE_INSTANCE *Package;
3702 Package = CR (
3709 Layout = (UINT8 *) Package->KeyboardPkg +
3811 Return the EFI handle associated with a package list.
3816 package list in the HIIdatabase.
3818 registered with the package list in