/external/ltp/testcases/kernel/syscalls/pkeys/ |
D | pkey01.c | 94 {PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1}, 95 {PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1}, 96 {PROT_WRITE, MAP_PRIVATE, 0}, 97 {PROT_WRITE, MAP_SHARED, 0}, 98 {PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE | MAP_HUGETLB, -1}, 99 {PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED | MAP_HUGETLB, -1}, 108 {PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1}, 109 {PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1}, 110 {PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE | MAP_HUGETLB, -1}, 111 {PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED | MAP_HUGETLB, -1}, [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
D | 5-1.c | 43 {.flags = MAP_SHARED,.prot = PROT_WRITE}, 45 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE}, 47 {.flags = MAP_SHARED,.prot = PROT_EXEC | PROT_WRITE}, 48 {.flags = MAP_SHARED,.prot = PROT_READ | PROT_WRITE | PROT_EXEC}, 52 {.flags = MAP_PRIVATE,.prot = PROT_WRITE}, 54 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_WRITE}, 56 {.flags = MAP_PRIVATE,.prot = PROT_EXEC | PROT_WRITE}, 57 {.flags = MAP_PRIVATE,.prot = PROT_READ | PROT_WRITE | PROT_EXEC}, 70 if (t->prot & PROT_WRITE) in print_error()
|
/external/igt-gpu-tools/tests/i915/ |
D | gem_gtt_speed.c | 145 uint32_t *base = gem_mmap__cpu(fd, handle, 0, size, PROT_READ | PROT_WRITE); 162 PROT_READ | PROT_WRITE); 180 PROT_READ | PROT_WRITE); 204 PROT_READ | PROT_WRITE); 220 PROT_READ | PROT_WRITE); 230 PROT_READ | PROT_WRITE); 258 uint32_t *base = gem_mmap__gtt(fd, handle, size, PROT_READ | PROT_WRITE); 273 uint32_t *base = gem_mmap__gtt(fd, handle, size, PROT_READ | PROT_WRITE); 292 uint32_t *base = gem_mmap__wc(fd, handle, 0, size, PROT_READ | PROT_WRITE); 309 uint32_t *base = gem_mmap__wc(fd, handle, 0, size, PROT_READ | PROT_WRITE); [all …]
|
D | gem_ctx_sseu.c | 261 page[0] = mmap(0, 4096, PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in test_invalid_args() 269 page[0] = mmap(0, 8192, PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in test_invalid_args() 273 PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_FIXED, -1, 0); in test_invalid_args() 277 PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_FIXED, -1, 0); in test_invalid_args() 287 page[0] = mmap(0, 8192, PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in test_invalid_args() 291 PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_FIXED, -1, 0); in test_invalid_args() 295 PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_FIXED, -1, 0); in test_invalid_args() 336 page[0] = mmap(0, 4096, PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in test_invalid_args() 344 page[0] = mmap(0, 8192, PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in test_invalid_args() 348 PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_FIXED, -1, 0); in test_invalid_args() [all …]
|
D | gem_mmap_gtt.c | 63 ptr = gem_mmap__gtt(fd, handle, OBJECT_SIZE, PROT_READ | PROT_WRITE); in mmap_bo() 99 igt_assert(mmap64(0, OBJECT_SIZE, PROT_READ | PROT_WRITE, in test_access() 103 igt_assert(mmap64(0, OBJECT_SIZE, PROT_READ | PROT_WRITE, in test_access() 114 igt_assert(mmap64(0, OBJECT_SIZE, PROT_READ | PROT_WRITE, in test_access() 131 w = mmap64(0, pages * PAGE_SIZE, PROT_READ | PROT_WRITE, in test_short() 181 ptr = gem_mmap__gtt(fd, handle, OBJECT_SIZE, PROT_READ | PROT_WRITE); in test_read_write() 206 w = gem_mmap__gtt(fd, handle, OBJECT_SIZE, PROT_READ | PROT_WRITE); in test_read_write2() 247 cpu = gem_mmap__cpu(fd, handle, 0, 4096, PROT_READ | PROT_WRITE); in test_wc() 252 gtt = gem_mmap__gtt(fd, handle, 4096, PROT_READ | PROT_WRITE); in test_wc() 316 ptr = gem_mmap__gtt(i915, spin->handle, 4096, PROT_WRITE); in test_pf_nonblock() [all …]
|
D | gem_mmap_wc.c | 63 ptr = __gem_mmap__wc(fd, handle, 0, OBJECT_SIZE, PROT_READ | PROT_WRITE); in local_gem_mmap__wc() 79 ptr = local_gem_mmap__wc(fd, handle, 0, OBJECT_SIZE, PROT_READ | PROT_WRITE); in mmap_bo() 197 w = local_gem_mmap__wc(fd, handle, 0, OBJECT_SIZE, PROT_READ | PROT_WRITE); in test_read_write2() 239 wc = local_gem_mmap__wc(fd, handle, 0, OBJECT_SIZE, PROT_READ | PROT_WRITE); in test_coherency() 240 cpu = gem_mmap__cpu(fd, handle, 0, OBJECT_SIZE, PROT_READ | PROT_WRITE); in test_coherency() 319 src = gem_mmap__cpu(fd, handle, 0, OBJECT_SIZE, PROT_WRITE); in test_write_cpu_read_wc() 342 src = gem_mmap__gtt(fd, handle, OBJECT_SIZE, PROT_WRITE); in test_write_gtt_read_wc() 455 ptr = gem_mmap__wc(i915, spin->handle, 0, 4096, PROT_WRITE); in test_pf_nonblock()
|
D | gem_streaming_writes.c | 86 PROT_READ | PROT_WRITE); in test_streaming() 90 PROT_READ | PROT_WRITE); in test_streaming() 94 PROT_READ | PROT_WRITE); in test_streaming() 150 base = gem_mmap__cpu(fd, batch[i].handle, 0, 4096, PROT_WRITE); in test_streaming() 252 s = gem_mmap__wc(fd, src, 0, OBJECT_SIZE, PROT_READ | PROT_WRITE); in test_batch() 282 PROT_READ | PROT_WRITE); in test_batch() 286 PROT_READ | PROT_WRITE); in test_batch() 290 PROT_READ | PROT_WRITE); in test_batch()
|
D | gem_exec_flush.c | 135 map = gem_mmap__wc(fd, obj[0].handle, 0, 4096, PROT_WRITE); in run() 142 map = gem_mmap__cpu(fd, obj[0].handle, 0, 4096, PROT_WRITE); in run() 178 PROT_WRITE | PROT_READ); in run() 212 PROT_WRITE | PROT_READ); in run() 386 map = gem_mmap__cpu(fd, obj[0].handle, 0, 4096, PROT_WRITE); in batch() 412 PROT_WRITE); in batch() 417 PROT_WRITE); in batch() 422 PROT_WRITE); in batch() 426 ptr = mmap(0, 64<<10, PROT_WRITE, in batch()
|
/external/igt-gpu-tools/benchmarks/ |
D | gem_mmap.c | 121 ptr = gem_mmap__cpu(fd, handle, 0, OBJECT_SIZE, PROT_WRITE); in main() 125 ptr = gem_mmap__gtt(fd, handle, OBJECT_SIZE, PROT_WRITE); in main() 129 ptr = gem_mmap__wc(fd, handle, 0, OBJECT_SIZE, PROT_WRITE); in main() 172 ptr = gem_mmap__cpu(fd, handle, 0, OBJECT_SIZE, PROT_WRITE); in main() 175 ptr = gem_mmap__gtt(fd, handle, OBJECT_SIZE, PROT_WRITE); in main() 178 ptr = gem_mmap__wc(fd, handle, 0, OBJECT_SIZE, PROT_WRITE); in main()
|
/external/strace/tests-m32/ |
D | old_mmap.c | 74 PROT_READ|PROT_WRITE, in main() 104 args2_c[1], PROT_READ|PROT_WRITE, MAP_PRIVATE, MAP_ANONYMOUS, in main() 110 args2_c[1], PROT_READ|PROT_WRITE, MAP_PRIVATE, MAP_ANONYMOUS, in main()
|
D | mmap.c | 74 p = mmap(addr, length1, PROT_READ | PROT_WRITE, in main() 81 name, addr, length1, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main() 87 name, addr, length1, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main()
|
/external/strace/tests/ |
D | old_mmap.c | 74 PROT_READ|PROT_WRITE, in main() 104 args2_c[1], PROT_READ|PROT_WRITE, MAP_PRIVATE, MAP_ANONYMOUS, in main() 110 args2_c[1], PROT_READ|PROT_WRITE, MAP_PRIVATE, MAP_ANONYMOUS, in main()
|
D | mmap.c | 74 p = mmap(addr, length1, PROT_READ | PROT_WRITE, in main() 81 name, addr, length1, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main() 87 name, addr, length1, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main()
|
/external/strace/tests-mx32/ |
D | old_mmap.c | 74 PROT_READ|PROT_WRITE, in main() 104 args2_c[1], PROT_READ|PROT_WRITE, MAP_PRIVATE, MAP_ANONYMOUS, in main() 110 args2_c[1], PROT_READ|PROT_WRITE, MAP_PRIVATE, MAP_ANONYMOUS, in main()
|
D | mmap.c | 74 p = mmap(addr, length1, PROT_READ | PROT_WRITE, in main() 81 name, addr, length1, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main() 87 name, addr, length1, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main()
|
/external/linux-kselftest/tools/testing/selftests/vm/ |
D | virtual_address_range.c | 89 PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in validate_lower_address_hint() 105 ptr[i] = mmap(NULL, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, in main() 121 hptr[i] = mmap(hint, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/mman_h/ |
D | 2-2-buildonly.c | 19 #ifndef PROT_WRITE 20 #error PROT_WRITE not defined
|
/external/compiler-rt/lib/profile/ |
D | WindowsMMap.c | 34 if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC)) in mmap() 43 if (prot & PROT_WRITE) { in mmap() 67 if (prot & PROT_WRITE) in mmap()
|
/external/libchrome/base/memory/ |
D | shared_memory_handle_android.cc | 92 return (prot >= 0 && (prot & PROT_WRITE) == 0); in IsRegionReadOnly() 101 if ((prot & PROT_WRITE) == 0) { in SetRegionReadOnly() 106 prot &= ~PROT_WRITE; in SetRegionReadOnly()
|
/external/autotest/client/tests/memory_api/ |
D | memory_api.c | 64 mem = mmap(0, memsize, PROT_READ | PROT_WRITE, in main() 89 PROT_READ | PROT_WRITE)) { in main() 136 mem = mmap(0, memsize, PROT_READ | PROT_WRITE, in main()
|
/external/igt-gpu-tools/tests/ |
D | prime_mmap_coherency.c | 72 ptr_gtt = gem_mmap__gtt(fd, bo_2->handle, width * height, PROT_READ | PROT_WRITE); in test_read_flush() 138 ptr_cpu = mmap(NULL, width * height, PROT_READ | PROT_WRITE, in test_write_flush() 158 ptr2_cpu = mmap(NULL, width * height, PROT_READ | PROT_WRITE, in test_write_flush() 203 ptr_cpu = mmap(NULL, width * height, PROT_READ | PROT_WRITE, in blit_and_cmp() 210 ptr2_cpu = mmap(NULL, width * height, PROT_READ | PROT_WRITE, in blit_and_cmp()
|
/external/ltp/testcases/kernel/controllers/memcg/functional/ |
D | memcg_process.c | 120 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_anon() 147 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_file() 171 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_lock1() 187 p = mmap(NULL, memsize, PROT_WRITE | PROT_READ, in mmap_lock2()
|
/external/compiler-rt/test/tsan/ |
D | java_heap_init.cc | 11 jptr jheap = (jptr)mmap(0, kHeapSize, PROT_READ | PROT_WRITE, in main() 17 jheap = (jptr)mmap((void*)jheap, kHeapSize, PROT_READ | PROT_WRITE, in main()
|
/external/linux-kselftest/tools/testing/selftests/powerpc/mm/ |
D | hugetlb_vs_thp_test.c | 18 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body() 34 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body()
|
/external/ltp/testcases/kernel/mem/mmapstress/ |
D | mmapstress03.c | 146 PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_FIXED | MAP_SHARED, in main() 168 PROT_READ | PROT_WRITE, in do_test() 176 PROT_READ | PROT_WRITE, in do_test()
|