Lines Matching refs:BootOption
57 EFI_BOOT_MANAGER_LOAD_OPTION *BootOption in BmIsAutoCreateBootOption() argument
60 if ((BootOption->OptionalDataSize == sizeof (EFI_GUID)) && in BmIsAutoCreateBootOption()
61 CompareGuid ((EFI_GUID *) BootOption->OptionalData, &mBmAutoCreateBootOptionGuid) in BmIsAutoCreateBootOption()
83 EFI_BOOT_MANAGER_LOAD_OPTION BootOption; in BmFindBootOptionInVariable() local
100 Status = EfiBootManagerVariableToLoadOption (OptionName, &BootOption); in BmFindBootOptionInVariable()
103 ASSERT (OptionToFind->OptionNumber == BootOption.OptionNumber); in BmFindBootOptionInVariable()
104 if ((OptionToFind->Attributes == BootOption.Attributes) && in BmFindBootOptionInVariable()
105 (StrCmp (OptionToFind->Description, BootOption.Description) == 0) && in BmFindBootOptionInVariable()
106 …(CompareMem (OptionToFind->FilePath, BootOption.FilePath, GetDevicePathSize (OptionToFind->FilePat… in BmFindBootOptionInVariable()
107 (OptionToFind->OptionalDataSize == BootOption.OptionalDataSize) && in BmFindBootOptionInVariable()
108 …(CompareMem (OptionToFind->OptionalData, BootOption.OptionalData, OptionToFind->OptionalDataSize) … in BmFindBootOptionInVariable()
112 EfiBootManagerFreeLoadOption (&BootOption); in BmFindBootOptionInVariable()
1583 IN EFI_BOOT_MANAGER_LOAD_OPTION *BootOption in EfiBootManagerBoot() argument
1599 if (BootOption == NULL) { in EfiBootManagerBoot()
1603 if (BootOption->FilePath == NULL || BootOption->OptionType != LoadOptionTypeBoot) { in EfiBootManagerBoot()
1604 BootOption->Status = EFI_INVALID_PARAMETER; in EfiBootManagerBoot()
1611 OptionNumber = BmFindBootOptionInVariable (BootOption); in EfiBootManagerBoot()
1619 OriginalOptionNumber = BootOption->OptionNumber; in EfiBootManagerBoot()
1620 BootOption->OptionNumber = OptionNumber; in EfiBootManagerBoot()
1621 Status = EfiBootManagerLoadOptionToVariable (BootOption); in EfiBootManagerBoot()
1622 BootOption->OptionNumber = OriginalOptionNumber; in EfiBootManagerBoot()
1627 BootOption->Status = Status; in EfiBootManagerBoot()
1648 if (BmIsBootManagerMenuFilePath (BootOption->FilePath)) { in EfiBootManagerBoot()
1670 (BOOLEAN) ((BootOption->Attributes & LOAD_OPTION_CATEGORY) == LOAD_OPTION_CATEGORY_BOOT) in EfiBootManagerBoot()
1677 if (BootOption->Description == NULL) { in EfiBootManagerBoot()
1680 DEBUG ((DEBUG_INFO | DEBUG_LOAD, "[Bds]Booting %s\n", BootOption->Description)); in EfiBootManagerBoot()
1686 if (DevicePathType (BootOption->FilePath) != BBS_DEVICE_PATH) { in EfiBootManagerBoot()
1688 FileBuffer = EfiBootManagerGetLoadOptionBuffer (BootOption->FilePath, &FilePath, &FileSize); in EfiBootManagerBoot()
1693 …if (FileBuffer != NULL && CompareMem (BootOption->FilePath, FilePath, GetDevicePathSize (FilePath)… in EfiBootManagerBoot()
1695 BmPrintDp (BootOption->FilePath); in EfiBootManagerBoot()
1701 if (BmIsLoadOptionPeHeaderValid (BootOption->OptionType, FileBuffer, FileSize)) { in EfiBootManagerBoot()
1727 BootOption->Status = Status; in EfiBootManagerBoot()
1743 …if ((DevicePathType (BootOption->FilePath) == BBS_DEVICE_PATH) && (DevicePathSubType (BootOption->… in EfiBootManagerBoot()
1761 mBmLegacyBoot (BootOption); in EfiBootManagerBoot()
1763 BootOption->Status = EFI_UNSUPPORTED; in EfiBootManagerBoot()
1776 if (!BmIsAutoCreateBootOption (BootOption)) { in EfiBootManagerBoot()
1777 ImageInfo->LoadOptionsSize = BootOption->OptionalDataSize; in EfiBootManagerBoot()
1778 ImageInfo->LoadOptions = BootOption->OptionalData; in EfiBootManagerBoot()
1800 Status = gBS->StartImage (ImageHandle, &BootOption->ExitDataSize, &BootOption->ExitData); in EfiBootManagerBoot()
1802 BootOption->Status = Status; in EfiBootManagerBoot()
2197 OUT EFI_BOOT_MANAGER_LOAD_OPTION *BootOption in BmRegisterBootManagerMenu() argument
2281 BootOption, in BmRegisterBootManagerMenu()
2301 ASSERT (EfiBootManagerFindLoadOption (BootOption, BootOptions, BootOptionCount) == -1); in BmRegisterBootManagerMenu()
2305 return EfiBootManagerAddLoadOptionVariable (BootOption, 0); in BmRegisterBootManagerMenu()
2323 EFI_BOOT_MANAGER_LOAD_OPTION *BootOption in EfiBootManagerGetBootManagerMenu() argument
2336 BootOption, in EfiBootManagerGetBootManagerMenu()
2356 return BmRegisterBootManagerMenu (BootOption); in EfiBootManagerGetBootManagerMenu()