Home
last modified time | relevance | path

Searched refs:mmap (Results 1 – 25 of 954) sorted by relevance

12345678910>>...39

/linux-6.1.9/tools/perf/arch/x86/util/
Devent.c22 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-6.1.9/drivers/leds/blink/
Dleds-lgm-sso.c133 struct regmap *mmap; member
222 regmap_update_bits(priv->mmap, reg, GENMASK(high, low), val); in sso_led_freq_set()
229 regmap_update_bits(priv->mmap, reg, GENMASK(high, low), val); in sso_led_freq_set()
245 regmap_write(priv->mmap, DUTY_CYCLE(desc->pin), brightness); in sso_led_brightness_set()
255 regmap_update_bits(priv->mmap, SSO_CON2, BIT(desc->pin), 0); in sso_led_brightness_set()
258 regmap_update_bits(priv->mmap, SSO_CON2, BIT(desc->pin), in sso_led_brightness_set()
316 regmap_update_bits(priv->mmap, SSO_CON2, BIT(led->desc.pin), in sso_led_blink_set()
332 regmap_update_bits(priv->mmap, SSO_CON2, BIT(desc->pin), in sso_led_hw_cfg()
337 regmap_update_bits(priv->mmap, SSO_CON3, BIT(desc->pin), in sso_led_hw_cfg()
341 regmap_write(priv->mmap, DUTY_CYCLE(desc->pin), desc->brightness); in sso_led_hw_cfg()
[all …]
/linux-6.1.9/tools/perf/util/
Dmmap.h34 struct mmap { struct
58 int mmap__mmap(struct mmap *map, struct mmap_params *mp, int fd, struct perf_cpu cpu); argument
59 void mmap__munmap(struct mmap *map);
61 union perf_event *perf_mmap__read_forward(struct mmap *map);
63 int perf_mmap__push(struct mmap *md, void *to,
64 int push(struct mmap *map, void *to, void *buf, size_t size));
66 size_t mmap__mmap_len(struct mmap *map);
Dmmap.c39 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()
79 map->aio.data[idx] = mmap(NULL, mmap__mmap_len(map), PROT_READ|PROT_WRITE, in perf_mmap__aio_alloc()
89 static void perf_mmap__aio_free(struct mmap *map, int idx) in perf_mmap__aio_free()
97 static int perf_mmap__aio_bind(struct mmap *map, int idx, struct perf_cpu cpu, int affinity) in perf_mmap__aio_bind()
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()
140 static int perf_mmap__aio_bind(struct mmap *map __maybe_unused, int idx __maybe_unused, in perf_mmap__aio_bind()
147 static int perf_mmap__aio_mmap(struct mmap *map, struct mmap_params *mp) in perf_mmap__aio_mmap()
[all …]
/linux-6.1.9/tools/testing/selftests/vm/
Dmap_fixed_noreplace.c34 addr = mmap(NULL, size, PROT_NONE, flags, -1, 0); in find_base_addr()
69 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
90 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
110 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
131 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
151 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
171 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
191 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
211 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
Dmremap_dontunmap.c49 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()
Dmadv_populate.c43 addr = mmap(0, pagesize, PROT_READ | PROT_WRITE, in sense_support()
66 addr = mmap(0, SIZE, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_read()
87 addr = mmap(0, SIZE, PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_write()
108 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_holes()
178 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_populate_read()
200 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_populate_write()
250 addr = mmap(0, SIZE, PROT_READ | PROT_WRITE, in test_softdirty()
Dhugetlb-madvise.c140 addr = mmap(NULL, (NR_HUGE_PAGES + 2) * huge_page_size, in main()
182 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main()
219 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main()
249 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main()
308 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main()
348 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main()
360 addr2 = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main()
Dhugepage-mremap.c85 addr = mmap(NULL, len, PROT_READ | PROT_WRITE, in register_region_with_uffd()
138 void *haddr = mmap((void *)suggested_addr, length, PROTECTION, in main()
148 void *daddr = mmap((void *)suggested_addr, length, PROTECTION, in main()
158 mmap((void *)suggested_addr, length, PROTECTION, FLAGS, -1, 0); in main()
Dvirtual_address_range.c88 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()
/linux-6.1.9/Documentation/devicetree/bindings/arm/
Dxen.txt31 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.1.9/tools/testing/selftests/bpf/prog_tests/
Dmmap.c55 tmp1 = mmap(NULL, page_size, PROT_READ | PROT_WRITE, MAP_SHARED, rdmap_fd, 0); in test_mmap()
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()
200 tmp0 = mmap(NULL, 4 * page_size, PROT_READ, MAP_SHARED | MAP_ANONYMOUS, 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()
[all …]
Dringbuf.c105 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-6.1.9/tools/perf/tests/
Ddlfilter-test.c145 struct perf_record_mmap *mmap = (struct perf_record_mmap *)buf; in write_mmap() local
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()
[all …]
/linux-6.1.9/Documentation/translations/zh_CN/mm/damon/
Ddesign.rst53mmap()区域之间的间隙,以及在大多数情况下最下面的mmap()区域和堆之间的间隙。因为这些间隙
58 <uppermost mmap()-ed region>
59 (small mmap()-ed regions and munmap()-ed regions)
60 <lowermost mmap()-ed region>
/linux-6.1.9/Documentation/translations/zh_CN/PCI/
Dsysfs-pci.rst56 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.1.9/arch/um/kernel/
Dtlb.c27 } mmap; member
73 ret = map(&hvc->mm->context.id, op->u.mmap.addr, in do_ops()
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()
[all …]
/linux-6.1.9/Documentation/translations/zh_CN/mm/
Dhugetlbfs_reserv.rst21 持后不久,人们决定,在mmap()时检测巨页的短缺情况会更好。这个想法是,如果
22 没有足够的巨页来覆盖映射,mmap()将失败。这首先是在mmap()时在代码中做一个
24 样,代码随着时间的推移而不断发展。然而,基本的想法是在mmap()时 “预留”
84 留映射是在创建映射(mmap(MAP_PRIVATE))时创建的。
92 当创建一个巨大的有页面支持的共享内存段(shmget(SHM_HUGETLB))或通过mmap(MAP_HUGETLB)
100 hugetlb_reserve_pages()做的第一件事是检查在调用shmget()或mmap()时是否指定了NORESERVE
104 的长度。对于mmap(),offset参数可以用来指定进入底层文件的偏移量。在这种情况下,'from'和'to'
Dovercommit-accounting.rst45 你 **必须** 为你认为你需要的最大尺寸的堆栈进行mmap。对于典型的堆栈使用来说,这并
67 | 通过mmap制作可写副本的页面
73 * 我们核算mmap内存映射
/linux-6.1.9/Documentation/userspace-api/media/dvb/
Ddmx-mmap.rst4 .. _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
Ddmx-munmap.rst32 :c:func:`mmap()` function.
36 :c:func:`mmap()`.
41 Unmaps a previously with the :c:func:`mmap()` function mapped
/linux-6.1.9/Documentation/ia64/
Daliasing.rst96 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-6.1.9/Documentation/userspace-api/media/v4l/
Dfunc-mmap.rst4 .. _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.1.9/Documentation/arm/
Duefi.rst57 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.1.9/tools/testing/selftests/memfd/
Dmemfd_test.c175 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 …]

12345678910>>...39