Lines Matching refs:ret

424 			uint64_t ret = el3_lp_descs[i].direct_req(  in direct_req_smc_handler()  local
433 return ret; in direct_req_smc_handler()
828 int ret; in rxtx_map_handler() local
886 ret = mmap_add_dynamic_region(tx_address, /* PA */ in rxtx_map_handler()
890 if (ret != 0) { in rxtx_map_handler()
892 error_code = (ret == -ENOMEM) ? FFA_ERROR_NO_MEMORY : in rxtx_map_handler()
899 ret = mmap_add_dynamic_region(rx_address, /* PA */ in rxtx_map_handler()
904 if (ret != 0) { in rxtx_map_handler()
905 error_code = (ret == -ENOMEM) ? FFA_ERROR_NO_MEMORY : in rxtx_map_handler()
1169 int ret; in partition_info_get_handler() local
1205 ret = partition_info_get_handler_v1_1( in partition_info_get_handler()
1212 if (ret != 0) { in partition_info_get_handler()
1218 ret = FFA_ERROR_INVALID_PARAMETER; in partition_info_get_handler()
1231 ret = FFA_ERROR_BUSY; in partition_info_get_handler()
1237 ret = FFA_ERROR_BUSY; in partition_info_get_handler()
1251 ret = partition_info_populate_v1_0(partitions, in partition_info_get_handler()
1254 if (ret != 0) { in partition_info_get_handler()
1264 ret = FFA_ERROR_NO_MEMORY; in partition_info_get_handler()
1279 return spmc_ffa_error_return(handle, ret); in partition_info_get_handler()
1815 int ret; in ffa_mem_perm_set_handler() local
1869 ret = xlat_change_mem_attributes_ctx(sp->xlat_ctx_handle, in ffa_mem_perm_set_handler()
1871 if (ret != 0) { in ffa_mem_perm_set_handler()
1932 int ret; in ffa_mem_perm_get_handler() local
1966 ret = xlat_get_mem_attributes_ctx(sp->xlat_ctx_handle, base_va, in ffa_mem_perm_get_handler()
1968 if (ret != 0) { in ffa_mem_perm_get_handler()
1982 ret = xlat_get_mem_attributes_ctx(sp->xlat_ctx_handle, base_va, in ffa_mem_perm_get_handler()
1984 if (ret != 0) { in ffa_mem_perm_get_handler()
2018 int32_t ret, node; in sp_manifest_parse() local
2046 ret = fdt_read_uint32_array(sp_manifest, node, "uuid", in sp_manifest_parse()
2049 if (ret != 0) { in sp_manifest_parse()
2051 return ret; in sp_manifest_parse()
2068 ret = fdt_read_uint32(sp_manifest, node, "exception-level", &config_32); in sp_manifest_parse()
2069 if (ret != 0) { in sp_manifest_parse()
2071 return ret; in sp_manifest_parse()
2076 ret = fdt_read_uint32(sp_manifest, node, "ffa-version", &config_32); in sp_manifest_parse()
2077 if (ret != 0) { in sp_manifest_parse()
2079 return ret; in sp_manifest_parse()
2084 ret = fdt_read_uint32(sp_manifest, node, "execution-state", &config_32); in sp_manifest_parse()
2085 if (ret != 0) { in sp_manifest_parse()
2087 return ret; in sp_manifest_parse()
2092 ret = fdt_read_uint32(sp_manifest, node, in sp_manifest_parse()
2094 if (ret != 0) { in sp_manifest_parse()
2096 return ret; in sp_manifest_parse()
2111 ret = fdt_read_uint32(sp_manifest, node, in sp_manifest_parse()
2114 if (ret != 0) { in sp_manifest_parse()
2116 return ret; in sp_manifest_parse()
2134 ret = fdt_read_uint32(sp_manifest, node, "id", &config_32); in sp_manifest_parse()
2135 if (ret != 0) { in sp_manifest_parse()
2146 ret = fdt_read_uint32(sp_manifest, node, in sp_manifest_parse()
2148 if (ret != 0) { in sp_manifest_parse()
2170 ret = fdt_read_uint32(sp_manifest, node, in sp_manifest_parse()
2172 if (ret != 0) { in sp_manifest_parse()
2184 ret = fdt_read_uint32(sp_manifest, node, in sp_manifest_parse()
2186 if (ret != 0) { in sp_manifest_parse()
2224 int32_t ret, boot_info_reg = -1; in find_and_prepare_sp_context() local
2263 ret = mmap_add_dynamic_region((unsigned long long)manifest_base_align, in find_and_prepare_sp_context()
2267 if (ret != 0) { in find_and_prepare_sp_context()
2268 ERROR("Error while mapping SP manifest (%d).\n", ret); in find_and_prepare_sp_context()
2269 return ret; in find_and_prepare_sp_context()
2273 ret = fdt_node_offset_by_compatible(sp_manifest, -1, in find_and_prepare_sp_context()
2275 if (ret < 0) { in find_and_prepare_sp_context()
2304 ret = sp_manifest_parse(sp_manifest, ret, sp, next_image_ep_info, in find_and_prepare_sp_context()
2306 if (ret != 0) { in find_and_prepare_sp_context()
2308 return ret; in find_and_prepare_sp_context()
2481 int32_t ret; in spmc_setup() local
2492 ret = plat_spmc_shmem_datastore_get(&spmc_shmem_obj_state.data, in spmc_setup()
2494 if (ret != 0) { in spmc_setup()
2496 return ret; in spmc_setup()
2501 ret = logical_sp_init(); in spmc_setup()
2502 if (ret != 0) { in spmc_setup()
2504 return ret; in spmc_setup()
2515 ret = find_and_prepare_sp_context(); in spmc_setup()
2516 if (ret != 0) { in spmc_setup()
2518 return ret; in spmc_setup()
2531 ret = register_interrupt_type_handler(INTR_TYPE_S_EL1, in spmc_setup()
2534 if (ret != 0) { in spmc_setup()
2535 ERROR("Failed to register interrupt handler! (%d)\n", ret); in spmc_setup()