Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/gpu/drm/amd/amdgpu/
Damdgpu_psp_ta.c149 uint32_t copy_pos = 0; in ta_if_load_debugfs_write() local
159 ret = copy_from_user((void *)&ta_type, &buf[copy_pos], sizeof(uint32_t)); in ta_if_load_debugfs_write()
163 copy_pos += sizeof(uint32_t); in ta_if_load_debugfs_write()
165 ret = copy_from_user((void *)&ta_bin_len, &buf[copy_pos], sizeof(uint32_t)); in ta_if_load_debugfs_write()
169 copy_pos += sizeof(uint32_t); in ta_if_load_debugfs_write()
174 if (copy_from_user((void *)ta_bin, &buf[copy_pos], ta_bin_len)) { in ta_if_load_debugfs_write()
248 uint32_t copy_pos = 0; in ta_if_unload_debugfs_write() local
258 ret = copy_from_user((void *)&ta_type, &buf[copy_pos], sizeof(uint32_t)); in ta_if_unload_debugfs_write()
262 copy_pos += sizeof(uint32_t); in ta_if_unload_debugfs_write()
264 ret = copy_from_user((void *)&ta_id, &buf[copy_pos], sizeof(uint32_t)); in ta_if_unload_debugfs_write()
[all …]