/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
H A D | 1-2.c | 9 * The mmap() function shall establish a mapping 52 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() 54 printf("Error at mmap: %s\n", strerror(errno)); in main()
|
H A D | 24-1.c | 9 * The mmap() function shall fail if: 66 pa = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() 76 perror("Error at mmap()"); in main()
|
H A D | 31-1.c | 9 * The mmap() function shall fail if: 94 pa = mmap(NULL, len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, off); in main()
|
H A D | 6-1.c | 21 * 2. The child process mmap a memory region setting prot as PROT_READ. 73 pa = mmap(NULL, size, PROT_READ, MAP_SHARED, fd, 0); in main() 75 printf("Error at mmap: %s\n", strerror(errno)); in main()
|
H A D | 6-3.c | 22 * 2. The child process mmap a memory region setting prot as PROT_NONE. 68 pa = mmap(NULL, size, PROT_NONE, MAP_SHARED, fd, 0); in main() 70 printf("Error at mmap: %s\n", strerror(errno)); in main()
|
H A D | 6-4.c | 19 * 4. Get EACCES error when mmap(). 66 pa = mmap(NULL, size, PROT_WRITE, MAP_SHARED, fd, 0); in main()
|
/third_party/mesa3d/src/gallium/auxiliary/rtasm/ |
H A D | rtasm_execmem.c | 79 exec_mem = (unsigned char *) mmap(NULL, EXEC_HEAP_SIZE, in init_heap()
|
/third_party/musl/libc-test/src/functionalext/supplement/mman/ |
H A D | mincore.c | 49 void *start = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in mincore_0100()
|
/third_party/skia/third_party/externals/swiftshader/src/System/Linux/ |
H A D | MemFd.cpp | 107 void *addr = ::mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd_, in mapReadWrite()
|
/third_party/vixl/examples/aarch32/ |
H A D | examples.h | 49 buffer_(reinterpret_cast<byte*>(mmap(NULL, in ExecutableMemory()
|
/third_party/vixl/examples/aarch64/ |
H A D | executable-memory.h | 50 buffer_(reinterpret_cast<vixl::byte*>(mmap(NULL, in ExecutableMemory()
|
/third_party/skia/third_party/externals/expat/expat/xmlwf/ |
H A D | unixfilemap.c | 89 /* mmap fails for zero length files */ in filemap() 96 p = (void *)mmap((void *)0, (size_t)nbytes, PROT_READ, MAP_FILE | MAP_PRIVATE, in filemap()
|
/kernel/linux/linux-5.10/drivers/misc/habanalabs/common/ |
H A D | command_buffer.c | 356 * handle was given to user to do mmap, I need to shift it back to in hl_cb_destroy() 437 cb->mmap = false; in cb_vm_close() 456 * it before doing the mmap itself in hl_cb_mmap() 465 "CB mmap failed, no match to handle 0x%x\n", handle); in hl_cb_mmap() 473 "CB mmap failed, mmap size 0x%lx != 0x%x cb size\n", in hl_cb_mmap() 491 if (cb->mmap) { in hl_cb_mmap() 493 "CB mmap failed, CB already mmaped to user\n"); in hl_cb_mmap() 498 cb->mmap = true; in hl_cb_mmap() 515 cb->mmap in hl_cb_mmap() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_prime.c | 549 * drm_gem_dmabuf_vunmap(). Userspace mmap support is provided by 706 * drm_gem_prime_mmap - PRIME mmap function for GEM drivers 712 * The fake GEM offset is added to vma->vm_pgoff and &drm_driver->fops->mmap is 726 if (obj->funcs && obj->funcs->mmap) { in drm_gem_prime_mmap() 727 ret = obj->funcs->mmap(obj, vma); in drm_gem_prime_mmap() 750 ret = obj->dev->driver->fops->mmap(fil, vma); in drm_gem_prime_mmap() 762 * drm_gem_dmabuf_mmap - dma_buf mmap implementation for GEM 767 * &dma_buf_ops.mmap callback. It just forwards to &drm_driver.gem_prime_mmap, 771 * else but drm_gem_prime_mmap can roll their own &dma_buf_ops.mmap callback. 794 .mmap [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/etnaviv/ |
H A D | etnaviv_gem.c | 145 * in particular in the case of mmap'd dmabufs) in etnaviv_gem_mmap_obj() 160 return etnaviv_obj->ops->mmap(etnaviv_obj, vma); in etnaviv_gem_mmap() 208 dev_err(obj->dev->dev, "could not allocate mmap offset\n"); in etnaviv_gem_mmap_offset() 484 .mmap = etnaviv_gem_mmap_obj, 541 .mmap = etnaviv_gem_mmap, 706 .mmap = etnaviv_gem_userptr_mmap_obj,
|
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_prime.c | 549 * drm_gem_dmabuf_vunmap(). Userspace mmap support is provided by 708 * drm_gem_prime_mmap - PRIME mmap function for GEM drivers 714 * The fake GEM offset is added to vma->vm_pgoff and &drm_driver->fops->mmap is 726 if (obj->funcs && obj->funcs->mmap) { in drm_gem_prime_mmap() 730 ret = obj->funcs->mmap(obj, vma); in drm_gem_prime_mmap() 754 ret = obj->dev->driver->fops->mmap(fil, vma); in drm_gem_prime_mmap() 766 * drm_gem_dmabuf_mmap - dma_buf mmap implementation for GEM 771 * &dma_buf_ops.mmap callback. It just forwards to drm_gem_prime_mmap(). 790 .mmap = drm_gem_dmabuf_mmap,
|
/kernel/linux/linux-6.6/tools/perf/tests/shell/ |
H A D | test_intel_pt.sh | 116 mmap_cnt=$(perf script -i "${perfdatafile}" --no-itrace --show-mmap-events -C 1 2>/dev/null | grep -c MMAP) 228 print "More than 1 mmap for PID " pid 236 print "More than 1 mmap for CPU " cpu 242 print "No mmap for fd " fd 340 m = mmap(0, 4096, PROT_READ | PROT_EXEC, MAP_PRIVATE, fileno(f), 0); 382 void *addr = mmap(0, 4096, PROT_WRITE | PROT_EXEC, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); 426 perf script -i "${perfdatafile}" --itrace=e-o-l --show-mmap-events | cat
|
/third_party/node/deps/v8/tools/ |
H A D | ll_prof.py | 38 import mmap namespace 351 self.log = mmap.mmap(self.log_file.fileno(), 0, mmap.MAP_PRIVATE) 594 self.trace = mmap.mmap(self.trace_file.fileno(), 0, mmap.MAP_PRIVATE) 871 parser.add_option("--gc-fake-mmap", 873 help="gc fake mmap file [default: %default]")
|
/kernel/linux/linux-5.10/drivers/dma-buf/ |
H A D | dma-buf.c | 141 /* check if buffer supports mmap */ in dma_buf_mmap_internal() 142 if (!dmabuf->ops->mmap) in dma_buf_mmap_internal() 150 return dmabuf->ops->mmap(dmabuf, vma); in dma_buf_mmap_internal() 434 .mmap = dma_buf_mmap_internal, 1025 * interfaces, which might already support mmap'ing buffers. This is needed in 1029 * replace ION buffers mmap support was needed. 1031 * There is no special interfaces, userspace simply calls mmap on the dma-buf 1044 * - mmap dma-buf fd 1046 * to mmap area 3. SYNC_END ioctl. This can be repeated as often as you 1063 * use a different way to mmap [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/x86/ |
H A D | lam.c | 321 ptr = mmap((void *)test->addr, PAGE_SIZE, PROT_READ | PROT_WRITE, in handle_mmap() 399 void *sq_ptr = mmap(0, sring->ring_sz, PROT_READ | PROT_WRITE, in mmap_io_uring() 411 cq_ptr = mmap(0, cring->ring_sz, PROT_READ | PROT_WRITE, in mmap_io_uring() 429 s->sq_ring.queue.sqes = mmap(0, p.sq_entries * sizeof(struct io_uring_sqe), in mmap_io_uring() 435 ksft_print_msg("failed to mmap uring queue!"); in mmap_io_uring() 895 .msg = "MMAP: First mmap high address, then set LAM_U57.\n", 953 printf("\t\t0x1:malloc; 0x2:max_bits; 0x4:mmap; 0x8:syscall; 0x10:io_uring; 0x20:inherit;\n"); in cmd_help() 1061 wq = mmap(NULL, 0x1000, PROT_WRITE, in allocate_dsa_pasid() 1064 perror("mmap"); in allocate_dsa_pasid()
|
/drivers/peripheral/codec/test/demo/heif/src/ |
H A D | buffer_helper.cpp | 186 void *addr = mmap(nullptr, totalSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in CreateSharedBuffer() 217 void *addr = mmap(nullptr, buffer.filledLen, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); 288 void *addr = mmap(nullptr, totalSize_, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in Finalize()
|
/kernel/linux/linux-5.10/arch/parisc/kernel/ |
H A D | cache.c | 525 for (vma = mm->mmap; vma; vma = vma->vm_next) in mm_total_size() 564 for (vma = mm->mmap; vma; vma = vma->vm_next) { in flush_cache_mm() 574 for (vma = mm->mmap; vma; vma = vma->vm_next) { in flush_cache_mm()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | tcp_mmap.c | 6 * Reference program demonstrating tcp mmap() usage, 9 * Note : NIC with header split is needed to use mmap() on TCP : 24 * We might use sendfile() instead, but really this test program is about mmap(), for receivers ;) 26 * $ ./tcp_mmap -s & # Without mmap() 28 * received 32768 MB (0 % mmap'ed) in 14.1157 s, 19.4732 Gbit 30 * received 32768 MB (0 % mmap'ed) in 14.6833 s, 18.7204 Gbit 32 * received 32768 MB (0 % mmap'ed) in 11.143 s, 24.6682 Gbit 34 * received 32768 MB (0 % mmap'ed) in 14.9056 s, 18.4413 Gbit 38 * $ ./tcp_mmap -s -z & # With mmap() 40 * received 32768 MB (99.9939 % mmap'e [all...] |
/kernel/linux/linux-5.10/sound/core/ |
H A D | hwdep.c | 258 if (hw->ops.mmap) in snd_hwdep_mmap() 259 return hw->ops.mmap(hw, file, vma); in snd_hwdep_mmap() 337 .mmap = snd_hwdep_mmap,
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | code-reading.c | 13 #include <perf/mmap.h> 28 #include "util/mmap.h" 424 struct mmap *md; in process_events() 428 md = &evlist->mmap[i]; in process_events()
|