Home
last modified time | relevance | path

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

/third_party/mesa3d/src/panfrost/lib/genxml/
Ddecode_common.c61 uint64_t *gpu_va = (uint64_t *) key; in pandecode_cmp_key() local
63 if (mem->gpu_va <= *gpu_va && *gpu_va < (mem->gpu_va + mem->length)) in pandecode_cmp_key()
66 return mem->gpu_va - *gpu_va; in pandecode_cmp_key()
72 return to_mapped_memory(lhs)->gpu_va - to_mapped_memory(rhs)->gpu_va; in pandecode_cmp()
114 pandecode_add_name(struct pandecode_mapped_memory *mem, uint64_t gpu_va, const char *name) in pandecode_add_name() argument
122 "memory_%" PRIx64, gpu_va); in pandecode_add_name()
130 pandecode_inject_mmap(uint64_t gpu_va, void *cpu, unsigned sz, const char *name) in pandecode_inject_mmap() argument
137 pandecode_find_mapped_gpu_mem_containing_rw(gpu_va); in pandecode_inject_mmap()
139 if (existing && existing->gpu_va == gpu_va) { in pandecode_inject_mmap()
142 pandecode_add_name(existing, gpu_va, name); in pandecode_inject_mmap()
[all …]
Ddecode.h42 uint64_t gpu_va; member
57 uint64_t gpu_va, size_t size, in __pandecode_fetch_gpu_mem() argument
61 mem = pandecode_find_mapped_gpu_mem_containing(gpu_va); in __pandecode_fetch_gpu_mem()
65 gpu_va, filename, line); in __pandecode_fetch_gpu_mem()
70 assert(size + (gpu_va - mem->gpu_va) <= mem->length); in __pandecode_fetch_gpu_mem()
72 return mem->addr + gpu_va - mem->gpu_va; in __pandecode_fetch_gpu_mem()
75 #define pandecode_fetch_gpu_mem(mem, gpu_va, size) \ argument
76 __pandecode_fetch_gpu_mem(mem, gpu_va, size, __LINE__, __FILE__)
81 #define PANDECODE_PTR(mem, gpu_va, type) \ argument
82 ((type*)(__pandecode_fetch_gpu_mem(mem, gpu_va, sizeof(type), \
[all …]
Ddecode.c144 unsigned offset = addr - bo->gpu_va; in pandecode_validate_buffer()
198 pandecode_sfbd(uint64_t gpu_va, int job_no, bool is_fragment, unsigned gpu_id) in pandecode_sfbd() argument
200 struct pandecode_mapped_memory *mem = pandecode_find_mapped_gpu_mem_containing(gpu_va); in pandecode_sfbd()
201 const void *PANDECODE_PTR_VAR(s, mem, (mali_ptr) gpu_va); in pandecode_sfbd()
235 pandecode_local_storage(uint64_t gpu_va, int job_no) in pandecode_local_storage() argument
237 struct pandecode_mapped_memory *mem = pandecode_find_mapped_gpu_mem_containing(gpu_va); in pandecode_local_storage()
238 const struct mali_local_storage_packed *PANDECODE_PTR_VAR(s, mem, (mali_ptr) gpu_va); in pandecode_local_storage()
243 pandecode_render_target(uint64_t gpu_va, unsigned job_no, unsigned gpu_id, in pandecode_render_target() argument
250 mali_ptr rt_va = gpu_va + i * pan_size(RENDER_TARGET); in pandecode_render_target()
289 pandecode_mfbd_bfr(uint64_t gpu_va, int job_no, bool is_fragment, unsigned gpu_id) in pandecode_mfbd_bfr() argument
[all …]
/third_party/libdrm/tests/amdgpu/
Dcp_dma_tests.c85 uint64_t gpu_va; member
124 bo->gpu_va = vmc_addr; in allocate_bo_and_va()
171 bo->gpu_va = vmc_addr; in import_dma_buf_to_bo()
192 bo.size, bo.gpu_va, 0, AMDGPU_VA_OP_UNMAP); in free_bo()
264 ib_cpu[2] = src_bo.gpu_va & 0x00000000ffffffff; in cp_dma_cmd()
265 ib_cpu[3] = (src_bo.gpu_va & 0xffffffff00000000) >> 32; in cp_dma_cmd()
266 ib_cpu[4] = dst_bo.gpu_va & 0x00000000ffffffff; in cp_dma_cmd()
267 ib_cpu[5] = (dst_bo.gpu_va & 0xffffffff00000000) >> 32; in cp_dma_cmd()
/third_party/mesa3d/src/panfrost/lib/
Dwrap.h52 pandecode_inject_mmap(uint64_t gpu_va, void *cpu, unsigned sz, const char *name);
54 void pandecode_inject_free(uint64_t gpu_va, unsigned sz);
/third_party/mesa3d/src/asahi/lib/
Ddecode.c206 uint64_t gpu_va, size_t size, in __agxdecode_fetch_gpu_mem() argument
210 mem = agxdecode_find_mapped_gpu_mem_containing(gpu_va); in __agxdecode_fetch_gpu_mem()
214 gpu_va, filename, line); in __agxdecode_fetch_gpu_mem()
220 assert(size + (gpu_va - mem->ptr.gpu) <= mem->size); in __agxdecode_fetch_gpu_mem()
222 return mem->ptr.cpu + gpu_va - mem->ptr.gpu; in __agxdecode_fetch_gpu_mem()
225 #define agxdecode_fetch_gpu_mem(gpu_va, size) \ argument
226 __agxdecode_fetch_gpu_mem(NULL, gpu_va, size, __LINE__, __FILE__)
Dio.h213 uint64_t gpu_va; member
Dwrap.c208 printf(" GPU VA: 0x%" PRIx64 "\n", resp->gpu_va); in wrap_Method()
232 .ptr.gpu = resp->gpu_va, in wrap_Method()