| /freebsd-14.2/sbin/hastd/ |
| H A D | secondary.c | 223 size_t mapsize; in init_remote() local 241 map = malloc(mapsize); in init_remote() 245 mapsize); in init_remote() 299 mapsize = 0; in init_remote() 301 memset(map, 0xff, mapsize); in init_remote() 339 (ssize_t)mapsize) { in init_remote() 382 memset(map, 0xff, mapsize); in init_remote() 760 size_t mapsize; in disk_thread() local 767 mapsize = in disk_thread() 771 map = calloc(1, mapsize); in disk_thread() [all …]
|
| H A D | primary.c | 526 size_t mapsize; in init_local() local 543 buf = calloc(1, mapsize); in init_local() 549 (ssize_t)mapsize) { in init_local() 552 activemap_copyin(res->hr_amp, buf, mapsize); in init_local() 641 uint32_t mapsize; in init_remote() local 816 mapsize = nv_get_uint32(nvin, "mapsize"); in init_remote() 817 if (mapsize > 0) { in init_remote() 818 map = malloc(mapsize); in init_remote() 821 (uintmax_t)mapsize); in init_remote() 830 mapsize) == -1) { in init_remote() [all …]
|
| H A D | activemap.c | 545 uint64_t nextents, mapsize; in activemap_calc_ondisk_size() local 554 mapsize = bitstr_size(nextents); in activemap_calc_ondisk_size() 555 return (roundup2(mapsize, sectorsize)); in activemap_calc_ondisk_size()
|
| /freebsd-14.2/lib/libsysdecode/ |
| H A D | utrace.c | 45 uint32_t mapsize; member 94 ut->mapbase, (char *)ut->mapbase + ut->mapsize - 1, in print_utrace_rtld() 99 ut->mapbase, (char *)ut->mapbase + ut->mapsize - 1, in print_utrace_rtld() 193 ur.mapsize = pr->mapsize; in sysdecode_utrace()
|
| /freebsd-14.2/sbin/hastctl/ |
| H A D | hastctl.c | 94 size_t mapsize; in create_one() local 132 mapsize = activemap_calc_ondisk_size(mediasize - METADATA_SIZE, in create_one() 136 res->hr_datasize = mediasize - METADATA_SIZE - mapsize; in create_one() 140 res->hr_localoff = METADATA_SIZE + mapsize; in create_one() 146 buf = calloc(1, mapsize); in create_one() 149 mapsize); in create_one() 153 if (pwrite(res->hr_localfd, buf, mapsize, METADATA_SIZE) != in create_one() 154 (ssize_t)mapsize) { in create_one()
|
| /freebsd-14.2/sys/dev/vt/ |
| H A D | vt_font.c | 161 size_t glyphsize, mapsize; in vtfont_load() local 198 mapsize = f->map_count[i] * sizeof(vfnt_map_t); in vtfont_load() 199 vf->vf_map[i] = malloc(mapsize, M_VTFONT, M_WAITOK); in vtfont_load() 200 error = copyin(f->map[i], vf->vf_map[i], mapsize); in vtfont_load()
|
| /freebsd-14.2/sys/dev/safe/ |
| H A D | safevar.h | 77 bus_size_t mapsize; member 116 #define re_src_mapsize re_src.mapsize 121 #define re_dst_mapsize re_dst.mapsize
|
| /freebsd-14.2/sbin/dump/ |
| H A D | main.c | 76 int mapsize; /* size of the state maps */ variable 476 mapsize = roundup(howmany(maxino, CHAR_BIT), TP_BSIZE); in main() 477 usedinomap = (char *)calloc((unsigned) mapsize, sizeof(char)); in main() 478 dumpdirmap = (char *)calloc((unsigned) mapsize, sizeof(char)); in main() 479 dumpinomap = (char *)calloc((unsigned) mapsize, sizeof(char)); in main() 480 tapesize = 3 * (howmany(mapsize * sizeof(char), TP_BSIZE) + 1); in main() 536 (howmany(mapsize * sizeof(char), TP_BSIZE) + 1); in main()
|
| H A D | dump.h | 37 extern int mapsize; /* size of the state maps */
|
| /freebsd-14.2/libexec/rtld-elf/ |
| H A D | map_object.c | 76 size_t mapsize; in map_object() local 207 mapsize = base_vlimit - base_vaddr; in map_object() 216 mapbase = mmap(base_addr, mapsize, PROT_NONE, base_flags, -1, 0); in map_object() 295 obj->mapsize = mapsize; in map_object() 337 munmap(mapbase, mapsize); in map_object()
|
| H A D | rtld_utrace.h | 56 size_t mapsize; member
|
| H A D | rtld.h | 149 size_t mapsize; /* Size of mapped region in bytes */ member
|
| /freebsd-14.2/sys/dev/hifn/ |
| H A D | hifn7751var.h | 260 bus_size_t mapsize; member 281 #define src_mapsize src.mapsize 286 #define dst_mapsize dst.mapsize
|
| /freebsd-14.2/sbin/fsck_ffs/ |
| H A D | pass5.c | 59 int c, i, j, blk, frags, basesize, mapsize; in pass5() local 149 mapsize = newcg->cg_nextfreeoff - newcg->cg_iusedoff; in pass5() 239 memset(cg_inosused(newcg), 0, (size_t)(mapsize)); in pass5() 366 memcmp(cg_inosused(newcg), cg_inosused(cg), mapsize) != 0 && in pass5() 369 (size_t)mapsize); in pass5() 501 int mapsize, /* size of above two maps */ in check_maps() argument 520 for (i = 0; i < mapsize; i++) { in check_maps()
|
| /freebsd-14.2/sys/kern/ |
| H A D | link_elf_obj.c | 716 size_t mapsize; in link_elf_load_file() local 731 mapsize = 0; in link_elf_load_file() 964 mapsize += alignmask; in link_elf_load_file() 965 mapsize &= ~alignmask; in link_elf_load_file() 966 mapsize += shdr[i].sh_size; in link_elf_load_file() 999 round_page(mapsize), 0, VMFS_OPTIMAL_SPACE, VM_PROT_ALL, in link_elf_load_file() 1010 mapbase + round_page(mapsize), in link_elf_load_file() 1019 lf->size = mapsize; in link_elf_load_file() 1217 if (mapbase != (vm_offset_t)ef->address + mapsize) { in link_elf_load_file() 1221 (u_long)mapbase, ef->address, (u_long)mapsize, in link_elf_load_file() [all …]
|
| H A D | link_elf.c | 973 size_t mapsize; in link_elf_load_file() local 1117 mapsize = base_vlimit - base_vaddr; in link_elf_load_file() 1127 ef->object = vm_pager_allocate(OBJT_PHYS, NULL, mapsize, VM_PROT_ALL, in link_elf_load_file() 1142 (vm_offset_t *)&mapbase, mapsize, 0, VMFS_OPTIMAL_SPACE, in link_elf_load_file() 1150 mapbase = malloc_exec(mapsize, M_LINKER, M_WAITOK); in link_elf_load_file() 1193 lf->size = mapsize; in link_elf_load_file()
|
| /freebsd-14.2/lib/libnetmap/ |
| H A D | nmport.c | 191 off_t mapsize; in nmport_extmem_from_file() local 207 mapsize = lseek(fd, 0, SEEK_END); in nmport_extmem_from_file() 208 if (mapsize < 0) { in nmport_extmem_from_file() 212 p = mmap(0, mapsize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in nmport_extmem_from_file() 220 clnup->size = mapsize; in nmport_extmem_from_file() 224 if (nmport_extmem(d, p, mapsize) < 0) in nmport_extmem_from_file()
|
| /freebsd-14.2/sys/contrib/openzfs/include/sys/ |
| H A D | zil.h | 131 #define ZIL_XVAT_SIZE(mapsize) \ argument 132 sizeof (lr_attr_t) + (sizeof (uint32_t) * (mapsize - 1)) + \
|
| /freebsd-14.2/sys/amd64/sgx/ |
| H A D | sgx.c | 1022 vm_size_t mapsize, struct vm_object **objp, int nprot) in sgx_mmap_single() argument 1030 __func__, mapsize, *offset); in sgx_mmap_single() 1035 vmh->size = mapsize; in sgx_mmap_single() 1037 mapsize, nprot, *offset, NULL); in sgx_mmap_single()
|
| /freebsd-14.2/sys/riscv/riscv/ |
| H A D | busdma_bounce.c | 239 u_long mapsize; in alloc_dmamap() local 242 mapsize = sizeof(*map); in alloc_dmamap() 243 mapsize += sizeof(struct sync_list) * dmat->common.nsegments; in alloc_dmamap() 244 map = malloc(mapsize, M_DEVBUF, flags | M_ZERO); in alloc_dmamap()
|
| /freebsd-14.2/lib/libc/nameser/ |
| H A D | ns_name.c | 791 ns_name_map(ns_nname_ct nname, size_t namelen, ns_namemap_t map, int mapsize) { in ns_name_map() argument 821 l = ns_name_map(nname + n, namelen - n, map, mapsize); in ns_name_map() 826 if (l >= mapsize) { in ns_name_map()
|
| /freebsd-14.2/sys/arm64/arm64/ |
| H A D | busdma_bounce.c | 382 u_long mapsize; in alloc_dmamap() local 385 mapsize = sizeof(*map); in alloc_dmamap() 386 mapsize += sizeof(struct sync_list) * dmat->common.nsegments; in alloc_dmamap() 387 map = malloc_domainset(mapsize, M_DEVBUF, in alloc_dmamap()
|
| /freebsd-14.2/sys/arm/arm/ |
| H A D | busdma_machdep.c | 620 int mapsize, segsize; in allocate_map() local 632 mapsize = sizeof(*map) + sizeof(struct sync_list) * dmat->nsegments; in allocate_map() 633 map = malloc(mapsize + segsize, M_BUSDMA, mflags | M_ZERO); in allocate_map() 638 map->segments = (bus_dma_segment_t *)((uintptr_t)map + mapsize); in allocate_map()
|
| /freebsd-14.2/sys/dev/pci/ |
| H A D | pci.c | 3274 mapsize = pci_mapsize(testval); in pci_add_map() 3298 pm = pci_add_bar(dev, reg, map, mapsize); in pci_add_map() 3357 count = (pci_addr_t)1 << mapsize; in pci_add_map() 3358 flags = RF_ALIGNMENT_LOG2(mapsize); in pci_add_map() 5427 int mapsize; in pci_reserve_map() local 5438 mapsize = pm->pm_size; in pci_reserve_map() 5456 mapsize = pci_romsize(testval); in pci_reserve_map() 5458 mapsize = pci_mapsize(testval); in pci_reserve_map() 5459 if (mapsize == 0) in pci_reserve_map() 5491 count = ((pci_addr_t)1 << mapsize) * num; in pci_reserve_map() [all …]
|
| /freebsd-14.2/sys/vm/ |
| H A D | memguard.c | 121 SYSCTL_ULONG(_vm_memguard, OID_AUTO, mapsize, CTLFLAG_RD,
|