/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-blob.cc | 556 assert (0); // If we don't have mmap we shouldn't reach here in _hb_mapped_file_destroy() 656 file->contents = (char *) mmap (nullptr, file->length, PROT_READ, in hb_blob_create_from_file_or_fail() 735 It's used as a fallback for systems without mmap or to read from pipes */ in hb_blob_create_from_file_or_fail() 748 /* Don't allocate and go more than ~536MB, our mmap reader still in hb_blob_create_from_file_or_fail()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/ |
H A D | symbolize_test.cc | 339 void *addr = mmap(nullptr, kPageSize, PROT_READ, kMapFlags, 0, 0); in TEST()
|
/third_party/rust/crates/rustix/src/backend/libc/ |
H A D | offset.rs | 48 pub(super) use c::mmap as libc_mmap;
|
/third_party/selinux/checkpolicy/test/ |
H A D | dispol.c | 420 mmap(NULL, sb.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in main()
|
/third_party/zlib/test/ |
H A D | minigzip.c | 315 /* Try compressing the input file at once using mmap. Return Z_OK if 323 caddr_t buf; /* mmap'ed buffer for the entire input file */ in gz_compress_mmap() 327 /* Determine the size of the file, needed for mmap: */ in gz_compress_mmap() 338 /* Now do the actual mmap: */ in gz_compress_mmap() 339 buf = mmap((caddr_t) 0, buf_len, PROT_READ, MAP_SHARED, ifd, (off_t)0); in gz_compress_mmap() 374 /* Try first compressing with mmap. If mmap fails (minigzip used in a in gz_compress()
|
/third_party/musl/porting/liteos_a/user/ldso/ |
H A D | dynlink.c | 582 q = mmap(p, n, prot, flags|MAP_FIXED, fd, off); in mmap_fixed() 701 map = mmap(0, ph->p_memsz + (ph->p_vaddr & PAGE_SIZE-1), in map_library() 741 ? mmap((void *)addr_min, map_len, PROT_READ|PROT_WRITE|PROT_EXEC, in map_library() 743 : mmap((void *)addr_min, map_len, prot, in map_library()
|
/third_party/musl/porting/liteos_a/user_debug/ldso/ |
H A D | dynlink.c | 582 q = mmap(p, n, prot, flags|MAP_FIXED, fd, off); in mmap_fixed() 701 map = mmap(0, ph->p_memsz + (ph->p_vaddr & PAGE_SIZE-1), in map_library() 741 ? mmap((void *)addr_min, map_len, PROT_READ|PROT_WRITE|PROT_EXEC, in map_library() 743 : mmap((void *)addr_min, map_len, prot, in map_library()
|
/third_party/f2fs-tools/tools/f2fs_io/ |
H A D | f2fs_io.c | 650 " mmap : mmap IO\n" \ 682 else if (!strcmp(argv[4], "mmap")) in do_read() 696 data = mmap(NULL, count * buf_size, PROT_READ, in do_read() 934 " -m : mmap the source file\n" \ 986 src_addr = mmap(NULL, stbuf.st_size, PROT_READ, MAP_SHARED, in do_copy() 989 die("mmap of source file failed"); in do_copy()
|
/third_party/ltp/testcases/kernel/fs/fsx-linux/ |
H A D | fsx-linux.c | 672 if ((p = mmap(0, map_size, PROT_READ, MAP_FILE | MAP_SHARED, fd, in domapread() 674 prterr("domapread: mmap"); in domapread() 682 prt(" %lu.%06lu mmap done\n", t.tv_sec, t.tv_usec); in domapread() 832 mmap(0, map_size, PROT_READ | PROT_WRITE, MAP_FILE | MAP_SHARED, in domapwrite() 834 prterr("domapwrite: mmap"); in domapwrite() 842 prt(" %lu.%06lu mmap done\n", t.tv_sec, t.tv_usec); in domapwrite()
|
/third_party/mesa3d/src/gallium/frontends/nine/ |
H A D | nine_memory_helper.c | 60 * large enough allocations which use mmap internally), allocating ends up faster than with the standard 667 void *buf = mmap(NULL, region->size, PROT_READ | PROT_WRITE, MAP_SHARED, memfd_file->fd, region->offset); in nine_memfd_region_map() 670 DBG("Failed to mmap a memfd file - trying to unmap other files\n"); in nine_memfd_region_map() 672 buf = mmap(NULL, region->size, PROT_READ | PROT_WRITE, MAP_SHARED, memfd_file->fd, region->offset); in nine_memfd_region_map() 675 DBG("Failed to mmap a memfd file, errno=%d\n", (int)errno); in nine_memfd_region_map() 681 assert((uintptr_t)buf % NINE_ALLOCATION_ALIGNMENT == 0); /* mmap should be page_size aligned, so it should be fine */ in nine_memfd_region_map()
|
/third_party/mesa3d/src/virtio/vulkan/ |
H A D | vn_renderer_vtest.c | 40 /* might be closed after mmap */ 681 /* We wrongly assume that mmap(dma_buf) and vkMapMemory(VkDeviceMemory) in vtest_bo_map() 686 void *ptr = mmap(NULL, bo->base.mmap_size, PROT_READ | PROT_WRITE, in vtest_bo_map() 689 vn_log(vtest->instance, "failed to mmap %d of size %zu rw: %s", in vtest_bo_map() 828 mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, res_fd, 0); in vtest_shmem_create()
|
/third_party/mesa3d/src/gallium/drivers/crocus/ |
H A D | crocus_bufmgr.c | 822 void *map = mmap(0, bo->size, PROT_READ | PROT_WRITE, MAP_SHARED, in crocus_bo_gem_mmap_offset() 887 * contents, and so long as we only read from the CPU mmap we do not in crocus_bo_map_cpu() 968 DBG("bo_map_gtt: mmap %d (%s)\n", bo->gem_handle, bo->name); in crocus_bo_map_gtt() 980 /* and mmap it. */ in crocus_bo_map_gtt() 981 void *map = mmap(0, bo->size, PROT_READ | PROT_WRITE, in crocus_bo_map_gtt() 990 * already intercept this mmap call. However, for consistency between in crocus_bo_map_gtt() 991 * all the mmap paths, we mark the pointer as defined now and mark it in crocus_bo_map_gtt() 1032 * bo, invalidating continued access to the CPU mmap on non-LLC device. in can_map_cpu()
|
/third_party/mksh/ |
H A D | histrap.c | 698 * This stuff uses mmap() 701 * redesigned, without mmap, better checks, support for 804 base = (void *)mmap(NULL, (size_t)histfsize, PROT_READ, in hist_persist_init() 865 /* ... or mmap failed or illegal */ in hist_persist_init() 985 base = (void *)mmap(NULL, (size_t)sizenow, PROT_READ, in writehistfile()
|
/device/soc/hisilicon/hi3516dv300/sdk_liteos/include/ |
H A D | hi_osal.h | 414 int (*mmap)(osal_vm_t *vm, unsigned long start, unsigned long end, unsigned long vm_pgoff, void *private_data); member
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_vinstr.c | 139 .mmap = kbasep_vinstr_hwcnt_reader_mmap, 1060 * kbasep_vinstr_hwcnt_reader_mmap() - hwcnt reader's mmap.
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_vinstr.c | 124 .mmap = kbasep_vinstr_hwcnt_reader_mmap, 992 * kbasep_vinstr_hwcnt_reader_mmap() - hwcnt reader's mmap.
|
/third_party/alsa-lib/src/pcm/ |
H A D | pcm_iec958.c | 542 .mmap = snd_pcm_generic_mmap,
|
H A D | pcm_extplug.c | 471 .mmap = snd_pcm_generic_mmap,
|
H A D | pcm_dsnoop.c | 475 .mmap = snd_pcm_direct_mmap,
|
/third_party/NuttX/drivers/usbdev/gadget/fconfig/src/ |
H A D | usbd_generic_epfile.c | 587 .mmap = generic_epfile_handle_mmap,
|
/third_party/mesa3d/src/freedreno/vulkan/ |
H A D | tu_kgsl.c | 169 void *map = mmap(0, bo->size, PROT_READ | PROT_WRITE, MAP_SHARED, in tu_bo_map()
|
/third_party/mesa3d/src/broadcom/simulator/ |
H A D | v3d_simulator.c | 247 * dumb mmap on render nodes, so use their ioctl directly if we're on in v3d_create_simulator_bo_for_gem() 289 sim_bo->gem_vaddr = mmap(NULL, sim_bo->size, in v3d_create_simulator_bo_for_gem() 293 fprintf(stderr, "mmap of bo %d (offset 0x%016llx, size %d) failed\n", in v3d_create_simulator_bo_for_gem() 593 * We've already grabbed the mmap offset when we created the sim bo, so just
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
H A D | vc4_bufmgr.c | 632 bo->map = mmap(NULL, bo->size, PROT_READ | PROT_WRITE, MAP_SHARED, in vc4_bo_map_unsynchronized() 635 fprintf(stderr, "mmap of bo %d (offset 0x%016llx, size %d) failed\n", in vc4_bo_map_unsynchronized()
|
/third_party/mesa3d/src/util/ |
H A D | disk_cache_os.c | 1008 cache->index_mmap = mmap(NULL, size, PROT_READ | PROT_WRITE, in disk_cache_mmap_cache_index()
|
/third_party/ltp/testcases/kernel/mem/lib/ |
H A D | mem.c | 39 s = mmap(NULL, length, PROT_READ | PROT_WRITE, in alloc_mem()
|