Home
last modified time | relevance | path

Searched refs:PROT_WRITE (Results 1 – 25 of 659) sorted by relevance

12345678910>>...27

/external/ltp/testcases/kernel/syscalls/pkeys/
Dpkey01.c94 {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/
D5-1.c43 {.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/
Dgem_gtt_speed.c145 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 …]
Dgem_ctx_sseu.c261 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 …]
Dgem_mmap_gtt.c63 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 …]
Dgem_mmap_wc.c63 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()
Dgem_streaming_writes.c86 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()
Dgem_exec_flush.c135 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/
Dgem_mmap.c121 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/
Dold_mmap.c74 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()
Dmmap.c74 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/
Dold_mmap.c74 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()
Dmmap.c74 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/
Dold_mmap.c74 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()
Dmmap.c74 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/
Dvirtual_address_range.c89 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/
D2-2-buildonly.c19 #ifndef PROT_WRITE
20 #error PROT_WRITE not defined
/external/compiler-rt/lib/profile/
DWindowsMMap.c34 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/
Dshared_memory_handle_android.cc92 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/
Dmemory_api.c64 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/
Dprime_mmap_coherency.c72 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/
Dmemcg_process.c120 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/
Djava_heap_init.cc11 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/
Dhugetlb_vs_thp_test.c18 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/
Dmmapstress03.c146 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()

12345678910>>...27