| /linux-6.15/drivers/leds/blink/ |
| H 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() 573 err = regmap_write(priv->mmap, SSO_CON3, 0); in sso_gpio_hw_init() 578 err = regmap_write(priv->mmap, SSO_CON2, 0); in sso_gpio_hw_init() 583 err = regmap_write(priv->mmap, SSO_CPU, 0); in sso_gpio_hw_init() 812 if (IS_ERR(priv->mmap)) { in intel_sso_led_probe() 814 return PTR_ERR(priv->mmap); in intel_sso_led_probe() 819 regmap_exit(priv->mmap); in intel_sso_led_probe() 832 regmap_exit(priv->mmap); in intel_sso_led_probe() [all …]
|
| /linux-6.15/tools/perf/util/ |
| H 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 …]
|
| H A D | mmap.h | 29 struct mmap { struct 52 int mmap__mmap(struct mmap *map, struct mmap_params *mp, int fd, struct perf_cpu cpu); argument 53 void mmap__munmap(struct mmap *map); 55 union perf_event *perf_mmap__read_forward(struct mmap *map); 57 int perf_mmap__push(struct mmap *md, void *to, 58 int push(struct mmap *map, void *to, void *buf, size_t size)); 60 size_t mmap__mmap_len(struct mmap *map);
|
| /linux-6.15/tools/perf/arch/x86/util/ |
| H A D | event.c | 36 size = sizeof(event->mmap) - sizeof(event->mmap.filename) + in perf_event__synthesize_extra_kmaps_cb() 42 event->mmap.header.type = PERF_RECORD_MMAP; in perf_event__synthesize_extra_kmaps_cb() 53 event->mmap.header.size = size; in perf_event__synthesize_extra_kmaps_cb() 55 event->mmap.start = map__start(map); in perf_event__synthesize_extra_kmaps_cb() 56 event->mmap.len = map__size(map); in perf_event__synthesize_extra_kmaps_cb() 57 event->mmap.pgoff = map__pgoff(map); in perf_event__synthesize_extra_kmaps_cb() 58 event->mmap.pid = args->machine->pid; in perf_event__synthesize_extra_kmaps_cb() 60 strlcpy(event->mmap.filename, kmap->name, PATH_MAX); in perf_event__synthesize_extra_kmaps_cb() 78 .event = zalloc(sizeof(args.event->mmap) + machine->id_hdr_size), in perf_event__synthesize_extra_kmaps()
|
| /linux-6.15/tools/testing/selftests/mm/ |
| H A D | map_fixed_noreplace.c | 31 addr = mmap(NULL, size, PROT_NONE, flags, -1, 0); in find_base_addr() 61 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 75 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 93 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 112 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 130 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 148 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() 184 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
|
| H A D | mremap_dontunmap.c | 46 void *source_mapping = mmap(NULL, num_pages * page_size, PROT_NONE, in kernel_support_for_mremap_dontunmap() 100 mmap(NULL, num_pages * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_simple() 140 mmap(NULL, num_pages * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_simple_shmem() 190 mmap(NULL, num_pages * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_simple_fixed() 196 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() 300 mmap(NULL, 5 * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_partial_mapping_overwrite() 306 mmap(NULL, 10 * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_partial_mapping_overwrite() 355 mmap(NULL, page_size, PROT_READ | PROT_WRITE, in main()
|
| H A D | hugetlb-madvise.c | 97 addr = mmap(NULL, (NR_HUGE_PAGES + 2) * huge_page_size, in main() 139 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main() 177 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main() 207 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main() 266 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main() 306 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main() 318 addr2 = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main()
|
| H A D | madv_populate.c | 35 addr = mmap(0, pagesize, PROT_READ | PROT_WRITE, in sense_support() 58 addr = mmap(0, SIZE, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_read() 79 addr = mmap(0, SIZE, PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_write() 100 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_holes() 170 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_populate_read() 192 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_populate_write() 242 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_softdirty()
|
| H A D | mdwe_test.c | 219 self->p = mmap(NULL, self->size, PROT_READ | PROT_EXEC, self->flags, 0, 0); in TEST_F() 225 self->p = mmap(NULL, self->size, PROT_WRITE | PROT_EXEC, self->flags, 0, 0); in TEST_F() 237 self->p = mmap(NULL, self->size, PROT_READ | PROT_EXEC, self->flags, 0, 0); in TEST_F() 248 self->p = mmap(NULL, self->size, PROT_READ, self->flags, 0, 0); in TEST_F() 263 self->p = mmap(NULL, self->size, PROT_WRITE, self->flags, 0, 0); in TEST_F() 278 self->p = mmap(NULL, self->size, PROT_READ, self->flags, 0, 0); in TEST_F() 282 p = mmap(self->p, self->size, PROT_READ | PROT_EXEC, in TEST_F() 296 self->p = mmap(NULL, self->size, PROT_EXEC, self->flags, 0, 0); in TEST_F()
|
| H A D | hugepage-mremap.c | 84 addr = mmap(NULL, len, PROT_READ | PROT_WRITE, in register_region_with_uffd() 125 void *haddr = mmap((void *)suggested_addr, length, PROTECTION, in main() 133 void *daddr = mmap((void *)suggested_addr, length, PROTECTION, in main() 141 mmap((void *)suggested_addr, length, PROTECTION, FLAGS, -1, 0); in main()
|
| H A D | mlock2-tests.c | 181 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_mlock_lock() 232 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_mlock_onfault() 259 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_lock_onfault_of_present() 282 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_munlockall0() 308 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_munlockall1() 351 map = mmap(NULL, 3 * page_size, PROT_READ | PROT_WRITE, in test_vma_management() 435 map = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in main()
|
| /linux-6.15/Documentation/devicetree/bindings/arm/ |
| H A D | xen.txt | 31 xen,uefi-mmap-start | 64-bit | Guest physical address of the UEFI memory 34 xen,uefi-mmap-size | 32-bit | Size in bytes of the UEFI memory map 37 xen,uefi-mmap-desc-size | 32-bit | Size in bytes of each entry in the UEFI 40 xen,uefi-mmap-desc-ver | 32-bit | Version of the mmap descriptor format. 51 xen,uefi-mmap-start = <0xXXXXXXXX>; 52 xen,uefi-mmap-size = <0xXXXXXXXX>; 53 xen,uefi-mmap-desc-size = <0xXXXXXXXX>; 54 xen,uefi-mmap-desc-ver = <0xXXXXXXXX>;
|
| /linux-6.15/tools/testing/selftests/bpf/prog_tests/ |
| H 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 …]
|
| /linux-6.15/tools/perf/tests/ |
| H A D | dlfilter-test.c | 152 ssize_t sz = sizeof(*mmap) - sizeof(mmap->filename) + fsz; in write_mmap() 154 mmap->header.type = PERF_RECORD_MMAP; in write_mmap() 155 mmap->header.misc = PERF_RECORD_MISC_USER; in write_mmap() 156 mmap->header.size = sz; in write_mmap() 158 mmap->pid = pid; in write_mmap() 159 mmap->tid = tid; in write_mmap() 160 mmap->start = start; in write_mmap() 161 mmap->len = len; in write_mmap() 162 mmap->pgoff = pgoff; in write_mmap() 163 strncpy(mmap->filename, filename, sizeof(mmap->filename)); in write_mmap() [all …]
|
| /linux-6.15/Documentation/translations/zh_CN/mm/damon/ |
| H A D | design.rst | 53 的mmap()区域之间的间隙,以及在大多数情况下最下面的mmap()区域和堆之间的间隙。因为这些间隙 58 <uppermost mmap()-ed region> 59 (small mmap()-ed regions and munmap()-ed regions) 60 <lowermost mmap()-ed region>
|
| /linux-6.15/Documentation/translations/zh_CN/PCI/ |
| H A D | sysfs-pci.rst | 56 resource0..N PCI资源N,如果存在的话 (binary, mmap, rw\ [1]_) 57 resource0_wc..N_wc PCI WC映射资源N,如果可预取的话 (binary, mmap) 70 mmap - 文件是可移动的 78 行操作(例如,改变配置空间,分离设备)。 mmapable文件可以通过偏移量为0的文件的mmap获得, 80 检查任何尝试的mmap的返回值。其中最值得注意的是I/O端口资源,它也提供读/写访问。 116 功能的通用实现。为了支持通过/proc/bus/pci中的文件实现mmap()的历史接口,平台也可以设置
|
| /linux-6.15/Documentation/translations/zh_CN/mm/ |
| H A D | hugetlbfs_reserv.rst | 22 持后不久,人们决定,在mmap()时检测巨页的短缺情况会更好。这个想法是,如果 23 没有足够的巨页来覆盖映射,mmap()将失败。这首先是在mmap()时在代码中做一个 25 样,代码随着时间的推移而不断发展。然而,基本的想法是在mmap()时 “预留” 85 留映射是在创建映射(mmap(MAP_PRIVATE))时创建的。 93 当创建一个巨大的有页面支持的共享内存段(shmget(SHM_HUGETLB))或通过mmap(MAP_HUGETLB) 101 hugetlb_reserve_pages()做的第一件事是检查在调用shmget()或mmap()时是否指定了NORESERVE 105 的长度。对于mmap(),offset参数可以用来指定进入底层文件的偏移量。在这种情况下,'from'和'to'
|
| H A D | overcommit-accounting.rst | 44 你 **必须** 为你认为你需要的最大尺寸的堆栈进行mmap。对于典型的堆栈使用来说,这并 66 | 通过mmap制作可写副本的页面 72 * 我们核算mmap内存映射
|
| /linux-6.15/Documentation/userspace-api/media/dvb/ |
| H 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
|
| H 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-6.15/Documentation/userspace-api/media/v4l/ |
| H 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
|
| /linux-6.15/Documentation/mm/ |
| H A D | process_addrs.rst | 45 * **mmap locks** - Each MM has a read/write semaphore :c:member:`!mmap_lock` 52 automatically when the mmap write lock is released). To take a VMA write lock 99 VMA locks are special in that you must obtain an mmap **write** lock **first** 116 mmap lock VMA lock rmap lock Stable? Read? Write most? Write all? 156 :c:member:`!vm_start` Inclusive start virtual address of range mmap write, 159 :c:member:`!vm_end` Exclusive end virtual address of range mmap write, 503 stable, that is holding any one of the mmap, VMA or rmap locks. 671 either the mmap write lock has been taken (as specified by its 699 the mmap lock, the VMA lock and the relevant rmap locks. 802 the mm. During this entire operation mmap write lock is held. [all …]
|
| /linux-6.15/tools/testing/selftests/ring-buffer/ |
| H A D | map_test.c | 96 map = mmap(NULL, page_size, PROT_READ, MAP_SHARED, desc->cpu_fd, 0); in tracefs_cpu_map() 224 data = mmap(NULL, data_len, PROT_READ, MAP_SHARED, in TEST_F() 231 data = mmap(NULL, data_len, PROT_READ, MAP_SHARED, in TEST_F() 238 data = mmap(NULL, data_len, PROT_READ, MAP_SHARED, in TEST_F() 244 data = mmap(NULL, data_len, PROT_READ, MAP_SHARED, in TEST_F() 251 data = mmap(NULL, data_len, in TEST_F()
|
| /linux-6.15/Documentation/arch/arm/ |
| H 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-6.15/tools/testing/selftests/riscv/mm/ |
| H A D | mmap_test.h | 18 void *value1 = mmap(NULL, sizeof(int), PROT, FLAGS, 0, 0); in memory_layout() 19 void *value2 = mmap(NULL, sizeof(int), PROT, FLAGS, 0, 0); in memory_layout()
|