| /rk3399_ARM-atf/plat/renesas/rcar_gen4/ |
| H A D | rcar_common.c | 23 int ret; in rcar_console_boot_init() local 25 ret = console_rcar_register(0, 0, 0, &rcar_boot_console); in rcar_console_boot_init() 26 if (ret == 0) in rcar_console_boot_init() 35 int ret; in rcar_console_runtime_init() local 37 ret = console_rcar_register(1, 0, 0, &rcar_runtime_console); in rcar_console_runtime_init() 38 if (ret == 0) in rcar_console_runtime_init()
|
| /rk3399_ARM-atf/plat/renesas/rcar_gen5/ |
| H A D | rcar_common.c | 23 int ret; in rcar_console_boot_init() local 25 ret = console_rcar_register(0, 0, 0, &rcar_boot_console); in rcar_console_boot_init() 26 if (ret == 0) { in rcar_console_boot_init() 36 int ret; in rcar_console_runtime_init() local 38 ret = console_rcar_register(1, 0, 0, &rcar_runtime_console); in rcar_console_runtime_init() 39 if (ret == 0) { in rcar_console_runtime_init()
|
| /rk3399_ARM-atf/include/lib/libc/aarch64/ |
| H A D | endian_.h | 71 uint64_t ret; in __bswap64() local 74 : "=&r" (ret), "+r" (x)); in __bswap64() 76 return (ret); in __bswap64() 82 uint32_t ret; in __bswap32_var() local 85 : "=&r" (ret), "+r" (v)); in __bswap32_var() 87 return (ret); in __bswap32_var() 93 uint32_t ret; in __bswap16_var() local 96 : "=&r" (ret), "+r" (v)); in __bswap16_var() 98 return ((uint16_t)ret); in __bswap16_var()
|
| /rk3399_ARM-atf/plat/nxp/common/setup/ |
| H A D | ls_io_storage.c | 359 int ret; in emmc_sdhc2_io_setup() local 361 ret = sd_emmc_init(&block_dev_spec, in emmc_sdhc2_io_setup() 366 if (ret != 0) { in emmc_sdhc2_io_setup() 367 return ret; in emmc_sdhc2_io_setup() 387 int ret; in emmc_io_setup() local 389 ret = sd_emmc_init(&block_dev_spec, in emmc_io_setup() 394 if (ret != 0) { in emmc_io_setup() 395 return ret; in emmc_io_setup() 411 int ret; in ifc_nor_io_setup() local 413 ret = ifc_nor_init(NXP_NOR_FLASH_ADDR, in ifc_nor_io_setup() [all …]
|
| /rk3399_ARM-atf/drivers/renesas/common/auth/ |
| H A D | auth_mod.c | 42 int32_t ret = 0, index = 0; in auth_mod_verify_img() local 84 return ret; in auth_mod_verify_img() 105 ret = rcar_get_certificate(image[index].cert, &cert_addr); in auth_mod_verify_img() 109 if (ret || (index == RCAR_IMAGE_ID_MAX)) { in auth_mod_verify_img() 111 return ret; in auth_mod_verify_img() 118 ret = (mmio_read_32(RCAR_BOOT_KEY_CERT_NEW) == RCAR_CERT_MAGIC_NUM) ? in auth_mod_verify_img() 121 if (ret) in auth_mod_verify_img() 122 ERROR("Verification Failed 0x%x, %s\n", ret, image[index].name); in auth_mod_verify_img() 130 return ret; in auth_mod_verify_img() 143 uint32_t lcs, ret; in auth_mod_init() local [all …]
|
| /rk3399_ARM-atf/plat/mediatek/mt8186/ |
| H A D | plat_sip_calls.c | 25 uint64_t ret; in mediatek_plat_sip_handler() local 30 ret = spm_vcorefs_args(x1, x2, x3, (uint64_t *)&x4); in mediatek_plat_sip_handler() 31 SMC_RET2(handle, ret, x4); in mediatek_plat_sip_handler() 35 ret = dfd_smc_dispatcher(x1, x2, x3, x4); in mediatek_plat_sip_handler() 36 SMC_RET1(handle, ret); in mediatek_plat_sip_handler() 40 ret = msdc_smc_dispatcher(x1, x2, x3, x4); in mediatek_plat_sip_handler() 41 SMC_RET1(handle, ret); in mediatek_plat_sip_handler()
|
| /rk3399_ARM-atf/plat/mediatek/drivers/apusys/mt8196/ |
| H A D | apusys_rv_pwr_ctrl.c | 52 int ret; in apu_hw_sema_ctl_per_mbox() local 75 ret = wait_for_state_ready(sem_sta_addr, BIT(usr_bit), BIT(usr_bit), timeout, in apu_hw_sema_ctl_per_mbox() 77 if (ret) in apu_hw_sema_ctl_per_mbox() 78 return ret; in apu_hw_sema_ctl_per_mbox() 85 int ret; in apusys_rv_pwr_ctrl() local 88 ret = apu_hw_sema_ctl_per_mbox(APU_MBOX(APU_HW_SEM_SYS_APMCU) + APU_MBOX_SEMA0_CTRL, in apusys_rv_pwr_ctrl() 92 if (ret) { in apusys_rv_pwr_ctrl() 94 return ret; in apusys_rv_pwr_ctrl() 113 ret = apu_hw_sema_ctl_per_mbox(APU_MBOX(APU_HW_SEM_SYS_APMCU) + APU_MBOX_SEMA0_CTRL, in apusys_rv_pwr_ctrl() 117 if (ret) in apusys_rv_pwr_ctrl() [all …]
|
| /rk3399_ARM-atf/drivers/nxp/ifc/nand/ |
| H A D | ifc_nand.c | 249 int ret; in nand_read_data() local 297 ret = nand_wait(nand); in nand_read_data() 298 if (ret != 0) in nand_read_data() 299 return ret; in nand_read_data() 352 int ret = 0; in nand_read() local 367 ret = update_bbt(i, pblk, &updated, nand); in nand_read() 369 if (ret != 0) in nand_read() 370 return ret; in nand_read() 394 ret = nand_read_data( in nand_read() 400 if (ret != 0) in nand_read() [all …]
|
| /rk3399_ARM-atf/plat/intel/soc/common/soc/ |
| H A D | socfpga_reset_manager.c | 245 int ret = 0; in socfpga_bridges_reset() local 265 ret = poll_idle_status(SOCFPGA_RSTMGR(HDSKACK), in socfpga_bridges_reset() 276 ret = poll_idle_status(SOCFPGA_RSTMGR(HDSKACK), in socfpga_bridges_reset() 281 if (ret < 0) { in socfpga_bridges_reset() 318 ret = poll_idle_status(SOCFPGA_RSTMGR(HDSKACK), in socfpga_bridges_reset() 322 if (ret < 0) { in socfpga_bridges_reset() 371 ret = poll_idle_status(SOCFPGA_F2SDRAMMGR( in socfpga_bridges_reset() 373 if (ret < 0) { in socfpga_bridges_reset() 387 return ret; in socfpga_bridges_reset() 393 int ret = 0; in socfpga_bridges_enable() local [all …]
|
| /rk3399_ARM-atf/plat/mediatek/drivers/spm/mt8189/constraints/ |
| H A D | mt_spm_trace.h | 78 int ret = MT_SPM_SYSRAM_W(MT_SPM_SYSRAM_COMMON, _type, val, \ 80 ret; \ 92 int ret = MT_SPM_SYSRAM_R(MT_SPM_SYSRAM_COMMON, _type, _val); \ 93 ret; \ 106 int ret = MT_SPM_SYSRAM_W(MT_SPM_SYSRAM_SUSPEND, _type, _val, \ 108 ret; \ 120 int ret = MT_SPM_SYSRAM_R(MT_SPM_SYSRAM_SUSPEND, _type, _val); \ 121 ret; \ 134 int ret = MT_SPM_SYSRAM_W(MT_SPM_SYSRAM_LP, _type, _val, _sz); \ 135 ret; \ [all …]
|
| /rk3399_ARM-atf/plat/mediatek/drivers/spm/mt8196/constraints/ |
| H A D | mt_spm_trace.h | 74 int ret = MT_SPM_SYSRAM_W(MT_SPM_SYSRAM_COMMON, \ 75 _type, val, _sz); ret; }) 82 int ret = MT_SPM_SYSRAM_R(MT_SPM_SYSRAM_COMMON, \ 83 _type, _val); ret; }) 91 int ret = MT_SPM_SYSRAM_W(MT_SPM_SYSRAM_SUSPEND, \ 92 _type, _val, _sz); ret; }) 99 int ret = MT_SPM_SYSRAM_R(MT_SPM_SYSRAM_SUSPEND, \ 100 _type, _val); ret; }) 108 int ret = MT_SPM_SYSRAM_W(MT_SPM_SYSRAM_LP, \ 109 _type, _val, _sz); ret; }) [all …]
|
| /rk3399_ARM-atf/plat/arm/board/n1sdp/ |
| H A D | n1sdp_image_load.c | 109 int ret; in plat_get_next_bl_params() local 112 ret = sds_init(SDS_SCP_AP_REGION_ID); in plat_get_next_bl_params() 113 if (ret != SDS_OK) { in plat_get_next_bl_params() 114 ERROR("SDS initialization failed. ret:%d\n", ret); in plat_get_next_bl_params() 118 ret = sds_struct_read(SDS_SCP_AP_REGION_ID, in plat_get_next_bl_params() 124 if (ret != SDS_OK) { in plat_get_next_bl_params() 125 ERROR("Error getting platform info from SDS. ret:%d\n", ret); in plat_get_next_bl_params() 139 ret = plat_n1sdp_append_config_node(&plat_info); in plat_get_next_bl_params() 140 if (ret != 0) { in plat_get_next_bl_params()
|
| /rk3399_ARM-atf/drivers/st/ddr/ |
| H A D | stm32mp_ram.c | 19 int ret; in stm32mp_ddr_dt_get_info() local 21 ret = fdt_read_uint32(fdt, node, "st,mem-speed", &info->speed); in stm32mp_ddr_dt_get_info() 22 if (ret < 0) { in stm32mp_ddr_dt_get_info() 45 int ret; in stm32mp_ddr_dt_get_param() local 49 ret = fdt_read_uint32_array(fdt, node, param[idx].name, param[idx].size, in stm32mp_ddr_dt_get_param() 52 VERBOSE("%s: %s[0x%x] = %d\n", __func__, param[idx].name, param[idx].size, ret); in stm32mp_ddr_dt_get_param() 53 if (ret != 0) { in stm32mp_ddr_dt_get_param() 54 ERROR("%s: Cannot read %s, error=%d\n", __func__, param[idx].name, ret); in stm32mp_ddr_dt_get_param()
|
| /rk3399_ARM-atf/plat/mediatek/mt8192/ |
| H A D | plat_sip_calls.c | 24 uint64_t ret; in mediatek_plat_sip_handler() local 30 ret = spm_vcorefs_args(x1, x2, x3, (uint64_t *)&x4); in mediatek_plat_sip_handler() 31 SMC_RET2(handle, ret, x4); in mediatek_plat_sip_handler() 35 ret = apusys_kernel_ctrl(x1, x2, x3, x4, &rnd_val0); in mediatek_plat_sip_handler() 36 SMC_RET2(handle, ret, rnd_val0); in mediatek_plat_sip_handler() 40 ret = dfd_smc_dispatcher(x1, x2, x3, x4); in mediatek_plat_sip_handler() 41 SMC_RET1(handle, ret); in mediatek_plat_sip_handler()
|
| /rk3399_ARM-atf/plat/intel/soc/agilex5/soc/ |
| H A D | agilex5_power_manager.c | 44 int ret = 0; in pss_sram_power_off() local 61 ret = wait_verify_fsm(1000, peripheral_handoff); in pss_sram_power_off() 63 return ret; in pss_sram_power_off() 68 int ret = 0; in config_pwrmgr_handoff() local 72 ret = pss_sram_power_off(hoff_ptr); in config_pwrmgr_handoff() 78 if (ret != 0) { in config_pwrmgr_handoff() 79 ERROR("Config PwrMgr handoff failed. error %d\n", ret); in config_pwrmgr_handoff()
|
| /rk3399_ARM-atf/drivers/marvell/ |
| H A D | mci.c | 294 uint32_t mci_cmd_value = 0, retry_count = 100, ret = 0; in mci_poll_command_completion() local 312 ret = 1; in mci_poll_command_completion() 316 return ret; in mci_poll_command_completion() 345 uint32_t reg_data, ret = 1; in mci_axi_set_pcie_mode() local 379 ret = 0; in mci_axi_set_pcie_mode() 384 return ret; in mci_axi_set_pcie_mode() 390 uint32_t reg_data, ret = 0; in mci_axi_set_fifo_thresh() local 410 ret |= mci_poll_command_completion(mci_index, MCI_CMD_WRITE); in mci_axi_set_fifo_thresh() 420 ret |= mci_poll_command_completion(mci_index, MCI_CMD_WRITE); in mci_axi_set_fifo_thresh() 431 ret |= mci_poll_command_completion(mci_index, MCI_CMD_WRITE); in mci_axi_set_fifo_thresh() [all …]
|
| /rk3399_ARM-atf/drivers/console/aarch64/ |
| H A D | skeleton_console.S | 71 ret 96 ret 101 ret 134 ret 139 ret 144 ret 169 ret
|
| /rk3399_ARM-atf/plat/nxp/common/fip_handler/fuse_fip/ |
| H A D | fuse_io_storage.c | 167 int ret = -1; in fip_fuse_provisioning() local 170 ret = load_img(FUSE_PROV_IMAGE_ID, &image_buf, &size); in fip_fuse_provisioning() 171 if (ret != 0) { in fip_fuse_provisioning() 173 assert(ret == 0); in fip_fuse_provisioning() 193 ret = set_gpio_bit(gpio_base_addr, bit_num); in fip_fuse_provisioning() 196 ret = (board_enable_povdd() == true) ? 0 : PLAT_ERROR_ENABLE_POVDD; in fip_fuse_provisioning() 198 if (ret != 0) { in fip_fuse_provisioning() 199 ERROR("Error enabling board POVDD: %d\n", ret); in fip_fuse_provisioning() 203 provision_fuses(image_buf, ret == 0); in fip_fuse_provisioning() 213 ret = clr_gpio_bit(gpio_base_addr, bit_num); in fip_fuse_provisioning() [all …]
|
| /rk3399_ARM-atf/plat/nvidia/tegra/soc/t194/drivers/mce/ |
| H A D | nvg.c | 118 int32_t ret = 0; in nvg_online_core() local 123 ret = -EINVAL; in nvg_online_core() 130 return ret; in nvg_online_core() 141 int32_t ret = 0; in nvg_update_ccplex_gsc() local 146 ret = -EINVAL; in nvg_update_ccplex_gsc() 152 return ret; in nvg_update_ccplex_gsc() 160 int32_t ret = 0; in nvg_roc_clean_cache_trbits() local 167 ret = -ENODEV; in nvg_roc_clean_cache_trbits() 170 ret = -ENOTSUP; in nvg_roc_clean_cache_trbits() 173 return ret; in nvg_roc_clean_cache_trbits() [all …]
|
| /rk3399_ARM-atf/drivers/allwinner/axp/ |
| H A D | common.c | 17 int ret; in axp_check_id() local 19 ret = axp_read(0x03); in axp_check_id() 20 if (ret < 0) in axp_check_id() 21 return ret; in axp_check_id() 23 ret &= 0xcf; in axp_check_id() 24 if (ret != axp_chip_id) { in axp_check_id() 25 ERROR("PMIC: Found unknown PMIC %02x\n", ret); in axp_check_id() 26 return ret; in axp_check_id() 35 int ret; in axp_clrsetbits() local 37 ret = axp_read(reg); in axp_clrsetbits() [all …]
|
| /rk3399_ARM-atf/lib/libfdt/ |
| H A D | fdt_addresses.c | 60 int addr_cells, size_cells, ret; in fdt_appendprop_addrrange() local 63 ret = fdt_address_cells(fdt, parent); in fdt_appendprop_addrrange() 64 if (ret < 0) in fdt_appendprop_addrrange() 65 return ret; in fdt_appendprop_addrrange() 66 addr_cells = ret; in fdt_appendprop_addrrange() 68 ret = fdt_size_cells(fdt, parent); in fdt_appendprop_addrrange() 69 if (ret < 0) in fdt_appendprop_addrrange() 70 return ret; in fdt_appendprop_addrrange() 71 size_cells = ret; in fdt_appendprop_addrrange()
|
| /rk3399_ARM-atf/plat/arm/board/morello/ |
| H A D | morello_image_load.c | 170 int ret; local 174 ret = sds_init(SDS_SCP_AP_REGION_ID); 175 if (ret != SDS_OK) { 176 ERROR("SDS initialization failed. ret:%d\n", ret); 180 ret = sds_struct_read(SDS_SCP_AP_REGION_ID, 186 if (ret != SDS_OK) { 187 ERROR("Error getting platform info from SDS. ret:%d\n", ret); 191 ret = sds_struct_read(SDS_SCP_AP_REGION_ID, 197 if (ret != SDS_OK) { 198 ERROR("Error getting firmware version from SDS. ret:%d\n", ret); [all …]
|
| /rk3399_ARM-atf/drivers/nxp/scmi/vendor/ |
| H A D | scmi_imx9.c | 23 int ret; in scmi_core_set_reset_addr() local 41 SCMI_PAYLOAD_RET_VAL1(mbx_mem->payload, ret); in scmi_core_set_reset_addr() 47 return ret; in scmi_core_set_reset_addr() 54 int ret; in scmi_core_start() local 71 SCMI_PAYLOAD_RET_VAL1(mbx_mem->payload, ret); in scmi_core_start() 77 return ret; in scmi_core_start() 84 int ret; in scmi_core_stop() local 101 SCMI_PAYLOAD_RET_VAL1(mbx_mem->payload, ret); in scmi_core_stop() 107 return ret; in scmi_core_stop() 115 int ret; in scmi_core_set_sleep_mode() local [all …]
|
| /rk3399_ARM-atf/plat/mediatek/drivers/apusys/mt8188/ |
| H A D | apusys_power.c | 125 int ret; in apusys_kernel_apusys_pwr_top_on() local 141 ret = apu_poll(APU_RPC_BASE + APU_RPC_INTF_PWR_RDY, in apusys_kernel_apusys_pwr_top_on() 143 if (ret != 0) { in apusys_kernel_apusys_pwr_top_on() 144 ERROR(MODULE_TAG "%s polling RPC RDY timeout, ret %d\n", __func__, ret); in apusys_kernel_apusys_pwr_top_on() 146 return ret; in apusys_kernel_apusys_pwr_top_on() 149 ret = apu_poll(APU_RPC_BASE + APU_RPC_STATUS, in apusys_kernel_apusys_pwr_top_on() 151 if (ret != 0) { in apusys_kernel_apusys_pwr_top_on() 152 ERROR(MODULE_TAG "%s polling ARE FSM timeout, ret %d\n", __func__, ret); in apusys_kernel_apusys_pwr_top_on() 154 return ret; in apusys_kernel_apusys_pwr_top_on() 167 return ret; in apusys_kernel_apusys_pwr_top_on() [all …]
|
| /rk3399_ARM-atf/services/std_svc/rmmd/ |
| H A D | rmmd_main.c | 380 int ret; in gpt_to_gts_error() local 387 ret = E_RMM_BAD_ADDR; in gpt_to_gts_error() 391 ret = E_RMM_BAD_PAS; in gpt_to_gts_error() 396 return ret; in gpt_to_gts_error() 422 int ret; in rmmd_mecid_key_update() local 446 ret = plat_rmmd_mecid_key_update(mecid, reason); in rmmd_mecid_key_update() 448 if (ret != 0) { in rmmd_mecid_key_update() 463 int ret; in rmmd_rmm_el3_handler() local 481 ret = gpt_delegate_pas(x1, PAGE_SIZE_4KB, SMC_FROM_REALM); in rmmd_rmm_el3_handler() 482 SMC_RET1(handle, gpt_to_gts_error(ret, smc_fid, x1)); in rmmd_rmm_el3_handler() [all …]
|