/linux/drivers/leds/blink/ |
A D | leds-lgm-sso.c | 133 struct regmap *mmap; member 421 regmap_write(priv->mmap, DUTY_CYCLE(offset), 0x0); in sso_gpio_free() 448 regmap_read(priv->mmap, SSO_CPU, ®_val); in sso_gpio_get() 574 err = regmap_write(priv->mmap, SSO_CON3, 0); in sso_gpio_hw_init() 579 err = regmap_write(priv->mmap, SSO_CON2, 0); in sso_gpio_hw_init() 584 err = regmap_write(priv->mmap, SSO_CPU, 0); in sso_gpio_hw_init() 814 if (IS_ERR(priv->mmap)) { in intel_sso_led_probe() 816 return PTR_ERR(priv->mmap); in intel_sso_led_probe() 821 regmap_exit(priv->mmap); in intel_sso_led_probe() 834 regmap_exit(priv->mmap); in intel_sso_led_probe() [all …]
|
/linux/tools/perf/arch/x86/util/ |
A D | event.c | 22 union perf_event *event = zalloc(sizeof(event->mmap) + in perf_event__synthesize_extra_kmaps() 40 size = sizeof(event->mmap) - sizeof(event->mmap.filename) + in perf_event__synthesize_extra_kmaps() 46 event->mmap.header.type = PERF_RECORD_MMAP; in perf_event__synthesize_extra_kmaps() 57 event->mmap.header.size = size; in perf_event__synthesize_extra_kmaps() 59 event->mmap.start = pos->start; in perf_event__synthesize_extra_kmaps() 60 event->mmap.len = pos->end - pos->start; in perf_event__synthesize_extra_kmaps() 61 event->mmap.pgoff = pos->pgoff; in perf_event__synthesize_extra_kmaps() 62 event->mmap.pid = machine->pid; in perf_event__synthesize_extra_kmaps() 64 strlcpy(event->mmap.filename, kmap->name, PATH_MAX); in perf_event__synthesize_extra_kmaps()
|
/linux/tools/perf/util/ |
A D | mmap.c | 39 size_t mmap__mmap_len(struct mmap *map) in mmap__mmap_len() 71 static int perf_mmap__aio_enabled(struct mmap *map) in perf_mmap__aio_enabled() 77 static int perf_mmap__aio_alloc(struct mmap *map, int idx) in perf_mmap__aio_alloc() 89 static void perf_mmap__aio_free(struct mmap *map, int idx) in perf_mmap__aio_free() 126 static int perf_mmap__aio_alloc(struct mmap *map, int idx) in perf_mmap__aio_alloc() 135 static void perf_mmap__aio_free(struct mmap *map, int idx) in perf_mmap__aio_free() 201 static void perf_mmap__aio_munmap(struct mmap *map) in perf_mmap__aio_munmap() 213 static int perf_mmap__aio_enabled(struct mmap *map __maybe_unused) in perf_mmap__aio_enabled() 218 static int perf_mmap__aio_mmap(struct mmap *map __maybe_unused, in perf_mmap__aio_mmap() 229 void mmap__munmap(struct mmap *map) in mmap__munmap() [all …]
|
A D | mmap.h | 33 struct mmap { struct 55 int mmap__mmap(struct mmap *map, struct mmap_params *mp, int fd, int cpu); argument 56 void mmap__munmap(struct mmap *map); 58 union perf_event *perf_mmap__read_forward(struct mmap *map); 60 int perf_mmap__push(struct mmap *md, void *to, 61 int push(struct mmap *map, void *to, void *buf, size_t size)); 63 size_t mmap__mmap_len(struct mmap *map);
|
/linux/tools/testing/selftests/vm/ |
A D | map_fixed_noreplace.c | 44 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 65 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 85 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 106 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 126 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 146 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 166 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 186 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
|
A D | mremap_dontunmap.c | 49 void *source_mapping = mmap(NULL, num_pages * page_size, PROT_NONE, in kernel_support_for_mremap_dontunmap() 103 mmap(NULL, num_pages * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_simple() 142 mmap(NULL, num_pages * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_simple_shmem() 191 mmap(NULL, num_pages * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_simple_fixed() 197 mmap(NULL, num_pages * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_simple_fixed() 247 mmap(NULL, num_pages * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_partial_mapping() 299 mmap(NULL, 5 * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_partial_mapping_overwrite() 305 mmap(NULL, 10 * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_partial_mapping_overwrite() 349 mmap(NULL, page_size, PROT_READ | PROT_WRITE, in main()
|
A D | madv_populate.c | 61 addr = mmap(0, pagesize, PROT_READ | PROT_WRITE, in sense_support() 84 addr = mmap(0, SIZE, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_read() 105 addr = mmap(0, SIZE, PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_write() 126 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_holes() 196 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_populate_read() 218 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_populate_write() 282 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_softdirty()
|
A D | hugepage-mremap.c | 79 addr = mmap(NULL, len, PROT_READ | PROT_WRITE, in register_region_with_uffd() 115 void *haddr = mmap((void *)suggested_addr, LENGTH, PROTECTION, in main() 125 void *daddr = mmap((void *)suggested_addr, LENGTH, PROTECTION, in main() 135 mmap((void *)suggested_addr, LENGTH, PROTECTION, FLAGS, -1, 0); in main()
|
A D | virtual_address_range.c | 88 ptr = mmap((void *) (1UL << 45), MAP_CHUNK_SIZE, PROT_READ | 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()
|
A D | mlock2-tests.c | 197 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_mlock_lock() 260 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_mlock_onfault() 302 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_lock_onfault_of_present() 338 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_munlockall() 364 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_munlockall() 419 map = mmap(NULL, 3 * page_size, PROT_READ | PROT_WRITE, in test_vma_management()
|
/linux/arch/um/kernel/ |
A D | tlb.c | 27 } mmap; member 74 op->u.mmap.len, op->u.mmap.prot, in do_ops() 75 op->u.mmap.fd, in do_ops() 76 op->u.mmap.offset, finished, in do_ops() 79 map_memory(op->u.mmap.addr, op->u.mmap.offset, in do_ops() 80 op->u.mmap.len, 1, 1, 1); in do_ops() 135 (last->u.mmap.addr + last->u.mmap.len == virt) && in add_mmap() 136 (last->u.mmap.prot == prot) && (last->u.mmap.fd == fd) && in add_mmap() 137 (last->u.mmap.offset + last->u.mmap.len == offset)) { in add_mmap() 138 last->u.mmap.len += len; in add_mmap() [all …]
|
/linux/Documentation/devicetree/bindings/arm/ |
A D | xen.txt | 29 xen,uefi-mmap-start | 64-bit | Guest physical address of the UEFI memory 32 xen,uefi-mmap-size | 32-bit | Size in bytes of the UEFI memory map 35 xen,uefi-mmap-desc-size | 32-bit | Size in bytes of each entry in the UEFI 38 xen,uefi-mmap-desc-ver | 32-bit | Version of the mmap descriptor format. 49 xen,uefi-mmap-start = <0xXXXXXXXX>; 50 xen,uefi-mmap-size = <0xXXXXXXXX>; 51 xen,uefi-mmap-desc-size = <0xXXXXXXXX>; 52 xen,uefi-mmap-desc-ver = <0xXXXXXXXX>;
|
/linux/tools/perf/tests/ |
A D | dlfilter-test.c | 147 ssize_t sz = sizeof(*mmap) - sizeof(mmap->filename) + fsz; in write_mmap() 149 mmap->header.type = PERF_RECORD_MMAP; in write_mmap() 150 mmap->header.misc = PERF_RECORD_MISC_USER; in write_mmap() 151 mmap->header.size = sz; in write_mmap() 153 mmap->pid = pid; in write_mmap() 154 mmap->tid = tid; in write_mmap() 155 mmap->start = start; in write_mmap() 156 mmap->len = len; in write_mmap() 157 mmap->pgoff = pgoff; in write_mmap() 158 strncpy(mmap->filename, filename, sizeof(mmap->filename)); in write_mmap() [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | mmap.c | 61 tmp1 = mmap(NULL, page_size, PROT_READ, MAP_SHARED, rdmap_fd, 0); in test_mmap() 73 bss_mmaped = mmap(NULL, bss_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap() 81 map_mmaped = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap() 146 map_mmaped = mmap(NULL, map_sz, PROT_READ, MAP_SHARED, data_map_fd, 0); in test_mmap() 165 p = mmap(NULL, map_sz, flags, MAP_SHARED, data_map_fd, 0); in test_mmap() 180 tmp1 = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap() 206 tmp1 = mmap(tmp0, 3 * page_size, PROT_READ, MAP_SHARED | MAP_FIXED, in test_mmap() 221 tmp2 = mmap(tmp1 + page_size, page_size, PROT_READ, in test_mmap() 232 tmp2 = mmap(tmp1, 4 * page_size, PROT_READ, MAP_SHARED | MAP_FIXED, in test_mmap() 253 tmp1 = mmap(NULL, 4 * page_size, PROT_READ, MAP_SHARED | MAP_FIXED, in test_mmap() [all …]
|
A D | ringbuf.c | 105 mmap_ptr = mmap(NULL, page_size, PROT_READ | PROT_WRITE, MAP_SHARED, rb_fd, 0); in test_ringbuf() 114 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, page_size); in test_ringbuf() 120 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, 2 * page_size); in test_ringbuf() 124 mmap_ptr = mmap(NULL, page_size, PROT_WRITE, MAP_SHARED, rb_fd, 3 * page_size); in test_ringbuf() 126 mmap_ptr = mmap(NULL, 2 * page_size, PROT_WRITE, MAP_SHARED, rb_fd, 2 * page_size); in test_ringbuf() 130 mmap_ptr = mmap(NULL, 4 * page_size, PROT_READ, MAP_SHARED, rb_fd, 0); in test_ringbuf() 140 mmap_ptr = mmap(NULL, page_size, PROT_READ, MAP_SHARED, rb_fd, page_size); in test_ringbuf()
|
/linux/Documentation/ia64/ |
A D | aliasing.rst | 96 mmap of /dev/mem 111 mmap of /sys/class/pci_bus/.../legacy_mem 114 This is very similar to mmap of /dev/mem, except that legacy_mem 115 only allows mmap of the one megabyte "legacy MMIO" area for a 124 The /dev/mem mmap constraints apply. 126 mmap of /proc/bus/pci/.../??.? 129 This is an MMIO mmap of PCI functions, which additionally may or 175 mmap of various MMIO regions from /dev/mem by "X" on Intel platforms 181 when the EFI memory map is incomplete, every /dev/mem mmap must 185 mmap of 0x0-0x9FFFF /dev/mem by "hwinfo" on HP sx1000 with VGA enabled [all …]
|
/linux/Documentation/userspace-api/media/dvb/ |
A D | dmx-mmap.rst | 4 .. _dmx-mmap: 7 Digital TV mmap() 13 dmx-mmap - Map device memory into application address space 25 .. c:function:: void *mmap( void *start, size_t length, int prot, int flags, int fd, off_t offset ) 33 multiple of the pagesize and mmap will fail when the specified 56 :c:func:`mmap()` will fail. If ``MAP_FIXED`` is specified, 80 The :c:func:`mmap()` function asks to map ``length`` bytes starting at 94 On success :c:func:`mmap()` returns a pointer to the mapped buffer. On
|
A D | dmx-munmap.rst | 32 :c:func:`mmap()` function. 36 :c:func:`mmap()`. 41 Unmaps a previously with the :c:func:`mmap()` function mapped
|
/linux/Documentation/userspace-api/media/v4l/ |
A D | func-mmap.rst | 4 .. _func-mmap: 7 V4L2 mmap() 13 v4l2-mmap - Map device memory into application address space 23 .. c:function:: void *mmap( void *start, size_t length, int prot, int flags, int fd, off_t offset ) 31 multiple of the pagesize and mmap will fail when the specified 55 :c:func:`mmap()` function fails. 71 :c:func:`mmap()` will fail. If ``MAP_FIXED`` is specified, 101 The :c:func:`mmap()` function asks to map ``length`` bytes starting at 116 On success :c:func:`mmap()` returns a pointer to the mapped buffer. On
|
A D | func-munmap.rst | 30 :c:func:`mmap()` function. 34 :c:func:`mmap()` and returned by the driver in the struct 43 Unmaps a previously with the :c:func:`mmap()` function mapped
|
/linux/tools/lib/perf/ |
A D | evsel.c | 47 #define MMAP(e, x, y) (e->mmap ? ((struct perf_mmap *) xyarray__entry(e->mmap, x, y)) : NULL) 70 evsel->mmap = xyarray__new(ncpus, nthreads, sizeof(struct perf_mmap)); in perf_evsel__alloc_mmap() 72 return evsel->mmap != NULL ? 0 : -ENOMEM; in perf_evsel__alloc_mmap() 217 if (evsel->fd == NULL || evsel->mmap == NULL) in perf_evsel__munmap() 231 xyarray__delete(evsel->mmap); in perf_evsel__munmap() 232 evsel->mmap = NULL; in perf_evsel__munmap() 243 if (evsel->fd == NULL || evsel->mmap) in perf_evsel__mmap()
|
/linux/tools/testing/selftests/memfd/ |
A D | memfd_test.c | 175 p = mmap(NULL, in mfd_assert_mmap_shared() 193 p = mmap(NULL, in mfd_assert_mmap_private() 248 p = mmap(NULL, in mfd_assert_read() 261 p = mmap(NULL, in mfd_assert_read() 280 p = mmap(NULL, in mfd_assert_read_shared() 298 p = mmap(NULL, in mfd_assert_fork_private_write() 347 p = mmap(NULL, in mfd_assert_write() 361 p = mmap(NULL, in mfd_assert_write() 376 p = mmap(NULL, in mfd_assert_write() 421 p = mmap(NULL, in mfd_fail_write() [all …]
|
/linux/Documentation/arm/ |
A D | uefi.rst | 57 linux,uefi-mmap-start 64-bit Physical address of the UEFI memory map, 60 linux,uefi-mmap-size 32-bit Size in bytes of the UEFI memory map 63 linux,uefi-mmap-desc-size 32-bit Size in bytes of each entry in the UEFI 66 linux,uefi-mmap-desc-ver 32-bit Version of the mmap descriptor format.
|
/linux/tools/testing/selftests/mincore/ |
A D | mincore_selftest.c | 50 addr = mmap(NULL, page_size, PROT_READ | PROT_WRITE, in TEST() 94 addr = mmap(NULL, page_size, PROT_READ | PROT_WRITE, in TEST() 149 addr = mmap(NULL, page_size, PROT_READ | PROT_WRITE, in TEST() 225 addr = mmap(NULL, FILE_SIZE, PROT_READ | PROT_WRITE, in TEST() 322 addr = mmap(NULL, FILE_SIZE, PROT_READ | PROT_WRITE, in TEST()
|
/linux/sound/core/ |
A D | memalloc.c | 191 if (ops && ops->mmap) in snd_dma_buffer_mmap() 192 return ops->mmap(dmab, area); in snd_dma_buffer_mmap() 299 .mmap = snd_dma_continuous_mmap, 364 .mmap = snd_dma_vmalloc_mmap, 419 .mmap = snd_dma_iram_mmap, 468 .mmap = snd_dma_dev_mmap, 498 .mmap = snd_dma_wc_mmap, 616 .mmap = snd_dma_noncontig_mmap, 665 .mmap = snd_dma_noncoherent_mmap,
|