Searched refs:mmap (Results 1 - 200 of 868) sorted by relevance

12345

/linux-4.4.14/fs/romfs/
H A DMakefile10 romfs-$(CONFIG_ROMFS_ON_MTD) += mmap-nommu.o
H A Dmmap-nommu.c1 /* NOMMU mmap support for RomFS on MTD devices
86 .mmap = romfs_mmap,
H A Dinternal.h31 * mmap-nommu.c
/linux-4.4.14/arch/tile/mm/
H A DMakefile6 mmap.o homecache.o migrate_$(BITS).o
H A Dmmap.c25 * Top of mmap area (just below the process stack).
H A Delf.c64 for (vma = current->mm->mmap; ; vma = vma->vm_next) { notify_exec()
/linux-4.4.14/fs/ecryptfs/
H A DMakefile7 ecryptfs-y := dentry.o file.o inode.o main.o super.o mmap.o read_write.o \
/linux-4.4.14/arch/mn10300/include/uapi/asm/
H A Dmman.h3 #define MIN_MAP_ADDR PAGE_SIZE /* minimum fixed mmap address */
/linux-4.4.14/arch/arm64/mm/
H A DMakefile3 ioremap.o mmap.o pgd.o mmu.o \
H A Dmmap.c2 * Based on arch/arm/mm/mmap.c
33 * Leave enough space between the mmap area and the stack to honour ulimit in
/linux-4.4.14/arch/s390/mm/
H A DMakefile5 obj-y := init.o fault.o extmem.o mmap.o vmem.o pgtable.o maccess.o
H A Dmmap.c2 * flexible mmap layout support
44 * Top of mmap area (just below the process stack).
154 * A failed mmap() very likely causes application failure, arch_get_unmapped_area_topdown()
156 * can happen with large stack limits and large mmap() arch_get_unmapped_area_topdown()
/linux-4.4.14/tools/testing/selftests/powerpc/mm/
H A Dhugetlb_vs_thp_test.c17 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, test_body()
21 * Typically the mmap will fail because no huge pages are test_body()
23 * allocated the mmap will succeed. That's fine too, we just test_body()
33 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, test_body()
37 perror("mmap"); test_body()
/linux-4.4.14/tools/testing/selftests/vm/
H A Don-fault-limit.c28 map = mmap(NULL, 2 * lims.rlim_max, PROT_READ | PROT_WRITE, test_limit()
31 printf("mmap should have failed, but didn't\n"); test_limit()
H A DMakefile5 BINARIES += hugepage-mmap
H A Dhugepage-mmap.c2 * hugepage-mmap:
4 * Example of using huge page memory in a user application using the mmap
75 addr = mmap(ADDR, LENGTH, PROTECTION, FLAGS, fd, 0); main()
77 perror("mmap"); main()
H A Dmap_hugetlb.c2 * Example of using hugepage memory in a user application using the mmap
65 addr = mmap(ADDR, LENGTH, PROTECTION, FLAGS, 0, 0); main()
67 perror("mmap"); main()
H A Dtranshuge-stress.c35 if (mmap(ptr, HPAGE_SIZE, PROT_READ | PROT_WRITE, allocate_transhuge()
38 errx(2, "mmap transhuge"); allocate_transhuge()
89 ptr = mmap(NULL, len + HPAGE_SIZE, PROT_READ | PROT_WRITE, main()
92 err(2, "initial mmap"); main()
H A Dmlock2-tests.c356 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, test_mlock_lock()
359 perror("test_mlock_locked mmap"); test_mlock_lock()
465 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, test_mlock_onfault()
468 perror("test_mlock_locked mmap"); test_mlock_onfault()
508 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, test_lock_onfault_of_present()
511 perror("test_mlock_locked mmap"); test_lock_onfault_of_present()
555 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, test_munlockall()
559 perror("test_munlockall mmap"); test_munlockall()
581 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, test_munlockall()
585 perror("test_munlockall second mmap"); test_munlockall()
636 map = mmap(NULL, 3 * page_size, PROT_READ | PROT_WRITE, test_vma_management()
639 perror("mmap()"); test_vma_management()
H A Dthuge-gen.c1 /* Test selecting other page sizes for mmap/shmget.
146 map = mmap(NULL, size*NUM_PAGES, PROT_READ|PROT_WRITE, test_mmap()
149 if (map == (char *)-1) err("mmap"); test_mmap()
235 printf("Testing %luMB mmap with shift %x\n", ps >> 20, arg); main()
238 printf("Testing default huge mmap\n"); main()
/linux-4.4.14/drivers/staging/rdma/hfi1/
H A DMakefile11 init.o intr.o keys.o mad.o mmap.o mr.o pcie.o pio.o pio_copy.o \
H A Dmmap.c61 * hfi1_release_mmap_info - free mmap info structure
102 * hfi1_mmap - create a new mmap region
103 * @context: the IB user context of the process making the mmap() call
105 * Return zero if the mmap is OK. Otherwise, return an errno.
116 * Search the device's list of objects waiting for a mmap call. hfi1_mmap()
118 * CQ, QP, or SRQ is soon followed by a call to mmap(). hfi1_mmap()
123 /* Only the creator is allowed to mmap the object */ hfi1_mmap()
126 /* Don't allow a mmap larger than the object. */ hfi1_mmap()
H A Dsrq.c160 * Return the address of the RWQ as the offset to mmap. hfi1_create_srq()
258 /* Check that we can write the offset to mmap. */ hfi1_modify_srq()
330 * Return the offset to mmap. hfi1_modify_srq()
H A Dcq.c259 * We need to use vmalloc() in order to support mmap and large hfi1_create_cq()
274 * Return the address of the WC as the offset to mmap. hfi1_create_cq()
433 /* Check that we can write the offset to mmap. */ hfi1_resize_cq()
487 * Return the offset to mmap. hfi1_resize_cq()
/linux-4.4.14/arch/arc/kernel/
H A Darc_hostlink.c28 pr_warn("Hostlink buffer mmap ERROR\n"); arc_hl_mmap()
37 /* we only support, returning the physical addr to mmap in user space */ arc_hl_ioctl()
44 .mmap = arc_hl_mmap,
55 pr_info("ARC Hostlink driver mmap at 0x%p\n", __HOSTLINK__); arc_hl_init()
/linux-4.4.14/arch/arc/mm/
H A DMakefile10 obj-y += tlb.o tlbex.o cache.o mmap.o
H A Dmmap.c2 * ARC700 mmap
/linux-4.4.14/fs/ncpfs/
H A DMakefile7 ncpfs-y := dir.o file.o inode.o ioctl.o mmap.o ncplib_kernel.o sock.o \
H A Dmmap.c2 * mmap.c
26 * Fill in the supplied page for mmap
103 /* This is used for a general mmap of a ncp file */ ncp_mmap()
H A Dncp_fs.h94 /* linux/fs/ncpfs/mmap.c */
/linux-4.4.14/tools/testing/selftests/memfd/
H A Dmemfd_test.c152 p = mmap(NULL, mfd_assert_mmap_shared()
159 printf("mmap() failed: %m\n"); mfd_assert_mmap_shared()
170 p = mmap(NULL, mfd_assert_mmap_private()
177 printf("mmap() failed: %m\n"); mfd_assert_mmap_private()
225 p = mmap(NULL, mfd_assert_read()
232 printf("mmap() failed: %m\n"); mfd_assert_read()
238 p = mmap(NULL, mfd_assert_read()
245 printf("mmap() failed: %m\n"); mfd_assert_read()
265 p = mmap(NULL, mfd_assert_write()
272 printf("mmap() failed: %m\n"); mfd_assert_write()
279 p = mmap(NULL, mfd_assert_write()
286 printf("mmap() failed: %m\n"); mfd_assert_write()
294 p = mmap(NULL, mfd_assert_write()
301 printf("mmap() failed: %m\n"); mfd_assert_write()
339 p = mmap(NULL, mfd_fail_write()
346 printf("mmap() didn't fail as expected\n"); mfd_fail_write()
351 p = mmap(NULL, mfd_fail_write()
358 printf("mmap() didn't fail as expected\n"); mfd_fail_write()
363 * allowed. Note that for r/w the kernel already prevents the mmap. */ mfd_fail_write()
364 p = mmap(NULL, mfd_fail_write()
373 printf("mmap()+mprotect() didn't fail as expected\n"); mfd_fail_write()
768 * Test sealing with active mmap()s
769 * Modifying seals is only allowed if no other mmap() refs exist.
H A Dfuse_test.c128 p = mmap(NULL, mfd_assert_mmap_shared()
135 printf("mmap() failed: %m\n"); mfd_assert_mmap_shared()
146 p = mmap(NULL, mfd_assert_mmap_private()
153 printf("mmap() failed: %m\n"); mfd_assert_mmap_private()
254 /* mmap memfd-object for writing */ main()
/linux-4.4.14/drivers/staging/rdma/ipath/
H A Dipath_mmap.c43 * ipath_release_mmap_info - free mmap info structure
84 * ipath_mmap - create a new mmap region
85 * @context: the IB user context of the process making the mmap() call
87 * Return zero if the mmap is OK. Otherwise, return an errno.
98 * Search the device's list of objects waiting for a mmap call. ipath_mmap()
100 * CQ, QP, or SRQ is soon followed by a call to mmap(). ipath_mmap()
105 /* Only the creator is allowed to mmap the object */ ipath_mmap()
108 /* Don't allow a mmap larger than the object. */ ipath_mmap()
H A Dipath_debug.h58 /* print mmap/fault stuff, not using VDBG any more */
85 /* print mmap/fault stuff, not using VDBG any more */
H A Dipath_srq.c146 * Return the address of the RWQ as the offset to mmap. ipath_create_srq()
245 /* Check that we can write the offset to mmap. */ ipath_modify_srq()
317 * Return the offset to mmap. ipath_modify_srq()
H A Dipath_cq.c231 * We need to use vmalloc() in order to support mmap and large ipath_create_cq()
246 * Return the address of the WC as the offset to mmap. ipath_create_cq()
404 /* Check that we can write the offset to mmap. */ ipath_resize_cq()
458 * Return the offset to mmap. ipath_resize_cq()
/linux-4.4.14/drivers/infiniband/hw/qib/
H A Dqib_mmap.c43 * qib_release_mmap_info - free mmap info structure
84 * qib_mmap - create a new mmap region
85 * @context: the IB user context of the process making the mmap() call
87 * Return zero if the mmap is OK. Otherwise, return an errno.
98 * Search the device's list of objects waiting for a mmap call. qib_mmap()
100 * CQ, QP, or SRQ is soon followed by a call to mmap(). qib_mmap()
105 /* Only the creator is allowed to mmap the object */ qib_mmap()
108 /* Don't allow a mmap larger than the object. */ qib_mmap()
H A Dqib_srq.c143 * Return the address of the RWQ as the offset to mmap. qib_create_srq()
241 /* Check that we can write the offset to mmap. */ qib_modify_srq()
313 * Return the offset to mmap. qib_modify_srq()
H A Dqib_cq.c246 * We need to use vmalloc() in order to support mmap and large qib_create_cq()
261 * Return the address of the WC as the offset to mmap. qib_create_cq()
420 /* Check that we can write the offset to mmap. */ qib_resize_cq()
474 * Return the offset to mmap. qib_resize_cq()
/linux-4.4.14/include/uapi/linux/
H A Dpci.h37 #define PCIIOC_MMAP_IS_IO (PCIIOC_BASE | 0x01) /* Set mmap state to I/O space. */
38 #define PCIIOC_MMAP_IS_MEM (PCIIOC_BASE | 0x02) /* Set mmap state to MEM space. */
H A Dmmtimer.h42 * Returns nonzero if the registers can be mmap'd into userspace, 0 otherwise
H A Dperf_event.h307 mmap : 1, /* include mmap data */ member in struct:perf_event_attr
325 mmap_data : 1, /* non-exec mmap data */
333 mmap2 : 1, /* include mmap with inode data */
404 * Structure of the page that can be mapped via mmap
527 * Control data for the mmap() data buffer.
553 * prior to mmap()ing it. Size of the mmap()ed area should be aux_size.
H A Dagpgart.h82 int prot; /* prot flags for mmap */
/linux-4.4.14/fs/adfs/
H A Dfile.c27 .mmap = generic_file_mmap,
/linux-4.4.14/fs/ocfs2/
H A DMakefile29 mmap.o \
H A Dmmap.c4 * mmap.c
6 * Code to deal with the mess that is clustered mmap.
42 #include "mmap.h"
/linux-4.4.14/arch/um/kernel/
H A Dtlb.c27 } mmap; member in union:host_vm_change::host_vm_op::__anon2956
70 ret = map(hvc->id, op->u.mmap.addr, op->u.mmap.len, do_ops()
71 op->u.mmap.prot, op->u.mmap.fd, do_ops()
72 op->u.mmap.offset, finished, &hvc->data); do_ops()
108 (last->u.mmap.addr + last->u.mmap.len == virt) && add_mmap()
109 (last->u.mmap.prot == prot) && (last->u.mmap.fd == fd) && add_mmap()
110 (last->u.mmap.offset + last->u.mmap.len == offset)) { add_mmap()
111 last->u.mmap.len += len; add_mmap()
123 .u = { .mmap = { .addr = virt, add_mmap()
144 (last->u.munmap.addr + last->u.mmap.len == addr)) { add_munmap()
541 struct vm_area_struct *vma = mm->mmap; flush_tlb_mm()
552 struct vm_area_struct *vma = mm->mmap; force_flush_all()
/linux-4.4.14/arch/x86/mm/
H A DMakefile1 obj-y := init.o init_$(BITS).o fault.o ioremap.o extable.o pageattr.o mmap.o \
H A Dmmap.c2 * Flexible mmap layout support
50 * Top of mmap area (just below the process stack).
H A Dhugetlbpage.c108 * A failed mmap() very likely causes application failure, hugetlb_get_unmapped_area_topdown()
110 * can happen with large stack limits and large mmap() hugetlb_get_unmapped_area_topdown()
/linux-4.4.14/fs/minix/
H A Dfile.c19 .mmap = generic_file_mmap,
/linux-4.4.14/fs/ufs/
H A Dfile.c40 .mmap = generic_file_mmap,
/linux-4.4.14/arch/powerpc/mm/
H A Dmmap.c2 * flexible mmap layout support
31 * Top of mmap area (just below the process stack).
36 * space our mmap start address by a further 1GB, otherwise there is a
37 * chance the mmap area will end up closer to the stack than our ulimit
H A DMakefile9 obj-y := fault.o mem.o pgtable.o mmap.o \
/linux-4.4.14/tools/perf/util/
H A Devent.c331 event->mmap2.len -= event->mmap.start; perf_event__synthesize_mmap_events()
360 union perf_event *event = zalloc((sizeof(event->mmap) + perf_event__synthesize_modules()
363 pr_debug("Not enough memory synthesizing mmap event " perf_event__synthesize_modules()
386 event->mmap.header.type = PERF_RECORD_MMAP; perf_event__synthesize_modules()
387 event->mmap.header.size = (sizeof(event->mmap) - perf_event__synthesize_modules()
388 (sizeof(event->mmap.filename) - size)); perf_event__synthesize_modules()
389 memset(event->mmap.filename + size, 0, machine->id_hdr_size); perf_event__synthesize_modules()
390 event->mmap.header.size += machine->id_hdr_size; perf_event__synthesize_modules()
391 event->mmap.start = pos->start; perf_event__synthesize_modules()
392 event->mmap.len = pos->end - pos->start; perf_event__synthesize_modules()
393 event->mmap.pid = machine->pid; perf_event__synthesize_modules()
395 memcpy(event->mmap.filename, pos->dso->long_name, perf_event__synthesize_modules()
498 mmap_event = malloc(sizeof(mmap_event->mmap) + machine->id_hdr_size); perf_event__synthesize_thread_map()
572 mmap_event = malloc(sizeof(mmap_event->mmap) + machine->id_hdr_size); perf_event__synthesize_threads()
666 event = zalloc((sizeof(event->mmap) + machine->id_hdr_size)); perf_event__synthesize_kernel_mmap()
668 pr_debug("Not enough memory synthesizing mmap event " perf_event__synthesize_kernel_mmap()
685 size = snprintf(event->mmap.filename, sizeof(event->mmap.filename), perf_event__synthesize_kernel_mmap()
688 event->mmap.header.type = PERF_RECORD_MMAP; perf_event__synthesize_kernel_mmap()
689 event->mmap.header.size = (sizeof(event->mmap) - perf_event__synthesize_kernel_mmap()
690 (sizeof(event->mmap.filename) - size) + machine->id_hdr_size); perf_event__synthesize_kernel_mmap()
691 event->mmap.pgoff = kmap->ref_reloc_sym->addr; perf_event__synthesize_kernel_mmap()
692 event->mmap.start = map->start; perf_event__synthesize_kernel_mmap()
693 event->mmap.len = map->end - event->mmap.start; perf_event__synthesize_kernel_mmap()
694 event->mmap.pid = machine->pid; perf_event__synthesize_kernel_mmap()
765 event->mmap.pid, event->mmap.tid, event->mmap.start, perf_event__fprintf_mmap()
766 event->mmap.len, event->mmap.pgoff, perf_event__fprintf_mmap()
768 event->mmap.filename); perf_event__fprintf_mmap()
H A Dtool.h40 event_op mmap, member in struct:perf_tool
H A Dzlib.c36 ptr = mmap(NULL, stbuf.st_size, PROT_READ, MAP_PRIVATE, input_fd, 0); gzip_decompress_to_file()
H A Devlist.c111 zfree(&evlist->mmap); perf_evlist__exit()
499 * close the associated evlist->mmap[] entry. __perf_evlist__add_pollfd()
714 struct perf_mmap *md = &evlist->mmap[idx]; perf_evlist__mmap_read()
738 fprintf(stderr, "WARNING: failed to keep up with mmap data.\n"); perf_evlist__mmap_read()
754 * Event straddles the mmap boundary -- header should always perf_evlist__mmap_read()
788 atomic_inc(&evlist->mmap[idx].refcnt); perf_evlist__mmap_get()
793 BUG_ON(atomic_read(&evlist->mmap[idx].refcnt) == 0); perf_evlist__mmap_put()
795 if (atomic_dec_and_test(&evlist->mmap[idx].refcnt)) perf_evlist__mmap_put()
801 struct perf_mmap *md = &evlist->mmap[idx]; perf_evlist__mmap_consume()
843 if (evlist->mmap[idx].base != NULL) { __perf_evlist__munmap()
844 munmap(evlist->mmap[idx].base, evlist->mmap_len); __perf_evlist__munmap()
845 evlist->mmap[idx].base = NULL; __perf_evlist__munmap()
846 atomic_set(&evlist->mmap[idx].refcnt, 0); __perf_evlist__munmap()
848 auxtrace_mmap__munmap(&evlist->mmap[idx].auxtrace_mmap); __perf_evlist__munmap()
855 if (evlist->mmap == NULL) perf_evlist__munmap()
861 zfree(&evlist->mmap); perf_evlist__munmap()
869 evlist->mmap = zalloc(evlist->nr_mmaps * sizeof(struct perf_mmap)); perf_evlist__alloc_mmap()
870 return evlist->mmap != NULL ? 0 : -ENOMEM; perf_evlist__alloc_mmap()
895 atomic_set(&evlist->mmap[idx].refcnt, 2); __perf_evlist__mmap()
896 evlist->mmap[idx].prev = 0; __perf_evlist__mmap()
897 evlist->mmap[idx].mask = mp->mask; __perf_evlist__mmap()
898 evlist->mmap[idx].base = mmap(NULL, evlist->mmap_len, mp->prot, __perf_evlist__mmap()
900 if (evlist->mmap[idx].base == MAP_FAILED) { __perf_evlist__mmap()
901 pr_debug2("failed to mmap perf event ring buffer, error %d\n", __perf_evlist__mmap()
903 evlist->mmap[idx].base = NULL; __perf_evlist__mmap()
907 if (auxtrace_mmap__mmap(&evlist->mmap[idx].auxtrace_mmap, __perf_evlist__mmap()
908 &mp->auxtrace_mp, evlist->mmap[idx].base, fd)) __perf_evlist__mmap()
1078 pr_info("rounding mmap pages size to %lu bytes (%lu pages)\n", parse_pages_arg()
1140 if (evlist->mmap == NULL && perf_evlist__alloc_mmap(evlist) < 0) perf_evlist__mmap_ex()
1148 pr_debug("mmap size %zuB\n", evlist->mmap_len); perf_evlist__mmap_ex()
1714 "Hint:\tTry using a smaller -m/--mmap-pages value."); perf_evlist__strerror_mmap()
H A Dauxtrace.h147 * @mmap_addr: mmap address at which the buffer can be read
148 * @mmap_size: size of the mmap at @mmap_addr
236 * struct auxtrace_mmap - records an mmap of the auxtrace buffer.
242 * @idx: index of this mmap
243 * @tid: tid for a per-thread mmap (also set if there is only 1 tid on a per-cpu
244 * mmap) otherwise %0
245 * @cpu: cpu number for a per-cpu mmap otherwise %-1
263 * @prot: mmap memory protection
264 * @idx: index of this mmap
265 * @tid: tid for a per-thread mmap (also set if there is only 1 tid on a per-cpu
266 * mmap) otherwise %0
267 * @cpu: cpu number for a per-cpu mmap otherwise %-1
287 * @find_snapshot: find data to snapshot within auxtrace mmap
290 * @read_finish: called after reading from an auxtrace mmap
H A Dpython.c65 static char pyrf_mmap_event__doc[] = PyDoc_STR("perf mmap event object.");
85 if (asprintf(&s, "{ type: mmap, pid: %u, tid: %u, start: %#" PRIx64 ", " pyrf_mmap_event__repr()
88 pevent->event.mmap.pid, pevent->event.mmap.tid, pyrf_mmap_event__repr()
89 pevent->event.mmap.start, pevent->event.mmap.len, pyrf_mmap_event__repr()
90 pevent->event.mmap.pgoff, pevent->event.mmap.filename) < 0) { pyrf_mmap_event__repr()
576 "mmap", pyrf_evsel__init()
602 mmap = 0, pyrf_evsel__init() local
622 &mmap, &context_switch, &comm, &freq, &inherit_stat, pyrf_evsel__init()
645 attr.mmap = mmap; pyrf_evsel__init()
907 .ml_name = "mmap",
910 .ml_doc = PyDoc_STR("mmap the file descriptor table.")
H A Dmachine.c1123 machine->vmlinux_maps[i]->start = event->mmap.start; machine__set_kernel_mmap_len()
1124 machine->vmlinux_maps[i]->end = (event->mmap.start + machine__set_kernel_mmap_len()
1125 event->mmap.len); machine__set_kernel_mmap_len()
1165 is_kernel_mmap = memcmp(event->mmap.filename, machine__process_kernel_mmap_event()
1168 if (event->mmap.filename[0] == '/' || machine__process_kernel_mmap_event()
1169 (!is_kernel_mmap && event->mmap.filename[0] == '[')) { machine__process_kernel_mmap_event()
1170 map = machine__findnew_module_map(machine, event->mmap.start, machine__process_kernel_mmap_event()
1171 event->mmap.filename); machine__process_kernel_mmap_event()
1175 map->end = map->start + event->mmap.len; machine__process_kernel_mmap_event()
1177 const char *symbol_name = (event->mmap.filename + machine__process_kernel_mmap_event()
1239 if (event->mmap.pgoff != 0) { machine__process_kernel_mmap_event()
1242 event->mmap.pgoff); machine__process_kernel_mmap_event()
1332 thread = machine__findnew_thread(machine, event->mmap.pid, machine__process_mmap_event()
1333 event->mmap.tid); machine__process_mmap_event()
1342 map = map__new(machine, event->mmap.start, machine__process_mmap_event()
1343 event->mmap.len, event->mmap.pgoff, machine__process_mmap_event()
1344 event->mmap.pid, 0, 0, 0, 0, 0, 0, machine__process_mmap_event()
1345 event->mmap.filename, machine__process_mmap_event()
H A Dsession.c303 if (tool->mmap == NULL) perf_tool__fill_defaults()
304 tool->mmap = process_event_stub; perf_tool__fill_defaults()
383 event->mmap.pid = bswap_32(event->mmap.pid); perf_event__mmap_swap()
384 event->mmap.tid = bswap_32(event->mmap.tid); perf_event__mmap_swap()
385 event->mmap.start = bswap_64(event->mmap.start); perf_event__mmap_swap()
386 event->mmap.len = bswap_64(event->mmap.len); perf_event__mmap_swap()
387 event->mmap.pgoff = bswap_64(event->mmap.pgoff); perf_event__mmap_swap()
390 void *data = &event->mmap.filename; perf_event__mmap_swap()
969 pid = event->mmap.pid; machines__find_for_cpumode()
1078 return tool->mmap(tool, event, sample, machine); machines__deliver_event()
1164 /* setup for reading amidst mmap */ perf_session__process_user_event()
1176 /* setup for reading amidst mmap */ perf_session__process_user_event()
1546 * On 64bit we can mmap the data file in one go. No need for tiny mmap
1602 buf = mmap(NULL, mmap_size, mmap_prot, mmap_flags, fd, __perf_session__process_events()
1605 pr_err("failed to mmap file\n"); __perf_session__process_events()
/linux-4.4.14/drivers/gpu/drm/rockchip/
H A Drockchip_drm_gem.h36 /* drm driver mmap file operations */
39 /* mmap a gem object to userspace. */
/linux-4.4.14/include/linux/
H A Dmman.h70 * Combine the mmap "prot" argument into "vm_flags" used internally.
82 * Combine the mmap "flags" argument into "vm_flags" used internally.
H A Dvfio.h30 * @mmap: Perform mmap(2) on a region of the device file descriptor
43 int (*mmap)(void *device_data, struct vm_area_struct *vma); member in struct:vfio_device_ops
70 int (*mmap)(void *iommu_data, struct vm_area_struct *vma); member in struct:vfio_iommu_driver_ops
H A Duio_driver.h89 * @mmap: mmap operation for this uio device
104 int (*mmap)(struct uio_info *info, struct vm_area_struct *vma); member in struct:uio_info
H A Dposix-clock.h50 * @mmap: Optional character device mmap method
88 int (*mmap) (struct posix_clock *pc, member in struct:posix_clock_operations
H A Dstm.h52 * @sw_mmiosz: size of one channel's IO space, for mmap, optional
54 * @mmio_addr: mmap callback, optional
H A Dagpgart.h56 int prot; /* prot flags for mmap */
/linux-4.4.14/tools/perf/tests/
H A Dparse-no-sample-id-all.c63 * mmap events) do not have an id sample appended, and consequently logic
66 * attributes representing the selected events and one mmap event.
H A Dmmap-basic.c10 * then establish an mmap for a group of events that are created to monitor
13 * It will receive the events, using mmap, use its PERF_SAMPLE_ID generated
91 pr_debug("failed to mmap events: %d (%s)\n", errno, test__basic_mmap()
H A Dhists_common.c104 .mmap = { setup_fake_machine()
114 strcpy(fake_mmap_event.mmap.filename, setup_fake_machine()
H A Dperf-record.c85 * on all the fds) and then mmap them. test__PERF_RECORD()
132 * mmap the first fd on a given CPU and ask for events for the other test__PERF_RECORD()
133 * fds in the same CPU to be injected in the same mmap ring buffer test__PERF_RECORD()
235 mmap_filename = event->mmap.filename; test__PERF_RECORD()
H A Dmmap-thread-lookup.c32 map = mmap(NULL, page_size, thread_init()
37 perror("mmap failed"); thread_init()
H A Dsw-clock.c80 pr_debug("failed to mmap event: %d (%s)\n", errno, __test__sw_clock_freq()
H A Dtask-exit.c99 pr_debug("failed to mmap events: %d (%s)\n", errno, test__task_exit()
/linux-4.4.14/arch/sh/mm/
H A Dmmap.c2 * arch/sh/mm/mmap.c
129 * A failed mmap() very likely causes application failure, arch_get_unmapped_area_topdown()
131 * can happen with large stack limits and large mmap() arch_get_unmapped_area_topdown()
H A DMakefile5 obj-y := alignment.o cache.o init.o consistent.o mmap.o
/linux-4.4.14/arch/tile/include/hv/
H A Ddrv_uart_intf.h27 /** The mmap file offset (PA) of the UART MMIO region. */
H A Ddrv_trio_intf.h88 /** The mmap file offset (PA) of the TRIO config region. */
106 /** The mmap file offset (PA) of a scatter queue region. */
120 /** The mmap file offset (PA) of a PIO region. */
129 /** The mmap file offset (PA) of a push DMA region. */
135 /** The mmap file offset (PA) of a pull DMA region. */
146 /** The mmap file offset (PA) of a Mem-Map interrupt region. */
/linux-4.4.14/arch/um/kernel/skas/
H A Dclone.c46 * child: retcode of mmap already saved and it jumps around this stub_clone_handler()
/linux-4.4.14/fs/coda/
H A Dfile.c96 if (!host_file->f_op->mmap) coda_file_mmap()
120 return host_file->f_op->mmap(host_file, vma); coda_file_mmap()
174 /* did we mmap this file? */ coda_release()
224 .mmap = coda_file_mmap,
/linux-4.4.14/fs/ramfs/
H A Dfile-mmu.c36 .mmap = generic_file_mmap,
H A Dfile-nommu.c45 .mmap = ramfs_nommu_mmap,
63 * size 0 on the assumption that it's going to be used for an mmap of shared
141 * shared mmap */ ramfs_nommu_resize()
/linux-4.4.14/fs/sysv/
H A Dfile.c26 .mmap = generic_file_mmap,
/linux-4.4.14/include/media/
H A Dvideobuf-vmalloc.h28 * after mmap() on some cases */
H A Dvideobuf-core.h38 * about the mmap helpers (videobuf_mmap_*):
41 * This includes one mmap() call for all buffers (which the original
42 * video4linux API uses) as well as one mmap() for every single buffer
91 /* buffer offset (mmap + overlay) */
97 /* for mmap'ed buffers */
154 /* capture via mmap() + ioctl(QBUF/DQBUF) */
H A Dvideobuf-dma-sg.h73 /* for mmap'ed buffers */
/linux-4.4.14/arch/arm/mm/
H A Dmmap.c2 * linux/arch/arm/mm/mmap.c
18 /* gap between mmap and stack */
156 * A failed mmap() very likely causes application failure, arch_get_unmapped_area_topdown()
158 * can happen with large stack limits and large mmap() arch_get_unmapped_area_topdown()
H A DMakefile9 mmap.o pgd.o mmu.o pageattr.o
/linux-4.4.14/drivers/xen/xenfs/
H A Dxenstored.c50 .mmap = xsd_kva_mmap,
/linux-4.4.14/tools/testing/selftests/ptrace/
H A Dpeeksiginfo.c53 addr_rw = mmap(NULL, 2 * PAGE_SIZE, PROT_READ | PROT_WRITE, check_error_paths()
56 err("mmap() failed: %m\n"); check_error_paths()
60 addr_ro = mmap(addr_rw + PAGE_SIZE, PAGE_SIZE, PROT_READ, check_error_paths()
63 err("mmap() failed: %m\n"); check_error_paths()
/linux-4.4.14/include/uapi/xen/
H A Dgntalloc.h30 /* The offset to be used on a subsequent call to mmap(). */
68 * used in mmap). If using UNMAP_NOTIFY_CLEAR_BYTE, this is the byte to
H A Dgntdev.h48 * until mmap() is called with @index as the offset.
58 /* The offset to be used on a subsequent call to mmap(). */
100 /* The offset that was used in the initial mmap() operation. */
136 * used in mmap). If using UNMAP_NOTIFY_CLEAR_BYTE, this is the byte to
/linux-4.4.14/tools/perf/arch/x86/tests/
H A Dintel-cqm.c104 event = mmap(NULL, mmap_len, PROT_READ, MAP_SHARED, fd[0], 0); test__intel_cqm_count_nmi_context()
106 pr_debug("failed to mmap %d\n", errno); test__intel_cqm_count_nmi_context()
H A Drdpmc.c117 addr = mmap(NULL, page_size, PROT_READ, MAP_SHARED, fd, 0); __test__rdpmc()
119 pr_err("Error: mmap() syscall returned with (%s)\n", __test__rdpmc()
/linux-4.4.14/tools/perf/python/
H A Dtwatch.py23 task = 1, comm = 1, mmap = 0, freq = 0,
38 evlist.mmap()
/linux-4.4.14/tools/testing/selftests/futex/functional/
H A Dfutex_wait_uninitialized_heap.c94 buf = mmap(NULL, page_size, PROT_READ|PROT_WRITE, main()
97 error("mmap\n", errno); main()
/linux-4.4.14/include/sound/
H A Dcompress_driver.h41 * @buffer: pointer to kernel buffer, valid only when not in mmap mode or
103 * Can't be implemented if DSP supports mmap
104 * @mmap: DSP mmap method to mmap DSP memory
126 int (*mmap)(struct snd_compr_stream *stream, member in struct:snd_compr_ops
H A Dhwdep.h46 int (*mmap)(struct snd_hwdep *hw, struct file *file, member in struct:snd_hwdep_ops
/linux-4.4.14/sound/oss/
H A Dsoundcard.c434 printk(KERN_ERR "Sound: mmap() not supported for other than audio devices\n"); sound_mmap()
443 printk(KERN_ERR "Sound: Undefined mmap() access\n"); sound_mmap()
449 printk(KERN_ERR "Sound: mmap() error. dmap == NULL\n"); sound_mmap()
454 printk(KERN_ERR "Sound: mmap() called when raw_buf == NULL\n"); sound_mmap()
459 printk(KERN_ERR "Sound: mmap() called twice for the same DMA buffer\n"); sound_mmap()
464 printk(KERN_ERR "Sound: mmap() offset must be 0.\n"); sound_mmap()
471 printk(KERN_WARNING "Sound: mmap() size = %ld. Should be %d\n", size, dmap->bytes_in_use); sound_mmap()
482 if( audio_devs[dev]->d->mmap) sound_mmap()
483 audio_devs[dev]->d->mmap(dev); sound_mmap()
499 .mmap = sound_mmap,
/linux-4.4.14/fs/proc/
H A Dinode.c270 int (*mmap)(struct file *, struct vm_area_struct *); proc_reg_mmap()
272 mmap = pde->proc_fops->mmap; proc_reg_mmap()
273 if (mmap) proc_reg_mmap()
274 rv = mmap(file, vma); proc_reg_mmap()
376 .mmap = proc_reg_mmap,
389 .mmap = proc_reg_mmap,
/linux-4.4.14/arch/x86/kernel/
H A Dsys_x86_64.c86 SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, SYSCALL_DEFINE6()
110 malloc knows how to fall back to mmap. Give it 1GB find_start_end()
180 /* for MAP_32BIT mappings we force the legacy mmap base */ arch_get_unmapped_area_topdown()
210 * A failed mmap() very likely causes application failure, arch_get_unmapped_area_topdown()
212 * can happen with large stack limits and large mmap() arch_get_unmapped_area_topdown()
/linux-4.4.14/drivers/sbus/char/
H A Dflash.c1 /* flash.c: Allow mmap access to the OBP Flash, for OBP updates.
148 /* no write to the Flash, use mmap
154 .mmap = flash_mmap,
/linux-4.4.14/arch/sparc/kernel/
H A Dsys_sparc_32.c96 /* Linux version of mmap */
120 /* This works on an existing mmap so we don't need to validate sparc_remap_file_pages()
121 * the range as that was done at the original mmap call. sparc_remap_file_pages()
H A Dsys_sparc_64.c69 * mm/mmap.c in two ways:
71 * 1) For file backed MAP_SHARED mmap()'s we D-cache color align,
197 * A failed mmap() very likely causes application failure, arch_get_unmapped_area_topdown()
199 * can happen with large stack limits and large mmap() arch_get_unmapped_area_topdown()
447 /* Linux version of mmap */ SYSCALL_DEFINE6()
448 SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, SYSCALL_DEFINE6()
/linux-4.4.14/include/uapi/drm/
H A Domap_drm.h91 uint64_t offset; /* mmap offset (out) */
96 * mmap() the buffer:
98 uint32_t size; /* virtual size for mmap'ing (out) */
/linux-4.4.14/arch/mips/mm/
H A Dmmap.c21 /* gap between mmap and stack */
113 * A failed mmap() very likely causes application failure, arch_get_unmapped_area_common()
115 * can happen with large stack limits and large mmap() arch_get_unmapped_area_common()
/linux-4.4.14/fs/
H A Dbinfmt_aout.c220 * Requires a mmap handler. This prevents people from using a.out load_aout_binary()
223 if (!bprm->file->f_op->mmap) load_aout_binary()
299 if (!bprm->file->f_op->mmap||((fd_offset & ~PAGE_MASK) != 0)) { load_aout_binary()
360 * Requires a mmap handler. This prevents people from using a.out load_aout_library()
363 if (!file->f_op->mmap) load_aout_library()
388 /* Now use mmap to map the library into memory. */ load_aout_library()
H A Dbinfmt_em86.c41 !bprm->file->f_op->mmap) { load_em86()
/linux-4.4.14/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_prime.c101 WARN_ONCE(true, "Attempted use of dmabuf mmap. Bad.\n"); vmw_prime_dmabuf_mmap()
115 .mmap = vmw_prime_dmabuf_mmap,
H A Dvmwgfx_ttm_glue.c37 DRM_ERROR("Illegal attempt to mmap old fifo space.\n"); vmw_mmap()
/linux-4.4.14/arch/unicore32/include/asm/
H A Dmmu_context.h66 * (the macro is used as remove_vma() is static to mm/mmap.c)
76 mm->mmap = NULL; \
H A Dmemory.h31 * TASK_UNMAPPED_BASE - the lower boundary of the mmap VM area
/linux-4.4.14/arch/x86/um/os-Linux/
H A Dtask_size.c28 * the mmap succeeds, but gives us an address different from page_ok()
34 mapped = mmap(address, UM_KERN_PAGE_SIZE, page_ok()
/linux-4.4.14/arch/c6x/include/asm/
H A Dprocessor.h34 * Since calls like mmap() can return an address or an error, we
50 * space during mmap's. We won't be using it
/linux-4.4.14/samples/bpf/
H A Dtrace_output_user.c41 base = mmap(NULL, mmap_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); perf_event_mmap()
43 printf("mmap err\n"); perf_event_mmap()
H A Dtracex5_kern.c69 char fmt[] = "mmap\n"; __NR_mmap()
/linux-4.4.14/security/selinux/ss/
H A Dstatus.c2 * mmap based event notifications for SELinux
21 * using mmap interface on /selinux/status.
/linux-4.4.14/include/uapi/linux/hsi/
H A Dcs-protocol.h88 * Struct describing the layout and contents of the driver mmap area.
97 /* array of offsets within the mmap area for each RX and TX buffer */
/linux-4.4.14/tools/build/
H A Dfixdep.c141 map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); print_deps()
143 perror("fixdep: mmap"); print_deps()
/linux-4.4.14/tools/testing/selftests/x86/
H A Dsysret_ss_attrs.c74 unsigned char *stack32 = mmap(NULL, 4096, PROT_READ | PROT_WRITE, main()
78 err(1, "mmap"); main()
/linux-4.4.14/drivers/gpu/drm/
H A Ddrm_gem.c55 * the DRI2 implementation wants to have at least allocate/mmap be generic.
74 * mmap time.
77 /* pgoff in mmap is an unsigned long, so we need to make sure that
386 * drm_gem_free_mmap_offset - release a fake mmap offset for an object
401 * drm_gem_create_mmap_offset_size - create a fake mmap offset for an object
405 * GEM memory mapping works by handing back to userspace a fake mmap offset
406 * it can use in a subsequent mmap(2) call. The DRM core code then looks
425 * drm_gem_create_mmap_offset - create a fake mmap offset for an object
428 * GEM memory mapping works by handing back to userspace a fake mmap offset
429 * it can use in a subsequent mmap(2) call. The DRM core code then looks
803 * register allocation, or performance monitoring), or mmap the buffer memory
806 * This function is mainly intended to implement the DMABUF mmap operation, when
808 * DRM mmap operation, drivers should use the drm_gem_mmap() function.
835 * handler can dereference the mmap offset's pointer to the object. drm_gem_mmap_obj()
851 * If a driver supports GEM object mapping, mmap calls on the DRM file
858 * If the caller is not granted access to the buffer object, the mmap will fail
/linux-4.4.14/arch/um/include/asm/
H A Dprocessor-generic.h87 * space during mmap's.
/linux-4.4.14/arch/alpha/include/asm/
H A Dprocessor.h29 * space during mmap's.
/linux-4.4.14/mm/
H A DMakefile10 mlock.o mmap.o mprotect.o mremap.o msync.o rmap.o \
H A Ddebug.c171 pr_emerg("mm %p mmap %p seqnum %d task_size %lu\n" dump_mm()
201 mm, mm->mmap, mm->vmacache_seqnum, mm->task_size, dump_mm()
/linux-4.4.14/arch/sparc/include/asm/
H A Dpci_64.h42 /* Platform support for /proc/bus/pci/X/Y mmap()s. */
/linux-4.4.14/arch/microblaze/kernel/
H A Dsys_microblaze.c36 SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, SYSCALL_DEFINE6()
/linux-4.4.14/arch/cris/include/asm/
H A Dprocessor.h24 * space during mmap's.
/linux-4.4.14/arch/arm64/kernel/
H A Defi.c212 memblock_reserve(params.mmap & PAGE_MASK, efi_init()
213 PAGE_ALIGN(params.mmap_size + (params.mmap & ~PAGE_MASK))); efi_init()
214 memmap.phys_map = params.mmap; efi_init()
215 memmap.map = early_memremap(params.mmap, params.mmap_size); efi_init()
/linux-4.4.14/arch/arm/mach-nspire/
H A Dnspire.c47 .mmap = nspire_clcd_mmap,
/linux-4.4.14/tools/perf/arch/x86/util/
H A Dintel-bts.c87 pc = session->evlist->mmap[0].base; intel_bts_info_fill()
176 pr_err("Snapshot size %zu must not be greater than AUX area tracing mmap size %zu\n",
182 pr_err("Failed to calculate default snapshot size and/or AUX area tracing mmap pages\n");
211 pr_err("Invalid mmap size for Intel BTS: must be at least %zuKiB and a power of 2\n",
374 pr_debug3("%s: mmap index %d old head %zu new head %zu\n", intel_bts_find_snapshot()
H A Dintel-pt.c321 pc = session->evlist->mmap[0].base; intel_pt_info_fill()
569 pr_err("Snapshot size %zu must not be greater than AUX area tracing mmap size %zu\n",
575 pr_err("Failed to calculate default snapshot size and/or AUX area tracing mmap pages\n");
609 pr_err("Invalid mmap size for Intel Processor Trace: must be at least %zuKiB and a power of 2\n",
701 /* In per-cpu case, always need the time of mmap events etc */
945 pr_debug3("%s: mmap index %d old head %zu new head %zu\n", intel_pt_find_snapshot()
/linux-4.4.14/arch/sparc/mm/
H A Dhugetlbpage.c76 * A failed mmap() very likely causes application failure, hugetlb_get_unmapped_area_topdown()
78 * can happen with large stack limits and large mmap() hugetlb_get_unmapped_area_topdown()
/linux-4.4.14/arch/um/os-Linux/
H A Dmem.c190 addr = mmap(NULL, UM_KERN_PAGE_SIZE, check_tmpexec()
192 printf("Checking PROT_EXEC mmap in %s...", tempdir); check_tmpexec()
/linux-4.4.14/arch/xtensa/include/uapi/asm/
H A Dmman.h34 * Flags for mmap
59 # define MAP_UNINITIALIZED 0x4000000 /* For anonymous mmap, memory could be
/linux-4.4.14/drivers/char/
H A Duv_mmtimer.c52 .mmap = uv_mmtimer_mmap,
79 * %MMTIMER_MMAPAVAIL - Returns 1 if registers can be mmap'd into userspace
H A Dmspec.c140 * Called when a device mapping is created by a means other than mmap
317 .mmap = fetchop_mmap,
329 .mmap = cached_mmap,
341 .mmap = uncached_mmap,
/linux-4.4.14/arch/microblaze/include/asm/
H A Dprocessor.h57 * space during mmap's. We won't be using it
95 * space during mmap's.
/linux-4.4.14/Documentation/auxdisplay/
H A Dcfag12864b-example.c63 * Unable to mmap: return = -2
71 cfag12864b_mem = mmap(0, CFAG12864B_SIZE, PROT_READ | PROT_WRITE, cfag12864b_init()
/linux-4.4.14/tools/build/feature/
H A DMakefile20 test-libelf-mmap.bin \
83 test-libelf-mmap.bin:
H A Dtest-all.c33 # include "test-libelf-mmap.c"
/linux-4.4.14/tools/lib/bpf/
H A DMakefile68 FEATURE_TESTS = libelf libelf-getphdrnum libelf-mmap bpf
101 ifeq ($(feature-libelf-mmap), 1)
/linux-4.4.14/tools/power/acpi/os_specific/service_layers/
H A Dosunixmap.c110 /* Align the offset to use mmap */ acpi_os_map_memory()
117 mapped_memory = mmap(NULL, (length + offset), PROT_READ, MMAP_FLAGS, acpi_os_map_memory()
/linux-4.4.14/tools/testing/selftests/powerpc/pmu/ebb/
H A Dtrace.c24 tb = mmap(NULL, size, PROT_READ | PROT_WRITE, trace_buffer_allocate()
27 perror("mmap"); trace_buffer_allocate()
/linux-4.4.14/drivers/gpu/drm/savage/
H A Dsavage_drv.c43 .mmap = drm_legacy_mmap,
/linux-4.4.14/drivers/gpu/drm/tdfx/
H A Dtdfx_drv.c50 .mmap = drm_legacy_mmap,
/linux-4.4.14/drivers/gpu/drm/udl/
H A Dudl_drv.c28 .mmap = udl_drm_gem_mmap,
/linux-4.4.14/drivers/gpu/drm/mgag200/
H A Dmgag200_drv.c83 .mmap = mgag200_mmap,
/linux-4.4.14/arch/tile/include/asm/
H A Dsyscalls.h42 #ifndef __tilegx__ /* No mmap() in the 32-bit kernel. */
/linux-4.4.14/arch/um/drivers/
H A Dmmapper_kern.c87 .mmap = mmapper_mmap,
/linux-4.4.14/sound/arm/
H A Dpxa2xx-pcm.c80 .mmap = pxa2xx_pcm_mmap,
/linux-4.4.14/fs/exofs/
H A Dfile.c72 .mmap = generic_file_mmap,
/linux-4.4.14/include/uapi/asm-generic/
H A Dmman-common.h23 # define MAP_UNINITIALIZED 0x4000000 /* For anonymous mmap, memory could be uninitialized */
/linux-4.4.14/arch/powerpc/kernel/
H A Ddma-swiotlb.c52 .mmap = dma_direct_mmap_coherent,
H A Dproc_powerpc.c58 .mmap = page_map_mmap
H A Ddma-iommu.c111 .mmap = dma_direct_mmap_coherent,
/linux-4.4.14/arch/s390/kernel/
H A Dsys_s390.c34 * Perform the mmap() system call. Linux for S/390 isn't able to handle more
/linux-4.4.14/arch/score/include/asm/
H A Dprocessor.h38 * space during mmap's.
/linux-4.4.14/arch/mips/loongson64/common/
H A Dpci.c56 LOONGSON_PCIBASE0 = 0x80000000ul; /* base: 2G -> mmap: 0M */ setup_pcimap()
/linux-4.4.14/drivers/firmware/efi/libstub/
H A Dfdt.c127 status = fdt_setprop(fdt, node, "linux,uefi-mmap-start", update_fdt()
133 status = fdt_setprop(fdt, node, "linux,uefi-mmap-size", update_fdt()
139 status = fdt_setprop(fdt, node, "linux,uefi-mmap-desc-size", update_fdt()
145 status = fdt_setprop(fdt, node, "linux,uefi-mmap-desc-ver", update_fdt()
/linux-4.4.14/net/irda/irnet/
H A Dirnet_ppp.h108 /* Also : llseek, readdir, mmap, flush, fsync, fasync, lock, readv, writev */
/linux-4.4.14/sound/soc/pxa/
H A Dpxa2xx-pcm.c57 .mmap = pxa2xx_pcm_mmap,
/linux-4.4.14/drivers/staging/android/uapi/
H A Dion.h69 * at mmap time, if this is set
156 * DOC: ION_IOC_MAP - get a file descriptor to mmap
161 * can then be used as an argument to mmap.
/linux-4.4.14/drivers/gpu/drm/omapdrm/
H A Domap_fbdev.c162 * but is needed as long as we use fb_mmap() to mmap to userspace omap_fbdev_create()
164 * implement our own mmap using GEM mmap support to avoid this omap_fbdev_create()
/linux-4.4.14/drivers/media/v4l2-core/
H A Dvideobuf-vmalloc.c214 printk(KERN_ERR "mmap: remap failed with error %d", rc); __videobuf_iolock()
267 printk(KERN_ERR "mmap: remap failed with error %d. ", retval); __videobuf_mmap_mapper()
276 dprintk(1, "mmap %p: q=%p %08lx-%08lx (%lx) pgoff %08lx buf %d\n", __videobuf_mmap_mapper()
/linux-4.4.14/fs/kernfs/
H A Dfile.c472 * mmap path and of->mutex are prone to triggering spurious lockdep kernfs_fop_mmap()
474 * between the two. Check whether mmap is actually implemented kernfs_fop_mmap()
488 rc = ops->mmap(of, vma); kernfs_fop_mmap()
494 * to satisfy versions of X which crash if the mmap fails: that kernfs_fop_mmap()
626 has_read = ops->seq_show || ops->read || ops->mmap; kernfs_fop_open()
627 has_write = ops->write || ops->mmap; kernfs_fop_open()
628 has_mmap = ops->mmap; kernfs_fop_open()
649 * @of->mutex for files which implement mmap. This is a rather kernfs_fop_open()
651 * mm->mmap_sem - mmap nests @of->mutex under mm->mmap_sem and kernfs_fop_open()
657 * whether the file has mmap or not for now. kernfs_fop_open()
889 .mmap = kernfs_fop_mmap,
944 if (ops->mmap) __kernfs_create_file()
/linux-4.4.14/scripts/
H A Dsortextable.c85 * malloc+lseek+read+free of many pieces. If successful, then mmap
102 addr = mmap(0, sb.st_size, PROT_READ|PROT_WRITE, MAP_SHARED, mmap_file()
106 fprintf(stderr, "Could not mmap file: %s\n", fname); mmap_file()
/linux-4.4.14/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_doorbell.c47 * Although the mapping is done by KFD, it is equivalent to an mmap of
48 * the /dev/kfd with the particular device encoded in the mmap offset.
49 * There will be other uses for mmap of /dev/kfd, so only a range of
/linux-4.4.14/sound/usb/usx2y/
H A DusX2Yhwdep.c66 // FIXME this hwdep interface is used twice: fpga download and mmap for controlling Lights etc. Maybe better using 2 hwdep devs? snd_us428ctls_mmap()
71 /* if userspace tries to mmap beyond end of our buffer, fail */ snd_us428ctls_mmap()
259 hw->ops.mmap = snd_us428ctls_mmap; usX2Y_hwdep_new()
/linux-4.4.14/tools/perf/
H A Dbuiltin-record.c78 struct perf_mmap *md = &rec->evlist->mmap[idx]; record__mmap_read()
224 &rec->evlist->mmap[i].auxtrace_mmap; record__auxtrace_read_snapshot_all()
320 pr_err("failed to mmap with %d (%s)\n", errno,
374 *we arrange module mmap prior to guest kernel mmap and trigger perf_event__synthesize_guest_os()
409 struct auxtrace_mmap *mm = &rec->evlist->mmap[i].auxtrace_mmap; record__mmap_read_all()
411 if (rec->evlist->mmap[i].base) { record__mmap_read_all()
1008 .mmap = perf_event__process_mmap,
1054 OPT_CALLBACK('m', "mmap-pages", &record.opts, "pages[,pages]",
1055 "number of mmap data pages and AUX area tracing mmap pages",
1113 "per thread proc mmap processing timeout in ms"),
/linux-4.4.14/drivers/firmware/efi/
H A Defi.c509 UEFI_PARAM("MemMap Address", "linux,uefi-mmap-start", mmap),
510 UEFI_PARAM("MemMap Size", "linux,uefi-mmap-size", mmap_size),
511 UEFI_PARAM("MemMap Desc. Size", "linux,uefi-mmap-desc-size", desc_size),
512 UEFI_PARAM("MemMap Desc. Version", "linux,uefi-mmap-desc-ver", desc_ver)
/linux-4.4.14/drivers/xen/
H A Dgntalloc.c34 * 5. A program in X mmap()s a segment of the gntalloc device that corresponds
39 * The grant allocation and mmap()ing are, naturally, two separate operations.
40 * You set up the sharing by calling the create ioctl() and then the mmap().
93 uint64_t file_index; /* File offset for mmap() */
565 .mmap = gntalloc_mmap
/linux-4.4.14/fs/9p/
H A Dvfs_file.c514 * we do it during mmap instead of v9fs_mmap_file_mmap()
646 .mmap = v9fs_file_mmap,
658 .mmap = v9fs_file_mmap,
669 .mmap = generic_file_readonly_mmap,
681 .mmap = generic_file_readonly_mmap,
692 .mmap = v9fs_mmap_file_mmap,
704 .mmap = v9fs_mmap_file_mmap,
/linux-4.4.14/drivers/misc/mic/scif/
H A Dscif_mmap.c213 * aperture base for mmap to work correctly scif_get_phys()
500 * The private data field of each VMA used to mmap a remote window
507 * mmap request was for a single page
527 * The one exception happens when the VMA is first created by mmap;
528 * in this case, the driver's mmap method is called instead.
622 "SCIFAPI mmap: ep %p start_offset 0x%llx nr_pages 0x%x\n", scif_mmap()
/linux-4.4.14/drivers/pcmcia/
H A Dtcic.c737 u_long base, len, mmap; tcic_set_mem_map() local
759 mmap = mem->card_start - mem->res->start; tcic_set_mem_map()
760 mmap = (mmap >> TCIC_MMAP_CA_SHFT) & TCIC_MMAP_CA_MASK; tcic_set_mem_map()
761 if (mem->flags & MAP_ATTRIB) mmap |= TCIC_MMAP_REG; tcic_set_mem_map()
763 tcic_setw(TCIC_DATA, mmap); tcic_set_mem_map()
/linux-4.4.14/arch/xtensa/kernel/
H A Dpci.c269 * Platform support for /proc/bus/pci/X/Y mmap()s,
279 * to mmap. They read the 32-bit value from the config space base register,
281 * offset parameter of mmap on /proc/bus/pci/XXX for that device.
/linux-4.4.14/kernel/time/
H A Dposix-clock.c109 if (clk->ops.mmap) posix_clock_mmap()
110 err = clk->ops.mmap(clk, vma); posix_clock_mmap()
203 .mmap = posix_clock_mmap,
/linux-4.4.14/arch/parisc/kernel/
H A Dsys_parisc.c68 * Top of mmap area (just below the process stack).
196 * A failed mmap() very likely causes application failure, arch_get_unmapped_area_topdown()
198 * can happen with large stack limits and large mmap() arch_get_unmapped_area_topdown()
/linux-4.4.14/drivers/staging/rdma/amso1100/
H A Dc2_qp.c426 void __iomem *mmap; c2_alloc_qp() local
519 mmap = ioremap_nocache(peer_pa, mmap_size); c2_alloc_qp()
520 if (!mmap) { c2_alloc_qp()
529 mmap + sizeof(struct c2_mq_shared), /* pool start */ c2_alloc_qp()
530 mmap, /* peer */ c2_alloc_qp()
538 mmap = ioremap_nocache(peer_pa, mmap_size); c2_alloc_qp()
539 if (!mmap) { c2_alloc_qp()
548 mmap + sizeof(struct c2_mq_shared), /* pool start */ c2_alloc_qp()
549 mmap, /* peer */ c2_alloc_qp()
/linux-4.4.14/drivers/mtd/chips/
H A Dmap_ram.c86 * Allow NOMMU mmap() to directly map the device (if not NULL)
H A Dmap_rom.c70 * Allow NOMMU mmap() to directly map the device (if not NULL)
/linux-4.4.14/drivers/gpu/drm/sis/
H A Dsis_drv.c73 .mmap = drm_legacy_mmap,
/linux-4.4.14/drivers/gpu/drm/via/
H A Dvia_drv.c65 .mmap = drm_legacy_mmap,
/linux-4.4.14/drivers/gpu/drm/r128/
H A Dr128_drv.c49 .mmap = drm_legacy_mmap,
/linux-4.4.14/drivers/gpu/drm/bochs/
H A Dbochs_drv.c78 .mmap = bochs_mmap,
/linux-4.4.14/drivers/gpu/drm/cirrus/
H A Dcirrus_drv.c126 .mmap = cirrus_mmap,
/linux-4.4.14/drivers/gpu/drm/i810/
H A Di810_drv.c50 .mmap = drm_legacy_mmap,
/linux-4.4.14/arch/um/os-Linux/skas/
H A Dprocess.c203 printk(UM_KERN_ERR "mapping mmap stub at 0x%lx failed, " userspace_tramp()
210 addr = mmap((void *) STUB_DATA, userspace_tramp()
254 stack = mmap(NULL, UM_KERN_PAGE_SIZE, start_userspace()
259 printk(UM_KERN_ERR "start_userspace : mmap failed, " start_userspace()
/linux-4.4.14/arch/arc/include/asm/
H A Dprocessor.h129 * space during mmap's.
/linux-4.4.14/net/atm/
H A Dpvc.c127 .mmap = sock_no_mmap,
/linux-4.4.14/scripts/basic/
H A Dfixdep.c282 map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); do_config_file()
284 perror("fixdep: mmap"); do_config_file()
403 map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); print_deps()
405 perror("fixdep: mmap"); print_deps()
/linux-4.4.14/arch/powerpc/kvm/
H A Dbook3s_64_vio.c96 .mmap = kvm_spapr_tce_mmap,
/linux-4.4.14/arch/openrisc/include/asm/
H A Dprocessor.h47 * space during mmap's.
/linux-4.4.14/arch/h8300/include/asm/
H A Dprocessor.h52 * space during mmap's. We won't be using it
/linux-4.4.14/arch/m32r/include/asm/
H A Dprocessor.h69 * space during mmap's.
/linux-4.4.14/arch/avr32/include/asm/
H A Dprocessor.h90 * space during mmap's
/linux-4.4.14/arch/arm/mach-netx/
H A Dnxdb500.c96 .mmap = netx_clcd_mmap,
H A Dnxeb500hmi.c99 .mmap = netx_clcd_mmap,

Completed in 5600 milliseconds

12345