/external/u-boot/lib/efi_selftest/ |
D | efi_selftest_memory.c | 57 static int find_in_memory_map(efi_uintn_t map_size, in find_in_memory_map() argument 65 for (i = 0; map_size; ++i, map_size -= desc_size) { in find_in_memory_map() 105 efi_uintn_t map_size = 0; in execute() local 129 ret = boottime->get_memory_map(&map_size, NULL, &map_key, &desc_size, in execute() 137 map_size += sizeof(struct efi_mem_desc); in execute() 138 ret = boottime->allocate_pool(EFI_BOOT_SERVICES_DATA, map_size, in execute() 144 ret = boottime->get_memory_map(&map_size, memory_map, &map_key, in execute() 152 if (find_in_memory_map(map_size, memory_map, desc_size, p1, in execute() 155 if (find_in_memory_map(map_size, memory_map, desc_size, p2, in execute() 178 find_in_memory_map(map_size, memory_map, desc_size, fdt_addr, in execute()
|
D | efi_selftest_set_virtual_address_map.c | 17 static efi_uintn_t map_size; variable 96 ret = boottime->get_memory_map(&map_size, NULL, &map_key, &desc_size, in setup() 104 map_size += 3 * sizeof(struct efi_mem_desc); in setup() 105 ret = boottime->allocate_pool(EFI_BOOT_SERVICES_DATA, map_size, in setup() 111 ret = boottime->get_memory_map(&map_size, memory_map, &map_key, in setup() 130 end = (struct efi_mem_desc *)((u8 *)memory_map + map_size); in setup() 166 map_size = (u8 *)pos1 - (u8 *)memory_map; in setup() 185 ret = runtime->set_virtual_address_map(map_size, desc_size, in execute()
|
D | efi_selftest.c | 33 efi_uintn_t map_size = 0; in efi_st_exit_boot_services() local 40 ret = boottime->get_memory_map(&map_size, NULL, &map_key, &desc_size, in efi_st_exit_boot_services() 48 map_size += sizeof(struct efi_mem_desc); in efi_st_exit_boot_services() 49 ret = boottime->allocate_pool(EFI_BOOT_SERVICES_DATA, map_size, in efi_st_exit_boot_services() 55 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 | 90 int map_size; member 195 shmget(args->shmkey, args->map_size, IPC_CREAT | 0666)) in shmat_rd_wr() 225 while (index < args->map_size) { in shmat_rd_wr() 236 while (index < args->map_size) { in shmat_rd_wr() 282 int map_size; /* size of the file mapped. */ in main() local 320 map_size = (1 + (int)(1000.0 * rand() / (RAND_MAX + 1.0))) * 4096; in main() 323 i, map_address, map_size); in main() 326 chld_args[i].map_size = map_size; in main()
|
/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/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 …]
|
/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 }; }; argument 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/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/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_lru_map.c | 253 unsigned int map_size; in test_lru_sanity1() local 268 map_size = tgt_free + batch_size; in test_lru_sanity1() 269 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity1() 272 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, map_size); in test_lru_sanity1() 330 unsigned int map_size; in test_lru_sanity2() local 345 map_size = tgt_free + batch_size; in test_lru_sanity2() 346 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity2() 349 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, map_size); in test_lru_sanity2() 437 unsigned int map_size; in test_lru_sanity3() local 452 map_size = tgt_free * 2; in test_lru_sanity3() [all …]
|
/external/u-boot/test/dm/ |
D | sf.c | 27 uint map_size; in dm_test_spi_flash() local 62 ut_assertok(dm_spi_get_mmap(dev, &map_base, &map_size, &offset)); in dm_test_spi_flash() 64 ut_asserteq(0x2000, map_size); in dm_test_spi_flash()
|
/external/python/cpython3/Modules/ |
D | mmapmodule.c | 1098 Py_ssize_t map_size; in new_mmap_object() local 1108 &fd, &map_size, &flags, &prot, in new_mmap_object() 1111 if (map_size < 0) { in new_mmap_object() 1157 fd, map_size, access, offset) < 0) { in new_mmap_object() 1175 if (map_size == 0) { in new_mmap_object() 1191 map_size = (Py_ssize_t) (status.st_size - offset); in new_mmap_object() 1192 } else if (offset > status.st_size || status.st_size - offset < map_size) { in new_mmap_object() 1201 m_obj->size = map_size; in new_mmap_object() 1239 m_obj->data = mmap(NULL, map_size, in new_mmap_object() 1269 Py_ssize_t map_size; in new_mmap_object() local [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/arm-trusted-firmware/plat/arm/board/fvp/ |
D | fvp_common.c | 350 unsigned int map_size = 0U; in fvp_interconnect_init() 356 map_size = ARRAY_SIZE(fvp_cci5xx_map); in fvp_interconnect_init() 360 map_size = ARRAY_SIZE(fvp_cci400_map); in fvp_interconnect_init() 367 cci_init(cci_base, cci_map, map_size); in fvp_interconnect_init()
|
/external/pdfium/third_party/base/allocator/partition_allocator/ |
D | partition_bucket.cc | 34 size_t map_size = size + kPartitionPageSize; in PartitionDirectMap() local 36 map_size += kSystemPageSize; in PartitionDirectMap() 39 map_size += kPageAllocationGranularityOffsetMask; in PartitionDirectMap() 40 map_size &= kPageAllocationGranularityBaseMask; in PartitionDirectMap() 42 char* ptr = reinterpret_cast<char*>(AllocPages(nullptr, map_size, in PartitionDirectMap() 93 map_extent->map_size = map_size - kPartitionPageSize - kSystemPageSize; in PartitionDirectMap()
|
/external/igt-gpu-tools/benchmarks/ |
D | gem_userptr_benchmark.c | 393 unsigned long map_size = BO_SIZE + PAGE_SIZE - 1; in test_single() local 395 ptr = mmap(NULL, map_size, PROT_READ | PROT_WRITE, in test_single() 409 munmap(ptr, map_size); in test_single() 421 unsigned long map_size = batch * BO_SIZE + PAGE_SIZE - 1; in test_multiple() local 426 ptr = mmap(NULL, map_size, PROT_READ | PROT_WRITE, in test_multiple() 451 munmap(ptr, map_size); in test_multiple()
|
/external/protobuf/src/google/protobuf/ |
D | dynamic_message.h | 158 static std::vector<const Message*> Sort(const Message& message, int map_size, in Sort() argument 161 std::vector<const Message*> result(static_cast<size_t>(map_size)); in Sort() 175 for (size_t j = 1; j < static_cast<size_t>(map_size); j++) { in Sort()
|
D | map_field.cc | 531 size_t map_size = map_.size(); in SpaceUsedExcludingSelfNoLock() local 532 if (map_size) { in SpaceUsedExcludingSelfNoLock() 534 size += sizeof(it->first) * map_size; in SpaceUsedExcludingSelfNoLock() 535 size += sizeof(it->second) * map_size; in SpaceUsedExcludingSelfNoLock() 538 size += sizeof(std::string) * map_size; in SpaceUsedExcludingSelfNoLock() 544 size += sizeof(TYPE) * map_size; \ in SpaceUsedExcludingSelfNoLock()
|
/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/libdrm/tests/amdgpu/ |
D | vm_tests.c | 176 const uint64_t map_size = (4ULL << 30) - (2 << 12); in amdgpu_vm_unaligned_map() local 202 r = amdgpu_bo_va_op(buf_handle, 0, map_size, vmc_addr, 0, in amdgpu_vm_unaligned_map() 208 amdgpu_bo_va_op(buf_handle, 0, map_size, vmc_addr, 0, in amdgpu_vm_unaligned_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/mesa3d/src/broadcom/vulkan/ |
D | v3dv_bo.c | 190 bo->map_size = 0; in v3dv_bo_init() 293 bo->map_size = size; in v3dv_bo_map_unsynchronized() 332 assert(bo && bo->map && bo->map_size > 0); in v3dv_bo_unmap() 334 munmap(bo->map, bo->map_size); in v3dv_bo_unmap() 337 bo->map_size = 0; in v3dv_bo_unmap()
|
/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/u-boot/cmd/ |
D | efidebug.c | 435 efi_uintn_t map_size = 0; in do_efi_show_memmap() local 440 ret = EFI_CALL(BS->get_memory_map(&map_size, memmap, NULL, NULL, NULL)); in do_efi_show_memmap() 442 map_size += sizeof(struct efi_mem_desc); /* for my own */ in do_efi_show_memmap() 444 map_size, (void *)&memmap)); in do_efi_show_memmap() 447 ret = EFI_CALL(BS->get_memory_map(&map_size, memmap, in do_efi_show_memmap() 459 for (i = 0, map = memmap; i < map_size / sizeof(*map); map++, i++) { in do_efi_show_memmap()
|