Lines Matching refs:ret
177 int ret; in pm_wdt_restart_setup() local
180 ret = request_intr_type_el3(ARM_IRQ_SEC_SGI_7, zynqmp_sgi7_irq); in pm_wdt_restart_setup()
181 if (ret) { in pm_wdt_restart_setup()
186 ret = request_intr_type_el3(IRQ_TTC3_1, ttc_fiq_handler); in pm_wdt_restart_setup()
187 if (ret) in pm_wdt_restart_setup()
191 return ret; in pm_wdt_restart_setup()
222 int32_t status = 0, ret = 0; in pm_setup() local
232 ret = 0; in pm_setup()
235 ret = status; in pm_setup()
240 return ret; in pm_setup()
262 enum pm_ret_status ret; in pm_smc_handler() local
284 ret = pm_self_suspend(pm_arg[0], pm_arg[1], pm_arg[2], in pm_smc_handler()
286 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
289 ret = pm_req_suspend(pm_arg[0], pm_arg[1], pm_arg[2], in pm_smc_handler()
291 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
300 ret = pm_req_wakeup(pm_arg[0], set_addr, address, in pm_smc_handler()
302 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
306 ret = pm_force_powerdown(pm_arg[0], pm_arg[1]); in pm_smc_handler()
307 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
310 ret = pm_abort_suspend(pm_arg[0]); in pm_smc_handler()
311 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
314 ret = pm_set_wakeup_source(pm_arg[0], pm_arg[1], pm_arg[2]); in pm_smc_handler()
315 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
318 ret = pm_system_shutdown(pm_arg[0], pm_arg[1]); in pm_smc_handler()
319 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
322 ret = pm_req_node(pm_arg[0], pm_arg[1], pm_arg[2], pm_arg[3]); in pm_smc_handler()
323 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
326 ret = pm_set_requirement(pm_arg[0], pm_arg[1], pm_arg[2], in pm_smc_handler()
328 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
348 ret = pm_fpga_load(pm_arg[0], pm_arg[1], pm_arg[2], pm_arg[3]); in pm_smc_handler()
349 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
355 ret = pm_fpga_get_status(&value); in pm_smc_handler()
356 SMC_RET1(handle, (uint64_t)ret | ((uint64_t)value) << 32); in pm_smc_handler()
360 ret = pm_secure_rsaaes(pm_arg[0], pm_arg[1], pm_arg[2], in pm_smc_handler()
362 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
373 ret = pm_ioctl(pm_arg[0], pm_arg[1], pm_arg[2], in pm_smc_handler()
375 SMC_RET1(handle, (uint64_t)ret | ((uint64_t)value) << 32); in pm_smc_handler()
389 ret = pm_clock_enable(pm_arg[0]); in pm_smc_handler()
390 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
393 ret = pm_clock_disable(pm_arg[0]); in pm_smc_handler()
394 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
400 ret = pm_clock_getstate(pm_arg[0], &value); in pm_smc_handler()
401 SMC_RET1(handle, (uint64_t)ret | ((uint64_t)value) << 32); in pm_smc_handler()
405 ret = pm_clock_setdivider(pm_arg[0], pm_arg[1]); in pm_smc_handler()
406 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
412 ret = pm_clock_getdivider(pm_arg[0], &value); in pm_smc_handler()
413 SMC_RET1(handle, (uint64_t)ret | ((uint64_t)value) << 32); in pm_smc_handler()
417 ret = pm_clock_setrate(pm_arg[0], in pm_smc_handler()
420 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
426 ret = pm_clock_getrate(pm_arg[0], &value); in pm_smc_handler()
427 SMC_RET2(handle, (uint64_t)ret | in pm_smc_handler()
434 ret = pm_clock_setparent(pm_arg[0], pm_arg[1]); in pm_smc_handler()
435 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
441 ret = pm_clock_getparent(pm_arg[0], &value); in pm_smc_handler()
442 SMC_RET1(handle, (uint64_t)ret | ((uint64_t)value) << 32U); in pm_smc_handler()
450 ret = pm_set_suspend_mode(pm_arg[0]); in pm_smc_handler()
451 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
454 ret = pm_sha_hash(pm_arg[0], pm_arg[1], pm_arg[2], in pm_smc_handler()
456 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
459 ret = pm_rsa_core(pm_arg[0], pm_arg[1], pm_arg[2], in pm_smc_handler()
461 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
465 ret = pm_secure_image(pm_arg[0], pm_arg[1], pm_arg[2], in pm_smc_handler()
467 SMC_RET2(handle, (uint64_t)ret | ((uint64_t)result[0] << 32U), in pm_smc_handler()
475 ret = pm_fpga_read(pm_arg[0], pm_arg[1], pm_arg[2], pm_arg[3], in pm_smc_handler()
477 SMC_RET1(handle, (uint64_t)ret | ((uint64_t)value) << 32U); in pm_smc_handler()
484 ret = pm_aes_engine(pm_arg[0], pm_arg[1], &value); in pm_smc_handler()
485 SMC_RET1(handle, (uint64_t)ret | ((uint64_t)value) << 32U); in pm_smc_handler()
489 ret = pm_pll_set_parameter(pm_arg[0], pm_arg[1], pm_arg[2]); in pm_smc_handler()
490 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
496 ret = pm_pll_get_parameter(pm_arg[0], pm_arg[1], &value); in pm_smc_handler()
497 SMC_RET1(handle, (uint64_t)ret | ((uint64_t)value << 32U)); in pm_smc_handler()
501 ret = pm_pll_set_mode(pm_arg[0], pm_arg[1]); in pm_smc_handler()
502 SMC_RET1(handle, (uint64_t)ret); in pm_smc_handler()
508 ret = pm_pll_get_mode(pm_arg[0], &mode); in pm_smc_handler()
509 SMC_RET1(handle, (uint64_t)ret | ((uint64_t)mode << 32U)); in pm_smc_handler()
516 ret = pm_register_access(pm_arg[0], pm_arg[1], pm_arg[2], in pm_smc_handler()
518 SMC_RET1(handle, (uint64_t)ret | ((uint64_t)value) << 32U); in pm_smc_handler()
532 ret = pm_efuse_access(pm_arg[0], pm_arg[1], &value); in pm_smc_handler()
533 SMC_RET1(handle, (uint64_t)ret | ((uint64_t)value) << 32U); in pm_smc_handler()
543 ret = pm_ipi_send_sync(primary_proc, payload, ret_payload, 3U); in pm_smc_handler()
544 SMC_RET2(handle, (uint64_t)ret | (uint64_t)ret_payload[0] << 32U, in pm_smc_handler()
553 ret = pm_feature_check(pm_arg[0], &version, bit_mask, in pm_smc_handler()
555 SMC_RET2(handle, (uint64_t)ret | ((uint64_t)version << 32U), in pm_smc_handler()
563 ret = pm_ipi_send_sync(primary_proc, payload, result, in pm_smc_handler()
565 SMC_RET2(handle, (uint64_t)ret | ((uint64_t)result[0] << 32U), in pm_smc_handler()
589 enum pm_ret_status ret; in em_smc_handler() local
597 ret = em_set_action(&value); in em_smc_handler()
598 SMC_RET1(handle, (uint64_t)ret | ((uint64_t)value) << 32U); in em_smc_handler()
605 ret = em_remove_action(&value); in em_smc_handler()
606 SMC_RET1(handle, (uint64_t)ret | ((uint64_t)value) << 32U); in em_smc_handler()
613 ret = em_send_errors(&value); in em_smc_handler()
614 SMC_RET1(handle, (uint64_t)ret | ((uint64_t)value) << 32U); in em_smc_handler()