Searched refs:cpu_ptr (Results 1 – 11 of 11) sorted by relevance
/third_party/libdrm/amdgpu/ |
D | amdgpu_bo.c | 433 if (bo->cpu_ptr) { in amdgpu_bo_cpu_map() 437 *cpu = bo->cpu_ptr; in amdgpu_bo_cpu_map() 465 bo->cpu_ptr = ptr; in amdgpu_bo_cpu_map() 493 r = drm_munmap(bo->cpu_ptr, bo->alloc_size) == 0 ? 0 : -errno; in amdgpu_bo_cpu_unmap() 494 bo->cpu_ptr = NULL; in amdgpu_bo_cpu_unmap() 551 if (!bo || !bo->cpu_ptr || size > bo->alloc_size) in amdgpu_find_bo_by_cpu_mapping() 553 if (cpu >= bo->cpu_ptr && in amdgpu_find_bo_by_cpu_mapping() 554 cpu < (void*)((uintptr_t)bo->cpu_ptr + bo->alloc_size)) in amdgpu_find_bo_by_cpu_mapping() 561 *offset_in_bo = (uintptr_t)cpu - (uintptr_t)bo->cpu_ptr; in amdgpu_find_bo_by_cpu_mapping()
|
D | amdgpu_internal.h | 104 void *cpu_ptr; member
|
/third_party/libdrm/tests/amdgpu/ |
D | security_tests.c | 307 for (pp = alice.bo->cpu_ptr; in amdgpu_secure_bounce() 308 pp < (__typeof__(pp)) alice.bo->cpu_ptr + SECURE_BUFFER_SIZE; in amdgpu_secure_bounce() 345 for (pp = alice.bo->cpu_ptr; in amdgpu_secure_bounce() 346 pp < (__typeof__(pp)) alice.bo->cpu_ptr + SECURE_BUFFER_SIZE; in amdgpu_secure_bounce()
|
/third_party/mesa3d/src/gallium/winsys/amdgpu/drm/ |
D | amdgpu_bo.h | 66 void *cpu_ptr; /* for user_ptr and permanent maps */ member
|
D | amdgpu_bo.c | 173 if (!bo->u.real.is_user_ptr && bo->u.real.cpu_ptr) { in amdgpu_bo_destroy() 174 bo->u.real.cpu_ptr = NULL; in amdgpu_bo_destroy() 379 cpu = real->u.real.cpu_ptr; in amdgpu_bo_map() 385 cpu = p_atomic_read(&real->u.real.cpu_ptr); in amdgpu_bo_map() 390 cpu = real->u.real.cpu_ptr; in amdgpu_bo_map() 396 p_atomic_set(&real->u.real.cpu_ptr, cpu); in amdgpu_bo_map() 420 assert(!real->u.real.cpu_ptr && in amdgpu_bo_unmap() 1701 bo->u.real.cpu_ptr = pointer; in amdgpu_bo_from_ptr()
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
D | r600_test_dma.c | 105 uint8_t *cpu_ptr = cpu->ptr + in compare_textures() local 108 if (memcmp(ptr, cpu_ptr, tex->width0 * bpp)) { in compare_textures()
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
D | zink_bo.c | 143 if (!bo->u.real.is_user_ptr && bo->u.real.cpu_ptr) { in bo_destroy() 145 bo->u.real.cpu_ptr = NULL; in bo_destroy() 677 cpu = p_atomic_read(&real->u.real.cpu_ptr); in zink_bo_map() 682 cpu = real->u.real.cpu_ptr; in zink_bo_map() 690 p_atomic_set(&real->u.real.cpu_ptr, cpu); in zink_bo_map() 707 p_atomic_set(&real->u.real.cpu_ptr, NULL); in zink_bo_unmap()
|
D | zink_bo.h | 73 void *cpu_ptr; /* for user_ptr and permanent maps */ member
|
/third_party/mesa3d/src/microsoft/vulkan/ |
D | dzn_cmd_buffer.c | 1150 uint8_t *cpu_ptr; in dzn_cmd_buffer_clear_rects_with_copy() local 1151 ID3D12Resource_Map(src_res, 0, NULL, (void **)&cpu_ptr); in dzn_cmd_buffer_clear_rects_with_copy() 1153 memcpy(&cpu_ptr[i], buf, fill_step); in dzn_cmd_buffer_clear_rects_with_copy() 1291 uint8_t *cpu_ptr; in dzn_cmd_buffer_clear_ranges_with_copy() local 1292 ID3D12Resource_Map(src_res, 0, NULL, (void **)&cpu_ptr); in dzn_cmd_buffer_clear_ranges_with_copy() 1294 memcpy(&cpu_ptr[i], buf, fill_step); in dzn_cmd_buffer_clear_ranges_with_copy() 2542 void *cpu_ptr; in dzn_cmd_buffer_triangle_fan_create_index() local 2543 ID3D12Resource_Map(index_buf, 0, NULL, &cpu_ptr); in dzn_cmd_buffer_triangle_fan_create_index() 2547 uint16_t *indices = (uint16_t *)cpu_ptr; in dzn_cmd_buffer_triangle_fan_create_index() 2555 uint32_t *indices = (uint32_t *)cpu_ptr; in dzn_cmd_buffer_triangle_fan_create_index() [all …]
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_test_image_copy_region.c | 157 uint8_t *cpu_ptr = cpu->ptr + cpu->layer_stride * z + cpu->stride * y; in compare_textures() local 159 if (memcmp(ptr, cpu_ptr, stride)) { in compare_textures()
|
/third_party/mesa3d/docs/relnotes/ |
D | 21.1.0.rst | 3405 - winsys/amdgpu: move amdgpu_winsys_bo::cpu_ptr into the u.real union
|