Home
last modified time | relevance | path

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

/external/igt-gpu-tools/tests/i915/
Dgem_caching.c106 uint8_t *cpu_ptr; variable
153 cpu_ptr = scratch_bo->virtual;
155 igt_assert_f(cpu_ptr[j] == val0,
157 j, cpu_ptr[j], val0);
181 cpu_ptr = scratch_bo->virtual;
182 memset(cpu_ptr + start, val1, len);
226 cpu_ptr = scratch_bo->virtual;
228 igt_assert_f(cpu_ptr[j] == val0,
230 j, cpu_ptr[j], val0);
245 cpu_ptr = scratch_bo->virtual;
[all …]
/external/libdrm/amdgpu/
Damdgpu_bo.c441 if (bo->cpu_ptr) { in amdgpu_bo_cpu_map()
445 *cpu = bo->cpu_ptr; in amdgpu_bo_cpu_map()
473 bo->cpu_ptr = ptr; in amdgpu_bo_cpu_map()
501 r = drm_munmap(bo->cpu_ptr, bo->alloc_size) == 0 ? 0 : -errno; in amdgpu_bo_cpu_unmap()
502 bo->cpu_ptr = NULL; in amdgpu_bo_cpu_unmap()
559 if (!bo || !bo->cpu_ptr || size > bo->alloc_size) in amdgpu_find_bo_by_cpu_mapping()
561 if (cpu >= bo->cpu_ptr && in amdgpu_find_bo_by_cpu_mapping()
562 cpu < (void*)((uintptr_t)bo->cpu_ptr + bo->alloc_size)) in amdgpu_find_bo_by_cpu_mapping()
569 *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
/external/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()
/external/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_bo.h91 void *cpu_ptr; /* for user_ptr and permanent maps */ member
Damdgpu_bo.c173 if (!bo->is_user_ptr && bo->cpu_ptr) { in amdgpu_bo_destroy()
174 bo->cpu_ptr = NULL; in amdgpu_bo_destroy()
375 cpu = real->cpu_ptr; in amdgpu_bo_map()
381 cpu = p_atomic_read(&real->cpu_ptr); in amdgpu_bo_map()
386 cpu = real->cpu_ptr; in amdgpu_bo_map()
392 p_atomic_set(&real->cpu_ptr, cpu); in amdgpu_bo_map()
414 assert(!real->cpu_ptr && in amdgpu_bo_unmap()
1633 bo->cpu_ptr = pointer; in amdgpu_bo_from_ptr()
/external/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()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_test_dma.c99 uint8_t *cpu_ptr = cpu->ptr + cpu->layer_stride * z + cpu->stride * y; in compare_textures() local
101 if (memcmp(ptr, cpu_ptr, stride)) { in compare_textures()