Lines Matching refs:invoke_fn
291 optee->smc.invoke_fn(OPTEE_SMC_ENABLE_SHM_CACHE, in optee_enable_shm_cache()
319 optee->smc.invoke_fn(OPTEE_SMC_DISABLE_SHM_CACHE, in __optee_disable_shm_cache()
934 optee->smc.invoke_fn(param.a0, param.a1, param.a2, param.a3, in optee_smc_do_call_with_arg()
972 static u32 get_async_notif_value(optee_invoke_fn *invoke_fn, bool *value_valid, in get_async_notif_value() argument
977 invoke_fn(OPTEE_SMC_GET_ASYNC_NOTIF_VALUE, 0, 0, 0, 0, 0, 0, 0, &res); in get_async_notif_value()
996 value = get_async_notif_value(optee->smc.invoke_fn, in irq_handler()
1221 static int enable_async_notif(optee_invoke_fn *invoke_fn) in enable_async_notif() argument
1225 invoke_fn(OPTEE_SMC_ENABLE_ASYNC_NOTIF, 0, 0, 0, 0, 0, 0, 0, &res); in enable_async_notif()
1232 static bool optee_msg_api_uid_is_optee_api(optee_invoke_fn *invoke_fn) in optee_msg_api_uid_is_optee_api() argument
1236 invoke_fn(OPTEE_SMC_CALLS_UID, 0, 0, 0, 0, 0, 0, 0, &res); in optee_msg_api_uid_is_optee_api()
1245 static bool optee_msg_api_uid_is_optee_image_load(optee_invoke_fn *invoke_fn) in optee_msg_api_uid_is_optee_image_load() argument
1249 invoke_fn(OPTEE_SMC_CALLS_UID, 0, 0, 0, 0, 0, 0, 0, &res); in optee_msg_api_uid_is_optee_image_load()
1260 static void optee_msg_get_os_revision(optee_invoke_fn *invoke_fn) in optee_msg_get_os_revision() argument
1271 invoke_fn(OPTEE_SMC_CALL_GET_OS_REVISION, 0, 0, 0, 0, 0, 0, 0, in optee_msg_get_os_revision()
1281 static bool optee_msg_api_revision_is_compatible(optee_invoke_fn *invoke_fn) in optee_msg_api_revision_is_compatible() argument
1288 invoke_fn(OPTEE_SMC_CALLS_REVISION, 0, 0, 0, 0, 0, 0, 0, &res.smccc); in optee_msg_api_revision_is_compatible()
1296 static bool optee_msg_exchange_capabilities(optee_invoke_fn *invoke_fn, in optee_msg_exchange_capabilities() argument
1314 invoke_fn(OPTEE_SMC_EXCHANGE_CAPABILITIES, a1, 0, 0, 0, 0, 0, 0, in optee_msg_exchange_capabilities()
1333 static unsigned int optee_msg_get_thread_count(optee_invoke_fn *invoke_fn) in optee_msg_get_thread_count() argument
1337 invoke_fn(OPTEE_SMC_GET_THREAD_COUNT, 0, 0, 0, 0, 0, 0, 0, &res); in optee_msg_get_thread_count()
1344 optee_config_shm_memremap(optee_invoke_fn *invoke_fn, void **memremaped_shm) in optee_config_shm_memremap() argument
1358 invoke_fn(OPTEE_SMC_GET_SHM_CONFIG, 0, 0, 0, 0, 0, 0, 0, &res.smccc); in optee_config_shm_memremap()
1493 optee_invoke_fn *invoke_fn) in optee_load_fw() argument
1505 if (!optee_msg_api_uid_is_optee_image_load(invoke_fn)) in optee_load_fw()
1549 invoke_fn(OPTEE_SMC_CALL_LOAD_IMAGE, data_size_high, data_size_low, in optee_load_fw()
1565 cpuhp_invoke_fn = invoke_fn; in optee_load_fw()
1580 optee_invoke_fn *invoke_fn) in optee_load_fw() argument
1588 optee_invoke_fn *invoke_fn; in optee_probe() local
1601 invoke_fn = get_invoke_func(&pdev->dev); in optee_probe()
1602 if (IS_ERR(invoke_fn)) in optee_probe()
1603 return PTR_ERR(invoke_fn); in optee_probe()
1605 rc = optee_load_fw(pdev, invoke_fn); in optee_probe()
1609 if (!optee_msg_api_uid_is_optee_api(invoke_fn)) { in optee_probe()
1614 optee_msg_get_os_revision(invoke_fn); in optee_probe()
1616 if (!optee_msg_api_revision_is_compatible(invoke_fn)) { in optee_probe()
1621 thread_count = optee_msg_get_thread_count(invoke_fn); in optee_probe()
1622 if (!optee_msg_exchange_capabilities(invoke_fn, &sec_caps, in optee_probe()
1672 pool = optee_config_shm_memremap(invoke_fn, &memremaped_shm); in optee_probe()
1685 optee->smc.invoke_fn = invoke_fn; in optee_probe()
1750 enable_async_notif(optee->smc.invoke_fn); in optee_probe()