/hafnium-2.8-rc0/test/vmapi/primary_only/ |
A D | primary_only.c | 189 struct ffa_value ret; in TEST() local 230 ret = ffa_features(FFA_RUN_32); in TEST() 293 struct ffa_value ret; in TEST() local 295 ret = ffa_features(0); in TEST() 313 struct ffa_value ret; in TEST() local 327 EXPECT_EQ(ret.arg2, 1); in TEST() 337 EXPECT_EQ(ret.arg2, 1); in TEST() 350 ret = ffa_rx_release(); in TEST() 356 ret = ffa_rx_release(); in TEST() 367 EXPECT_EQ(ret.arg2, 1); in TEST() [all …]
|
/hafnium-2.8-rc0/test/vmapi/ffa_secure_partition_only/ |
A D | secure_partition.c | 41 struct ffa_value ret; in TEST() local 43 ret = ffa_features(FFA_ERROR_32); in TEST() 44 EXPECT_EQ(ret.func, FFA_SUCCESS_32); in TEST() 46 ret = ffa_features(FFA_SUCCESS_32); in TEST() 47 EXPECT_EQ(ret.func, FFA_SUCCESS_32); in TEST() 50 EXPECT_EQ(ret.func, FFA_SUCCESS_32); in TEST() 52 ret = ffa_features(FFA_VERSION_32); in TEST() 70 ret = ffa_features(FFA_ID_GET_32); in TEST() 76 ret = ffa_features(FFA_RUN_32); in TEST() 179 struct ffa_value ret; in TEST() local [all …]
|
/hafnium-2.8-rc0/test/vmapi/ffa_secure_partitions/ |
A D | setup_and_discovery.c | 51 struct ffa_value ret; in TEST() local 70 EXPECT_EQ(ret.arg2, 3); in TEST() 83 struct ffa_value ret; in TEST() local 92 EXPECT_EQ(ret.arg2, 3); in TEST() 95 EXPECT_EQ(ret.arg3, 0); in TEST() 100 struct ffa_value ret; in TEST() local 112 struct ffa_value ret; in TEST() local 128 EXPECT_EQ(ret.arg2, 1); in TEST() 131 EXPECT_EQ(ret.arg3, 0); in TEST() 163 struct ffa_value ret; in TEST() local [all …]
|
A D | indirect_msg.c | 25 struct ffa_value ret; in TEST() local 27 ret = sp_indirect_msg_cmd_send(own_id, receiver_id, msg_receiver_id, in TEST() 30 EXPECT_EQ(ret.func, FFA_MSG_SEND_DIRECT_RESP_32); in TEST() 31 EXPECT_EQ(sp_resp(ret), SP_SUCCESS); in TEST() 43 struct ffa_value ret; in TEST() local 47 EXPECT_EQ(ret.func, FFA_SUCCESS_32); in TEST() 50 ret = sp_echo_indirect_msg_cmd_send(own_id, receiver_id); in TEST() 51 EXPECT_EQ(ret.func, FFA_MSG_SEND_DIRECT_RESP_32); in TEST() 52 EXPECT_EQ(sp_resp(ret), SP_SUCCESS); in TEST() 56 ASSERT_EQ(ret.func, FFA_SUCCESS_32); in TEST() [all …]
|
/hafnium-2.8-rc0/src/arch/aarch64/hypervisor/ |
A D | psci_handler.c | 59 *ret = PSCI_VERSION_1_1; in psci_primary_vm_handler() 65 *ret = SMCCC_VERSION_1_2; in psci_primary_vm_handler() 74 *ret = 0; in psci_primary_vm_handler() 91 *ret = 0; in psci_primary_vm_handler() 127 *ret = PSCI_RETURN_ON; in psci_primary_vm_handler() 129 *ret = PSCI_RETURN_OFF; in psci_primary_vm_handler() 146 *ret = smc_res.func; in psci_primary_vm_handler() 178 *ret = smc_res.func; in psci_primary_vm_handler() 245 *ret = 0x2; in psci_secondary_vm_handler() 254 *ret = 0; in psci_secondary_vm_handler() [all …]
|
A D | ffa.c | 43 struct ffa_value ret = plat_ffa_spmc_id_get(); in arch_ffa_init() local 45 if (ret.func == FFA_SUCCESS_32) { in arch_ffa_init() 46 spmc_id = ret.arg2; in arch_ffa_init() 47 } else if (ret.func == SMCCC_ERROR_UNKNOWN || in arch_ffa_init() 48 (ret.func == FFA_ERROR_32 && in arch_ffa_init() 49 ffa_error_code(ret) == FFA_NOT_SUPPORTED)) { in arch_ffa_init()
|
/hafnium-2.8-rc0/test/vmapi/primary_with_secondaries/services/ |
A D | ffa_check.c | 26 EXPECT_EQ(ret.func, FFA_MSG_SEND_32); in TEST_SERVICE() 64 EXPECT_FFA_ERROR(ret, FFA_RETRY); in TEST_SERVICE() 83 struct ffa_value ret; in TEST_SERVICE() local 87 ret = ffa_yield(); in TEST_SERVICE() 88 EXPECT_FFA_ERROR(ret, FFA_DENIED); in TEST_SERVICE() 91 EXPECT_FFA_ERROR(ret, FFA_DENIED); in TEST_SERVICE() 93 ret = ffa_msg_wait(); in TEST_SERVICE() 94 EXPECT_FFA_ERROR(ret, FFA_DENIED); in TEST_SERVICE() 99 ret = ffa_msg_poll(); in TEST_SERVICE() 114 struct ffa_value ret; in TEST_SERVICE() local [all …]
|
A D | echo.c | 21 struct ffa_value ret = ffa_msg_wait(); in TEST_SERVICE() local 22 ffa_vm_id_t target_vm_id = ffa_receiver(ret); in TEST_SERVICE() 23 ffa_vm_id_t source_vm_id = ffa_sender(ret); in TEST_SERVICE() 27 ASSERT_EQ(ret.func, FFA_MSG_SEND_32); in TEST_SERVICE() 29 ffa_msg_send_size(ret)); in TEST_SERVICE() 45 struct ffa_value ret; in TEST_SERVICE() local 47 ret = ffa_msg_wait(); in TEST_SERVICE() 48 ASSERT_EQ(ret.func, FFA_RUN_32); in TEST_SERVICE() 51 ret = ffa_notification_get(ffa_receiver(ret), 0, in TEST_SERVICE() 53 ASSERT_EQ(ret.func, FFA_SUCCESS_32); in TEST_SERVICE() [all …]
|
A D | interruptible.c | 71 struct ffa_value ret = mailbox_receive_retry(); in TEST_SERVICE() local 73 ASSERT_EQ(ret.func, FFA_MSG_SEND_32); in TEST_SERVICE() 74 if (ffa_sender(ret) == HF_PRIMARY_VM_ID && in TEST_SERVICE() 75 ffa_msg_send_size(ret) == sizeof(ping_message) && in TEST_SERVICE() 79 } else if (ffa_sender(ret) == HF_PRIMARY_VM_ID && in TEST_SERVICE() 80 ffa_msg_send_size(ret) == sizeof(enable_message) && in TEST_SERVICE() 88 ffa_sender(ret), ffa_msg_send_size(ret)); in TEST_SERVICE()
|
/hafnium-2.8-rc0/test/vmapi/primary_with_secondaries/ |
A D | indirect_messaging.c | 32 struct ffa_value ret; in TEST() local 48 ret = ffa_run(SERVICE_VM1, 0); in TEST() 49 EXPECT_EQ(ret.func, FFA_YIELD_32); in TEST() 68 struct ffa_value ret; in TEST() local 87 struct ffa_value ret; in TEST() local 96 ret = ffa_run(SERVICE_VM1, 0); in TEST() 102 EXPECT_FFA_ERROR(ret, FFA_BUSY); in TEST() 108 struct ffa_value ret; in TEST() local 124 EXPECT_FFA_ERROR(ret, FFA_BUSY); in TEST() 130 struct ffa_value ret; in msg_send2_invalid_parameters() local [all …]
|
A D | no_services.c | 50 struct ffa_value ret; in TEST() local 59 EXPECT_FFA_ERROR(ret, FFA_BUSY); in TEST() 63 EXPECT_EQ(ret.func, FFA_SUCCESS_32); in TEST() 64 EXPECT_EQ(ret.arg2, 4); in TEST() 74 EXPECT_EQ(ret.arg2, 4); in TEST() 90 struct ffa_value ret; in TEST() local 103 struct ffa_value ret; in TEST() local 115 EXPECT_FFA_ERROR(ret, FFA_BUSY); in TEST() 129 EXPECT_EQ(ret.arg2, 4); in TEST() 298 struct ffa_value ret; in TEST() local [all …]
|
/hafnium-2.8-rc0/src/arch/aarch64/qemuloader/ |
A D | loader.c | 43 int ret; in update_fdt() local 46 ret = fdt_check_header(fdt); in update_fdt() 47 if (ret != 0) { in update_fdt() 48 dlog_error("FDT failed validation: %d\n", ret); in update_fdt() 51 ret = fdt_open_into(fdt, fdt, FDT_MAX_SIZE); in update_fdt() 52 if (ret != 0) { in update_fdt() 53 dlog_error("FDT failed to open: %d\n", ret); in update_fdt() 66 if (ret != 0) { in update_fdt() 73 if (ret != 0) { in update_fdt() 78 ret = fdt_pack(fdt); in update_fdt() [all …]
|
/hafnium-2.8-rc0/src/ |
A D | fdt_patch.c | 57 bool ret = false; in fdt_patch() local 144 ret = true; in fdt_patch() 154 return ret; in fdt_patch() 166 int ret = 0; in fdt_patch_mem() local 184 if (ret != 0) { in fdt_patch_mem() 191 if (ret != 0) { in fdt_patch_mem() 197 if (ret < 0) { in fdt_patch_mem() 213 if (ret != 0) { in fdt_patch_mem() 217 ret); in fdt_patch_mem() 223 if (ret != 0) { in fdt_patch_mem() [all …]
|
A D | mpool_test.cc | 85 void* ret; in TEST() local 125 void* ret; in TEST() local 187 void* ret; in TEST() local 235 void* ret; in TEST() local 248 ret = mpool_alloc(&p); in TEST() 256 ASSERT_THAT(ret, NotNull()); in TEST() 294 void* ret; in TEST() local 325 void* ret; in TEST() local 335 ret = mpool_alloc(&p); in TEST() 336 mpool_free(&p, ret); in TEST() [all …]
|
A D | ffa_memory.c | 795 bool ret; in clear_memory() local 811 ret = true; in clear_memory() 820 return ret; in clear_memory() 865 ret = true; in ffa_clear_memory_constituents() 869 return ret; in ffa_clear_memory_constituents() 991 return ret; in ffa_send_check_update() 1094 return ret; in ffa_retrieve_check_update() 1186 ret.func, ret.arg2); in ffa_tee_reclaim_check_update() 1858 ret.func, ret.arg2); in ffa_memory_tee_send() 2108 ret.func, ret.arg2); in ffa_memory_tee_send_continue() [all …]
|
A D | api.c | 278 return ret; in api_yield() 300 return ret; in api_yield() 368 return ret; in send_versioned_partition_info_descriptors() 520 return ret; in api_ffa_partition_info_get() 630 ret = 1; in api_interrupt_inject_locked() 639 return ret; in api_interrupt_inject_locked() 654 return ret; in internal_interrupt_inject() 723 bool ret; in api_vcpu_prepare_run() local 938 ret = true; in api_vcpu_prepare_run() 1092 bool ret; in api_vm_configure_stage1() local [all …]
|
/hafnium-2.8-rc0/test/vmapi/arch/aarch64/trusty/ |
A D | trusty.c | 32 struct ffa_value ret; in init_and_send() local 46 EXPECT_EQ(ret.func, FFA_SUCCESS_32); in init_and_send() 89 struct ffa_value ret; in TEST() local 116 handle = ffa_frag_handle(ret); in TEST() 160 struct ffa_value ret; in TEST() local 172 struct ffa_value ret; in TEST() local 191 ret = ffa_mem_reclaim(handle, 0); in TEST() 207 struct ffa_value ret; in TEST() local 236 handle = ffa_frag_handle(ret); in TEST() 262 ret = ffa_mem_reclaim(handle, 0); in TEST() [all …]
|
/hafnium-2.8-rc0/src/arch/aarch64/plat/ffa/ |
A D | hypervisor.c | 74 struct ffa_value ret; in plat_ffa_rxtx_map_spmc() local 86 struct ffa_value ret; in plat_ffa_init() local 130 struct ffa_value *ret) in plat_ffa_run_forward() argument 343 ret->arg2); in plat_ffa_msg_send2_forward() 415 CHECK(ret != NULL); in plat_ffa_notifications_update_bindings_forward() 502 struct ffa_value ret; in plat_ffa_notifications_bitmap_create_call() local 554 struct ffa_value ret; in plat_ffa_notification_info_get_forward() local 649 assert(ret != NULL); in plat_ffa_notifications_get_framework_notifications() 722 struct ffa_value ret; in plat_ffa_rxtx_unmap_forward() local 740 ret.func); in plat_ffa_rxtx_unmap_forward() [all …]
|
A D | absent.c | 128 (void)ret; in plat_ffa_direct_request_forward() 134 struct ffa_value *ret) in plat_ffa_rx_release_forward() argument 137 (void)ret; in plat_ffa_rx_release_forward() 153 (void)ret; in plat_ffa_acquire_receiver_rx() 172 (void)ret; in plat_ffa_msg_send2_forward() 215 (void)ret; in plat_ffa_notifications_update_bindings_forward() 221 (void)ret; in plat_ffa_notifications_update_bindings_forward() 252 (void)ret; in plat_ffa_notifications_get_from_sp() 265 (void)ret; in plat_ffa_notifications_get_framework_notifications() 280 (void)ret; in plat_ffa_notification_set_forward() [all …]
|
/hafnium-2.8-rc0/test/vmapi/el0_partitions/services/ |
A D | interruptible.c | 73 struct ffa_value ret = mailbox_receive_retry(); in TEST_SERVICE() local 75 ASSERT_EQ(ret.func, FFA_MSG_SEND_32); in TEST_SERVICE() 76 if (ffa_sender(ret) == HF_PRIMARY_VM_ID && in TEST_SERVICE() 77 ffa_msg_send_size(ret) == sizeof(ping_message) && in TEST_SERVICE() 81 } else if (ffa_sender(ret) == HF_PRIMARY_VM_ID && in TEST_SERVICE() 82 ffa_msg_send_size(ret) == sizeof(enable_message) && in TEST_SERVICE() 90 ffa_sender(ret), ffa_msg_send_size(ret)); in TEST_SERVICE()
|
A D | echo_with_notification.c | 51 struct ffa_value ret = ffa_msg_wait(); in TEST_SERVICE() local 52 ffa_vm_id_t target_vm_id = ffa_receiver(ret); in TEST_SERVICE() 53 ffa_vm_id_t source_vm_id = ffa_sender(ret); in TEST_SERVICE() 56 ffa_msg_send_size(ret)); in TEST_SERVICE() 59 ffa_msg_send_size(ret), FFA_MSG_SEND_NOTIFY) in TEST_SERVICE()
|
/hafnium-2.8-rc0/test/linux/ |
A D | hftest_socket.c | 75 struct ffa_value ret; in kmain() local 78 ret = ffa_msg_wait(); in kmain() 79 EXPECT_EQ(ret.func, FFA_MSG_SEND_32); in kmain() 80 EXPECT_LE(ffa_msg_send_size(ret), FFA_MSG_PAYLOAD_MAX); in kmain() 84 ffa_msg_send_size(ret)); in kmain() 91 ffa_vm_id_t dst_id = ffa_sender(ret); in kmain() 92 ffa_vm_id_t src_id = ffa_receiver(ret); in kmain() 96 ffa_msg_send(src_id, dst_id, ffa_msg_send_size(ret), 0) in kmain()
|
/hafnium-2.8-rc0/test/vmapi/common/ |
A D | ffa.c | 99 struct ffa_value ret; in send_memory_and_retrieve_request_multi_receiver() local 218 struct ffa_value ret; in send_memory_and_retrieve_request_force_fragmented() local 256 handle = ffa_frag_handle(ret); in send_memory_and_retrieve_request_force_fragmented() 297 struct ffa_value ret; in retrieve_memory_from_message() local 319 total_length = ret.arg1; in retrieve_memory_from_message() 320 fragment_length = ret.arg2; in retrieve_memory_from_message() 355 fragment_length = ret.arg3; in retrieve_memory_from_message() 383 struct ffa_value ret; in retrieve_memory_from_message_expect_fail() local 402 struct ffa_value ret; in get_ffa_partition_info() local 416 if (ret.arg2 != 0) { in get_ffa_partition_info() [all …]
|
/hafnium-2.8-rc0/src/arch/fake/hypervisor/ |
A D | ffa.c | 73 struct ffa_value *ret) in plat_ffa_run_forward() argument 77 (void)ret; in plat_ffa_run_forward() 98 (void)ret; in plat_ffa_direct_request_forward() 106 (void)ret; in plat_ffa_rx_release_forward() 122 (void)ret; in plat_ffa_acquire_receiver_rx() 141 (void)ret; in plat_ffa_msg_send2_forward() 183 (void)ret; in plat_ffa_notifications_update_bindings_forward() 189 (void)ret; in plat_ffa_notifications_update_bindings_forward() 249 (void)ret; in plat_ffa_notifications_get_from_sp() 263 (void)ret; in plat_ffa_notifications_get_framework_notifications() [all …]
|
/hafnium-2.8-rc0/test/vmapi/arch/aarch64/ |
A D | smccc.c | 86 struct ffa_value ret; in TEST() local 88 ret = smc32(FFA_FEATURES_32, FFA_VERSION_32, 0, 0, 0, 0, 0, 0); in TEST() 89 EXPECT_EQ(ret.func, FFA_SUCCESS_32); in TEST() 90 EXPECT_EQ(ret.arg1, 0); in TEST() 91 EXPECT_EQ(ret.arg2, 0); in TEST() 92 EXPECT_EQ(ret.arg3, 0); in TEST() 93 EXPECT_EQ(ret.arg4, 0); in TEST() 94 EXPECT_EQ(ret.arg5, 0); in TEST() 95 EXPECT_EQ(ret.arg6, 0); in TEST() 96 EXPECT_EQ(ret.arg7, 0); in TEST()
|