Lines Matching refs:ret

114 	int ret;  in request_cpu_pwrdwn()  local
119 ret = psci_stop_other_cores(plat_my_core_pos(), PWRDWN_WAIT_TIMEOUT, in request_cpu_pwrdwn()
121 if (ret != PSCI_E_SUCCESS) { in request_cpu_pwrdwn()
139 enum pm_ret_status ret; in ipi_fiq_handler() local
166 ret = pm_get_callbackdata(payload, ARRAY_SIZE(payload), 0, 0); in ipi_fiq_handler()
167 if (ret != PM_RET_SUCCESS) { in ipi_fiq_handler()
168 payload[0] = (uint32_t)ret; in ipi_fiq_handler()
231 int32_t ret = 0; in pm_register_sgi() local
236 ret = -EBUSY; in pm_register_sgi()
238 ret = -EINVAL; in pm_register_sgi()
243 return ret; in pm_register_sgi()
262 int32_t ret = 0; in pm_setup() local
269 ret = request_intr_type_el3(CPU_PWR_DOWN_REQ_INTR, cpu_pwrdwn_req_handler); in pm_setup()
270 if (ret != 0) { in pm_setup()
282 ret = request_intr_type_el3(PLAT_VERSAL_IPI_IRQ, ipi_fiq_handler); in pm_setup()
283 if (ret != 0) { in pm_setup()
290 ret = (int32_t)pm_register_notifier(primary_proc->node_id, EVENT_CPU_PWRDWN, in pm_setup()
292 if (ret != 0) { in pm_setup()
296 return ret; in pm_setup()
317 enum pm_ret_status ret; in eemi_for_compatibility() local
325 ret = pm_feature_check(pm_arg[0], result, security_flag); in eemi_for_compatibility()
326 SMC_RET2(handle, (uint64_t)ret | ((uint64_t)result[0] << 32U), in eemi_for_compatibility()
332 ret = pm_load_pdi(pm_arg[0], pm_arg[1], pm_arg[2], in eemi_for_compatibility()
334 SMC_RET1(handle, (uint64_t)ret); in eemi_for_compatibility()
362 enum pm_ret_status ret; in eemi_psci_debugfs_handler() local
367 ret = pm_self_suspend(pm_arg[0], pm_arg[1], pm_arg[2], in eemi_psci_debugfs_handler()
369 SMC_RET1(handle, (u_register_t)ret); in eemi_psci_debugfs_handler()
372 ret = pm_force_powerdown(pm_arg[0], (uint8_t)pm_arg[1], security_flag); in eemi_psci_debugfs_handler()
373 SMC_RET1(handle, (u_register_t)ret); in eemi_psci_debugfs_handler()
376 ret = pm_system_shutdown(pm_arg[0], pm_arg[1], security_flag); in eemi_psci_debugfs_handler()
377 SMC_RET1(handle, (u_register_t)ret); in eemi_psci_debugfs_handler()
422 enum pm_ret_status ret; in TF_A_specific_handler() local
425 ret = tfa_api_feature_check(pm_arg[0], result); in TF_A_specific_handler()
426 SMC_RET1(handle, (uint64_t)ret | ((uint64_t)result[0] << 32U)); in TF_A_specific_handler()
431 int32_t ret; in TF_A_specific_handler() local
433 ret = pm_register_sgi(pm_arg[0], pm_arg[1]); in TF_A_specific_handler()
434 if (ret != 0) { in TF_A_specific_handler()
444 enum pm_ret_status ret; in TF_A_specific_handler() local
446 ret = pm_get_callbackdata(result, ARRAY_SIZE(result), security_flag, 1U); in TF_A_specific_handler()
447 if (ret != PM_RET_SUCCESS) { in TF_A_specific_handler()
448 result[0] = (uint32_t)ret; in TF_A_specific_handler()
462 enum pm_ret_status ret; in TF_A_specific_handler() local
464 ret = tfa_clear_pm_state(); in TF_A_specific_handler()
466 SMC_RET1(handle, (uint64_t)ret); in TF_A_specific_handler()
494 enum pm_ret_status ret; in eemi_handler() local
497 ret = pm_handle_eemi_call(security_flag, api_id, pm_arg[0], pm_arg[1], in eemi_handler()
508 (ret == PM_RET_SUCCESS)) { in eemi_handler()
514 SMC_RET2(handle, (uint64_t)ret | ((uint64_t)buf[0] << 32U), in eemi_handler()
537 enum pm_ret_status ret; in eemi_api_handler() local
548 ret = pm_ipi_send_sync(primary_proc, payload, (uint32_t *)buf, in eemi_api_handler()
551 SMC_RET4(handle, (uint64_t)ret | ((uint64_t)buf[0] << 32U), in eemi_api_handler()
582 uintptr_t ret; in pm_smc_handler() local
621 ret = eemi_for_compatibility(api_id, pm_arg, handle, security_flag); in pm_smc_handler()
622 if (ret != (uintptr_t)0) { in pm_smc_handler()
623 return ret; in pm_smc_handler()
626 ret = eemi_psci_debugfs_handler(api_id, pm_arg, handle, in pm_smc_handler()
628 if (ret != (uintptr_t)0) { in pm_smc_handler()
629 return ret; in pm_smc_handler()
632 ret = TF_A_specific_handler(api_id, pm_arg, handle, security_flag); in pm_smc_handler()
633 if (ret != (uintptr_t)0) { in pm_smc_handler()
634 return ret; in pm_smc_handler()
637 ret = eemi_handler(api_id, pm_arg, handle, security_flag); in pm_smc_handler()
639 return ret; in pm_smc_handler()