Lines Matching refs:pvt_data
64 static struct tee_bnxt_fw_private pvt_data; variable
74 arg->session = pvt_data.session_id; in prepare_args()
81 param[0].u.memref.shm = pvt_data.fw_shm_pool; in prepare_args()
105 if (!pvt_data.ctx) in tee_bnxt_fw_load()
110 ret = tee_client_invoke_func(pvt_data.ctx, &arg, param); in tee_bnxt_fw_load()
112 dev_err(pvt_data.dev, in tee_bnxt_fw_load()
140 if (!pvt_data.ctx) in tee_bnxt_copy_coredump()
154 ret = tee_client_invoke_func(pvt_data.ctx, &arg, param); in tee_bnxt_copy_coredump()
156 dev_err(pvt_data.dev, in tee_bnxt_copy_coredump()
162 core_data = tee_shm_get_va(pvt_data.fw_shm_pool, 0); in tee_bnxt_copy_coredump()
164 dev_err(pvt_data.dev, "tee_shm_get_va failed\n"); in tee_bnxt_copy_coredump()
194 pvt_data.ctx = tee_client_open_context(NULL, optee_ctx_match, NULL, in tee_bnxt_fw_probe()
196 if (IS_ERR(pvt_data.ctx)) in tee_bnxt_fw_probe()
204 ret = tee_client_open_session(pvt_data.ctx, &sess_arg, NULL); in tee_bnxt_fw_probe()
211 pvt_data.session_id = sess_arg.session; in tee_bnxt_fw_probe()
213 pvt_data.dev = dev; in tee_bnxt_fw_probe()
215 fw_shm_pool = tee_shm_alloc_kernel_buf(pvt_data.ctx, MAX_SHM_MEM_SZ); in tee_bnxt_fw_probe()
217 dev_err(pvt_data.dev, "tee_shm_alloc_kernel_buf failed\n"); in tee_bnxt_fw_probe()
222 pvt_data.fw_shm_pool = fw_shm_pool; in tee_bnxt_fw_probe()
227 tee_client_close_session(pvt_data.ctx, pvt_data.session_id); in tee_bnxt_fw_probe()
229 tee_client_close_context(pvt_data.ctx); in tee_bnxt_fw_probe()
236 tee_shm_free(pvt_data.fw_shm_pool); in tee_bnxt_fw_remove()
237 tee_client_close_session(pvt_data.ctx, pvt_data.session_id); in tee_bnxt_fw_remove()
238 tee_client_close_context(pvt_data.ctx); in tee_bnxt_fw_remove()
239 pvt_data.ctx = NULL; in tee_bnxt_fw_remove()
246 tee_shm_free(pvt_data.fw_shm_pool); in tee_bnxt_fw_shutdown()
247 tee_client_close_session(pvt_data.ctx, pvt_data.session_id); in tee_bnxt_fw_shutdown()
248 tee_client_close_context(pvt_data.ctx); in tee_bnxt_fw_shutdown()
249 pvt_data.ctx = NULL; in tee_bnxt_fw_shutdown()