Lines Matching refs:status
186 * Return: status code
191 efi_status_t status;
198 status = efi_bs_call(allocate_pool, EFI_LOADER_DATA, len, (void **)&buf);
199 if (status != EFI_SUCCESS)
200 return status;
350 efi_status_t status;
407 status = efi_bs_call(allocate_pool, EFI_LOADER_DATA, options_bytes,
409 if (status != EFI_SUCCESS)
432 * Return: status code
438 efi_status_t status;
440 status = efi_get_memory_map(&map, true);
441 if (status != EFI_SUCCESS)
442 return status;
444 status = priv_func(map, priv);
445 if (status != EFI_SUCCESS) {
447 return status;
453 status = efi_bs_call(exit_boot_services, handle, map->map_key);
455 if (status == EFI_INVALID_PARAMETER) {
470 status = efi_bs_call(get_memory_map,
478 if (status != EFI_SUCCESS)
479 return status;
481 status = priv_func(map, priv);
483 if (status != EFI_SUCCESS)
484 return status;
486 status = efi_bs_call(exit_boot_services, handle, map->map_key);
489 return status;
564 efi_status_t status;
567 status = efi_bs_call(locate_device_path, &lf2_proto_guid, &dp, &handle);
568 if (status != EFI_SUCCESS)
569 return status;
571 status = efi_bs_call(handle_protocol, handle, &lf2_proto_guid,
573 if (status != EFI_SUCCESS)
574 return status;
577 status = efi_call_proto(lf2, load_file, dp, false, &initrd->size, NULL);
578 if (status != EFI_BUFFER_TOO_SMALL)
581 status = efi_allocate_pages(initrd->size, &initrd->base, max);
582 if (status != EFI_SUCCESS)
583 return status;
585 status = efi_call_proto(lf2, load_file, dp, false, &initrd->size,
587 if (status != EFI_SUCCESS) {
615 * Return: status code
623 efi_status_t status = EFI_SUCCESS;
629 status = efi_load_initrd_dev_path(&initrd, hard_limit);
630 if (status == EFI_SUCCESS) {
632 } else if (status == EFI_NOT_FOUND) {
633 status = efi_load_initrd_cmdline(image, &initrd, soft_limit,
636 if (status == EFI_UNSUPPORTED || status == EFI_NOT_READY)
638 if (status == EFI_SUCCESS)
641 if (status != EFI_SUCCESS)
644 status = efi_bs_call(allocate_pool, EFI_LOADER_DATA, sizeof(initrd),
646 if (status != EFI_SUCCESS)
650 status = efi_bs_call(install_configuration_table, &tbl_guid, tbl);
651 if (status != EFI_SUCCESS)
663 efi_err("Failed to load initrd: 0x%lx\n", status);
664 return status;
674 * Return: status code, EFI_SUCCESS if key received
681 efi_status_t status;
688 status = efi_bs_call(create_event, EFI_EVT_TIMER, 0, NULL, NULL, &timer);
689 if (status != EFI_SUCCESS)
690 return status;
692 status = efi_bs_call(set_timer, timer, EfiTimerRelative,
694 if (status != EFI_SUCCESS)
695 return status;
698 status = efi_bs_call(wait_for_event, 2, events, &index);
699 if (status == EFI_SUCCESS) {
701 status = efi_call_proto(con_in, read_keystroke, key);
703 status = EFI_TIMEOUT;
708 return status;