Lines Matching refs:tee_ctx
216 if (!dev->tee_ctx) in amd_pmf_invoke_cmd_enact()
231 ret = tee_client_invoke_func(dev->tee_ctx, &arg, param); in amd_pmf_invoke_cmd_enact()
255 if (!dev->tee_ctx) { in amd_pmf_invoke_cmd_init()
277 ret = tee_client_invoke_func(dev->tee_ctx, &arg, param); in amd_pmf_invoke_cmd_init()
442 dev->tee_ctx = tee_client_open_context(NULL, amd_pmf_amdtee_ta_match, NULL, NULL); in amd_pmf_tee_init()
443 if (IS_ERR(dev->tee_ctx)) { in amd_pmf_tee_init()
445 return PTR_ERR(dev->tee_ctx); in amd_pmf_tee_init()
448 ret = amd_pmf_ta_open_session(dev->tee_ctx, &dev->session_id); in amd_pmf_tee_init()
456 dev->fw_shm_pool = tee_shm_alloc_kernel_buf(dev->tee_ctx, size); in amd_pmf_tee_init()
476 tee_client_close_session(dev->tee_ctx, dev->session_id); in amd_pmf_tee_init()
478 tee_client_close_context(dev->tee_ctx); in amd_pmf_tee_init()
486 tee_client_close_session(dev->tee_ctx, dev->session_id); in amd_pmf_tee_deinit()
487 tee_client_close_context(dev->tee_ctx); in amd_pmf_tee_deinit()