| /hypervisor/lib/crypto/mbedtls/ |
| A D | md.c | 67 int32_t ret = 0; in mbedtls_md_setup() local 75 return ret; in mbedtls_md_setup() 80 int32_t ret = 0; in mbedtls_md_hmac_starts() local 90 if (ret == 0) { in mbedtls_md_hmac_starts() 127 return ret; in mbedtls_md_hmac_starts() 132 int32_t ret; in mbedtls_md_hmac_update() local 140 return ret; in mbedtls_md_hmac_update() 153 if (ret == 0) { in mbedtls_md_hmac_finish() 176 return ret; in mbedtls_md_hmac_finish() 210 return ret; in mbedtls_md_hmac() [all …]
|
| A D | hkdf.c | 29 int32_t ret; in mbedtls_hkdf() local 34 if (ret == 0) { in mbedtls_hkdf() 41 return ret; in mbedtls_hkdf() 49 int32_t ret = 0; in mbedtls_hkdf_extract() local 72 if (ret == 0) { in mbedtls_hkdf_extract() 76 return ret; in mbedtls_hkdf_extract() 90 int32_t ret = 0; in mbedtls_hkdf_expand() local 121 if (ret == 0) { in mbedtls_hkdf_expand() 132 if (ret == 0) { in mbedtls_hkdf_expand() 136 if (ret == 0) { in mbedtls_hkdf_expand() [all …]
|
| A D | sha256.c | 256 int32_t ret = 0; in mbedtls_sha256_update_ret() local 284 if (ret == 0) { in mbedtls_sha256_update_ret() 302 return ret; in mbedtls_sha256_update_ret() 310 int32_t ret = 0; in mbedtls_sha256_finish_ret() local 331 if (ret == 0) { in mbedtls_sha256_finish_ret() 339 if (ret == 0) { in mbedtls_sha256_finish_ret() 366 return ret; in mbedtls_sha256_finish_ret() 374 int32_t ret = 0; in mbedtls_sha256_ret() local 380 if (ret == 0) { in mbedtls_sha256_ret() 384 if (ret == 0) { in mbedtls_sha256_ret() [all …]
|
| /hypervisor/include/arch/x86/asm/lib/ |
| A D | bits.h | 67 uint32_t ret; in fls32() local 71 "1:" : "=r" (ret) in fls32() 78 uint64_t ret = 0UL; in fls64() local 82 "1:" : "=r" (ret) in fls64() 114 uint64_t ret; in ffs64() local 118 "1:" : "=r" (ret) in ffs64() 146 return ret; in ffz64_ex() 227 int32_t ret = 0; in bitmap_test() local 229 : "=r" (ret) in bitmap_test() 237 int32_t ret = 0; in bitmap32_test() local [all …]
|
| /hypervisor/arch/x86/ |
| A D | cpu_caps.c | 83 bool ret; in pcpu_has_cap() local 86 ret = false; in pcpu_has_cap() 91 return ret; in pcpu_has_cap() 104 ret = true; in has_monitor_cap() 108 return ret; in has_monitor_cap() 139 return ret; in disable_host_monitor_wait() 157 return ret; in is_fast_string_erms_supported_and_enabled() 176 ret = true; in is_apl_platform() 179 return ret; in is_apl_platform() 448 return ret; in is_vmx_disabled() [all …]
|
| A D | sgx.c | 26 int32_t ret = 0; in get_epc_section() local 39 ret = -EINVAL; in get_epc_section() 45 ret = -EINVAL; in get_epc_section() 48 return ret; in get_epc_section() 63 int32_t ret = 0; in partition_epc() local 76 ret = get_epc_section(psec_id, &psec_addr, &psec_size); in partition_epc() 78 if ((ret != 0) || (free_size == 0UL)) { in partition_epc() 93 ret = -ENOMEM; in partition_epc() 96 return ret; in partition_epc()
|
| /hypervisor/common/ |
| A D | sbuf.c | 55 uint32_t ele_size, ret; in sbuf_put() local 64 ret = 0U; in sbuf_put() 82 ret = ele_size; in sbuf_put() 85 ret = UINT32_MAX; in sbuf_put() 89 return ret; in sbuf_put() 94 int32_t ret = 0; in sbuf_setup_common() local 111 ret = -1; in sbuf_setup_common() 114 return ret; in sbuf_setup_common() 126 uint32_t ret, sent = 0U; in sbuf_put_many() local 131 if (ret == elem_size) { in sbuf_put_many() [all …]
|
| A D | hypercall.c | 60 bool ret; in is_hypercall_from_ring0() local 65 ret = true; in is_hypercall_from_ring0() 67 ret = false; in is_hypercall_from_ring0() 70 return ret; in is_hypercall_from_ring0() 98 ret = -1; in hcall_service_vm_offline_cpu() 106 return ret; in hcall_service_vm_offline_cpu() 298 ret = 0; in hcall_start_vm() 323 ret = 0; in hcall_pause_vm() 435 ret = 0; in hcall_set_irqline() 553 ret = 0; in hcall_asyncio_assign() [all …]
|
| A D | trusty_hypercall.c | 31 int32_t ret = -EPERM; in hcall_world_switch() local 36 ret = 0; in hcall_world_switch() 38 return ret; in hcall_world_switch() 57 int32_t ret = -EFAULT; in hcall_initialize_trusty() local 67 ret = 0; in hcall_initialize_trusty() 71 ret = -EPERM; in hcall_initialize_trusty() 74 return ret; in hcall_initialize_trusty() 94 ret = 0; in hcall_save_restore_sworld_ctx() 100 ret = 0; in hcall_save_restore_sworld_ctx() 104 ret = -EPERM; in hcall_save_restore_sworld_ctx() [all …]
|
| A D | vm_load.c | 27 int32_t ret = -EINVAL; in prepare_os_image() local 35 ret = bzimage_loader(vm); in prepare_os_image() 40 ret = rawimage_loader(vm); in prepare_os_image() 45 ret = elf_loader(vm); in prepare_os_image() 49 ret = -EINVAL; in prepare_os_image() 53 if (ret == 0) { in prepare_os_image() 62 return ret; in prepare_os_image()
|
| A D | vm_event.c | 17 int ret = -1; in init_vm_event() local 24 ret = 0; in init_vm_event() 29 return ret; in init_vm_event() 35 int32_t ret = -ENODEV; in send_vm_event() local 44 ret = 0; in send_vm_event() 47 return ret; in send_vm_event()
|
| A D | hv_main.c | 21 int32_t ret = 0; in vcpu_thread() local 34 ret = acrn_handle_pending_request(vcpu); in vcpu_thread() 35 if (ret < 0) { in vcpu_thread() 48 ret = run_vcpu(vcpu); in vcpu_thread() 49 if (ret != 0) { in vcpu_thread() 65 ret = vmexit_handler(vcpu); in vcpu_thread() 66 if (ret < 0) { in vcpu_thread() 68 " %d, ret = %d!", vcpu->arch.exit_reason, ret); in vcpu_thread()
|
| A D | irq.c | 28 uint32_t ret; in alloc_irq_num() local 32 ret = IRQ_INVALID; in alloc_irq_num() 51 ret = irq; in alloc_irq_num() 53 return ret; in alloc_irq_num() 128 int32_t ret; in request_irq() local 133 ret = -EINVAL; in request_irq() 139 ret = -EINVAL; in request_irq() 148 ret = (int32_t)irq; in request_irq() 150 ret = -EBUSY; in request_irq() 157 return ret; in request_irq()
|
| /hypervisor/debug/ |
| A D | hypercall.c | 32 int32_t ret; in hcall_profiling_ops() local 37 ret = profiling_msr_ops_all_cpus(vm, param2); in hcall_profiling_ops() 40 ret = profiling_vm_list_info(vm, param2); in hcall_profiling_ops() 43 ret = profiling_get_version_info(vm, param2); in hcall_profiling_ops() 46 ret = profiling_get_control(vm, param2); in hcall_profiling_ops() 49 ret = profiling_set_control(vm, param2); in hcall_profiling_ops() 52 ret = profiling_configure_pmi(vm, param2); in hcall_profiling_ops() 55 ret = profiling_configure_vmsw(vm, param2); in hcall_profiling_ops() 58 ret = profiling_get_pcpu_id(vm, param2); in hcall_profiling_ops() 65 ret = -1; in hcall_profiling_ops() [all …]
|
| /hypervisor/arch/x86/guest/ |
| A D | guest_memory.c | 50 return ret; in get_vcpu_paging_mode() 65 int32_t ret = 0; in local_gva2gpa_common() local 70 ret = -EINVAL; in local_gva2gpa_common() 163 ret = -EFAULT; in local_gva2gpa_common() 167 return ret; in local_gva2gpa_common() 194 return ret; in local_gva2gpa_pae() 223 ret = -EINVAL; in gva2gpa() 270 return ret; in gva2gpa() 362 return ret; in copy_gva() 381 return ret; in copy_from_gpa() [all …]
|
| A D | instr_emul.c | 430 return ret; in get_vmcs_field() 525 return ret; in vie_canonical_check() 561 return ret; in is_desc_valid() 1639 ret = 0; in emulate_bittest() 1703 ret = 0; in vie_fetch_instruction() 1738 ret = 0; in vie_peek() 1921 ret = 0; in decode_modrm() 2013 ret = 0; in decode_sib() 2081 ret = 0; in decode_sib() 2251 ret = 0; in local_decode_instruction() [all …]
|
| A D | virq.c | 162 ret = true; in vcpu_do_pending_extint() 166 return ret; in vcpu_do_pending_extint() 172 int32_t ret; in get_excep_class() local 183 return ret; in get_excep_class() 191 int32_t ret = 0; in vcpu_queue_exception() local 196 ret = -EINVAL; in vcpu_queue_exception() 232 return ret; in vcpu_queue_exception() 332 int32_t ret; in external_interrupt_vmexit_handler() local 351 ret = 0; in external_interrupt_vmexit_handler() 354 return ret; in external_interrupt_vmexit_handler() [all …]
|
| A D | vcat.c | 212 ret = 0; in read_vcbm() 215 return ret; in read_vcbm() 291 bool ret = false; in is_contiguous() local 298 ret = true; in is_contiguous() 302 return ret; in is_contiguous() 365 ret = 0; in write_vcbm() 369 return ret; in write_vcbm() 383 ret = 0; in read_vclosid() 386 return ret; in read_vclosid() 423 ret = 0; in write_vclosid() [all …]
|
| A D | vm_reset.c | 75 bool ret = true; in handle_reset_reg_read() local 80 ret = false; in handle_reset_reg_read() 85 return ret; in handle_reset_reg_read() 94 bool ret = true; in handle_common_reset_reg_write() local 104 ret = false; in handle_common_reset_reg_write() 119 ret = false; in handle_common_reset_reg_write() 128 return ret; in handle_common_reset_reg_write() 182 bool ret = true; in handle_reset_reg_write() local 188 ret = handle_common_reset_reg_write(vcpu, true, false); in handle_reset_reg_write() 199 return ret; in handle_reset_reg_write()
|
| A D | optee.c | 63 int32_t ret = -EINVAL; in tee_switch_to_ree() local 108 ret = 0; in tee_switch_to_ree() 113 return ret; in tee_switch_to_ree() 121 int32_t ret = -EINVAL; in ree_switch_to_tee() local 142 ret = 0; in ree_switch_to_tee() 147 return ret; in ree_switch_to_tee() 174 int32_t ret = 0; in hcall_switch_ee() local 177 ret = tee_switch_to_ree(vcpu); in hcall_switch_ee() 179 ret = ree_switch_to_tee(vcpu); in hcall_switch_ee() 182 return ret; in hcall_switch_ee()
|
| /hypervisor/dm/vpci/ |
| A D | vpci.c | 101 return ret; in vpci_pio_cfgaddr_write() 207 return ret; in vpci_mmio_cfg_access() 269 return ret; in init_vpci() 312 int32_t ret; in assign_vdev_pt_iommu_domain() local 329 int32_t ret; in remove_vdev_pt_iommu_domain() local 493 return ret; in read_cfg_header() 570 return ret; in write_cfg_header() 603 return ret; in write_pt_dev_cfg() 633 return ret; in read_pt_dev_cfg() 667 return ret; in vpci_read_cfg() [all …]
|
| /hypervisor/lib/crypto/ |
| A D | crypto_api.c | 16 int32_t ret = 0; in hkdf_sha256() local 25 ret = 1; in hkdf_sha256() 30 return ret; in hkdf_sha256() 37 int32_t ret = 0; in hmac_sha256() local 44 ret = 1; in hmac_sha256() 49 return ret; in hmac_sha256()
|
| /hypervisor/boot/guest/ |
| A D | elf_loader.c | 217 int32_t ret = 0; in load_elf() local 238 ret = -EFAULT; in load_elf() 241 return ret; in load_elf() 273 return ret; in find_img_multiboot_header() 278 int32_t ret = 0; in elf_loader() local 316 if (ret == 0) { in elf_loader() 324 if (ret == 0) { in elf_loader() 333 if (ret == 0) { in elf_loader() 345 if (ret == 0) { in elf_loader() 346 ret = load_elf(vm); in elf_loader() [all …]
|
| /hypervisor/dm/ |
| A D | mmio_dev.c | 18 int32_t i, ret = 0; in assign_mmio_dev() local 32 ret = -EINVAL; in assign_mmio_dev() 37 return ret; in assign_mmio_dev() 42 int32_t i, ret = 0; in deassign_mmio_dev() local 56 ret = -EINVAL; in deassign_mmio_dev() 62 return ret; in deassign_mmio_dev()
|
| /hypervisor/lib/ |
| A D | string.c | 114 int32_t ret = -1; in strncpy_s() local 118 ret = memcpy_s(d, dmax, s, len); in strncpy_s() 121 if (ret == 0) { in strncpy_s() 129 return ret; in strncpy_s() 192 int32_t ret = 0; in strncmp() local 200 ret = (int32_t) (*str1 - *str2); in strncmp() 203 return ret; in strncmp() 286 int32_t ret = -1; in strncat_s() local 298 ret = 0; in strncat_s() 304 return ret; in strncat_s()
|