Lines Matching refs:status
32 efi_status_t status;
51 status = efi_bs_call(allocate_pool, EFI_LOADER_DATA, size,
53 if (status != EFI_SUCCESS) {
55 return status;
66 status = efi_call_proto(pci, pci.read, EfiPciIoWidthUint16,
69 if (status != EFI_SUCCESS) {
74 status = efi_call_proto(pci, pci.read, EfiPciIoWidthUint16,
77 if (status != EFI_SUCCESS) {
82 status = efi_call_proto(pci, get_location, &rom->segment, &rom->bus,
85 if (status != EFI_SUCCESS)
89 return status;
93 return status;
97 * There's no way to return an informative status from this function,
107 efi_status_t status;
115 status = efi_bs_call(locate_handle, EFI_LOCATE_BY_PROTOCOL,
118 if (status == EFI_BUFFER_TOO_SMALL) {
119 status = efi_bs_call(allocate_pool, EFI_LOADER_DATA, size,
122 if (status != EFI_SUCCESS) {
127 status = efi_bs_call(locate_handle, EFI_LOCATE_BY_PROTOCOL,
131 if (status != EFI_SUCCESS)
143 status = efi_bs_call(handle_protocol, h, &pci_proto,
145 if (status != EFI_SUCCESS || !pci)
148 status = preserve_pci_rom_image(pci, &rom);
149 if (status != EFI_SUCCESS)
168 efi_status_t status;
172 status = efi_bs_call(locate_protocol, &guid, NULL, (void **)&p);
173 if (status != EFI_SUCCESS)
186 status = efi_bs_call(allocate_pool, EFI_LOADER_DATA,
189 if (status != EFI_SUCCESS) {
194 status = efi_call_proto(p, get_all, new->data, &size);
196 if (status == EFI_BUFFER_TOO_SMALL)
198 } while (status == EFI_BUFFER_TOO_SMALL);
233 efi_status_t status;
240 status = efi_bs_call(allocate_pool, EFI_LOADER_DATA, size,
242 if (status != EFI_SUCCESS)
243 return status;
245 status = efi_bs_call(locate_handle, EFI_LOCATE_BY_PROTOCOL,
247 if (status != EFI_SUCCESS)
259 status = efi_bs_call(handle_protocol, handle, uga_proto,
261 if (status != EFI_SUCCESS)
267 status = efi_call_proto(uga, get_mode, &w, &h, &depth, &refresh);
268 if (status == EFI_SUCCESS && (!first_uga || pciio)) {
305 return status;
313 efi_status_t status;
322 status = efi_bs_call(locate_handle, EFI_LOCATE_BY_PROTOCOL,
324 if (status == EFI_BUFFER_TOO_SMALL)
325 status = efi_setup_gop(si, &graphics_proto, size);
327 if (status != EFI_SUCCESS) {
329 status = efi_bs_call(locate_handle, EFI_LOCATE_BY_PROTOCOL,
331 if (status == EFI_BUFFER_TOO_SMALL)
337 static void __noreturn efi_exit(efi_handle_t handle, efi_status_t status)
339 efi_bs_call(exit, handle, status, 0, NULL);
363 efi_status_t status;
372 status = efi_bs_call(handle_protocol, handle, &proto, (void **)&image);
373 if (status != EFI_SUCCESS) {
375 efi_exit(handle, status);
381 status = efi_allocate_pages(sizeof(struct boot_params),
383 if (status != EFI_SUCCESS) {
385 efi_exit(handle, status);
430 efi_exit(handle, status);
558 efi_status_t status;
570 status = efi_bs_call(allocate_pool, EFI_LOADER_DATA, size,
572 if (status == EFI_SUCCESS)
575 return status;
583 efi_status_t status;
588 status = efi_bs_call(get_memory_map, &map_size, NULL, &map_key,
590 if (status != EFI_BUFFER_TOO_SMALL)
591 return (status != EFI_SUCCESS) ? status : EFI_UNSUPPORTED;
598 status = alloc_e820ext(nr_e820ext, e820ext, e820ext_size);
599 if (status != EFI_SUCCESS)
600 return status;
636 efi_status_t status;
642 status = allocate_e820(boot_params, &e820ext, &e820ext_size);
643 if (status != EFI_SUCCESS)
644 return status;
647 status = efi_exit_boot_services(handle, &priv, exit_boot_func);
648 if (status != EFI_SUCCESS)
649 return status;
654 status = setup_e820(boot_params, e820ext, e820ext_size);
655 if (status != EFI_SUCCESS)
656 return status;
674 efi_status_t status;
716 status = efi_relocate_kernel(&bzimage_addr,
721 if (status != EFI_SUCCESS) {
734 status = efi_parse_options(CONFIG_CMDLINE);
735 if (status != EFI_SUCCESS) {
743 status = efi_parse_options((char *)cmdline_paddr);
744 if (status != EFI_SUCCESS) {
762 status = efi_load_initrd(image, hdr->initrd_addr_max, ULONG_MAX,
765 if (status != EFI_SUCCESS) {
797 status = exit_boot(boot_params, handle);
798 if (status != EFI_SUCCESS) {
807 efi_exit(handle, status);