Lines Matching refs:mem_context
44 static int prep_ta_mem_context(struct ta_mem_context *mem_context, in prep_ta_mem_context() argument
48 if (mem_context->shared_mem_size < shared_buf_len) in prep_ta_mem_context()
50 memset(mem_context->shared_buf, 0, mem_context->shared_mem_size); in prep_ta_mem_context()
51 memcpy((void *)mem_context->shared_buf, shared_buf, shared_buf_len); in prep_ta_mem_context()
195 if (!context->mem_context.shared_buf) { in ta_if_load_debugfs_write()
196 ret = psp_ta_init_shared_buf(psp, &context->mem_context); in ta_if_load_debugfs_write()
239 if (ret && context->mem_context.shared_buf) in ta_if_load_debugfs_write()
240 psp_ta_free_shared_buf(&context->mem_context); in ta_if_load_debugfs_write()
287 if (context->mem_context.shared_buf) in ta_if_unload_debugfs_write()
288 psp_ta_free_shared_buf(&context->mem_context); in ta_if_unload_debugfs_write()
355 ret = prep_ta_mem_context(&context->mem_context, shared_buf, shared_buf_len); in ta_if_invoke_debugfs_write()
369 if (copy_to_user((char *)&buf[copy_pos], context->mem_context.shared_buf, shared_buf_len)) in ta_if_invoke_debugfs_write()