Lines Matching refs:invoke_fn
258 optee->smc.invoke_fn(OPTEE_SMC_ENABLE_SHM_CACHE, in optee_enable_shm_cache()
284 optee->smc.invoke_fn(OPTEE_SMC_DISABLE_SHM_CACHE, in optee_disable_shm_cache()
806 optee->smc.invoke_fn(param.a0, param.a1, param.a2, param.a3, in optee_smc_do_call_with_arg()
915 static bool optee_msg_api_uid_is_optee_api(optee_invoke_fn *invoke_fn) in optee_msg_api_uid_is_optee_api() argument
919 invoke_fn(OPTEE_SMC_CALLS_UID, 0, 0, 0, 0, 0, 0, 0, &res); in optee_msg_api_uid_is_optee_api()
927 static void optee_msg_get_os_revision(optee_invoke_fn *invoke_fn) in optee_msg_get_os_revision() argument
938 invoke_fn(OPTEE_SMC_CALL_GET_OS_REVISION, 0, 0, 0, 0, 0, 0, 0, in optee_msg_get_os_revision()
948 static bool optee_msg_api_revision_is_compatible(optee_invoke_fn *invoke_fn) in optee_msg_api_revision_is_compatible() argument
955 invoke_fn(OPTEE_SMC_CALLS_REVISION, 0, 0, 0, 0, 0, 0, 0, &res.smccc); in optee_msg_api_revision_is_compatible()
963 static bool optee_msg_exchange_capabilities(optee_invoke_fn *invoke_fn, in optee_msg_exchange_capabilities() argument
980 invoke_fn(OPTEE_SMC_EXCHANGE_CAPABILITIES, a1, 0, 0, 0, 0, 0, 0, in optee_msg_exchange_capabilities()
1018 optee_config_shm_memremap(optee_invoke_fn *invoke_fn, void **memremaped_shm) in optee_config_shm_memremap() argument
1035 invoke_fn(OPTEE_SMC_GET_SHM_CONFIG, 0, 0, 0, 0, 0, 0, 0, &res.smccc); in optee_config_shm_memremap()
1175 optee_invoke_fn *invoke_fn; in optee_probe() local
1183 invoke_fn = get_invoke_func(&pdev->dev); in optee_probe()
1184 if (IS_ERR(invoke_fn)) in optee_probe()
1185 return PTR_ERR(invoke_fn); in optee_probe()
1187 if (!optee_msg_api_uid_is_optee_api(invoke_fn)) { in optee_probe()
1192 optee_msg_get_os_revision(invoke_fn); in optee_probe()
1194 if (!optee_msg_api_revision_is_compatible(invoke_fn)) { in optee_probe()
1199 if (!optee_msg_exchange_capabilities(invoke_fn, &sec_caps)) { in optee_probe()
1214 pool = optee_config_shm_memremap(invoke_fn, &memremaped_shm); in optee_probe()
1226 optee->smc.invoke_fn = invoke_fn; in optee_probe()