Home
last modified time | relevance | path

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

/third_party/libdrm/amdgpu/
Damdgpu_bo.c433 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()
Damdgpu_internal.h104 void *cpu_ptr; member
/third_party/libdrm/tests/amdgpu/
Dsecurity_tests.c307 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/
Damdgpu_bo.h66 void *cpu_ptr; /* for user_ptr and permanent maps */ member
Damdgpu_bo.c173 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/
Dr600_test_dma.c105 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/
Dzink_bo.c143 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()
Dzink_bo.h73 void *cpu_ptr; /* for user_ptr and permanent maps */ member
/third_party/mesa3d/src/microsoft/vulkan/
Ddzn_cmd_buffer.c1150 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/
Dsi_test_image_copy_region.c157 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/
D21.1.0.rst3405 - winsys/amdgpu: move amdgpu_winsys_bo::cpu_ptr into the u.real union