Home
last modified time | relevance | path

Searched refs:map_size (Results 1 – 23 of 23) sorted by relevance

/external/libchrome/base/files/
Dmemory_mapped_file_posix.cc28 size_t map_size = 0; in MapFileRegionToMemory() local
37 map_size = static_cast<size_t>(file_len); in MapFileRegionToMemory()
38 length_ = map_size; in MapFileRegionToMemory()
64 map_size = static_cast<size_t>(aligned_size); in MapFileRegionToMemory()
68 data_ = static_cast<uint8_t*>(mmap(NULL, map_size, PROT_READ, MAP_SHARED, in MapFileRegionToMemory()
/external/autotest/client/tests/fsx/
D0001-Minor-fixes-to-PAGE_SIZE-handling.patch45 - 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/
Dsanitizer_allocator.h530 uptr map_size = kUserMapSize; in PopulateFreeList() local
531 while (end_idx + size > region->mapped_user + map_size) in PopulateFreeList()
532 map_size += kUserMapSize; in PopulateFreeList()
533 CHECK_GE(region->mapped_user + map_size, end_idx); in PopulateFreeList()
534 MapWithCallback(region_beg + region->mapped_user, map_size); in PopulateFreeList()
535 stat->Add(AllocatorStatMapped, map_size); in PopulateFreeList()
536 region->mapped_user += map_size; in PopulateFreeList()
542 uptr map_size = kMetaMapSize; in PopulateFreeList() local
543 while (region->allocated_meta > region->mapped_meta + map_size) in PopulateFreeList()
544 map_size += kMetaMapSize; in PopulateFreeList()
[all …]
Dsanitizer_common.cc240 uptr map_size = size + alignment; in MmapAlignedOrDie() local
241 uptr map_res = (uptr)MmapOrDie(map_size, mem_type); in MmapAlignedOrDie()
242 uptr map_end = map_res + map_size; in MmapAlignedOrDie()
/external/eigen/bench/
Dproduct_threshold.cpp11 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 }; }; argument
15 template<> struct map_size<13> { enum { ret = 300 }; }; struct
131 std::cout << map_size<N>::ret << "\t"; in run()
/external/fio/t/
Daxmap.c74 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/
Daxmap.c42 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()
348 if (index >= al->map_size) { in axmap_find_first_free()
353 for (j = index; j < al->map_size; j++) { in axmap_find_first_free()
/external/libchrome/base/trace_event/
Dheap_profiler_type_name_deduplicator.cc69 size_t map_size = type_ids_.size() * sizeof(std::pair<const char*, int>); in EstimateTraceMemoryOverhead() local
72 sizeof(TypeNameDeduplicator) + map_size); in EstimateTraceMemoryOverhead()
/external/e2fsprogs/lib/ext2fs/
Dtdb.c226 tdb_len_t map_size; /* how much space has been mapped */ member
838 if (len <= tdb->map_size) in tdb_oob()
845 (int)len, (int)tdb->map_size)); in tdb_oob()
867 tdb->map_size = st.st_size; in tdb_oob()
928 (int)tdb->map_size)); in tdb_read()
972 int ret = munmap(tdb->map_ptr, tdb->map_size); in tdb_munmap()
988 tdb->map_ptr = mmap(NULL, tdb->map_size, in tdb_mmap()
999 tdb->map_size, strerror(errno))); in tdb_mmap()
1061 tdb->methods->tdb_oob(tdb, tdb->map_size + 1, 1); in tdb_expand()
1065 size = TDB_ALIGN(tdb->map_size + size*10, tdb->page_size) - tdb->map_size; in tdb_expand()
[all …]
/external/elfutils/src/
Dstrings.c483 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/google-breakpad/src/processor/
Dcfi_frame_info.h243 SimpleCFIWalker(const RegisterSet *register_map, size_t map_size) in SimpleCFIWalker() argument
244 : register_map_(register_map), map_size_(map_size) { } in SimpleCFIWalker()
/external/mesa3d/src/gallium/drivers/i915/
Di915_prim_vbuf.c91 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()
725 i915_render->map_size = 0; in i915_vbuf_render_create()
/external/mesa3d/src/gallium/drivers/nv50/
Dnv50_program.h48 uint8_t map_size; member
Dnv50_program.c287 so->map_size = base[3] + so->num_attribs[3]; in nv50_program_create_strmout_state()
Dnv50_shader_state.c427 for (i = 0; i < vp->so->map_size; ++i) { in nv50_fp_linkage_validate()
/external/llvm/include/llvm-c/
Dlto.h228 size_t map_size, off_t offset);
/external/llvm/tools/lto/
Dlto.cpp215 size_t map_size, in lto_module_create_from_fd_at_offset() argument
220 *LTOContext, fd, path, map_size, offset, Options); in lto_module_create_from_fd_at_offset()
/external/libunwind/src/dwarf/
DGfind_unwind_table.c41 unw_word_t map_size = ei->u.memory.end - ei->u.memory.start; in get_dyn_gp() local
42 while (dyn_offset + sizeof(dyn) < map_size) { in get_dyn_gp()
/external/llvm/include/llvm/LTO/
DLTOModule.h101 size_t map_size, off_t offset, TargetOptions options);
/external/llvm/lib/LTO/
DLTOModule.cpp122 const char *path, size_t map_size, in createFromOpenFileSlice() argument
125 MemoryBuffer::getOpenFileSlice(fd, path, map_size, offset); in createFromOpenFileSlice()
/external/kernel-headers/original/uapi/drm/
Damdgpu_drm.h340 uint64_t map_size; member
/external/libdrm/include/drm/
Damdgpu_drm.h340 uint64_t map_size; member
/external/libdrm/amdgpu/
Damdgpu_bo.c708 va.map_size = ALIGN(size, getpagesize()); in amdgpu_bo_va_op()