| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_allocator_secondary.h | 87 uptr map_size = RoundUpMapSize(size); in Allocate() local 89 map_size += alignment; in Allocate() 91 if (map_size < size) { in Allocate() 102 uptr map_end = map_beg + map_size; in Allocate() 114 h->map_size = map_size; in Allocate() 125 stats.currently_allocated += map_size; in Allocate() 128 stat->Add(AllocatorStatAllocated, map_size); in Allocate() 129 stat->Add(AllocatorStatMapped, map_size); in Allocate() 145 stats.currently_allocated -= h->map_size; in Deallocate() 202 if (h->map_beg + h->map_size <= p) in GetBlockBegin() [all …]
|
| H A D | sanitizer_fuchsia.cpp | 253 map_size = RoundUpTo(map_size, GetPageSize()); in DoMmapFixedOrDie() 255 zx_status_t status = _zx_vmo_create(map_size, 0, &vmo); in DoMmapFixedOrDie() 262 DCHECK_GE(base + size_, map_size + offset); in DoMmapFixedOrDie() 267 offset, vmo, 0, map_size, &addr); in DoMmapFixedOrDie() 275 IncreaseTotalMmap(map_size); in DoMmapFixedOrDie() 279 uptr ReservedAddressRange::Map(uptr fixed_addr, uptr map_size, in Map() argument 281 return DoMmapFixedOrDie(os_handle_, fixed_addr, map_size, base_, in Map() 285 uptr ReservedAddressRange::MapOrDie(uptr fixed_addr, uptr map_size, in MapOrDie() argument 287 return DoMmapFixedOrDie(os_handle_, fixed_addr, map_size, base_, in MapOrDie() 373 size_t map_size = size + alignment; in MmapAlignedOrDieOnFatalError() local [all …]
|
| H A D | sanitizer_posix.cpp | 87 uptr map_size = size + alignment; in MmapAlignedOrDieOnFatalError() local 92 map_size = RoundUpTo(map_size, GetPageSizeCached()); in MmapAlignedOrDieOnFatalError() 93 uptr map_res = (uptr)MmapOrDieOnFatalError(map_size, mem_type); in MmapAlignedOrDieOnFatalError() 101 uptr map_end = map_res + map_size; in MmapAlignedOrDieOnFatalError()
|
| H A D | sanitizer_linux_libcdep.cpp | 995 const uptr map_size = shadow_size + left_padding + alignment; in MapDynamicShadow() local 997 const uptr map_start = (uptr)MmapNoAccess(map_size); in MapDynamicShadow() 1003 UnmapFromTo(shadow_start + shadow_size, map_start + map_size); in MapDynamicShadow() 1053 const uptr map_size = left_padding + 2 * alignment; in MapDynamicShadowAndAliases() local 1055 const uptr map_start = reinterpret_cast<uptr>(MmapNoAccess(map_size)); in MapDynamicShadowAndAliases() 1060 UnmapFromTo(right_start + right_size, map_start + map_size); in MapDynamicShadowAndAliases()
|
| /freebsd-14.2/lib/geom/virstor/ |
| H A D | geom_virstor.c | 164 size_t map_size; /* In bytes. */ in virstor_label() local 253 map_size = total_chunks * sizeof(*map); in virstor_label() 256 ssize = map_size % secsize; in virstor_label() 261 map_size = total_chunks * sizeof(*map); in virstor_label() 296 if (msize < (off_t) MAX(md.md_chunk_size*4, map_size)) in virstor_label() 315 map_chunks = map_size/md.md_chunk_size; in virstor_label() 316 if (map_size % md.md_chunk_size != 0) in virstor_label() 338 map_size); in virstor_label() 341 written = pwrite(fd, map, map_size, 0); in virstor_label() 343 if ((size_t)written != map_size) { in virstor_label() [all …]
|
| /freebsd-14.2/tools/test/stress2/misc/ |
| H A D | mmap.sh | 29 static const size_t map_size = 0x1000; 36 p = mmap(NULL, 2 * map_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 43 if (munmap(p, map_size) == -1) {
|
| /freebsd-14.2/tests/sys/fs/fusefs/ |
| H A D | io.cc | 289 size_t map_size; in do_mapread() local 293 map_size = pg_offset + size; in do_mapread() 295 p = mmap(NULL, map_size, PROT_READ, MAP_FILE | MAP_SHARED, m_test_fd, in do_mapread() 306 ASSERT_EQ(0, munmap(p, map_size)) << strerror(errno); in do_mapread() 337 size_t map_size; in do_mapwrite() local 342 map_size = pg_offset + size; in do_mapwrite() 356 p = mmap(NULL, map_size, PROT_READ | PROT_WRITE, in do_mapwrite() 365 ASSERT_EQ(0, munmap(p, map_size)) << strerror(errno); in do_mapwrite()
|
| /freebsd-14.2/crypto/openssl/crypto/ |
| H A D | mem_sec.c | 311 size_t map_size; member 497 sh.map_size = pgsize + sh.arena_size + pgsize; in sh_init() 501 sh.map_result = mmap(NULL, sh.map_size, in sh_init() 509 sh.map_result = mmap(NULL, sh.map_size, in sh_init() 518 sh.map_result = VirtualAlloc(NULL, sh.map_size, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE); in sh_init() 584 if (sh.map_result != MAP_FAILED && sh.map_size) in sh_done() 585 munmap(sh.map_result, sh.map_size); in sh_done() 587 if (sh.map_result != NULL && sh.map_size) in sh_done()
|
| /freebsd-14.2/tools/regression/fsx/ |
| H A D | fsx.c | 515 unsigned map_size; in domapread() local 547 map_size = pg_offset + size; in domapread() 549 if ((p = (char *)mmap(0, map_size, PROT_READ, MAP_FILE | MAP_SHARED, fd, in domapread() 558 if (munmap(p, map_size) != 0) { in domapread() 638 unsigned map_size; in domapwrite() local 683 map_size = pg_offset + size; in domapwrite() 685 if ((p = (char *)mmap(0, map_size, PROT_READ | PROT_WRITE, in domapwrite() 692 if (mapped_msync && msync(p, map_size, MS_SYNC) != 0) { in domapwrite() 699 if (munmap(p, map_size) != 0) { in domapwrite()
|
| /freebsd-14.2/sys/contrib/openzfs/module/zfs/ |
| H A D | vdev_indirect_mapping.c | 294 uint64_t map_size = vdev_indirect_mapping_size(vim); in vdev_indirect_mapping_close() local 295 vmem_free(vim->vim_entries, map_size); in vdev_indirect_mapping_close() 361 uint64_t map_size = vdev_indirect_mapping_size(vim); in vdev_indirect_mapping_open() local 362 vim->vim_entries = vmem_alloc(map_size, KM_SLEEP); in vdev_indirect_mapping_open() 363 VERIFY0(dmu_read(os, vim->vim_object, 0, map_size, in vdev_indirect_mapping_open()
|
| /freebsd-14.2/contrib/libcbor/src/cbor/ |
| H A D | serialization.c | 123 size_t map_size = cbor_map_is_definite(item) in cbor_serialized_size() local 128 map_size = _cbor_safe_signaling_add( in cbor_serialized_size() 129 map_size, in cbor_serialized_size() 133 return map_size; in cbor_serialized_size()
|
| /freebsd-14.2/sys/geom/virstor/ |
| H A D | g_virstor.h | 94 size_t map_size; /* (in bytes) */ member
|
| H A D | g_virstor.c | 1217 sc->map_size = sc->chunk_count * sizeof *(sc->map); in virstor_check_and_run() 1219 sc->map = malloc(sc->map_size, M_GVIRSTOR, M_WAITOK); in virstor_check_and_run() 1221 __func__, sc->map_size, sc->provider->name)); in virstor_check_and_run() 1222 sc->map_sectors = sc->map_size / sc->sectorsize; in virstor_check_and_run() 1243 while (count < sc->map_size) { in virstor_check_and_run() 1247 bs = MIN(maxphys, sc->map_size - count); in virstor_check_and_run()
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7996/ |
| H A D | mmio.c | 133 for (i = 0; i < dev->reg.map_size; i++) { in __mt7996_reg_addr() 212 dev->reg.map_size = ARRAY_SIZE(mt7996_reg_map); in mt7996_mmio_init()
|
| H A D | regs.h | 23 u32 map_size; member
|
| /freebsd-14.2/sys/contrib/dev/mediatek/mt76/mt7915/ |
| H A D | mmio.c | 480 for (i = 0; i < dev->reg.map_size; i++) { in __mt7915_reg_addr() 826 dev->reg.map_size = ARRAY_SIZE(mt7915_reg_map); in mt7915_mmio_init() 832 dev->reg.map_size = ARRAY_SIZE(mt7916_reg_map); in mt7915_mmio_init() 839 dev->reg.map_size = ARRAY_SIZE(mt7986_reg_map); in mt7915_mmio_init()
|
| H A D | regs.h | 12 u32 map_size; member
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/LTO/legacy/ |
| H A D | LTOModule.h | 105 size_t map_size, off_t offset,
|
| /freebsd-14.2/contrib/llvm-project/openmp/runtime/src/ |
| H A D | kmp_taskdeps.cpp | 696 if (new_taskdata->td_task_id >= tdg->map_size) { in __kmpc_omp_task_with_deps() 698 if (new_taskdata->td_task_id >= tdg->map_size) { in __kmpc_omp_task_with_deps() 699 kmp_uint old_size = tdg->map_size; in __kmpc_omp_task_with_deps() 722 tdg->map_size = new_size; in __kmpc_omp_task_with_deps()
|
| H A D | kmp_tasking.cpp | 2028 if (new_taskdata->td_task_id >= new_taskdata->tdg->map_size) { 2032 if (new_taskdata->td_task_id >= tdg->map_size) { 2033 kmp_uint old_size = tdg->map_size; 2056 tdg->map_size = new_size; 5584 tdg->map_size = INIT_MAPSIZE; 5660 kmp_int32 this_map_size = tdg->map_size; 5671 tdg->map_size = this_map_size;
|
| H A D | kmp.h | 2634 kmp_int32 map_size; // Number of allocated TDG nodes member
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm-c/ |
| H A D | lto.h | 238 size_t map_size, off_t offset);
|
| /freebsd-14.2/usr.sbin/bhyvectl/ |
| H A D | bhyvectl.c | 317 int error, fd, map_size; in dump_msr_bitmap() local 329 map_size = PAGE_SIZE; in dump_msr_bitmap() 331 map_size = 2 * PAGE_SIZE; in dump_msr_bitmap() 333 bitmap = mmap(NULL, map_size, PROT_READ, MAP_SHARED, fd, addr); in dump_msr_bitmap() 347 munmap((void *)bitmap, map_size); in dump_msr_bitmap()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/LTO/ |
| H A D | LTOModule.cpp | 132 size_t map_size, off_t offset, in createFromOpenFileSlice() argument 136 map_size, offset); in createFromOpenFileSlice()
|
| /freebsd-14.2/sys/dev/ocs_fc/ |
| H A D | sli4.c | 3761 sli4->config.extent[i].map_size = total; in sli_get_config() 5419 sli4->config.extent[rtype].map_size); in sli_resource_alloc() 5513 for (i = 0; i < sli4->config.extent[rtype].map_size; i++) { in sli_resource_reset()
|