/third_party/mesa3d/src/gbm/backends/dri/ |
H A D | gbm_driint.h | 181 bo->map = mmap(NULL, bo->size, PROT_WRITE, in gbm_dri_bo_map_dumb()
|
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/ |
H A D | pthread_key_test.cpp | 65 void* attrStack = mmap(nullptr, stackSize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in HWTEST_F()
|
/third_party/pcre2/pcre2/src/sljit/ |
H A D | sljitWXExecAllocator.c | 110 ptr = (sljit_uw*)mmap(NULL, size, prot, MAP_PRIVATE | MAP_ANON, -1, 0); in sljit_malloc_exec()
|
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
H A D | VkDeviceMemoryExternalMac.hpp | 160 void *addr = ::mmap(nullptr, allocationSize, PROT_READ | PROT_WRITE, MAP_SHARED,
|
/third_party/skia/third_party/externals/swiftshader/src/WSI/ |
H A D | WaylandSurfaceKHR.cpp | 79 wlImage->data = static_cast<uint8_t *>(mmap(NULL, extent.height * stride, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0)); in attachImage()
|
/third_party/skia/third_party/externals/freetype/builds/vms/ |
H A D | ftsystem.c | 242 stream->base = (unsigned char *)mmap( NULL, in FT_BASE_DEF() 252 FT_ERROR(( " could not `mmap' file `%s'\n", filepathname )); in FT_BASE_DEF()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/internal/ |
H A D | stack_consumption.cc | 113 void* altstack = mmap(nullptr, kAlternateStackSize, PROT_READ | PROT_WRITE, in GetSignalHandlerStackConsumption() 115 ABSL_RAW_CHECK(altstack != MAP_FAILED, "mmap() failed"); in GetSignalHandlerStackConsumption()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/ |
H A D | direct_mmap.h | 15 // Functions for directly invoking mmap() via syscall, avoiding the case where 16 // mmap() has been locally overridden. 84 // On these architectures, implement mmap with mmap2. 107 // On s390x, mmap() arguments are passed in memory. 145 // For non-linux platforms where we have mmap, just dispatch directly to the 146 // actual mmap()/munmap() methods. 154 return mmap(start, length, prot, flags, fd, offset);
|
/third_party/musl/porting/linux/user/src/hook/ |
H A D | musl_preinit.c | 44 .mmap = MuslMalloc(mmap), 202 snprintf(symbol, sizeof(symbol), "%s_%s", prefix, "mmap"); in init_mmap_function() 318 if (!init_mmap_function(shared_library_handler, &table->mmap, prefix)) { in init_hook_functions()
|
/third_party/musl/src/hook/linux/ |
H A D | musl_preinit.c | 59 .mmap = MuslMalloc(mmap), 217 snprintf(symbol, sizeof(symbol), "%s_%s", prefix, "mmap"); in init_mmap_function() 332 if (!init_mmap_function(shared_library_handler, &table->mmap, prefix)) { in init_hook_functions()
|
/device/soc/rockchip/common/sdk_linux/include/linux/ |
H A D | dma-buf.h | 284 * @mmap 297 * coherency for mmap support, it needs to be able to zap all the ptes 306 * the dma_buf mmap callback. In the specific case of a gem driver the 318 int (*mmap)(struct dma_buf *, struct vm_area_struct *vma); member
|
/foundation/multimedia/media_foundation/src/buffer/avbuffer/ |
H A D | av_shared_memory_ext.cpp | 201 void *addr = ::mmap(nullptr, static_cast<size_t>(capacity_), static_cast<int>(prot), MAP_SHARED, fd_, 0); in MapMemoryAddr() 202 FALSE_RETURN_V_MSG_E(addr != MAP_FAILED, Status::ERROR_INVALID_OPERATION, "mmap failed, please check params"); in MapMemoryAddr()
|
/foundation/multimedia/av_codec/test/unittest/video_test/video_test/sample/yuv_viewer/ |
H A D | yuv_viewer.cpp | 118 uint8_t *bufferAddr = static_cast<uint8_t *>(mmap(bufferHandle->virAddr, bufferHandle->size, in InputThread()
|
/foundation/multimedia/camera_framework/services/camera_service/src/avcodec/ |
H A D | camera_server_photo_proxy.cpp | 135 MEDIA_INFO_LOG("CameraServerPhotoProxy::GetFileDataAddr mmap"); in GetFileDataAddr() 136 fileDataAddr_ = mmap(nullptr, bufferHandle_->size, PROT_READ, MAP_SHARED, bufferHandle_->fd, 0); in GetFileDataAddr() 138 fileDataAddr_ == MAP_FAILED, fileDataAddr_, "CameraServerPhotoProxy::GetFileDataAddr mmap failed"); in GetFileDataAddr() 141 MEDIA_ERR_LOG("CameraServerPhotoProxy::GetFileDataAddr mmap failed"); in GetFileDataAddr()
|
/foundation/multimedia/camera_framework/frameworks/native/camera/src/output/ |
H A D | deferred_photo_proxy.cpp | 157 MEDIA_INFO_LOG("DeferredPhotoProxy::GetFileDataAddr mmap"); in GetFileDataAddr() 158 fileDataAddr_ = mmap(nullptr, bufferHandle_->size, PROT_READ | PROT_WRITE, MAP_SHARED, bufferHandle_->fd, 0); in GetFileDataAddr() 160 fileDataAddr_ == MAP_FAILED, fileDataAddr_, "DeferredPhotoProxy::GetFileDataAddr mmap failed"); in GetFileDataAddr() 163 MEDIA_ERR_LOG("DeferredPhotoProxy::GetFileDataAddr mmap failed"); in GetFileDataAddr()
|
/third_party/elfutils/libelf/ |
H A D | elf_update.c | 71 elf->map_address = mmap (NULL, size, PROT_READ | PROT_WRITE, in write_file() 81 /* When using mmap we want to make sure the file content is in write_file() 103 /* Extend the mmap address if needed. */ in write_file()
|
/third_party/NuttX/drivers/pipes/ |
H A D | pipe.c | 62 PRINTK("%s %d, mmap is not support\n", __FUNCTION__, __LINE__); in pipe_map() 74 .mmap = pipe_map, /* mmap */
|
/third_party/NuttX/fs/vfs/include/ |
H A D | file.h | 139 int (*mmap)(struct file* filep, struct VmMapRegion *region); member
|
/third_party/mesa3d/src/freedreno/perfcntrs/ |
H A D | freedreno_dt.c | 251 mmap(0, dev.size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, dev.base); in fd_dt_find_io()
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_syscall_test/ |
H A D | cpuset_syscall_test.c | 149 addr = mmap(NULL, len, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in test_mbind()
|
/third_party/mesa3d/src/glx/apple/ |
H A D | apple_glx_pixmap.c | 156 p->buffer = mmap(NULL, p->size, PROT_READ | PROT_WRITE, in apple_glx_pixmap_create() 160 perror("mmap"); in apple_glx_pixmap_create()
|
/third_party/ltp/testcases/kernel/mce-test/hwpoison/ |
H A D | tsoftinj.c | 44 void *p = mmap(addr, length, prot, flags, fd, offset); in checked_mmap() 46 err("mmap"); in checked_mmap()
|
H A D | ttranshuge.c | 17 * Following is the structure of the memory mapped by mmap() 40 * To improve the rate of THP mapped by mmap(), it is better to do 105 " mmap()'ed Memory Address %p; size 0x%lx\n" in print_prep_info() 164 * MADV_HUGEPAGE must be set between mmap and read/write operation. 165 * And it must follow mmap(). Please refer to patches of 186 * really. Please refer to the explanation of mmap() of THP 203 mem_addr = (char *)mmap(NULL, REQ_MEM_SIZE, PROT_WRITE | PROT_READ, in prep_memory_map() 206 print_err("Failed to mmap requested memory: size 0x%lx.\n", in prep_memory_map()
|
/third_party/ltp/testcases/kernel/mce-test/tsrc/ |
H A D | ttranshuge.c | 17 * Following is the structure of the memory mapped by mmap() 40 * To improve the rate of THP mapped by mmap(), it is better to do 105 " mmap()'ed Memory Address %p; size 0x%lx\n" in print_prep_info() 164 * MADV_HUGEPAGE must be set between mmap and read/write operation. 165 * And it must follow mmap(). Please refer to patches of 186 * really. Please refer to the explanation of mmap() of THP 203 mem_addr = (char *)mmap(NULL, REQ_MEM_SIZE, PROT_WRITE | PROT_READ, in prep_memory_map() 206 print_err("Failed to mmap requested memory: size 0x%lx.\n", in prep_memory_map()
|
/third_party/ltp/testcases/kernel/mem/mtest06/ |
H A D | mmap2.c | 255 memptr = mmap(0, (fsize * MB), PROT_READ | PROT_WRITE, in main() 258 perror("main(): mmap()"); in main()
|