/external/minigbm/ |
D | mediatek.c | 64 metadata.priority = 1; in mediatek_init() 170 static void *mediatek_bo_map(struct bo *bo, struct vma *vma, size_t plane, uint32_t map_flags) in mediatek_bo_map() argument 193 vma->length = bo->meta.total_size; in mediatek_bo_map() 195 priv = calloc(1, sizeof(*priv)); in mediatek_bo_map() 197 vma->priv = priv; in mediatek_bo_map() 200 priv->cached_addr = calloc(1, bo->meta.total_size); in mediatek_bo_map() 208 static int mediatek_bo_unmap(struct bo *bo, struct vma *vma) in mediatek_bo_unmap() argument 210 if (vma->priv) { in mediatek_bo_unmap() 211 struct mediatek_private_map_data *priv = vma->priv; in mediatek_bo_unmap() 214 vma->addr = priv->gem_addr; in mediatek_bo_unmap() [all …]
|
D | rockchip.c | 41 #define AFBC_NARROW 1 in afbc_bo_from_format() 42 #if AFBC_NARROW == 1 in afbc_bo_from_format() 82 metadata.priority = 1; in rockchip_init() 182 static void *rockchip_bo_map(struct bo *bo, struct vma *vma, size_t plane, uint32_t map_flags) in rockchip_bo_map() argument 203 vma->length = bo->meta.total_size; in rockchip_bo_map() 206 priv = calloc(1, sizeof(*priv)); in rockchip_bo_map() 207 priv->cached_addr = calloc(1, bo->meta.total_size); in rockchip_bo_map() 209 vma->priv = priv; in rockchip_bo_map() 216 static int rockchip_bo_unmap(struct bo *bo, struct vma *vma) in rockchip_bo_unmap() argument 218 if (vma->priv) { in rockchip_bo_unmap() [all …]
|
D | drv.c | 116 drv = (struct driver *)calloc(1, sizeof(*drv)); in drv_create() 218 bo = (struct bo *)calloc(1, sizeof(*bo)); in drv_bo_new() 274 assert(bo->meta.offsets[plane] >= bo->meta.offsets[plane - 1]); in drv_bo_create() 321 assert(bo->meta.offsets[plane] >= bo->meta.offsets[plane - 1]); in drv_bo_create_with_modifiers() 389 if (seek_end == (off_t)(-1)) { in drv_bo_import() 395 if (plane == bo->meta.num_planes - 1 || data->offsets[plane + 1] == 0) in drv_bo_import() 398 bo->meta.sizes[plane] = data->offsets[plane + 1] - data->offsets[plane]; in drv_bo_import() 434 mapping.refcount = 1; in drv_bo_map() 440 if (prior->vma->handle != bo->handles[plane].u32 || in drv_bo_map() 441 prior->vma->map_flags != map_flags) in drv_bo_map() [all …]
|
D | helpers.c | 31 .num_planes = 1, 32 .horizontal_subsampling = { 1 }, 33 .vertical_subsampling = { 1 }, 34 .bytes_per_pixel = { 1 } 38 .num_planes = 1, 39 .horizontal_subsampling = { 1 }, 40 .vertical_subsampling = { 1 }, 45 .num_planes = 1, 46 .horizontal_subsampling = { 1 }, 47 .vertical_subsampling = { 1 }, [all …]
|
D | amdgpu.c | 27 #define TILE_TYPE_DRI 1 230 priv->dev_info.family >= AMDGPU_FAMILY_AI ? (cur_size - 1) : cur_size; in sdma_copy() 246 chunks[1].chunk_id = AMDGPU_CHUNK_ID_IB; in sdma_copy() 247 chunks[1].length_dw = sizeof(ib) / 4; in sdma_copy() 248 chunks[1].chunk_data = (uintptr_t)&ib; in sdma_copy() 252 bo_list_entries[1].bo_handle = src_handle; in sdma_copy() 253 bo_list_entries[1].bo_priority = 8; in sdma_copy() 266 chunk_ptrs[1] = (uintptr_t)&chunks[1]; in sdma_copy() 315 priv = calloc(1, sizeof(struct amdgpu_priv)); in amdgpu_init() 346 metadata.priority = 1; in amdgpu_init() [all …]
|
D | dri.c | 125 if (dmabuf_sizes[i] == (off_t)-1) { in import_into_minigbm() 408 void *dri_bo_map(struct bo *bo, struct vma *vma, size_t plane, uint32_t map_flags) in dri_bo_map() argument 413 vma->addr = dri->image_extension->mapImage(dri->context, bo->priv, 0, 0, bo->meta.width, in dri_bo_map() 415 (int *)&vma->map_strides[plane], &vma->priv); in dri_bo_map() 416 if (!vma->addr) in dri_bo_map() 419 return vma->addr; in dri_bo_map() 422 int dri_bo_unmap(struct bo *bo, struct vma *vma) in dri_bo_unmap() argument 426 assert(vma->priv); in dri_bo_unmap() 427 dri->image_extension->unmapImage(dri->context, bo->priv, vma->priv); in dri_bo_unmap()
|
D | drv_priv.h | 89 void *(*bo_map)(struct bo *bo, struct vma *vma, size_t plane, uint32_t map_flags); 90 int (*bo_unmap)(struct bo *bo, struct vma *vma); 118 #define LINEAR_METADATA (struct format_metadata) { 1, 0, DRM_FORMAT_MOD_LINEAR }
|
D | virtgpu_virgl.c | 26 #define MESA_LLVMPIPE_TILE_SIZE (1 << MESA_LLVMPIPE_TILE_ORDER) 96 return supported->bitmask[bitmask_index] & (1 << bit_index); in virgl_bitmask_supports_format() 166 metadata->strides[1] = metadata->width; in virgl_get_emulated_metadata() 167 metadata->offsets[1] = metadata->offsets[0] + metadata->sizes[0]; in virgl_get_emulated_metadata() 168 metadata->sizes[1] = metadata->width * c_plane_height; in virgl_get_emulated_metadata() 189 metadata->strides[1] = metadata->width; in virgl_get_emulated_metadata() 190 metadata->offsets[1] = metadata->offsets[0] + metadata->sizes[0]; in virgl_get_emulated_metadata() 191 metadata->sizes[1] = metadata->width * c_plane_height; in virgl_get_emulated_metadata() 195 metadata->offsets[2] = metadata->offsets[1] + metadata->sizes[1]; in virgl_get_emulated_metadata() 222 xfer_params->xfers_needed = 1; in virgl_get_emulated_transfers_params() [all …]
|
/external/autotest/client/tests/rmaptest/src/ |
D | rmap-test.c | 2 * Create lots of VMA's mapped by lots of tasks. To tickle objrmap and the 26 int vmas_to_do = -1; 45 exit(1); in open_file() 58 fprintf(stderr, " -sN: VMA size (pages)\n"); in usage() 62 exit(1); in usage() 91 int vma; in touch_random_pages() local 96 for (vma = 0; vma < vmas_to_do; vma++) { in touch_random_pages() 107 if (verbose > 1) in touch_random_pages() 108 printf("vma %d/%d done\n", vma, nvmas); in touch_random_pages() 116 sleep(1); in child() [all …]
|
/external/ltp/testcases/kernel/mem/vma/ |
D | vma01.c | 2 * vma01 - test not merging a VMA which cloned from parent process 7 * The cloned VMA shares the anon_vma lock with the parent process's 8 * VMA. If we do the merge, more vmas (even the new range is only 13 * This test program clones VMA and checks /proc/self/maps file, on 14 * an unpatched kernel, there is a single 6*ps VMA for the child 59 int TST_TOTAL = 1; 96 t = mmap(p, 3 * ps, PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in check_vma() 99 memset(t, 1, ps); in check_vma() 102 case -1: in check_vma() 107 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in check_vma() [all …]
|
D | vma05.sh | 4 # Regression test if the vsyscall and vdso VMA regions are reported correctly. 11 # vsyscall vma in /proc/*/maps). 13 # Second part of test checks [vdso] VMA permissions (fixed with commits 22 TST_NEEDS_ROOT=1 23 TST_NEEDS_TMPDIR=1 57 { vma05_vdso; } > /dev/null 2>&1
|
D | vma02.c | 5 * "Strangely, current mbind() doesn't merge vma with neighbor vma 6 * although it's possible. Unfortunately, many vma can reduce 50 int TST_TOTAL = 1; 76 node = SAFE_STRTOL(NULL, opt_nodestr, 1, LONG_MAX); in main() 78 err = get_allowed_nodes(NH_MEMS | NH_MEMS, 1, &node); in main() 127 tst_resm(TPASS, "only 1 VMA."); in main() 145 ">1 unmerged VMAs."); in main() 155 if (munmap(addr, pagesize * 3) == -1) in main()
|
/external/libchrome/base/debug/ |
D | proc_maps_linux.cc | 31 // Scans |proc_maps| starting from |pos| returning true if the gate VMA was 35 // The gate VMA on ARM kernels is the interrupt vectors page. in ContainsGateVMA() 38 // The gate VMA on x86 64-bit kernels is the virtual system call page. in ContainsGateVMA() 41 // Otherwise assume there is no gate VMA in which case we shouldn't in ContainsGateVMA() 79 // The gate VMA is handled as a special case after seq_file has finished in ReadProcMaps() 84 // entries including the gate VMA again. in ReadProcMaps() 86 // Avoid this by searching for the gate VMA and breaking early. in ReadProcMaps() 106 if (i == lines.size() - 1) { in ParseProcMaps() 144 if (permissions[1] == 'w') in ParseProcMaps() 146 else if (permissions[1] != '-') in ParseProcMaps()
|
/external/llvm-project/llvm/test/tools/llvm-objdump/ |
D | section-headers.test | 5 # RUN: yaml2obj %s --docnum=1 -o %t-whitespace.o 12 # WHITESPACE-NEXT: {{^}}Idx Name Size VMA LMA Type{{$}} 14 # WHITESPACE-NEXT: {{^}} 1 .text 00000000 0000000000000000 0000000000000000 TEXT{{$}} 20 # WHITESPACE-NO-LMA-NEXT: {{^}}Idx Name Size VMA Type{{$}} 22 # WHITESPACE-NO-LMA-NEXT: {{^}} 1 .text 00000000 0000000000000000 TEXT{{$}} 60 # NAME-13-NEXT: {{^}} 1 .foo 00000000 75 # NAME-14-NEXT: {{^}} 1 .foo 00000000 115 # 32: {{^}}Idx Name Size VMA LMA Type{{$}} 116 # 32: {{^}} 1 .foo 00000000 00000400 00000400 TEXT{{$}} 120 # 32-NO-LMA: {{^}}Idx Name Size VMA Type{{$}} [all …]
|
/external/arm-trusted-firmware/tools/renesas/rcar_layout_create/ |
D | makefile | 31 DEFINES += -D$(1)$(if $(value $(1)),=$(value $(1)),) 36 RCAR_SA0_SIZE := 1 41 RCAR_SA0_SIZE := 1 53 RCAR_SA6_TYPE := 1 58 # Handle different VMA adjustment on D3 100 …$(objcopy) -O srec --adjust-vma=$(RCAR_VMA_ADJUST_ADDR) --srec-forceS3 $(OUTPUT_FILE_SA0) $(FILE_… 101 …$(objcopy) -O binary --adjust-vma=$(RCAR_VMA_ADJUST_ADDR) --srec-forceS3 $(OUTPUT_FILE_SA0) $(FIL… 109 …$(objcopy) -O srec --adjust-vma=$(RCAR_VMA_ADJUST_ADDR) --srec-forceS3 $(OUTPUT_FILE_SA6) $(FILE_… 110 …$(objcopy) -O binary --adjust-vma=$(RCAR_VMA_ADJUST_ADDR) --srec-forceS3 $(OUTPUT_FILE_SA6) $(FIL…
|
/external/llvm-project/lld/wasm/ |
D | MapFile.cpp | 42 static void writeHeader(raw_ostream &os, int64_t vma, uint64_t lma, in writeHeader() argument 45 if (vma == -1) in writeHeader() 48 os << format("%8llx %8llx %8llx ", vma, lma, size); in writeHeader() 81 uint64_t vma = -1; in getSymbolStrings() local 84 vma = DD->getVirtualAddress(); in getSymbolStrings() 91 writeHeader(os, vma, fileOffset, size); in getSymbolStrings() 122 writeHeader(os, -1, osec->getOffset(), osec->getSize()); in writeMapFile() 126 writeHeader(os, -1, chunk->outputSec->getOffset() + chunk->outputOffset, in writeMapFile()
|
/external/linux-kselftest/tools/testing/selftests/vm/ |
D | mlock2-tests.c | 22 int ret = 1; in get_vm_area() 79 _exit(1); in get_pageflags() 86 _exit(1); in get_pageflags() 89 if (fread(&pfn, sizeof(pfn), 1, file) != 1) { in get_pageflags() 91 _exit(1); in get_pageflags() 106 _exit(1); in get_kpageflags() 111 _exit(1); in get_kpageflags() 114 if (fread(&flags, sizeof(flags), 1, file) != 1) { in get_kpageflags() 116 _exit(1); in get_kpageflags() 191 if (sscanf(value, "%lu kB", &vma_size) < 1) { in is_vma_lock_on_fault() [all …]
|
/external/llvm-project/llvm/test/tools/llvm-objdump/X86/ |
D | phdrs-lma2.test | 3 ## If there are no sections with different LMA to VMA, 8 # CHECK-NEXT: Idx Name Size VMA Type 10 # CHECK-NEXT: 1 .text 00000004 0000000000001000 TEXT 19 # LMA-NEXT: Idx Name Size VMA LMA Type 21 # LMA-NEXT: 1 .text 00000004 0000000000001000 0000000000001000 TEXT
|
D | adjust-vma.test | 3 # RUN: llvm-objdump --all-headers -D -z --adjust-vma=0x0 %t | FileCheck %s --check-prefixes=COMMON,… 4 # RUN: llvm-objdump --all-headers -D -z --adjust-vma=0x123000 %t | FileCheck %s --check-prefixes=CO… 7 # NOADJUST-NEXT: Idx Name Size VMA Type 9 # NOADJUST-NEXT: 1 .text 00000002 0000000000000000 TEXT 19 # ADJUST-NEXT: Idx Name Size VMA Type 21 # ADJUST-NEXT: 1 .text 00000002 0000000000123000 TEXT 38 # NOADJUST-NEXT: 1: {{.*}} retq
|
/external/arm-trusted-firmware/tools/renesas/rzg_layout_create/ |
D | makefile | 31 DEFINES += -D$(1)$(if $(value $(1)),=$(value $(1)),) 36 RCAR_SA0_SIZE := 1 41 RCAR_SA0_SIZE := 1 53 RCAR_SA6_TYPE := 1 97 …$(objcopy) -O srec --adjust-vma=$(RCAR_VMA_ADJUST_ADDR) --srec-forceS3 $(OUTPUT_FILE_SA0) $(FILE_… 98 …$(objcopy) -O binary --adjust-vma=$(RCAR_VMA_ADJUST_ADDR) --srec-forceS3 $(OUTPUT_FILE_SA0) $(FIL… 106 …$(objcopy) -O srec --adjust-vma=$(RCAR_VMA_ADJUST_ADDR) --srec-forceS3 $(OUTPUT_FILE_SA6) $(FILE_… 107 …$(objcopy) -O binary --adjust-vma=$(RCAR_VMA_ADJUST_ADDR) --srec-forceS3 $(OUTPUT_FILE_SA6) $(FIL…
|
/external/llvm-project/lld/ELF/ |
D | MapFile.cpp | 46 static void writeHeader(raw_ostream &os, uint64_t vma, uint64_t lma, in writeHeader() argument 49 os << format("%16llx %16llx %8llx %5lld ", vma, lma, size, align); in writeHeader() 51 os << format("%8llx %8llx %8llx %5lld ", vma, lma, size, align); in writeHeader() 91 uint64_t vma = syms[i]->getVA(); in getSymbolStrings() local 92 uint64_t lma = osec ? osec->getLMA() + vma - osec->getVA(0) : 0; in getSymbolStrings() 93 writeHeader(os, vma, lma, syms[i]->getSize(), 1); in getSymbolStrings() 136 p.size, 1); in printEhFrame() 163 os << right_justify("VMA", w) << ' ' << right_justify("LMA", w) in writeMapFile() 172 writeHeader(os, cmd->addr, lma, cmd->size, 1); in writeMapFile() 201 cmd->size, 1); in writeMapFile() [all …]
|
/external/llvm-project/compiler-rt/lib/tsan/rtl/ |
D | tsan_platform.h | 78 #define TSAN_MID_APP_RANGE 1 81 C/C++ on linux/mips64 (40-bit VMA) 116 #define TSAN_MID_APP_RANGE 1 119 C/C++ on Darwin/iOS/ARM64 (36-bit VMA, 64 GB VM) 150 // AArch64 supports multiple VMA which leads to multiple address transformation 157 C/C++ on linux/aarch64 (39-bit VMA) 192 C/C++ on linux/aarch64 (42-bit VMA) 247 #define TSAN_RUNTIME_VMA 1 249 #define TSAN_MID_APP_RANGE 1 251 // PPC64 supports multiple VMA which leads to multiple address transformation [all …]
|
/external/wpa_supplicant_8/src/utils/ |
D | trace.c | 26 #define DMGL_PARAMS (1 << 0) 27 #define DMGL_ANSI (1 << 1) 51 return 1; in callback() 59 os_snprintf(exe, sizeof(exe) - 1, "/proc/%u/exe", getpid()); in get_prg_fname() 60 len = readlink(exe, fname, sizeof(fname) - 1); in get_prg_fname() 164 bfd_vma vma; in find_addr_sect() local 173 vma = bfd_get_section_vma(abfd, section); in find_addr_sect() 174 if (data->pc < vma) in find_addr_sect() 178 if (data->pc >= vma + size) in find_addr_sect() 182 data->pc - vma, in find_addr_sect() [all …]
|
/external/llvm-project/llvm/test/MC/RISCV/ |
D | priv-invalid.s | 1 # RUN: not llvm-mc -triple riscv32 < %s 2>&1 | FileCheck %s 5 sfence.vma zero, a1, a2 # CHECK: :[[@LINE]]:22: error: invalid operand for instruction 7 sfence.vma a0, 0x10 # CHECK: :[[@LINE]]:16: error: invalid operand for instruction
|
/external/compiler-rt/test/tsan/ |
D | cond_cancel.c | 1 // RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s 4 // This test is failing on powerpc64 (VMA=44). After calling pthread_cancel, 10 // powerpc64 BE (VMA=46) 30 pthread_cleanup_pop(1); in thr1() 44 sleep(1); // let it block on cond var in main()
|