Lines Matching refs:context

78 		*pcontext = &psp->ras_context.context;  in set_ta_context_funcs()
154 struct ta_context *context = NULL; in ta_if_load_debugfs_write() local
179 set_ta_context_funcs(psp, ta_type, &context); in ta_if_load_debugfs_write()
191 if (!context->mem_context.shared_buf) { in ta_if_load_debugfs_write()
192 ret = psp_ta_init_shared_buf(psp, &context->mem_context); in ta_if_load_debugfs_write()
200 if (ret || context->resp_status) { in ta_if_load_debugfs_write()
203 ret, context->resp_status); in ta_if_load_debugfs_write()
210 context->ta_type = ta_type; in ta_if_load_debugfs_write()
211 context->bin_desc.fw_version = get_bin_version(ta_bin); in ta_if_load_debugfs_write()
212 context->bin_desc.size_bytes = ta_bin_len; in ta_if_load_debugfs_write()
213 context->bin_desc.start_addr = ta_bin; in ta_if_load_debugfs_write()
222 if (ret || context->resp_status) { in ta_if_load_debugfs_write()
224 ret, context->resp_status); in ta_if_load_debugfs_write()
230 if (copy_to_user((char *)buf, (void *)&context->session_id, sizeof(uint32_t))) in ta_if_load_debugfs_write()
235 if (ret && context->mem_context.shared_buf) in ta_if_load_debugfs_write()
236 psp_ta_free_shared_buf(&context->mem_context); in ta_if_load_debugfs_write()
252 struct ta_context *context = NULL; in ta_if_unload_debugfs_write() local
267 set_ta_context_funcs(psp, ta_type, &context); in ta_if_unload_debugfs_write()
268 context->session_id = ta_id; in ta_if_unload_debugfs_write()
276 if (ret || context->resp_status) { in ta_if_unload_debugfs_write()
278 ret, context->resp_status); in ta_if_unload_debugfs_write()
283 if (context->mem_context.shared_buf) in ta_if_unload_debugfs_write()
284 psp_ta_free_shared_buf(&context->mem_context); in ta_if_unload_debugfs_write()
301 struct ta_context *context = NULL; in ta_if_invoke_debugfs_write() local
330 set_ta_context_funcs(psp, ta_type, &context); in ta_if_invoke_debugfs_write()
332 if (!context || !context->initialized) { in ta_if_invoke_debugfs_write()
344 context->session_id = ta_id; in ta_if_invoke_debugfs_write()
347 ret = prep_ta_mem_context(&context->mem_context, shared_buf, shared_buf_len); in ta_if_invoke_debugfs_write()
352 if (ret || context->resp_status) { in ta_if_invoke_debugfs_write()
354 ret, context->resp_status); in ta_if_invoke_debugfs_write()
361 if (copy_to_user((char *)&buf[copy_pos], context->mem_context.shared_buf, shared_buf_len)) in ta_if_invoke_debugfs_write()