/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/syslinux/com32/modules/ |
D | kbdmap.c | 27 size_t map_size; in main() local 40 if (loadfile(argv[1], &kbdmap, &map_size)) { in main() 45 if (map_size != kmap->length) { in main() 50 memcpy(kmap->map, kbdmap, map_size); in main()
|
/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/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_lru_map.c | 190 unsigned int map_size; in test_lru_sanity1() local 210 map_size = tgt_free + batch_size; in test_lru_sanity1() 211 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity1() 214 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, map_size); in test_lru_sanity1() 272 unsigned int map_size; in test_lru_sanity2() local 292 map_size = tgt_free + batch_size; in test_lru_sanity2() 295 map_size * nr_cpus); in test_lru_sanity2() 297 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity2() 300 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, map_size); in test_lru_sanity2() 387 unsigned int map_size; in test_lru_sanity3() local [all …]
|
/external/libchrome/base/files/ |
D | memory_mapped_file_posix.cc | 29 size_t map_size = 0; in MapFileRegionToMemory() local 38 map_size = static_cast<size_t>(file_len); in MapFileRegionToMemory() 39 length_ = map_size; in MapFileRegionToMemory() 65 map_size = static_cast<size_t>(aligned_size); in MapFileRegionToMemory() 85 data_ = static_cast<uint8_t*>(mmap(NULL, map_size, flags, MAP_SHARED, in MapFileRegionToMemory()
|
/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 }; }; struct 12 template<> struct map_size<10> { enum { ret = 20 }; }; argument 13 template<> struct map_size<11> { enum { ret = 50 }; }; struct 14 template<> struct map_size<12> { enum { ret = 100 }; }; argument 15 template<> struct map_size<13> { enum { ret = 300 }; }; struct 131 std::cout << map_size<N>::ret << "\t"; in run()
|
/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/fio/t/ |
D | axmap.c | 74 unsigned int map_size = size; in test_multi() local 82 map = axmap_new(map_size); in test_multi() 83 while (val + 128 <= map_size) { in test_multi()
|
/external/fio/lib/ |
D | axmap.c | 42 unsigned long map_size; member 68 memset(al->map, 0, al->map_size * sizeof(unsigned long)); in axmap_reset() 112 al->map_size = (nr_bits + BLOCKS_PER_UNIT - 1) >> UNIT_SHIFT; in axmap_new() 113 al->map = malloc(al->map_size * sizeof(unsigned long)); in axmap_new() 349 if (index >= al->map_size) { in axmap_find_first_free() 354 for (j = index; j < al->map_size; j++) { in axmap_find_first_free()
|
/external/python/cpython2/Modules/ |
D | mmapmodule.c | 1103 Py_ssize_t map_size; in new_mmap_object() local 1113 &fd, &map_size, &flags, &prot, in new_mmap_object() 1116 if (map_size < 0) { in new_mmap_object() 1175 if (map_size == 0) { in new_mmap_object() 1191 map_size = (Py_ssize_t) (st.st_size - offset); in new_mmap_object() 1192 } else if (offset > st.st_size || st.st_size - offset < map_size) { in new_mmap_object() 1202 m_obj->size = map_size; in new_mmap_object() 1232 m_obj->data = mmap(NULL, map_size, in new_mmap_object() 1262 Py_ssize_t map_size; in new_mmap_object() local 1279 &fileno, &map_size, in new_mmap_object() [all …]
|
/external/libchrome/base/trace_event/ |
D | heap_profiler_allocation_register_posix.cc | 33 size_t map_size = size + GetGuardSize(); in AllocateGuardedVirtualMemory() local 35 void* addr = mmap(nullptr, map_size, PROT_READ | PROT_WRITE, in AllocateGuardedVirtualMemory()
|
D | heap_profiler_type_name_deduplicator.cc | 100 size_t map_size = type_ids_.size() * sizeof(std::pair<const char*, int>); in EstimateTraceMemoryOverhead() local 103 sizeof(TypeNameDeduplicator) + map_size); in EstimateTraceMemoryOverhead()
|
/external/e2fsprogs/lib/ext2fs/ |
D | tdb.c | 229 tdb_len_t map_size; /* how much space has been mapped */ member 842 if (len <= tdb->map_size) in tdb_oob() 849 (int)len, (int)tdb->map_size)); in tdb_oob() 871 tdb->map_size = st.st_size; in tdb_oob() 932 (int)tdb->map_size)); in tdb_read() 993 tdb->map_ptr = mmap(NULL, tdb->map_size, in tdb_mmap() 1005 tdb->map_size, strerror(errno))); in tdb_mmap() 1007 tdb->real_map_size = tdb->map_size; in tdb_mmap() 1068 tdb->methods->tdb_oob(tdb, tdb->map_size + 1, 1); in tdb_expand() 1072 size = TDB_ALIGN(tdb->map_size + size*10, tdb->page_size) - tdb->map_size; in tdb_expand() [all …]
|
/external/elfutils/src/ |
D | strings.c | 483 size_t map_size = MIN ((off_t) mmap_max, fdlen); in map_file() local 492 mem = mmap (NULL, map_size, PROT_READ, MAP_PRIVATE | MAP_POPULATE, in map_file() 497 (void) posix_madvise (mem, map_size, POSIX_MADV_SEQUENTIAL); in map_file() 505 map_size /= 2; in map_file() 506 if (map_size < map_size_min) in map_file() 511 *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()
|
/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/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()
|
/external/ltp/testcases/kernel/fs/fsx-linux/ |
D | fsx-linux.c | 645 unsigned map_size; in domapread() local 673 map_size = pg_offset + size; in domapread() 675 if ((p = mmap(0, map_size, PROT_READ, MAP_FILE | MAP_SHARED, fd, in domapread() 695 if (munmap(p, map_size) != 0) { in domapread() 782 unsigned map_size; in domapwrite() local 832 map_size = pg_offset + size; in domapwrite() 835 mmap(0, map_size, PROT_READ | PROT_WRITE, MAP_FILE | MAP_SHARED, in domapwrite() 855 if (msync(p, map_size, 0) != 0) { in domapwrite() 866 if (munmap(p, map_size) != 0) { in domapwrite()
|
/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 | 1288 mem->map_size = 0; in anv_AllocateMemory() 1365 uint64_t map_size = (offset + size) - map_offset; in anv_MapMemory() local 1368 map_size = align_u64(map_size, 4096); in anv_MapMemory() 1371 map_offset, map_size, gem_flags); in anv_MapMemory() 1376 mem->map_size = map_size; in anv_MapMemory() 1392 anv_gem_munmap(mem->map, mem->map_size); in anv_UnmapMemory() 1395 mem->map_size = 0; in anv_UnmapMemory() 1408 if (ranges[i].offset + ranges[i].size > mem->map_size) in clflush_mapped_ranges() 1409 end = mem->map + mem->map_size; 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);
|
/external/syslinux/gpxe/src/include/ |
D | pcmcia.h | 81 u_int map_size; member
|