Lines Matching refs:loaded_image_handle
62 static EFI_STATUS loaded_image_unregister(EFI_HANDLE loaded_image_handle) { in loaded_image_unregister() argument
66 if (!loaded_image_handle) in loaded_image_unregister()
71 loaded_image_handle, &LoadedImageProtocol, (void **) &loaded_image, in loaded_image_unregister()
77 (void) BS->CloseProtocol(loaded_image_handle, &LoadedImageProtocol, NULL, NULL); in loaded_image_unregister()
79 loaded_image_handle, in loaded_image_unregister()
84 loaded_image_handle = NULL; in loaded_image_unregister()
95 static inline void cleanup_loaded_image(EFI_HANDLE *loaded_image_handle) { in cleanup_loaded_image() argument
96 (void) loaded_image_unregister(*loaded_image_handle); in cleanup_loaded_image()
97 *loaded_image_handle = NULL; in cleanup_loaded_image()
119 _cleanup_(cleanup_loaded_image) EFI_HANDLE loaded_image_handle = NULL; in linux_exec()
161 … err = loaded_image_register(cmdline, cmdline_len, new_buffer, linux_length, &loaded_image_handle); in linux_exec()
171 return kernel_entry(loaded_image_handle, ST); in linux_exec()