Lines Matching refs:invoke_fn
270 optee->smc.invoke_fn(OPTEE_SMC_ENABLE_SHM_CACHE, in optee_enable_shm_cache()
298 optee->smc.invoke_fn(OPTEE_SMC_DISABLE_SHM_CACHE, in __optee_disable_shm_cache()
914 optee->smc.invoke_fn(param.a0, param.a1, param.a2, param.a3, in optee_smc_do_call_with_arg()
980 static u32 get_async_notif_value(optee_invoke_fn *invoke_fn, bool *value_valid, in get_async_notif_value() argument
985 invoke_fn(OPTEE_SMC_GET_ASYNC_NOTIF_VALUE, 0, 0, 0, 0, 0, 0, 0, &res); in get_async_notif_value()
1003 value = get_async_notif_value(optee->smc.invoke_fn, in notif_irq_handler()
1129 static int enable_async_notif(optee_invoke_fn *invoke_fn) in enable_async_notif() argument
1133 invoke_fn(OPTEE_SMC_ENABLE_ASYNC_NOTIF, 0, 0, 0, 0, 0, 0, 0, &res); in enable_async_notif()
1140 static bool optee_msg_api_uid_is_optee_api(optee_invoke_fn *invoke_fn) in optee_msg_api_uid_is_optee_api() argument
1144 invoke_fn(OPTEE_SMC_CALLS_UID, 0, 0, 0, 0, 0, 0, 0, &res); in optee_msg_api_uid_is_optee_api()
1152 static void optee_msg_get_os_revision(optee_invoke_fn *invoke_fn) in optee_msg_get_os_revision() argument
1163 invoke_fn(OPTEE_SMC_CALL_GET_OS_REVISION, 0, 0, 0, 0, 0, 0, 0, in optee_msg_get_os_revision()
1173 static bool optee_msg_api_revision_is_compatible(optee_invoke_fn *invoke_fn) in optee_msg_api_revision_is_compatible() argument
1180 invoke_fn(OPTEE_SMC_CALLS_REVISION, 0, 0, 0, 0, 0, 0, 0, &res.smccc); in optee_msg_api_revision_is_compatible()
1188 static bool optee_msg_exchange_capabilities(optee_invoke_fn *invoke_fn, in optee_msg_exchange_capabilities() argument
1206 invoke_fn(OPTEE_SMC_EXCHANGE_CAPABILITIES, a1, 0, 0, 0, 0, 0, 0, in optee_msg_exchange_capabilities()
1226 optee_config_shm_memremap(optee_invoke_fn *invoke_fn, void **memremaped_shm) in optee_config_shm_memremap() argument
1240 invoke_fn(OPTEE_SMC_GET_SHM_CONFIG, 0, 0, 0, 0, 0, 0, 0, &res.smccc); in optee_config_shm_memremap()
1359 optee_invoke_fn *invoke_fn; in optee_probe() local
1371 invoke_fn = get_invoke_func(&pdev->dev); in optee_probe()
1372 if (IS_ERR(invoke_fn)) in optee_probe()
1373 return PTR_ERR(invoke_fn); in optee_probe()
1375 if (!optee_msg_api_uid_is_optee_api(invoke_fn)) { in optee_probe()
1380 optee_msg_get_os_revision(invoke_fn); in optee_probe()
1382 if (!optee_msg_api_revision_is_compatible(invoke_fn)) { in optee_probe()
1387 if (!optee_msg_exchange_capabilities(invoke_fn, &sec_caps, in optee_probe()
1437 pool = optee_config_shm_memremap(invoke_fn, &memremaped_shm); in optee_probe()
1450 optee->smc.invoke_fn = invoke_fn; in optee_probe()
1509 enable_async_notif(optee->smc.invoke_fn); in optee_probe()