Lines Matching refs:Handles
577 EFI_HANDLE *Handles; in BmExpandUsbDevicePath() local
585 Handles = BmFindUsbDevice (FilePath, ParentDevicePathSize, &HandleCount); in BmExpandUsbDevicePath()
588 FullDevicePath = AppendDevicePath (DevicePathFromHandle (Handles[Index]), RemainingDevicePath); in BmExpandUsbDevicePath()
593 if (Handles != NULL) { in BmExpandUsbDevicePath()
594 FreePool (Handles); in BmExpandUsbDevicePath()
622 EFI_HANDLE *Handles; in BmExpandFileDevicePath() local
630 …->LocateHandleBuffer (ByProtocol, &gEfiSimpleFileSystemProtocolGuid, NULL, &HandleCount, &Handles); in BmExpandFileDevicePath()
633 Handles = NULL; in BmExpandFileDevicePath()
642 Status = gBS->HandleProtocol (Handles[Index], &gEfiBlockIoProtocolGuid, (VOID *) &BlockIo); in BmExpandFileDevicePath()
650 FullDevicePath = AppendDevicePath (DevicePathFromHandle (Handles[Index]), FilePath); in BmExpandFileDevicePath()
654 FreePool (Handles); in BmExpandFileDevicePath()
662 if (Handles != NULL) { in BmExpandFileDevicePath()
663 FreePool (Handles); in BmExpandFileDevicePath()
692 EFI_HANDLE *Handles; in BmExpandUriDevicePath() local
696 …us = gBS->LocateHandleBuffer (ByProtocol, &gEfiLoadFileProtocolGuid, NULL, &HandleCount, &Handles); in BmExpandUriDevicePath()
699 Handles = NULL; in BmExpandUriDevicePath()
704 FileBuffer = BmGetFileBufferFromLoadFile (Handles[Index], FilePath, FullPath, FileSize); in BmExpandUriDevicePath()
710 if (Handles != NULL) { in BmExpandUriDevicePath()
711 FreePool (Handles); in BmExpandUriDevicePath()
1115 EFI_HANDLE *Handles; in BmGetFileBufferFromLoadFileSystem() local
1125 &Handles in BmGetFileBufferFromLoadFileSystem()
1128 Handles = NULL; in BmGetFileBufferFromLoadFileSystem()
1134 Node = DevicePathFromHandle (Handles[Index]); in BmGetFileBufferFromLoadFileSystem()
1139 Handle = Handles[Index]; in BmGetFileBufferFromLoadFileSystem()
1144 if (Handles != NULL) { in BmGetFileBufferFromLoadFileSystem()
1145 FreePool (Handles); in BmGetFileBufferFromLoadFileSystem()
1364 EFI_HANDLE *Handles; in BmGetFileBufferFromLoadFiles() local
1391 &Handles in BmGetFileBufferFromLoadFiles()
1394 Handles = NULL; in BmGetFileBufferFromLoadFiles()
1398 if (BmMatchHttpBootDevicePath (DevicePathFromHandle (Handles[Index]), FilePath)) { in BmGetFileBufferFromLoadFiles()
1399 Handle = Handles[Index]; in BmGetFileBufferFromLoadFiles()
1403 if (Handles != NULL) { in BmGetFileBufferFromLoadFiles()
1404 FreePool (Handles); in BmGetFileBufferFromLoadFiles()
1938 EFI_HANDLE *Handles; in BmEnumerateBootOptions() local
1957 &Handles in BmEnumerateBootOptions()
1963 Handles[Index], in BmEnumerateBootOptions()
1985 Description = BmGetBootDescription (Handles[Index]); in BmEnumerateBootOptions()
1999 DevicePathFromHandle (Handles[Index]), in BmEnumerateBootOptions()
2010 FreePool (Handles); in BmEnumerateBootOptions()
2021 &Handles in BmEnumerateBootOptions()
2025 Handles[Index], in BmEnumerateBootOptions()
2035 Description = BmGetBootDescription (Handles[Index]); in BmEnumerateBootOptions()
2049 DevicePathFromHandle (Handles[Index]), in BmEnumerateBootOptions()
2058 FreePool (Handles); in BmEnumerateBootOptions()
2069 &Handles in BmEnumerateBootOptions()
2075 if (BmIsBootManagerMenuFilePath (DevicePathFromHandle (Handles[Index]))) { in BmEnumerateBootOptions()
2079 Description = BmGetBootDescription (Handles[Index]); in BmEnumerateBootOptions()
2093 DevicePathFromHandle (Handles[Index]), in BmEnumerateBootOptions()
2102 FreePool (Handles); in BmEnumerateBootOptions()
2207 EFI_HANDLE *Handles; in BmRegisterBootManagerMenu() local
2222 &Handles in BmRegisterBootManagerMenu()
2225 if (BmIsBootManagerMenuFilePath (DevicePathFromHandle (Handles[Index]))) { in BmRegisterBootManagerMenu()
2226 DevicePath = DuplicateDevicePath (DevicePathFromHandle (Handles[Index])); in BmRegisterBootManagerMenu()
2227 Description = BmGetBootDescription (Handles[Index]); in BmRegisterBootManagerMenu()
2232 FreePool (Handles); in BmRegisterBootManagerMenu()