Home
last modified time | relevance | path

Searched refs:ret (Results 151 – 175 of 738) sorted by relevance

12345678910>>...30

/rk3399_ARM-atf/plat/imx/imx8ulp/scmi/
H A Dscmi_pd.c199 int ret; in upwr_pwm_power() local
202 ret = upwr_pwm_power_on(swton, memon, NULL); in upwr_pwm_power()
204 ret = upwr_pwm_power_off(swton, memon, NULL); in upwr_pwm_power()
207 if (ret != 0U) { in upwr_pwm_power()
208 WARN("%s failed: ret: %d, state: %x\n", __func__, ret, on); in upwr_pwm_power()
209 return ret; in upwr_pwm_power()
214 ret = upwr_poll_req_status(UPWR_SG_PWRMGMT, NULL, NULL, &ret_val, 1000); in upwr_pwm_power()
215 if (ret != UPWR_REQ_OK) { in upwr_pwm_power()
216 WARN("Failure %d, %s\n", ret, __func__); in upwr_pwm_power()
217 if (ret == UPWR_REQ_BUSY) { in upwr_pwm_power()
[all …]
/rk3399_ARM-atf/bl32/tsp/
H A Dffa_helpers.c112 smc_args_t ret; in ffa_mem_relinquish() local
114 ret = smc_helper(FFA_MEM_RELINQUISH, 0, 0, 0, 0, 0, 0, 0); in ffa_mem_relinquish()
115 if (ffa_func_id(ret) != FFA_SUCCESS_SMC32) { in ffa_mem_relinquish()
117 __func__, ffa_func_id(ret), ffa_error_code(ret)); in ffa_mem_relinquish()
150 smc_args_t ret; in memory_retrieve() local
173 ret = ffa_mem_retrieve_req(descriptor_size, descriptor_size); in memory_retrieve()
175 if (ffa_func_id(ret) == FFA_ERROR) { in memory_retrieve()
177 ffa_error_code(ret)); in memory_retrieve()
187 *total_length = ret._regs[1]; in memory_retrieve()
188 *frag_length = ret._regs[2]; in memory_retrieve()
[all …]
/rk3399_ARM-atf/drivers/marvell/comphy/
H A Dphy-comphy-3700.c290 int ret; in mvebu_a3700_comphy_sata_power_on() local
298 ret = mvebu_a3700_comphy_set_phy_selector(comphy_index, comphy_mode); in mvebu_a3700_comphy_sata_power_on()
299 if (ret) { in mvebu_a3700_comphy_sata_power_on()
300 return ret; in mvebu_a3700_comphy_sata_power_on()
357 ret = polling_with_timeout(comphy_indir_regs + in mvebu_a3700_comphy_sata_power_on()
361 if (ret) { in mvebu_a3700_comphy_sata_power_on()
373 int ret; in mvebu_a3700_comphy_sgmii_power_on() local
383 ret = mvebu_a3700_comphy_set_phy_selector(comphy_index, comphy_mode); in mvebu_a3700_comphy_sgmii_power_on()
384 if (ret) { in mvebu_a3700_comphy_sgmii_power_on()
385 return ret; in mvebu_a3700_comphy_sgmii_power_on()
[all …]
/rk3399_ARM-atf/drivers/arm/css/scmi/
H A Dscmi_base_proto.c19 int ret; in scmi_base_protocol_attributes() local
36 SCMI_PAYLOAD_RET_VAL2(mbx_mem->payload, ret, attr); in scmi_base_protocol_attributes()
42 if (ret == SCMI_E_SUCCESS) { in scmi_base_protocol_attributes()
52 return ret; in scmi_base_protocol_attributes()
59 int ret; in scmi_base_discover_agent() local
77 SCMI_PAYLOAD_RET_VAL2(mbx_mem->payload, ret, *agent_id_resp); in scmi_base_discover_agent()
79 SCMI_PAYLOAD_RET_VAL1(mbx_mem->payload, ret); in scmi_base_discover_agent()
90 return ret; in scmi_base_discover_agent()
97 int ret; in scmi_base_reset_agent_config() local
114 SCMI_PAYLOAD_RET_VAL1(mbx_mem->payload, ret); in scmi_base_reset_agent_config()
[all …]
/rk3399_ARM-atf/drivers/console/
H A Dmulti_console.c81 int ret; in do_putc() local
85 ret = console->putc('\r', console); in do_putc()
86 if (ret < 0) in do_putc()
87 return ret; in do_putc()
100 int ret = do_putc(c, console); in console_putc() local
101 if ((err == ERROR_NO_VALID_CONSOLE) || (ret < err)) { in console_putc()
102 err = ret; in console_putc()
128 int ret = console->getc(console); in console_getc() local
129 if (ret >= 0) { in console_getc()
130 return ret; in console_getc()
[all …]
/rk3399_ARM-atf/plat/intel/soc/common/
H A Dsocfpga_vab.c47 int ret = 0; in socfpga_vab_init() local
65 ret = socfpga_vab_authentication(&image_base_ptr, &image_size); in socfpga_vab_init()
68 return ret; in socfpga_vab_init()
79 int ret = 0; in socfpga_vab_authentication() local
124 ret = mailbox_send_cmd(MBOX_JOB_ID, MBOX_CMD_VAB_SRC_CERT, in socfpga_vab_authentication()
129 if (ret == MBOX_RESP_ERR(0x1FF)) { in socfpga_vab_authentication()
142 if (ret) { in socfpga_vab_authentication()
148 if (ret == MBOX_RESP_ERR(0x85)) { in socfpga_vab_authentication()
155 if (ret == MBOX_RESP_ERR(0x1FF)) { in socfpga_vab_authentication()
158 } else if (ret == MBOX_WRONG_ID) { in socfpga_vab_authentication()
[all …]
/rk3399_ARM-atf/services/spd/trusty/
H A Dtrusty.c147 struct smc_args ret; in trusty_fiq_handler() local
152 ret = trusty_context_switch(NON_SECURE, SMC_FC_FIQ_ENTER, 0, 0, 0); in trusty_fiq_handler()
153 if (ret.r0 != 0U) { in trusty_fiq_handler()
202 struct smc_args ret; in trusty_fiq_exit() local
210 ret = trusty_context_switch(NON_SECURE, SMC_FC_FIQ_EXIT, 0, 0, 0); in trusty_fiq_exit()
211 if (ret.r0 != 1U) { in trusty_fiq_exit()
213 __func__, handle, ret.r0); in trusty_fiq_exit()
242 struct smc_args ret; in trusty_smc_handler() local
261 ret = trusty_context_switch(SECURE, x1, 0, 0, 0); in trusty_smc_handler()
262 SMC_RET8(handle, ret.r0, ret.r1, ret.r2, ret.r3, in trusty_smc_handler()
[all …]
/rk3399_ARM-atf/drivers/st/uart/
H A Dstm32_uart.c221 int ret; in stm32_uart_check_idle() local
225 ret = stm32_uart_wait_flag(huart, USART_ISR_TEACK); in stm32_uart_check_idle()
226 if (ret != 0) { in stm32_uart_check_idle()
227 return ret; in stm32_uart_check_idle()
233 ret = stm32_uart_wait_flag(huart, USART_ISR_REACK); in stm32_uart_check_idle()
234 if (ret != 0) { in stm32_uart_check_idle()
235 return ret; in stm32_uart_check_idle()
309 int ret; in stm32_uart_init() local
353 ret = uart_set_config(huart, init); in stm32_uart_init()
354 if (ret != 0) { in stm32_uart_init()
[all …]
/rk3399_ARM-atf/plat/arm/board/morello/
H A Dmorello_bl31_setup.c44 int ret; in bl31_platform_setup() local
46 ret = sds_init(SDS_SCP_AP_REGION_ID); in bl31_platform_setup()
47 if (ret != SDS_OK) { in bl31_platform_setup()
48 ERROR("SDS initialization failed. ret:%d\n", ret); in bl31_platform_setup()
52 ret = sds_struct_read(SDS_SCP_AP_REGION_ID, in bl31_platform_setup()
58 if (ret != SDS_OK) { in bl31_platform_setup()
59 ERROR("Error getting platform info from SDS. ret:%d\n", ret); in bl31_platform_setup()
/rk3399_ARM-atf/plat/xilinx/versal/
H A Dbl31_versal_setup.c132 enum xbl_handoff ret = xbl_handover(&bl32_image_ep_info, in bl31_early_platform_setup2() local
135 if ((ret == XBL_HANDOFF_NO_STRUCT) || (ret == XBL_HANDOFF_INVAL_STRUCT)) { in bl31_early_platform_setup2()
137 } else if (ret == XBL_HANDOFF_TOO_MANY_PARTS) { in bl31_early_platform_setup2()
138 ERROR("BL31: Error too many partitions %u\n", ret); in bl31_early_platform_setup2()
139 } else if (ret != XBL_HANDOFF_SUCCESS) { in bl31_early_platform_setup2()
142 INFO("BL31: PLM to TF-A handover success %u\n", ret); in bl31_early_platform_setup2()
157 int ret = 0; in request_intr_type_el3() local
161 ret = -EINVAL; in request_intr_type_el3()
168 ret = -EALREADY; in request_intr_type_el3()
179 return ret; in request_intr_type_el3()
[all …]
H A Dplat_psci.c35 int32_t ret = PSCI_E_INTERN_FAIL; in versal_pwr_domain_on() local
56 ret = PSCI_E_SUCCESS; in versal_pwr_domain_on()
59 return ret; in versal_pwr_domain_on()
178 uint32_t ret, timeout = 10000U; in versal_system_reset() local
195 ret = ipi_mb_enquire_status(primary_proc->ipi->local_ipi_id, in versal_system_reset()
199 } while ((ret != IPI_MB_STATUS_RECV_PENDING) && (timeout > 0U)); in versal_system_reset()
211 int32_t ret = PSCI_E_SUCCESS; in versal_validate_ns_entrypoint() local
215 ret = PSCI_E_INVALID_ADDRESS; in versal_validate_ns_entrypoint()
218 return ret; in versal_validate_ns_entrypoint()
228 uint32_t ret, fw_api_version, version_type[RET_PAYLOAD_ARG_CNT] = {0U}; in versal_pwr_domain_off() local
[all …]
/rk3399_ARM-atf/plat/arm/css/common/
H A Dcss_bl2_setup.c26 int ret; in plat_arm_bl2_handle_scp_bl2() local
30 ret = css_scp_boot_image_xfer((void *)scp_bl2_image_info->image_base, in plat_arm_bl2_handle_scp_bl2()
33 if (ret == 0) in plat_arm_bl2_handle_scp_bl2()
34 ret = css_scp_boot_ready(); in plat_arm_bl2_handle_scp_bl2()
36 if (ret == 0) in plat_arm_bl2_handle_scp_bl2()
41 return ret; in plat_arm_bl2_handle_scp_bl2()
/rk3399_ARM-atf/plat/mediatek/mt8195/drivers/apusys/
H A Dapupll.c92 int32_t ret; in vd2pllidx() local
97 ret = NPUPLL; in vd2pllidx()
101 ret = APUPLL; in vd2pllidx()
104 ret = APUPLL2; in vd2pllidx()
107 ret = APUPLL1; in vd2pllidx()
111 ret = -EEXIST; /* non-exist */ in vd2pllidx()
115 return ret; in vd2pllidx()
161 int32_t ret = 0; in _fhctl_mon_done() local
173 ret = -ETIMEDOUT; in _fhctl_mon_done()
178 return ret; in _fhctl_mon_done()
[all …]
/rk3399_ARM-atf/plat/nvidia/tegra/soc/t194/
H A Dplat_psci_handlers.c56 int32_t ret = PSCI_E_SUCCESS; in tegra_soc_validate_power_state() local
77 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()
128 int32_t ret = 0; in tegra_soc_pwr_domain_suspend() local
151 ret = tegra_se_suspend(); in tegra_soc_pwr_domain_suspend()
152 assert(ret == 0); in tegra_soc_pwr_domain_suspend()
167 ret = mce_command_handler( in tegra_soc_pwr_domain_suspend()
172 assert(ret == 0); in tegra_soc_pwr_domain_suspend()
272 int32_t ret = PSCI_E_SUCCESS; in tegra_soc_pwr_domain_power_down_wfi() local
[all …]
/rk3399_ARM-atf/plat/amd/versal2/
H A Dplat_psci.c42 int32_t ret = PSCI_E_SUCCESS; in zynqmp_nopmu_pwr_domain_on() local
48 ret = PSCI_E_INTERN_FAIL; in zynqmp_nopmu_pwr_domain_on()
89 return ret; in zynqmp_nopmu_pwr_domain_on()
106 int32_t ret = PSCI_E_INVALID_ADDRESS; in zynqmp_validate_ns_entrypoint() local
111 ret = PSCI_E_SUCCESS; in zynqmp_validate_ns_entrypoint()
114 return ret; in zynqmp_validate_ns_entrypoint()
169 int32_t ret = 0; in no_pm_ioctl() local
178 ret = PM_RET_ERROR_ARGS; in no_pm_ioctl()
182 ret = (int32_t) mmio_read_32(PMXC_IOU_SLCR_TX_RX_CONFIG_RDY); in no_pm_ioctl()
186 ret = (int32_t) mmio_read_32(PMXC_IOU_SLCR_SRAM_CSR); in no_pm_ioctl()
[all …]
/rk3399_ARM-atf/plat/nvidia/tegra/soc/t186/drivers/se/
H A Dse.c75 int32_t ret = 0; in tegra_se_start_normal_operation() local
116 ret = tegra_se_operation_complete(); in tegra_se_start_normal_operation()
117 if (ret != 0) { in tegra_se_start_normal_operation()
118 ERROR("SE operation complete Failed! 0x%x", ret); in tegra_se_start_normal_operation()
119 return ret; in tegra_se_start_normal_operation()
129 int32_t ret = 0; in tegra_se_calculate_sha256_hash() local
227 ret = tegra_se_start_normal_operation(src_addr, max_bytes, in tegra_se_calculate_sha256_hash()
229 if (ret != 0) { in tegra_se_calculate_sha256_hash()
230 ERROR("Error during SE operation! 0x%x", ret); in tegra_se_calculate_sha256_hash()
235 return ret; in tegra_se_calculate_sha256_hash()
[all …]
/rk3399_ARM-atf/plat/arm/board/tc/
H A Drse_ap_tests.c31 enum test_suite_err_t ret; in run_tests() local
55 ret = run_testsuite(suite); in run_tests()
56 if (ret != TEST_SUITE_ERR_NO_ERROR) { in run_tests()
69 int ret; in run_platform_tests() local
72 ret = run_tests(); in run_platform_tests()
73 if (ret != 0) { in run_platform_tests()
75 return ret; in run_platform_tests()
/rk3399_ARM-atf/common/
H A Dfdt_fixup.c127 int ret; in dt_update_one_cpu_node() local
141 ret = fdt_setprop_string(fdt, offs, "enable-method", "psci"); in dt_update_one_cpu_node()
142 if (ret < 0) in dt_update_one_cpu_node()
143 return ret; in dt_update_one_cpu_node()
170 int offs, ret; in dt_add_psci_cpu_enable_methods() local
178 ret = dt_update_one_cpu_node(fdt, offs); in dt_add_psci_cpu_enable_methods()
179 } while (ret > 0); in dt_add_psci_cpu_enable_methods()
181 return ret; in dt_add_psci_cpu_enable_methods()
235 int ret; in fdt_add_reserved_memory() local
237 ret = fdt_get_reg_props_by_index(dtb, node, 0, &c_base, &c_size); in fdt_add_reserved_memory()
[all …]
/rk3399_ARM-atf/plat/mediatek/common/
H A Dmtk_smc_handlers.c68 ret = smc_handler_pool[_smc_id##_descriptor_index].smc_handler(x1,\
117 int ret = 0; in mtk_smc_handler_init() local
126 ret = -EPERM; in mtk_smc_handler_init()
134 return ret; in mtk_smc_handler_init()
148 u_register_t ret = MTK_SIP_E_SUCCESS; in mtk_smc_handler_sel1() local
155 ret = SMC_UNK; in mtk_smc_handler_sel1()
157 SMC_RET4(handle, ret, smc_ret.a1, smc_ret.a2, smc_ret.a3); in mtk_smc_handler_sel1()
170 uintptr_t ret = MTK_SIP_E_SUCCESS; in mtk_smc_handler_bl33() local
177 ret = SMC_UNK; in mtk_smc_handler_bl33()
180 SMC_RET4(handle, ret, smc_ret.a1, smc_ret.a2, smc_ret.a3); in mtk_smc_handler_bl33()
[all …]
/rk3399_ARM-atf/plat/marvell/armada/common/mss/
H A Dmss_scp_bootloader.c97 int ret; in mss_image_load() local
142 ret = mss_iram_dma_load(img_src, chunk_size, mss_regs); in mss_image_load()
143 if (ret != 0) { in mss_image_load()
145 return ret; in mss_image_load()
179 int ret; in mss_ap_load_image() local
211 ret = mss_image_load(single_img, image_size, in mss_ap_load_image()
213 if (ret != 0) { in mss_ap_load_image()
219 ret = mss_check_image_ready(mss_pm_crtl); in mss_ap_load_image()
220 if (ret != 0) in mss_ap_load_image()
230 int ret, ap_idx, cp_index; in load_img_to_cm3() local
[all …]
/rk3399_ARM-atf/plat/xilinx/common/
H A Dipi.c72 uint32_t ret = 1U; in is_ipi_mb_within_range() local
75 ret = 0U; in is_ipi_mb_within_range()
78 return ret; in is_ipi_mb_within_range()
92 int32_t ret = 0; in ipi_mb_validate() local
95 ret = -EINVAL; in ipi_mb_validate()
97 ret = -EPERM; in ipi_mb_validate()
99 ret = -EPERM; in ipi_mb_validate()
104 return ret; in ipi_mb_validate()
148 uint32_t ret = (uint32_t)PM_RET_SUCCESS; in ipi_mb_enquire_status() local
155 ret |= IPI_MB_STATUS_SEND_PENDING; in ipi_mb_enquire_status()
[all …]
/rk3399_ARM-atf/plat/allwinner/common/
H A Dsunxi_scpi_pm.c100 uint32_t ret; in sunxi_system_off() local
105 ret = scpi_sys_power_state(scpi_system_shutdown); in sunxi_system_off()
106 if (ret != SCP_OK) { in sunxi_system_off()
107 ERROR("PSCI: SCPI %s failed: %d\n", "shutdown", ret); in sunxi_system_off()
113 uint32_t ret; in sunxi_system_reset() local
118 ret = scpi_sys_power_state(scpi_system_reboot); in sunxi_system_reset()
119 if (ret != SCP_OK) { in sunxi_system_reset()
120 ERROR("PSCI: SCPI %s failed: %d\n", "reboot", ret); in sunxi_system_reset()
126 uint32_t ret; in sunxi_system_reset2() local
134 ret = scpi_sys_power_state(scpi_system_reset); in sunxi_system_reset2()
[all …]
/rk3399_ARM-atf/plat/rpi/rpi4/
H A Drpi4_setup.c59 int ret, offs; in rpi4_prepare_dtb() local
65 ret = fdt_open_into(dtb, dtb, 0x100000); in rpi4_prepare_dtb()
66 if (ret < 0) { in rpi4_prepare_dtb()
67 ERROR("Invalid Device Tree at %p: error %d\n", dtb, ret); in rpi4_prepare_dtb()
98 ret = fdt_pack(dtb); in rpi4_prepare_dtb()
99 if (ret < 0) in rpi4_prepare_dtb()
100 ERROR("Failed to pack Device Tree at %p: error %d\n", dtb, ret); in rpi4_prepare_dtb()
/rk3399_ARM-atf/plat/nvidia/tegra/soc/t194/drivers/mce/aarch64/
H A Dnvg_helpers.S21 ret
27 ret
33 ret
39 ret
45 ret
51 ret
/rk3399_ARM-atf/plat/nxp/s32/s32g274ardb2/
H A Dplat_console.c19 int ret; in console_s32g2_register() local
21 ret = mmap_add_dynamic_region(UART_BASE, UART_BASE, PAGE_SIZE, in console_s32g2_register()
23 if (ret != 0) { in console_s32g2_register()
27 ret = console_linflex_register(UART_BASE, UART_CLOCK_HZ, in console_s32g2_register()
29 if (ret == 0) { in console_s32g2_register()

12345678910>>...30