Searched refs:shared_buf_len (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_psp_ta.c | 46 uint32_t shared_buf_len) in prep_ta_mem_context() argument 48 if (mem_context->shared_mem_size < shared_buf_len) in prep_ta_mem_context() 51 memcpy((void *)mem_context->shared_buf, shared_buf, shared_buf_len); in prep_ta_mem_context() 298 uint32_t shared_buf_len = 0; in ta_if_invoke_debugfs_write() local 325 ret = copy_from_user((void *)&shared_buf_len, &buf[copy_pos], sizeof(uint32_t)); in ta_if_invoke_debugfs_write() 330 shared_buf = kzalloc(shared_buf_len, GFP_KERNEL); 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() 354 ret = prep_ta_mem_context(&context->mem_context, shared_buf, shared_buf_len); in ta_if_invoke_debugfs_write() 368 if (copy_to_user((char *)&buf[copy_pos], context->mem_context.shared_buf, shared_buf_len)) in ta_if_invoke_debugfs_write()
|