Lines Matching refs:shared_buf
45 uint8_t *shared_buf, in prep_ta_mem_context() argument
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()
239 if (ret && context->mem_context.shared_buf) in ta_if_load_debugfs_write()
287 if (context->mem_context.shared_buf) in ta_if_unload_debugfs_write()
299 uint8_t *shared_buf = NULL; in ta_if_invoke_debugfs_write() local
330 shared_buf = kzalloc(shared_buf_len, GFP_KERNEL); in ta_if_invoke_debugfs_write()
331 if (!shared_buf) in ta_if_invoke_debugfs_write()
333 if (copy_from_user((void *)shared_buf, &buf[copy_pos], shared_buf_len)) { in ta_if_invoke_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()
374 kfree(shared_buf); in ta_if_invoke_debugfs_write()