Home
last modified time | relevance | path

Searched refs:copy_pos (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_psp_ta.c131 uint32_t copy_pos = 0; in ta_if_load_debugfs_write() local
141 ret = copy_from_user((void *)&ta_type, &buf[copy_pos], sizeof(uint32_t)); in ta_if_load_debugfs_write()
145 copy_pos += sizeof(uint32_t); in ta_if_load_debugfs_write()
147 ret = copy_from_user((void *)&ta_bin_len, &buf[copy_pos], sizeof(uint32_t)); in ta_if_load_debugfs_write()
151 copy_pos += sizeof(uint32_t); in ta_if_load_debugfs_write()
156 if (copy_from_user((void *)ta_bin, &buf[copy_pos], ta_bin_len)) { in ta_if_load_debugfs_write()
224 uint32_t copy_pos = 0; in ta_if_invoke_debugfs_write() local
234 ret = copy_from_user((void *)&ta_id, &buf[copy_pos], sizeof(uint32_t)); in ta_if_invoke_debugfs_write()
237 copy_pos += sizeof(uint32_t); in ta_if_invoke_debugfs_write()
239 ret = copy_from_user((void *)&cmd_id, &buf[copy_pos], sizeof(uint32_t)); in ta_if_invoke_debugfs_write()
[all …]