Home
last modified time | relevance | path

Searched refs:mmap (Results 351 - 375 of 552) sorted by relevance

1...<<11121314151617181920>>...23

/third_party/ltp/utils/benchmark/ebizzy-0.3/
H A Debizzy.c93 "-m\t\t Always use mmap instead of malloc\n" in usage()
94 "-M\t\t Never use mmap\n" in usage()
96 "-p \t\t Prevent mmap coalescing using permissions\n" in usage()
97 "-P \t\t Prevent mmap coalescing using holes\n" in usage()
214 fprintf(stderr, "Both -m \"always mmap\" and -M " in read_options()
215 "\"never mmap\" option specified\n"); in read_options()
244 p = mmap(NULL, size, (PROT_READ | PROT_WRITE), in alloc_mem()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/
H A D2-4.c75 int fork; /* 0: Test between threads. ~ !0: Test across processes, if supported (mmap) */
290 /* Cannot mmap a file, we use an alternative method */ in main()
334 mmap(NULL, sz, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
336 UNRESOLVED(errno, "mmap failed"); in main()
H A D4-2.c74 int fork; /* 0: Test between threads. ~ !0: Test across processes, if supported (mmap) */
245 /* Cannot mmap a file, we use an alternative method */ in main()
289 mmap(NULL, sz, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
291 UNRESOLVED(errno, "mmap failed"); in main()
H A D2-7.c76 int fork; /* 0: Test between threads. ~ !0: Test across processes, if supported (mmap) */
298 /* Cannot mmap a file, we use an alternative method */ in main()
342 mmap(NULL, sz, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
344 UNRESOLVED(errno, "mmap failed"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/
H A D2-2.c103 int fork; /* 0: Test between threads. ~ !0: Test across processes, if supported (mmap) */
306 /* Cannot mmap a file, we use an alternative method */ in main()
350 mmap(NULL, sz, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
352 UNRESOLVED(errno, "mmap failed"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/
H A D1-2.c118 int fork; /* 0: Test between threads. ~ !0: Test across processes, if supported (mmap) */
338 /* Cannot mmap a file, we use an alternative method */ in main()
383 mmap(NULL, sz, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
385 UNRESOLVED(errno, "mmap failed"); in main()
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_wait/
H A Dstress1.c129 int fork; /* 0: Test between threads. ~ !0: Test across processes, if supported (mmap) */
421 /* Cannot mmap a file, we use an alternative method */ in main()
466 mmap(NULL, sz, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
468 UNRESOLVED(errno, "mmap failed"); in main()
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/
H A Dstress1.c119 int fork; /* 0: Test between threads. ~ !0: Test across processes, if supported (mmap) */
427 /* Cannot mmap a file, we use an alternative method */ in main()
472 mmap(NULL, sz, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()
474 UNRESOLVED(errno, "mmap failed"); in main()
/third_party/mesa3d/src/gallium/drivers/freedreno/ir3/
H A Dir3_cmdline.c211 *ptr = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0); in read_file()
/third_party/libbpf/src/
H A Dzip.c215 data = mmap(NULL, size, PROT_READ, MAP_PRIVATE, fd, 0); in zip_archive_open()
/third_party/skia/third_party/externals/swiftshader/src/WSI/
H A DDisplaySurfaceKHR.cpp178 fb_buffer = static_cast<uint8_t *>(mmap(NULL, size, PROT_WRITE, MAP_SHARED, fd, mreq.offset)); in DisplaySurfaceKHR()
/third_party/optimized-routines/networking/test/
H A Dchksum.c280 uint8_t *base = mmap(0, POOLSIZE, PROT_READ|PROT_WRITE, in main()
/third_party/skia/third_party/externals/harfbuzz/test/api/
H A Dtest-blob.c177 data = mmap (NULL, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in fixture_init()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/runtime/
H A Dszrt_asan.c178 shadow_offset = mmap((void *)length, length, prot, flags, fd, offset); in __asan_init()
/third_party/vixl/examples/aarch32/
H A Ddisasm-a32.cc237 mmap(0, sb.st_size, PROT_READ, MAP_PRIVATE, elf_in, 0))) != in main()
/third_party/selinux/checkpolicy/
H A Dcheckmodule.c69 mmap(NULL, sb.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); in read_binary_policy()
H A Dcheckpolicy.c550 mmap(NULL, sb.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, in main()
945 mmap(NULL, sb.st_size, PROT_READ | PROT_WRITE, in main()
/third_party/selinux/libselinux/src/
H A Dload_policy.c153 data = map = mmap(NULL, size, PROT_READ, MAP_PRIVATE, fd, 0); in selinux_mkload_policy()
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/mmz/
H A Ddrv_mmz_userdev.c449 /* The following 3 structures are needed in mmap function. */ in ioctl_mmb_user_remap_get_virt_addr()
584 * we register struct vm_operations_struct when mmap called in ioctl_mmb_user_reference_decrease()
664 /* do not call mmap yourself or unmap is called when process is killed */ in ioctl_mmb_user_unmap()
665 hi_mmz_warn("do not call mmap() yourself!\n"); in ioctl_mmb_user_unmap()
994 hi_mmz_error("do not call mmap() yourself!\n"); in mmz_userdev_mmap()
1020 if (!map_file->f_op->mmap) { in mmz_userdev_mmap()
1033 ret = map_file->f_op->mmap(map_file, vma); in mmz_userdev_mmap()
1062 hi_mmz_error("do not call mmap() yourself!\n"); in mmz_userdev_mmap()
1315 .mmap = mmz_userdev_mmap,
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/
H A Ddrm_gem.c64 * the DRI2 implementation wants to have at least allocate/mmap be generic.
300 * drm_gem_dumb_map_offset - return the fake mmap offset for a gem object
304 * @offset: return location for the fake mmap offset
455 * drm_gem_free_mmap_offset - release a fake mmap offset for an object
461 * don't have to take care of releasing the mmap offset themselves when freeing
474 * drm_gem_create_mmap_offset_size - create a fake mmap offset for an object
478 * GEM memory mapping works by handing back to userspace a fake mmap offset
479 * it can use in a subsequent mmap(2) call. The DRM core code then looks
487 * This function is idempotent and handles an already allocated mmap offset
501 * drm_gem_create_mmap_offset - create a fake mmap offse
[all...]
/third_party/pulseaudio/src/modules/oss/
H A Dmodule-oss.c93 "mmap=<enable memory mapping?>");
155 "mmap",
602 if ((u->in_mmap = mmap(NULL, u->in_hwbuf_size, PROT_READ, MAP_SHARED, u->fd, 0)) == MAP_FAILED) { in unsuspend()
603 pa_log("Resume failed, mmap(): %s", pa_cstrerror(errno)); in unsuspend()
609 if ((u->out_mmap = mmap(NULL, u->out_hwbuf_size, PROT_WRITE, MAP_SHARED, u->fd, 0)) == MAP_FAILED) { in unsuspend()
610 pa_log("Resume failed, mmap(): %s", pa_cstrerror(errno)); in unsuspend()
1234 if (pa_modargs_get_value_boolean(ma, "mmap", &use_mmap) < 0) { in pa__init()
1235 pa_log("Failed to parse mmap argument."); in pa__init()
1243 pa_log_info("OSS device not mmap capable, falling back to UNIX read/write mode."); in pa__init()
1322 if ((u->in_mmap = mmap(NUL in pa__init()
[all...]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/component/hifb/src/init/linux/
H A Dhifb_init.c485 .mmap = hifb_memblock_mmap,
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/include/
H A Dhi_osal.h414 int (*mmap)(osal_vm_t *vm, unsigned long start, unsigned long end, unsigned long vm_pgoff, void *private_data); member
/device/soc/hisilicon/hi3516dv300/sdk_linux/include/
H A Dhi_osal.h411 int (*mmap)(osal_vm_t *vm, unsigned long start, unsigned long end, unsigned long vm_pgoff, void *private_data); member
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/common/
H A Dsample_comm_sys.c75 /* The mmap address should align with page */ in SAMPLE_SYS_IOMmap()
79 /* The mmap size should be multiples of 1024 */ in SAMPLE_SYS_IOMmap()
82 pPageAddr = mmap((void *)0, u32PageSize, PROT_READ | PROT_WRITE, MAP_SHARED, s_s32SampleMemDev, u64PagePhy); in SAMPLE_SYS_IOMmap()
84 perror("mmap error"); in SAMPLE_SYS_IOMmap()

Completed in 21 milliseconds

1...<<11121314151617181920>>...23