Lines Matching refs:res
30 struct arm_smccc_res res; in __invoke_sip_fn_smc() local
32 arm_smccc_smc(function_id, arg0, arg1, arg2, 0, 0, 0, 0, &res); in __invoke_sip_fn_smc()
33 return res; in __invoke_sip_fn_smc()
38 struct arm_smccc_res res; in psci_cpu_on() local
40 res = __invoke_sip_fn_smc(ARM_PSCI_0_2_CPU_ON, cpuid, entry_point, 0); in psci_cpu_on()
42 return res.a0; in psci_cpu_on()
47 struct arm_smccc_res res; in psci_cpu_off() local
49 res = __invoke_sip_fn_smc(ARM_PSCI_0_2_CPU_OFF, state, 0, 0); in psci_cpu_off()
51 return res.a0; in psci_cpu_off()
57 struct arm_smccc_res res; in psci_system_suspend() local
59 res = __invoke_sip_fn_smc(ARM_PSCI_1_0_SYSTEM_SUSPEND, in psci_system_suspend()
61 return res.a0; in psci_system_suspend()
69 struct arm_smccc_res res; in sip_smc_set_suspend_mode() local
71 res = __invoke_sip_fn_smc(SIP_SUSPEND_MODE, ctrl, config1, config2); in sip_smc_set_suspend_mode()
72 return res.a0; in sip_smc_set_suspend_mode()
77 struct arm_smccc_res res; in sip_smc_remotectl_config() local
79 res = __invoke_sip_fn_smc(SIP_REMOTECTL_CFG, func, data, 0); in sip_smc_remotectl_config()
81 return res.a0; in sip_smc_remotectl_config()
87 struct arm_smccc_res res; in sip_smc_access_mem_os_reg() local
92 res = __invoke_sip_fn_smc(SIP_ACCESS_MEM_OS_REG, func, id, *val); in sip_smc_access_mem_os_reg()
95 *val = res.a1; in sip_smc_access_mem_os_reg()
97 return res.a0; in sip_smc_access_mem_os_reg()
103 struct arm_smccc_res res; in sip_smc_amp_cfg() local
105 arm_smccc_smc(SIP_AMP_CFG, func, arg0, arg1, arg2, 0, 0, 0, &res); in sip_smc_amp_cfg()
106 return res.a0; in sip_smc_amp_cfg()
119 struct arm_smccc_res res; in sip_smc_request_share_mem() local
122 res = __invoke_sip_fn_smc(SIP_SHARE_MEM, page_num, page_type, 0); in sip_smc_request_share_mem()
123 if (IS_SIP_ERROR(res.a0)) in sip_smc_request_share_mem()
126 share_mem_phy = res.a1; in sip_smc_request_share_mem()
127 res.a1 = (unsigned long)ioremap(share_mem_phy, SIZE_PAGE(page_num)); in sip_smc_request_share_mem()
130 return res; in sip_smc_request_share_mem()
135 struct arm_smccc_res res; in sip_smc_secure_reg_read() local
137 res = __invoke_sip_fn_smc(SIP_ACCESS_REG, 0, addr_phy, SECURE_REG_RD); in sip_smc_secure_reg_read()
138 return res; in sip_smc_secure_reg_read()
143 struct arm_smccc_res res; in sip_smc_secure_reg_write() local
145 res = __invoke_sip_fn_smc(SIP_ACCESS_REG, val, addr_phy, SECURE_REG_WR); in sip_smc_secure_reg_write()
146 return res.a0; in sip_smc_secure_reg_write()
151 struct arm_smccc_res res; in sip_smc_hdcp_config() local
153 res = __invoke_sip_fn_smc(SIP_HDCP_CONFIG, func, arg1, arg2); in sip_smc_hdcp_config()
154 return res.a0; in sip_smc_hdcp_config()
170 struct arm_smccc_res res; in sip_smc_set_sip_version() local
172 res = __invoke_sip_fn_smc(SIP_SIP_VERSION, version, SECURE_REG_WR, 0); in sip_smc_set_sip_version()
173 if (IS_SIP_ERROR(res.a0)) { in sip_smc_set_sip_version()
176 return res.a0; in sip_smc_set_sip_version()
184 struct arm_smccc_res res; in sip_smc_mcu_config() local
186 res = __invoke_sip_fn_smc(SIP_MCU_CFG, mcu_id, func, arg2); in sip_smc_mcu_config()
187 return res.a0; in sip_smc_mcu_config()