Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/gpu/drm/radeon/
Dradeon_cs.c308 struct drm_radeon_cs_chunk user_chunk; in radeon_cs_parser_init() local
312 if (copy_from_user(&user_chunk, chunk_ptr, in radeon_cs_parser_init()
316 p->chunks[i].length_dw = user_chunk.length_dw; in radeon_cs_parser_init()
317 if (user_chunk.chunk_id == RADEON_CHUNK_ID_RELOCS) { in radeon_cs_parser_init()
320 if (user_chunk.chunk_id == RADEON_CHUNK_ID_IB) { in radeon_cs_parser_init()
326 if (user_chunk.chunk_id == RADEON_CHUNK_ID_CONST_IB) { in radeon_cs_parser_init()
332 if (user_chunk.chunk_id == RADEON_CHUNK_ID_FLAGS) { in radeon_cs_parser_init()
340 cdata = (void __user *)(unsigned long)user_chunk.chunk_data; in radeon_cs_parser_init()
342 if (user_chunk.chunk_id == RADEON_CHUNK_ID_CONST_IB) in radeon_cs_parser_init()
345 if (user_chunk.chunk_id == RADEON_CHUNK_ID_IB) { in radeon_cs_parser_init()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_cs.c218 struct drm_amdgpu_cs_chunk user_chunk; in amdgpu_cs_pass1() local
222 if (copy_from_user(&user_chunk, chunk_ptr, in amdgpu_cs_pass1()
228 p->chunks[i].chunk_id = user_chunk.chunk_id; in amdgpu_cs_pass1()
229 p->chunks[i].length_dw = user_chunk.length_dw; in amdgpu_cs_pass1()
232 cdata = u64_to_user_ptr(user_chunk.chunk_data); in amdgpu_cs_pass1()