/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()
|
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/osal/ |
H A D | osal_device.c | 392 if (fops->mmap != NULL) { in osal_mmap() 393 ret = fops->mmap(&osal_vm, vm->vm_start, vm->vm_end, vm->vm_pgoff, (void *)&(fileops_node->private_data)); in osal_mmap() 408 .mmap = osal_mmap,
|
/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()
|
/kernel/linux/linux-5.10/tools/io_uring/ |
H A D | io_uring-bench.c | 432 ptr = mmap(0, p.sq_off.array + p.sq_entries * sizeof(__u32), in setup_ring() 444 s->sqes = mmap(0, p.sq_entries * sizeof(struct io_uring_sqe), in setup_ring() 449 ptr = mmap(0, p.cq_off.cqes + p.cq_entries * sizeof(struct io_uring_cqe), in setup_ring()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | evlist.h | 63 struct mmap *mmap; member 64 struct mmap *overwrite_mmap;
|
/kernel/linux/linux-6.6/tools/lib/perf/ |
H A D | mmap.c | 9 #include <perf/mmap.h> 12 #include <internal/mmap.h> 40 map->base = mmap(NULL, perf_mmap__mmap_len(map), mp->prot, in perf_mmap__mmap() 157 WARN_ONCE(1, "failed to keep up with mmap data. (warn only once)\n"); in __perf_mmap__read_init() 221 * Event straddles the mmap boundary -- header should always in perf_mmap__read()
|
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | code-reading.c | 13 #include <perf/mmap.h> 27 #include "util/mmap.h" 425 struct mmap *md; in process_events() 429 md = &evlist->mmap[i]; in process_events()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | evlist.h | 65 struct mmap *mmap; member 66 struct mmap *overwrite_mmap;
|
H A D | session.c | 58 decomp = mmap(NULL, mmap_len, PROT_READ|PROT_WRITE, in perf_session__process_compressed_event() 482 if (tool->mmap == NULL) in perf_tool__fill_defaults() 483 tool->mmap = process_event_stub; in perf_tool__fill_defaults() 594 event->mmap.pid = bswap_32(event->mmap.pid); in perf_event__mmap_swap() 595 event->mmap.tid = bswap_32(event->mmap.tid); in perf_event__mmap_swap() 596 event->mmap.start = bswap_64(event->mmap.start); in perf_event__mmap_swap() 597 event->mmap in perf_event__mmap_swap() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | io_uring_zerocopy_tx.c | 176 ptr = mmap(0, sq->ring_sz, PROT_READ | PROT_WRITE, in io_uring_mmap() 189 sq->sqes = mmap(0, size, PROT_READ | PROT_WRITE, in io_uring_mmap() 199 ptr = mmap(0, cq->ring_sz, PROT_READ | PROT_WRITE, in io_uring_mmap()
|
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-6.6/sound/core/ |
H A D | hwdep.c | 259 if (hw->ops.mmap) in snd_hwdep_mmap() 260 return hw->ops.mmap(hw, file, vma); in snd_hwdep_mmap() 338 .mmap = snd_hwdep_mmap,
|
/kernel/linux/linux-6.6/tools/testing/selftests/dmabuf-heaps/ |
H A D | dmabuf-heap.c | 161 /* mmap and write a simple pattern */ in test_alloc_and_import() 162 p = mmap(NULL, in test_alloc_and_import() 169 printf("FAIL (mmap() failed)\n"); in test_alloc_and_import() 239 /* mmap and fill with simple pattern */ in test_alloc_zeroed() 240 p = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, dmabuf_fd[i], 0); in test_alloc_zeroed() 242 printf("FAIL (mmap() failed!)\n"); in test_alloc_zeroed() 263 /* mmap and validate everything is zero */ in test_alloc_zeroed() 264 p = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, dmabuf_fd[i], 0); in test_alloc_zeroed() 266 printf("FAIL (mmap() failed!)\n"); in test_alloc_zeroed()
|
/third_party/elfutils/src/ |
H A D | strings.c | 455 /* Maximum size we mmap. We use an #ifdef to avoid overflows on in map_file() 465 /* Try to mmap the file. */ in map_file() 475 mem = mmap (NULL, map_size, PROT_READ, MAP_PRIVATE | MAP_POPULATE, in map_file() 597 if (mmap (elfmap, elfmap_size, PROT_READ, in read_block() 600 error_exit (errno, _("re-mmap failed")); in read_block() 661 if (mmap (remap_base, read_now, PROT_READ, in read_block() 664 error_exit (errno, _("re-mmap failed")); in read_block()
|
/third_party/backends/backend/ |
H A D | pieusb_buffer.c | 193 buffer->data = mmap(NULL, buffer_size_bytes, PROT_WRITE | PROT_READ, MAP_SHARED, buffer->data_file, 0); in sanei_pieusb_buffer_create() 201 #error mmap(2) not available, aborting in sanei_pieusb_buffer_create() 241 #error mmap(2) not available, aborting in sanei_pieusb_buffer_delete()
|
/third_party/mesa3d/src/drm-shim/ |
H A D | drm_shim.c | 72 REAL_FUNCTION_POINTER(mmap); variable 213 GET_FUNCTION_POINTER(mmap); in init_shim() 709 mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset) in mmap() function
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | shm.c | 128 if ((m->ptr = mmap(NULL, m->size, PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, -1, (off_t) 0)) == MAP_FAILED) { in privatemem_create() 129 pa_log_error("mmap() failed: %s", pa_cstrerror(errno)); in privatemem_create() 196 if ((m->ptr = mmap(NULL, PA_PAGE_ALIGN(m->size), PROT_READ|PROT_WRITE, MAP_SHARED|MAP_NORESERVE, fd, (off_t) 0)) == MAP_FAILED) { in sharedmem_create() 197 pa_log_error("mmap() failed: %s", pa_cstrerror(errno)); in sharedmem_create() 400 if ((m->ptr = mmap(NULL, PA_PAGE_ALIGN(st.st_size), prot, MAP_SHARED, fd, (off_t) 0)) == MAP_FAILED) { in shm_attach() 401 pa_log_error("mmap() failed: %s", pa_cstrerror(errno)); in shm_attach()
|
/third_party/python/Lib/test/ |
H A D | audit-tests.py | 266 import mmap namespace 269 mmap.mmap(-1, 8)
|
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/ |
H A D | pci.c | 53 return readb(rtwpci->mmap + addr); in rtw_pci_read8() 60 return readw(rtwpci->mmap + addr); in rtw_pci_read16() 67 return readl(rtwpci->mmap + addr); in rtw_pci_read32() 74 writeb(val, rtwpci->mmap + addr); in rtw_pci_write8() 81 writew(val, rtwpci->mmap + addr); in rtw_pci_write16() 88 writel(val, rtwpci->mmap + addr); in rtw_pci_write32() 1108 rtwpci->mmap = pci_iomap(pdev, bar_id, len); in rtw_pci_io_mapping() 1109 if (!rtwpci->mmap) { in rtw_pci_io_mapping() 1123 if (rtwpci->mmap) { in rtw_pci_io_unmapping() 1124 pci_iounmap(pdev, rtwpci->mmap); in rtw_pci_io_unmapping() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtw88/ |
H A D | pci.c | 54 return readb(rtwpci->mmap + addr); in rtw_pci_read8() 61 return readw(rtwpci->mmap + addr); in rtw_pci_read16() 68 return readl(rtwpci->mmap + addr); in rtw_pci_read32() 75 writeb(val, rtwpci->mmap + addr); in rtw_pci_write8() 82 writew(val, rtwpci->mmap + addr); in rtw_pci_write16() 89 writel(val, rtwpci->mmap + addr); in rtw_pci_write32() 1212 rtwpci->mmap = pci_iomap(pdev, bar_id, len); in rtw_pci_io_mapping() 1213 if (!rtwpci->mmap) { in rtw_pci_io_mapping() 1227 if (rtwpci->mmap) { in rtw_pci_io_unmapping() 1228 pci_iounmap(pdev, rtwpci->mmap); in rtw_pci_io_unmapping() [all...] |
/foundation/resourceschedule/ffrt/src/util/ |
H A D | slab.h | 222 char* p = reinterpret_cast<char*>(mmap(nullptr, MmapSz, prot, flags, -1, 0)); in expand() 226 p = reinterpret_cast<char*>(mmap(nullptr, MmapSz, prot, flags, -1, 0)); in expand() 229 perror("mmap"); in expand()
|