| /rk3399_ARM-atf/drivers/nxp/ddr/nxp-ddr/ |
| H A D | ddr.c | 476 int ret; in synthesize_ctlr() local 478 ret = cal_odt(priv->clk, in synthesize_ctlr() 483 if (ret != 0) { in synthesize_ctlr() 484 return ret; in synthesize_ctlr() 487 ret = cal_opts(priv->clk, in synthesize_ctlr() 494 if (ret != 0) { in synthesize_ctlr() 495 return ret; in synthesize_ctlr() 499 ret = ddr_board_options(priv); in synthesize_ctlr() 500 if (ret != 0) { in synthesize_ctlr() 504 ret = update_burst_length(&priv->opt); in synthesize_ctlr() [all …]
|
| /rk3399_ARM-atf/plat/mediatek/drivers/vcp/rv/ |
| H A D | vcp_common.c | 179 uint64_t ret = MTK_SIP_E_SUCCESS; in tinysys_vcp_kernel_control() local 188 ret = vcp_smc_rstn_set((bool)!!arg1); in tinysys_vcp_kernel_control() 191 ret = vcp_smc_rstn_clr(); in tinysys_vcp_kernel_control() 194 ret = vcp_cold_boot_reset(); in tinysys_vcp_kernel_control() 197 ret = mmup_smc_rstn_set((bool)!!arg1); in tinysys_vcp_kernel_control() 200 ret = mmup_smc_rstn_clr(); in tinysys_vcp_kernel_control() 203 ret = vcp_set_mmup_l2tcm_offset(arg1); in tinysys_vcp_kernel_control() 206 ret = vcp_set_mmup_fw_size(arg1); in tinysys_vcp_kernel_control() 209 ret = mmup_cold_boot_reset(); in tinysys_vcp_kernel_control() 213 ret = MTK_SIP_E_INVALID_PARAM; in tinysys_vcp_kernel_control() [all …]
|
| /rk3399_ARM-atf/plat/mediatek/mt8192/drivers/apusys/ |
| H A D | mtk_apusys_apc.c | 107 int32_t ret; in set_slave_noc_dapc() local 111 ret = APUSYS_APC_ERR_PERMISSION_NOT_SUPPORTED; in set_slave_noc_dapc() 127 ret = APUSYS_APC_OK; in set_slave_noc_dapc() 133 ret = APUSYS_APC_ERR_OUT_OF_BOUNDARY; in set_slave_noc_dapc() 137 return ret; in set_slave_noc_dapc() 395 int32_t ret; in set_slave_apc() local 399 ret = APUSYS_APC_ERR_PERMISSION_NOT_SUPPORTED; in set_slave_apc() 415 ret = APUSYS_APC_OK; in set_slave_apc() 421 ret = APUSYS_APC_ERR_OUT_OF_BOUNDARY; in set_slave_apc() 425 return ret; in set_slave_apc() [all …]
|
| /rk3399_ARM-atf/plat/xilinx/versal_net/ |
| H A D | plat_psci_pm.c | 33 int32_t ret = PSCI_E_INTERN_FAIL; in versal_net_pwr_domain_on() local 53 ret = PSCI_E_SUCCESS; in versal_net_pwr_domain_on() 56 return ret; in versal_net_pwr_domain_on() 67 uint32_t ret, fw_api_version, version_type[RET_PAYLOAD_ARG_CNT] = {0U}; in versal_net_pwr_domain_off() local 88 ret = pm_feature_check((uint32_t)PM_SELF_SUSPEND, &version_type[0], NON_SECURE); in versal_net_pwr_domain_off() 89 if (ret == (uint32_t)PM_RET_SUCCESS) { in versal_net_pwr_domain_off() 106 int32_t ret = PSCI_E_SUCCESS; in versal_net_validate_ns_entrypoint() local 110 ret = PSCI_E_INVALID_ADDRESS; in versal_net_validate_ns_entrypoint() 113 return ret; in versal_net_validate_ns_entrypoint() 126 uint32_t ret, timeout = 10000U; in versal_net_system_reset_scope() local [all …]
|
| /rk3399_ARM-atf/plat/imx/common/ |
| H A D | imx_sip_handler.c | 55 int ret; in imx_srtc_handler() local 59 ret = imx_srtc_set_time(x2, x3, x4); in imx_srtc_handler() 62 ret = SMC_UNK; in imx_srtc_handler() 65 SMC_RET1(handle, ret); in imx_srtc_handler() 132 int ret; in imx_otp_handler() local 137 ret = sc_misc_otp_fuse_read(ipc_handle, x1, &fuse); in imx_otp_handler() 138 SMC_RET2(handle, ret, fuse); in imx_otp_handler() 141 ret = sc_misc_otp_fuse_write(ipc_handle, x1, x2); in imx_otp_handler() 142 SMC_RET1(handle, ret); in imx_otp_handler() 145 ret = SMC_UNK; in imx_otp_handler() [all …]
|
| H A D | lpuart_console.S | 33 ret x7 38 ret 58 ret 61 ret 68 ret 71 ret 75 ret
|
| /rk3399_ARM-atf/plat/mediatek/drivers/audio/ |
| H A D | audio.c | 21 int ret; in audio_smc_handler() local 27 ret = set_audio_domain_sidebands(); in audio_smc_handler() 32 ret = -EIO; in audio_smc_handler() 37 MODULE_TAG, __func__, request_ops, ret); in audio_smc_handler() 38 return ret; in audio_smc_handler()
|
| /rk3399_ARM-atf/drivers/io/ |
| H A D | io_mtd.c | 117 int ret; in mtd_add_extra_offset() local 123 ret = ops->seek(cur->base, cur->pos, extra_offset); in mtd_add_extra_offset() 124 if (ret != 0) { in mtd_add_extra_offset() 125 ERROR("%s: Seek error %d\n", __func__, ret); in mtd_add_extra_offset() 126 return ret; in mtd_add_extra_offset() 138 int ret; in mtd_open() local 149 ret = mtd_add_extra_offset(cur, &extra_offset); in mtd_open() 150 if (ret != 0) { in mtd_open() 151 return ret; in mtd_open() 164 int ret; in mtd_seek() local [all …]
|
| /rk3399_ARM-atf/drivers/st/crypto/ |
| H A D | stm32_saes.c | 294 int ret; in saes_prepare_key() local 304 ret = wait_computation_completed(ctx->base); in saes_prepare_key() 305 if (ret != 0) { in saes_prepare_key() 306 return ret; in saes_prepare_key() 348 int ret; in restore_context() local 363 ret = saes_prepare_key(ctx); in restore_context() 364 if (ret != 0) { in restore_context() 365 return ret; in restore_context() 569 int ret; in stm32_saes_update_assodata() local 578 ret = restore_context(ctx); in stm32_saes_update_assodata() [all …]
|
| /rk3399_ARM-atf/plat/mediatek/drivers/cpu_pm/cpcv5_4/ |
| H A D | mt_cpu_pm_smc.c | 60 int ret; in cpupm_lp_dispatcher() local 74 ret = mt_lp_irqremain_submit(); in cpupm_lp_dispatcher() 76 ret = mt_lp_irqremain_push(); in cpupm_lp_dispatcher() 77 if (ret) in cpupm_lp_dispatcher() 92 ret = mt_lp_irqremain_set((unsigned int)lp_id, &info); in cpupm_lp_dispatcher() 93 if (ret) in cpupm_lp_dispatcher() 99 ret = mt_lp_irqremain_get((unsigned int)arg1, in cpupm_lp_dispatcher() 101 if (ret) { in cpupm_lp_dispatcher() 113 ret = cpupm_set_suspend_state((unsigned int)act, in cpupm_lp_dispatcher() 115 if (ret) in cpupm_lp_dispatcher()
|
| /rk3399_ARM-atf/plat/mediatek/drivers/spm/ |
| H A D | mt_spm_rc_api_common.c | 154 int ret = 0; in spm_hwcg_name() local 161 ret = snprintf(name, sz - 1, "dram"); in spm_hwcg_name() 164 ret = snprintf(name, sz - 1, "vrf18"); in spm_hwcg_name() 167 ret = snprintf(name, sz - 1, "infra"); in spm_hwcg_name() 170 ret = snprintf(name, sz - 1, "pmic"); in spm_hwcg_name() 173 ret = snprintf(name, sz - 1, "26m"); in spm_hwcg_name() 176 ret = snprintf(name, sz - 1, "vcore"); in spm_hwcg_name() 179 ret = -1; in spm_hwcg_name() 183 if (ret < 0) in spm_hwcg_name() 184 ret = -1; in spm_hwcg_name() [all …]
|
| /rk3399_ARM-atf/plat/mediatek/drivers/thermal/src/ |
| H A D | thermal_lvts.c | 36 int ret; in lvts_write_data_check() local 41 ret = mmio_read_32_poll_timeout( in lvts_write_data_check() 47 if (ret) in lvts_write_data_check() 76 int ret; in lvts_write_device() local 86 ret = mmio_read_32_poll_timeout( in lvts_write_device() 92 if (ret) in lvts_write_device() 104 int ret; in lvts_read_device() local 110 ret = mmio_read_32_poll_timeout( in lvts_read_device() 115 if (ret) in lvts_read_device() 385 bool ret = false; in lvts_lk_init_check() local [all …]
|
| /rk3399_ARM-atf/plat/qti/common/src/ |
| H A D | spmi_arb.c | 86 int ret = wait_for_done(apid); in spmi_arb_read8() local 87 if (ret != 0) { in spmi_arb_read8() 88 ERROR("SPMI_ARB read error [0x%x]: 0x%x\n", addr, ret); in spmi_arb_read8() 89 return ret; in spmi_arb_read8() 106 int ret = wait_for_done(apid); in spmi_arb_write8() local 107 if (ret != 0) { in spmi_arb_write8() 109 addr, data, ret); in spmi_arb_write8() 112 return ret; in spmi_arb_write8()
|
| /rk3399_ARM-atf/services/std_svc/spm/el3_spmc/ |
| H A D | spmc_shared_mem.c | 1026 int ret; in spmc_ffa_fill_desc() local 1032 ret = FFA_ERROR_INVALID_PARAMETER; in spmc_ffa_fill_desc() 1040 ret = FFA_ERROR_INVALID_PARAMETER; in spmc_ffa_fill_desc() 1047 ret = FFA_ERROR_INVALID_PARAMETER; in spmc_ffa_fill_desc() 1058 ret = FFA_ERROR_DENIED; in spmc_ffa_fill_desc() 1070 ret = FFA_ERROR_INVALID_PARAMETER; in spmc_ffa_fill_desc() 1090 ret = FFA_ERROR_INVALID_PARAMETER; in spmc_ffa_fill_desc() 1096 ret = spmc_validate_mtd_start(&obj->desc, ffa_version, in spmc_ffa_fill_desc() 1098 if (ret != 0) { in spmc_ffa_fill_desc() 1119 ret = spmc_shmem_check_obj(obj, ffa_version); in spmc_ffa_fill_desc() [all …]
|
| /rk3399_ARM-atf/lib/cpus/aarch64/ |
| H A D | cortex_a72.S | 32 ret 43 ret 52 ret 64 ret 70 ret 73 ret 103 ret 106 ret 137 ret 144 ret [all …]
|
| /rk3399_ARM-atf/plat/brcm/board/stingray/aarch64/ |
| H A D | plat_helpers.S | 69 ret 84 ret 101 ret 140 ret 151 ret 167 ret 181 ret 193 ret 205 ret 243 ret x9 [all …]
|
| /rk3399_ARM-atf/plat/nuvoton/common/ |
| H A D | nuvoton_helpers.S | 63 ret 76 ret 90 ret 102 ret 136 ret x1 138 ret x1 144 ret 198 ret 202 ret 207 ret [all …]
|
| /rk3399_ARM-atf/plat/nxp/common/sip_svc/ |
| H A D | sip_svc.c | 71 uint64_t ret; in nxp_sip_handler() local 95 ret = get_random((int)x1); in nxp_sip_handler() 96 if (ret != 0) { in nxp_sip_handler() 97 SMC_RET2(handle, SMC_OK, ret); in nxp_sip_handler() 107 ret = get_hw_unq_key_blob_hw((uint8_t *) x1, (uint32_t) x2); in nxp_sip_handler() 109 if (ret == SMC_OK) { in nxp_sip_handler() 132 ret = prefetch_disable(smc_fid, x1); in nxp_sip_handler() 133 if (ret == SMC_OK) { in nxp_sip_handler() 140 ret = el2_2_aarch32(smc_fid, x1, x2, x3); in nxp_sip_handler() 147 ret = bl31_get_porsr1(); in nxp_sip_handler() [all …]
|
| /rk3399_ARM-atf/plat/brcm/board/stingray/src/ |
| H A D | scp_cmd.c | 30 resp->ret = (code & MCU_IPC_CMD_REPLY_MASK) >> MCU_IPC_CMD_REPLY_SHIFT; in scp_read_response() 42 int ret = -1; in scp_send_cmd() local 54 ret = scp_resp.ret; in scp_send_cmd() 59 return ret; in scp_send_cmd()
|
| H A D | paxb.c | 413 int ret; in pcie_core_pwr_seq() local 422 ret = pcie_core_pwron_switch(ctrl, status, PCIE_CORE_PWR_ARR_POWERON); in pcie_core_pwr_seq() 423 if (ret) in pcie_core_pwr_seq() 424 return ret; in pcie_core_pwr_seq() 426 ret = pcie_core_pwron_switch(ctrl, status, PCIE_CORE_PWR_ARR_POWEROK); in pcie_core_pwr_seq() 427 if (ret) in pcie_core_pwr_seq() 428 return ret; in pcie_core_pwr_seq() 430 ret = pcie_core_pwron_switch(ctrl, status, PCIE_CORE_PWR_POWERON); in pcie_core_pwr_seq() 431 if (ret) in pcie_core_pwr_seq() 432 return ret; in pcie_core_pwr_seq() [all …]
|
| /rk3399_ARM-atf/plat/renesas/common/ |
| H A D | rcar_stack_protector.c | 21 u_register_t ret; in plat_get_stack_protector_canary() local 25 ret = seed; in plat_get_stack_protector_canary() 32 ret = mul + val2; in plat_get_stack_protector_canary() 36 INFO("canary value: 0x%lx cnt: 0x%16lx\n", ret, read_cntpct_el0()); in plat_get_stack_protector_canary() 38 return ret; in plat_get_stack_protector_canary()
|
| /rk3399_ARM-atf/plat/rpi/common/ |
| H A D | rpi_pci_svc.c | 115 uint32_t ret = SMC_PCI_CALL_SUCCESS; in pci_read_config() local 136 ret = SMC_PCI_CALL_INVAL_PARAM; in pci_read_config() 140 return ret; in pci_read_config() 164 uint32_t ret = SMC_PCI_CALL_SUCCESS; in pci_write_config() local 182 ret = SMC_PCI_CALL_INVAL_PARAM; in pci_write_config() 186 return ret; in pci_write_config() 208 uint32_t ret = SMC_PCI_CALL_SUCCESS; in pci_get_bus_for_seg() local 217 ret = SMC_PCI_CALL_NOT_IMPL; in pci_get_bus_for_seg() 219 return ret; in pci_get_bus_for_seg()
|
| /rk3399_ARM-atf/drivers/nxp/sd/ |
| H A D | sd_mmc.c | 708 int ret; in esdhc_read_data() local 711 ret = esdhc_read_data_dma(mmc, len); in esdhc_read_data() 713 ret = esdhc_read_data_nodma(mmc, dest_ptr, len); in esdhc_read_data() 719 return ret; in esdhc_read_data() 732 int ret; in esdhc_write_data() local 735 ret = esdhc_write_data_dma(mmc, len); in esdhc_write_data() 737 ret = esdhc_write_data_nodma(mmc, src_ptr, len); in esdhc_write_data() 743 return ret; in esdhc_write_data() 1003 int ret; in identify_mmc_card() local 1007 ret = esdhc_send_cmd(mmc, CMD_GO_IDLE_STATE, 0U); in identify_mmc_card() [all …]
|
| /rk3399_ARM-atf/tools/nxp/create_pbl/ |
| H A D | create_pbl.c | 329 int ret = FAILURE; in add_pbi_stop_cmd() local 430 ret = SUCCESS; in add_pbi_stop_cmd() 433 return ret; in add_pbi_stop_cmd() 444 int ret = FAILURE; in get_filesize() local 454 ret = ftell(fp); in get_filesize() 458 return ret; in get_filesize() 470 int ret = FAILURE; in add_boot_ptr_cmd() local 498 __func__, ret); in add_boot_ptr_cmd() 513 ret = SUCCESS; in add_boot_ptr_cmd() 516 return ret; in add_boot_ptr_cmd() [all …]
|
| /rk3399_ARM-atf/plat/nvidia/tegra/soc/t186/ |
| H A D | plat_psci_handlers.c | 54 int32_t ret = PSCI_E_SUCCESS; in tegra_soc_validate_power_state() local 76 ret = PSCI_E_INVALID_PARAMS; in tegra_soc_validate_power_state() 88 ret = PSCI_E_INVALID_PARAMS; in tegra_soc_validate_power_state() 92 return ret; in tegra_soc_validate_power_state() 202 int32_t ret; in tegra_get_afflvl1_pwr_state() local 214 ret = mce_command_handler((uint64_t)MCE_CMD_IS_CCX_ALLOWED, in tegra_get_afflvl1_pwr_state() 218 if (ret == 0) { in tegra_get_afflvl1_pwr_state() 233 ret = mce_command_handler((uint64_t)MCE_CMD_IS_CCX_ALLOWED, in tegra_get_afflvl1_pwr_state() 237 if (ret == 0) { in tegra_get_afflvl1_pwr_state() 289 int32_t ret; in tegra_soc_pwr_domain_power_down_wfi() local [all …]
|