Home
last modified time | relevance | path

Searched refs:tee_ctx (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/platform/x86/amd/pmf/
H A Dtee-if.c249 if (!dev->tee_ctx) in amd_pmf_invoke_cmd_enact()
264 ret = tee_client_invoke_func(dev->tee_ctx, &arg, param); in amd_pmf_invoke_cmd_enact()
288 if (!dev->tee_ctx) { in amd_pmf_invoke_cmd_init()
310 ret = tee_client_invoke_func(dev->tee_ctx, &arg, param); in amd_pmf_invoke_cmd_init()
488 dev->tee_ctx = tee_client_open_context(NULL, amd_pmf_amdtee_ta_match, NULL, NULL); in amd_pmf_tee_init()
489 if (IS_ERR(dev->tee_ctx)) { in amd_pmf_tee_init()
491 ret = PTR_ERR(dev->tee_ctx); in amd_pmf_tee_init()
492 dev->tee_ctx = NULL; in amd_pmf_tee_init()
496 ret = amd_pmf_ta_open_session(dev->tee_ctx, &dev->session_id, uuid); in amd_pmf_tee_init()
504 dev->fw_shm_pool = tee_shm_alloc_kernel_buf(dev->tee_ctx, size); in amd_pmf_tee_init()
[all …]
H A Dpmf.h397 struct tee_context *tee_ctx; member
/linux/drivers/nvmem/
H A Dstm32-bsec-optee-ta.c103 struct tee_context *tee_ctx; in stm32_bsec_optee_ta_open() local
108 tee_ctx = tee_client_open_context(NULL, stm32_bsec_optee_ta_match, NULL, NULL); in stm32_bsec_optee_ta_open()
109 if (IS_ERR(tee_ctx)) { in stm32_bsec_optee_ta_open()
110 rc = PTR_ERR(tee_ctx); in stm32_bsec_optee_ta_open()
119 rc = stm32_bsec_ta_open_session(tee_ctx, &session_id); in stm32_bsec_optee_ta_open()
121 tee_client_close_context(tee_ctx); in stm32_bsec_optee_ta_open()
125 stm32_bsec_ta_close_session(tee_ctx, session_id); in stm32_bsec_optee_ta_open()
127 *ctx = tee_ctx; in stm32_bsec_optee_ta_open()