| /OK3568_Linux_fs/buildroot/boot/grub2/ |
| H A D | 0049-mmap-Fix-memory-leak-when-iterating-over-mapped-memo.patch | 4 Subject: [PATCH] mmap: Fix memory leak when iterating over mapped memory 15 grub-core/mmap/mmap.c | 2 ++ 18 diff --git a/grub-core/mmap/mmap.c b/grub-core/mmap/mmap.c 20 --- a/grub-core/mmap/mmap.c 21 +++ b/grub-core/mmap/mmap.c
|
| H A D | 0040-mmap-Don-t-register-cutmem-and-badram-commands-when-.patch | 4 Subject: [PATCH] mmap: Don't register cutmem and badram commands when lockdown 19 grub-core/mmap/mmap.c | 13 +++++++------ 37 diff --git a/grub-core/mmap/mmap.c b/grub-core/mmap/mmap.c 39 --- a/grub-core/mmap/mmap.c 40 +++ b/grub-core/mmap/mmap.c 51 GRUB_MOD_INIT(mmap)
|
| /OK3568_Linux_fs/kernel/tools/perf/arch/x86/util/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/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() 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, int 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 …]
|
| H A D | mmap.h | 32 struct mmap { struct 54 int mmap__mmap(struct mmap *map, struct mmap_params *mp, int fd, int cpu); argument 55 void mmap__munmap(struct mmap *map); 57 union perf_event *perf_mmap__read_forward(struct mmap *map); 59 int perf_mmap__push(struct mmap *md, void *to, 60 int push(struct mmap *map, void *to, void *buf, size_t size)); 62 size_t mmap__mmap_len(struct mmap *map);
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/vm/ |
| H A D | map_fixed_noreplace.c | 34 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()
|
| H 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()
|
| /OK3568_Linux_fs/kernel/arch/um/kernel/ |
| H A D | tlb.c | 27 } 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() 138 (last->u.mmap.addr + last->u.mmap.len == virt) && in add_mmap() 139 (last->u.mmap.prot == prot) && (last->u.mmap.fd == fd) && in add_mmap() 140 (last->u.mmap.offset + last->u.mmap.len == offset)) { in add_mmap() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/arm/ |
| H 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>;
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/ |
| H A D | mmap.c | 41 tmp1 = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, rdmap_fd, 0); in test_mmap() 47 tmp1 = mmap(NULL, 4096, PROT_READ, MAP_SHARED, rdmap_fd, 0); in test_mmap() 59 bss_mmaped = mmap(NULL, bss_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap() 67 map_mmaped = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap() 132 map_mmaped = mmap(NULL, map_sz, PROT_READ, MAP_SHARED, data_map_fd, 0); in test_mmap() 151 p = mmap(NULL, map_sz, flags, MAP_SHARED, data_map_fd, 0); in test_mmap() 166 tmp1 = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap() 186 tmp0 = mmap(NULL, 4 * page_size, PROT_READ, MAP_SHARED | MAP_ANONYMOUS, in test_mmap() 192 tmp1 = mmap(tmp0, 3 * page_size, PROT_READ, MAP_SHARED | MAP_FIXED, in test_mmap() 207 tmp2 = mmap(tmp1 + page_size, page_size, PROT_READ, in test_mmap() [all …]
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/qemu/qemu/ |
| H A D | 0001-Define-MAP_SYNC-and-MAP_SHARED_VALIDATE-on-needed-li.patch | 17 util/mmap-alloc.c | 10 +++++++--- 20 diff --git a/util/mmap-alloc.c b/util/mmap-alloc.c 22 --- a/util/mmap-alloc.c 23 +++ b/util/mmap-alloc.c 43 #include "qemu/mmap-alloc.h"
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-filesystems/recipes-utils/xfsprogs/files/ |
| H A D | 0002-include-include-xfs-linux.h-after-sys-mman.h.patch | 13 io/mmap.c | 5 +++-- 16 diff --git a/io/mmap.c b/io/mmap.c 18 --- a/io/mmap.c 19 +++ b/io/mmap.c
|
| /OK3568_Linux_fs/u-boot/arch/arm/cpu/arm926ejs/armada100/ |
| H A D | dram.c | 32 struct armd1ddr_map_registers mmap[2]; member 43 u32 CS_valid = 0x01 & readl(&ddr_regs->mmap[chip_sel].cs); in armd1_sdram_base() 48 result = readl(&ddr_regs->mmap[chip_sel].cs) & 0xFF800000; in armd1_sdram_base() 60 u32 CS_valid = 0x01 & readl(&ddr_regs->mmap[chip_sel].cs); in armd1_sdram_size() 65 result = readl(&ddr_regs->mmap[chip_sel].cs); in armd1_sdram_size()
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-extended/libx86-1/libx86-1.1/ |
| H A D | libx86-mmap-offset.patch | 76 m = mmap((void *)REAL_MEM_BASE, REAL_MEM_SIZE, 83 perror("mmap /dev/zero"); 147 - m = mmap((void *)0, 0x502, 150 + m = mmap(offset, 0x502, 157 perror("mmap /dev/mem"); 162 - m = mmap((void *)0xa0000, 0x100000 - 0xa0000, 163 + m = mmap(offset+0xa0000, 0x100000 - 0xa0000, 172 perror("mmap /dev/mem");
|
| /OK3568_Linux_fs/buildroot/package/libv4l/ |
| H A D | 0001-libv4l2-Support-mmap-to-libv4l-plugin.patch | 4 Subject: [PATCH 1/7] libv4l2: Support mmap() to libv4l-plugin 20 + void * (*mmap)(void *dev_ops_priv, void *start, size_t length, int prot, 33 + if (index != -1 && devices[index].dev_ops->mmap) { 35 + result = devices[index].dev_ops->mmap( 44 /* Check if the mmap data matches our answer to QUERY_BUF. If it doesn't, 45 let the kernel handle it (to allow for mmap-based non capture use) */
|
| H A D | 0003-libv4l-add-V4L2_MEMORY_DMABUF-memory-support.patch | 51 + "buf conversion and mmap emulation are disabled\n"); 69 /* Since we need to do conversion try to use mmap (streaming) mode under 77 if (index != -1 && devices[index].dev_ops->mmap) { 79 result = devices[index].dev_ops->mmap( 89 /* Check if the mmap data matches our answer to QUERY_BUF. If it doesn't, 90 let the kernel handle it (to allow for mmap-based non capture use) */
|
| /OK3568_Linux_fs/yocto/meta-rockchip/recipes-multimedia/v4l2apps/v4l-utils/ |
| H A D | 0001-libv4l2-Support-mmap-to-libv4l-plugin.patch | 4 Subject: [PATCH 1/6] libv4l2: Support mmap() to libv4l-plugin 20 + void * (*mmap)(void *dev_ops_priv, void *start, size_t length, int prot, 33 + if (index != -1 && devices[index].dev_ops->mmap) { 35 + result = devices[index].dev_ops->mmap( 44 /* Check if the mmap data matches our answer to QUERY_BUF. If it doesn't, 45 let the kernel handle it (to allow for mmap-based non capture use) */
|
| H A D | 0003-libv4l-Support-V4L2_MEMORY_DMABUF.patch | 52 + "buf conversion and mmap emulation are disabled\n"); 70 /* Since we need to do conversion try to use mmap (streaming) mode under 78 if (index != -1 && devices[index].dev_ops->mmap) { 80 result = devices[index].dev_ops->mmap( 90 /* Check if the mmap data matches our answer to QUERY_BUF. If it doesn't, 91 let the kernel handle it (to allow for mmap-based non capture use) */
|
| /OK3568_Linux_fs/kernel/Documentation/ia64/ |
| H 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 …]
|
| /OK3568_Linux_fs/kernel/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
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-support/apr/apr/ |
| H A D | 0001-configure-Remove-runtime-test-for-mmap-that-can-map-.patch | 4 Subject: [PATCH] configure: Remove runtime test for mmap that can map 22 @@ -1303,36 +1303,6 @@ AC_CHECK_FUNCS([mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \ 26 -# Not all systems can mmap /dev/zero (such as HP-UX). Check for that. 29 - AC_CACHE_CHECK([for mmap that can map /dev/zero], 45 - m = mmap(0, sizeof(void*), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
|
| /OK3568_Linux_fs/kernel/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
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-devtools/php/php/ |
| H A D | 0001-ext-opcache-config.m4-enable-opcache.patch | 107 AC_MSG_CHECKING(for mmap() using MAP_ANON shared memory support) 129 - shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0); 165 - AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) 167 + AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support]) 172 AC_MSG_CHECKING(for mmap() using shm_open() shared memory support) 209 - shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); 238 - AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support]) 242 + AC_DEFINE(HAVE_SHM_MMAP_POSIX, 1, [Define if you have POSIX mmap() SHM support])
|
| /OK3568_Linux_fs/buildroot/package/perl-sys-mmap/ |
| H A D | Config.in | 2 bool "perl-sys-mmap" 5 uses mmap to map in a file as a Perl variable. 9 comment "perl-sys-mmap needs a toolchain w/ dynamic library"
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/memfd/ |
| H 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 …]
|