Home
last modified time | relevance | path

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

/drivers/gpu/drm/radeon/
Dradeon_cs.c309 struct drm_radeon_cs_chunk user_chunk; in radeon_cs_parser_init() local
313 if (copy_from_user(&user_chunk, chunk_ptr, in radeon_cs_parser_init()
317 p->chunks[i].length_dw = user_chunk.length_dw; in radeon_cs_parser_init()
318 if (user_chunk.chunk_id == RADEON_CHUNK_ID_RELOCS) { in radeon_cs_parser_init()
321 if (user_chunk.chunk_id == RADEON_CHUNK_ID_IB) { in radeon_cs_parser_init()
327 if (user_chunk.chunk_id == RADEON_CHUNK_ID_CONST_IB) { in radeon_cs_parser_init()
333 if (user_chunk.chunk_id == RADEON_CHUNK_ID_FLAGS) { in radeon_cs_parser_init()
341 cdata = (void __user *)(unsigned long)user_chunk.chunk_data; in radeon_cs_parser_init()
343 if (user_chunk.chunk_id == RADEON_CHUNK_ID_CONST_IB) in radeon_cs_parser_init()
346 if (user_chunk.chunk_id == RADEON_CHUNK_ID_IB) { in radeon_cs_parser_init()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_cs.c205 struct drm_amdgpu_cs_chunk user_chunk; in amdgpu_cs_pass1() local
209 if (copy_from_user(&user_chunk, chunk_ptr, in amdgpu_cs_pass1()
215 p->chunks[i].chunk_id = user_chunk.chunk_id; in amdgpu_cs_pass1()
216 p->chunks[i].length_dw = user_chunk.length_dw; in amdgpu_cs_pass1()
219 cdata = u64_to_user_ptr(user_chunk.chunk_data); in amdgpu_cs_pass1()