/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/ |
D | 2-1.c | 32 int rc, fd, map_size; in main() local 35 map_size = sysconf(_SC_PAGESIZE); in main() 44 map_addr = mmap(NULL, map_size, PROT_NONE, MAP_PRIVATE, fd, 0); in main() 55 rc = munmap(map_addr, map_size); in main() 64 rc = munmap(map_addr, map_size); in main()
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_lru_map.c | 191 unsigned int map_size; in test_lru_sanity1() local 206 map_size = tgt_free + batch_size; in test_lru_sanity1() 207 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity1() 210 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, map_size); in test_lru_sanity1() 268 unsigned int map_size; in test_lru_sanity2() local 283 map_size = tgt_free + batch_size; in test_lru_sanity2() 284 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity2() 287 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, map_size); in test_lru_sanity2() 374 unsigned int map_size; in test_lru_sanity3() local 389 map_size = tgt_free * 2; in test_lru_sanity3() [all …]
|
/external/autotest/client/tests/fsx/ |
D | 0001-Minor-fixes-to-PAGE_SIZE-handling.patch | 45 - map_size = pg_offset + size; 46 + map_size = (pg_offset + size + PAGE_MASK) & ~PAGE_MASK; 49 if ((p = (char *)mmap(0, map_size, PROT_READ, MAP_SHARED, fd, 54 - map_size = pg_offset + size; 55 + map_size = (pg_offset + size + PAGE_MASK) & ~PAGE_MASK; 57 if ((p = (char *)mmap(0, map_size, PROT_READ | PROT_WRITE,
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_allocator.h | 551 uptr map_size = kUserMapSize; in PopulateFreeList() local 552 while (end_idx + size > region->mapped_user + map_size) in PopulateFreeList() 553 map_size += kUserMapSize; in PopulateFreeList() 554 CHECK_GE(region->mapped_user + map_size, end_idx); in PopulateFreeList() 555 MapWithCallback(region_beg + region->mapped_user, map_size); in PopulateFreeList() 556 stat->Add(AllocatorStatMapped, map_size); in PopulateFreeList() 557 region->mapped_user += map_size; in PopulateFreeList() 563 uptr map_size = kMetaMapSize; in PopulateFreeList() local 564 while (region->allocated_meta > region->mapped_meta + map_size) in PopulateFreeList() 565 map_size += kMetaMapSize; in PopulateFreeList() [all …]
|
D | sanitizer_posix.cc | 154 uptr map_size = size + alignment; in MmapAlignedOrDie() local 155 uptr map_res = (uptr)MmapOrDie(map_size, mem_type); in MmapAlignedOrDie() 156 uptr map_end = map_res + map_size; in MmapAlignedOrDie()
|
/external/eigen/bench/ |
D | product_threshold.cpp | 11 template<int S> struct map_size { enum { ret = S }; }; argument 12 template<> struct map_size<10> { enum { ret = 20 }; }; struct 13 template<> struct map_size<11> { enum { ret = 50 }; }; struct 14 template<> struct map_size<12> { enum { ret = 100 }; }; struct 15 template<> struct map_size<13> { enum { ret = 300 }; }; struct 131 std::cout << map_size<N>::ret << "\t"; in run()
|
/external/libchrome/base/files/ |
D | memory_mapped_file_posix.cc | 34 size_t map_size = 0; in MapFileRegionToMemory() local 45 map_size = static_cast<size_t>(file_len); in MapFileRegionToMemory() 46 length_ = map_size; in MapFileRegionToMemory() 68 map_size = aligned_size; in MapFileRegionToMemory() 162 data_ = static_cast<uint8_t*>(mmap(nullptr, map_size, flags, MAP_SHARED, in MapFileRegionToMemory()
|
/external/u-boot/lib/efi_selftest/ |
D | efi_selftest.c | 34 efi_uintn_t map_size = 0; in efi_st_exit_boot_services() local 41 ret = boottime->get_memory_map(&map_size, NULL, &map_key, &desc_size, in efi_st_exit_boot_services() 49 map_size += sizeof(struct efi_mem_desc); in efi_st_exit_boot_services() 50 ret = boottime->allocate_pool(EFI_BOOT_SERVICES_DATA, map_size, in efi_st_exit_boot_services() 56 ret = boottime->get_memory_map(&map_size, memory_map, &map_key, in efi_st_exit_boot_services()
|
/external/ltp/testcases/kernel/mem/mtest07/ |
D | shm_test.c | 277 int map_size; /* size of the file mapped. */ in main() local 318 map_size = in main() 322 chld_args[2] = map_size; in main() 325 thrd_ndx, map_address, map_size); in main()
|
/external/python/cpython3/Modules/ |
D | mmapmodule.c | 1037 Py_ssize_t map_size; in new_mmap_object() local 1047 &fd, &map_size, &flags, &prot, in new_mmap_object() 1050 if (map_size < 0) { in new_mmap_object() 1109 if (map_size == 0) { in new_mmap_object() 1125 map_size = (Py_ssize_t) (status.st_size - offset); in new_mmap_object() 1126 } else if (offset > status.st_size || status.st_size - offset < map_size) { in new_mmap_object() 1135 m_obj->size = map_size; in new_mmap_object() 1166 m_obj->data = mmap(NULL, map_size, in new_mmap_object() 1196 Py_ssize_t map_size; in new_mmap_object() local 1213 &fileno, &map_size, in new_mmap_object() [all …]
|
/external/python/cpython2/Modules/ |
D | mmapmodule.c | 1084 Py_ssize_t map_size; in new_mmap_object() local 1094 &fd, &map_size, &flags, &prot, in new_mmap_object() 1097 if (map_size < 0) { in new_mmap_object() 1156 if (map_size == 0) { in new_mmap_object() 1172 map_size = (Py_ssize_t) (st.st_size - offset); in new_mmap_object() 1173 } else if (offset > st.st_size || st.st_size - offset < map_size) { in new_mmap_object() 1183 m_obj->size = map_size; in new_mmap_object() 1213 m_obj->data = mmap(NULL, map_size, in new_mmap_object() 1243 Py_ssize_t map_size; in new_mmap_object() local 1260 &fileno, &map_size, in new_mmap_object() [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | tdb.c | 227 tdb_len_t map_size; /* how much space has been mapped */ member 840 if (len <= tdb->map_size) in tdb_oob() 847 (int)len, (int)tdb->map_size)); in tdb_oob() 869 tdb->map_size = st.st_size; in tdb_oob() 930 (int)tdb->map_size)); in tdb_read() 991 tdb->map_ptr = mmap(NULL, tdb->map_size, in tdb_mmap() 1003 tdb->map_size, strerror(errno))); in tdb_mmap() 1005 tdb->real_map_size = tdb->map_size; in tdb_mmap() 1066 tdb->methods->tdb_oob(tdb, tdb->map_size + 1, 1); in tdb_expand() 1070 size = TDB_ALIGN(tdb->map_size + size*10, tdb->page_size) - tdb->map_size; in tdb_expand() [all …]
|
/external/elfutils/src/ |
D | strings.c | 468 size_t map_size = MIN ((off_t) mmap_max, fdlen); in map_file() local 477 mem = mmap (NULL, map_size, PROT_READ, MAP_PRIVATE | MAP_POPULATE, in map_file() 482 (void) posix_madvise (mem, map_size, POSIX_MADV_SEQUENTIAL); in map_file() 490 map_size /= 2; in map_file() 491 if (map_size < map_size_min) in map_file() 496 *map_sizep = map_size; in map_file()
|
/external/protobuf/src/google/protobuf/ |
D | map_field.cc | 430 int map_size = map_.size(); in SpaceUsedExcludingSelfNoLock() local 431 if (map_size) { in SpaceUsedExcludingSelfNoLock() 433 size += sizeof(it->first) * map_size; in SpaceUsedExcludingSelfNoLock() 434 size += sizeof(it->second) * map_size; in SpaceUsedExcludingSelfNoLock() 437 size += sizeof(string) * map_size; in SpaceUsedExcludingSelfNoLock() 443 size += sizeof(TYPE) * map_size; \ in SpaceUsedExcludingSelfNoLock()
|
D | map_field_test.cc | 267 void Expect(MapFieldType* map_field, State state, int map_size, in Expect() argument 294 EXPECT_EQ(map_size, map->size()); in Expect()
|
/external/pdfium/third_party/base/allocator/partition_allocator/ |
D | partition_alloc.cc | 646 size_t map_size = size + kPartitionPageSize; in PartitionDirectMap() local 648 map_size += kSystemPageSize; in PartitionDirectMap() 651 map_size += kPageAllocationGranularityOffsetMask; in PartitionDirectMap() 652 map_size &= kPageAllocationGranularityBaseMask; in PartitionDirectMap() 657 AllocPages(0, map_size, kSuperPageSize, PageAccessible)); in PartitionDirectMap() 704 map_extent->map_size = map_size - kPartitionPageSize - kSystemPageSize; in PartitionDirectMap() 720 size_t unmap_size = extent->map_size; in PartitionDirectUnmap() 984 size_t map_size = partitionPageToDirectMapExtent(page)->map_size; in partitionReallocDirectMappedInPlace() local 988 if ((new_size / kSystemPageSize) * 5 < (map_size / kSystemPageSize) * 4) in partitionReallocDirectMappedInPlace() 995 } else if (new_size <= partitionPageToDirectMapExtent(page)->map_size) { in partitionReallocDirectMappedInPlace()
|
/external/u-boot/lib/efi_loader/ |
D | efi_memory.c | 444 efi_uintn_t map_size = 0; in efi_get_memory_map() local 452 map_size = map_entries * sizeof(struct efi_mem_desc); in efi_get_memory_map() 454 *memory_map_size = map_size; in efi_get_memory_map() 456 if (provided_map_size < map_size) in efi_get_memory_map()
|
/external/google-breakpad/src/processor/ |
D | cfi_frame_info.h | 243 SimpleCFIWalker(const RegisterSet *register_map, size_t map_size) in SimpleCFIWalker() argument 244 : register_map_(register_map), map_size_(map_size) { } in SimpleCFIWalker()
|
/external/ltp/testcases/kernel/fs/fsx-linux/ |
D | fsx-linux.c | 642 unsigned map_size; in domapread() local 670 map_size = pg_offset + size; in domapread() 672 if ((p = mmap(0, map_size, PROT_READ, MAP_FILE | MAP_SHARED, fd, in domapread() 692 if (munmap(p, map_size) != 0) { in domapread() 779 unsigned map_size; in domapwrite() local 829 map_size = pg_offset + size; in domapwrite() 832 mmap(0, map_size, PROT_READ | PROT_WRITE, MAP_FILE | MAP_SHARED, in domapwrite() 852 if (msync(p, map_size, 0) != 0) { in domapwrite() 863 if (munmap(p, map_size) != 0) { in domapwrite()
|
/external/swiftshader/third_party/LLVM/tools/lto/ |
D | lto.cpp | 109 size_t map_size, in lto_module_create_from_fd_at_offset() argument 112 return LTOModule::makeLTOModule(fd, path, file_size, map_size, in lto_module_create_from_fd_at_offset()
|
D | LTOModule.h | 59 size_t map_size,
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_prim_vbuf.c | 91 size_t map_size; member 203 if (i915_render->vbo_size > i915_render->map_size) { in i915_vbuf_render_new_buf() 204 i915_render->map_size = i915_render->vbo_size; in i915_vbuf_render_new_buf() 206 i915_render->vbo_ptr = MALLOC(i915_render->map_size); in i915_vbuf_render_new_buf() 727 i915_render->map_size = 0; in i915_vbuf_render_create()
|
/external/mesa3d/src/intel/vulkan/ |
D | anv_device.c | 1771 mem->map_size = 0; in anv_AllocateMemory() 1998 uint64_t map_size = (offset + size) - map_offset; in anv_MapMemory() local 2001 map_size = align_u64(map_size, 4096); in anv_MapMemory() 2004 map_offset, map_size, gem_flags); in anv_MapMemory() 2009 mem->map_size = map_size; in anv_MapMemory() 2025 anv_gem_munmap(mem->map, mem->map_size); in anv_UnmapMemory() 2028 mem->map_size = 0; in anv_UnmapMemory() 2038 if (ranges[i].offset >= mem->map_size) in clflush_mapped_ranges() 2042 MIN2(ranges[i].size, mem->map_size - ranges[i].offset)); in clflush_mapped_ranges()
|
/external/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv50_program.h | 48 uint8_t map_size; member
|
/external/swiftshader/third_party/LLVM/include/llvm-c/ |
D | lto.h | 138 size_t map_size, off_t offset);
|