| /freebsd-13.1/sbin/hastd/ |
| H A D | secondary.c | 225 size_t mapsize; in init_remote() local 243 map = malloc(mapsize); in init_remote() 247 mapsize); in init_remote() 301 mapsize = 0; in init_remote() 303 memset(map, 0xff, mapsize); in init_remote() 341 (ssize_t)mapsize) { in init_remote() 384 memset(map, 0xff, mapsize); in init_remote() 762 size_t mapsize; in disk_thread() local 769 mapsize = in disk_thread() 773 map = calloc(1, mapsize); in disk_thread() [all …]
|
| H A D | primary.c | 528 size_t mapsize; in init_local() local 545 buf = calloc(1, mapsize); in init_local() 551 (ssize_t)mapsize) { in init_local() 554 activemap_copyin(res->hr_amp, buf, mapsize); in init_local() 643 uint32_t mapsize; in init_remote() local 818 mapsize = nv_get_uint32(nvin, "mapsize"); in init_remote() 819 if (mapsize > 0) { in init_remote() 820 map = malloc(mapsize); in init_remote() 823 (uintmax_t)mapsize); in init_remote() 832 mapsize) == -1) { in init_remote() [all …]
|
| H A D | activemap.c | 548 uint64_t nextents, mapsize; in activemap_calc_ondisk_size() local 557 mapsize = bitstr_size(nextents); in activemap_calc_ondisk_size() 558 return (roundup2(mapsize, sectorsize)); in activemap_calc_ondisk_size()
|
| /freebsd-13.1/lib/libsysdecode/ |
| H A D | utrace.c | 47 uint32_t mapsize; member 96 ut->mapbase, (char *)ut->mapbase + ut->mapsize - 1, in print_utrace_rtld() 101 ut->mapbase, (char *)ut->mapbase + ut->mapsize - 1, in print_utrace_rtld() 195 ur.mapsize = pr->mapsize; in sysdecode_utrace()
|
| /freebsd-13.1/sbin/hastctl/ |
| H A D | hastctl.c | 97 size_t mapsize; in create_one() local 135 mapsize = activemap_calc_ondisk_size(mediasize - METADATA_SIZE, in create_one() 139 res->hr_datasize = mediasize - METADATA_SIZE - mapsize; in create_one() 143 res->hr_localoff = METADATA_SIZE + mapsize; in create_one() 149 buf = calloc(1, mapsize); in create_one() 152 mapsize); in create_one() 156 if (pwrite(res->hr_localfd, buf, mapsize, METADATA_SIZE) != in create_one() 157 (ssize_t)mapsize) { in create_one()
|
| /freebsd-13.1/sys/dev/vt/ |
| H A D | vt_font.c | 163 size_t glyphsize, mapsize; in vtfont_load() local 200 mapsize = f->map_count[i] * sizeof(vfnt_map_t); in vtfont_load() 201 vf->vf_map[i] = malloc(mapsize, M_VTFONT, M_WAITOK); in vtfont_load() 202 error = copyin(f->map[i], vf->vf_map[i], mapsize); in vtfont_load()
|
| /freebsd-13.1/sys/dev/safe/ |
| H A D | safevar.h | 79 bus_size_t mapsize; member 118 #define re_src_mapsize re_src.mapsize 123 #define re_dst_mapsize re_dst.mapsize
|
| /freebsd-13.1/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 | 39 extern int mapsize; /* size of the state maps */
|
| /freebsd-13.1/libexec/rtld-elf/ |
| H A D | map_object.c | 78 size_t mapsize; in map_object() local 208 mapsize = base_vlimit - base_vaddr; in map_object() 217 mapbase = mmap(base_addr, mapsize, PROT_NONE, base_flags, -1, 0); in map_object() 296 obj->mapsize = mapsize; in map_object() 338 munmap(mapbase, mapsize); in map_object()
|
| H A D | rtld_utrace.h | 58 size_t mapsize; member
|
| H A D | rtld.h | 149 size_t mapsize; /* Size of mapped region in bytes */ member
|
| /freebsd-13.1/sys/dev/hifn/ |
| H A D | hifn7751var.h | 261 bus_size_t mapsize; member 282 #define src_mapsize src.mapsize 287 #define dst_mapsize dst.mapsize
|
| /freebsd-13.1/sbin/fsck_ffs/ |
| H A D | pass5.c | 61 int c, i, j, blk, frags, basesize, mapsize; in pass5() local 151 mapsize = newcg->cg_nextfreeoff - newcg->cg_iusedoff; in pass5() 241 memset(cg_inosused(newcg), 0, (size_t)(mapsize)); in pass5() 368 memcmp(cg_inosused(newcg), cg_inosused(cg), mapsize) != 0 && in pass5() 371 (size_t)mapsize); in pass5() 477 int mapsize, /* size of above two maps */ in check_maps() argument 496 for (i = 0; i < mapsize; i++) { in check_maps()
|
| /freebsd-13.1/usr.sbin/kldxref/ |
| H A D | ef_obj.c | 365 size_t mapsize, alignmask, max_addralign; in ef_obj_open() local 498 mapsize = 0; in ef_obj_open() 506 mapsize += alignmask; in ef_obj_open() 507 mapsize &= ~alignmask; in ef_obj_open() 508 mapsize += shdr[i].sh_size; in ef_obj_open() 514 ef->size = mapsize; in ef_obj_open() 515 if (posix_memalign((void **)&ef->address, max_addralign, mapsize)) { in ef_obj_open()
|
| /freebsd-13.1/lib/libnetmap/ |
| H A D | nmport.c | 192 off_t mapsize; in nmport_extmem_from_file() local 208 mapsize = lseek(fd, 0, SEEK_END); in nmport_extmem_from_file() 209 if (mapsize < 0) { in nmport_extmem_from_file() 213 p = mmap(0, mapsize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in nmport_extmem_from_file() 221 clnup->size = mapsize; in nmport_extmem_from_file() 225 if (nmport_extmem(d, p, mapsize) < 0) in nmport_extmem_from_file()
|
| /freebsd-13.1/sys/kern/ |
| H A D | link_elf_obj.c | 694 size_t mapsize; in link_elf_load_file() local 709 mapsize = 0; in link_elf_load_file() 942 mapsize += alignmask; in link_elf_load_file() 943 mapsize &= ~alignmask; in link_elf_load_file() 944 mapsize += shdr[i].sh_size; in link_elf_load_file() 977 round_page(mapsize), 0, VMFS_OPTIMAL_SPACE, VM_PROT_ALL, in link_elf_load_file() 988 mapbase + round_page(mapsize), in link_elf_load_file() 997 lf->size = mapsize; in link_elf_load_file() 1195 if (mapbase != (vm_offset_t)ef->address + mapsize) { in link_elf_load_file() 1199 (u_long)mapbase, ef->address, (u_long)mapsize, in link_elf_load_file() [all …]
|
| H A D | link_elf.c | 966 size_t mapsize; in link_elf_load_file() local 1110 mapsize = base_vlimit - base_vaddr; in link_elf_load_file() 1120 ef->object = vm_pager_allocate(OBJT_PHYS, NULL, mapsize, VM_PROT_ALL, in link_elf_load_file() 1135 (vm_offset_t *)&mapbase, mapsize, 0, VMFS_OPTIMAL_SPACE, in link_elf_load_file() 1143 mapbase = malloc_exec(mapsize, M_LINKER, M_WAITOK); in link_elf_load_file() 1194 lf->size = mapsize; in link_elf_load_file()
|
| /freebsd-13.1/sys/contrib/openzfs/include/sys/ |
| H A D | zil.h | 130 #define ZIL_XVAT_SIZE(mapsize) \ argument 131 sizeof (lr_attr_t) + (sizeof (uint32_t) * (mapsize - 1)) + \
|
| /freebsd-13.1/sys/amd64/sgx/ |
| H A D | sgx.c | 1026 vm_size_t mapsize, struct vm_object **objp, int nprot) in sgx_mmap_single() argument 1034 __func__, mapsize, *offset); in sgx_mmap_single() 1039 vmh->size = mapsize; in sgx_mmap_single() 1041 mapsize, nprot, *offset, NULL); in sgx_mmap_single()
|
| /freebsd-13.1/lib/libc/nameser/ |
| H A D | ns_name.c | 794 ns_name_map(ns_nname_ct nname, size_t namelen, ns_namemap_t map, int mapsize) { in ns_name_map() argument 824 l = ns_name_map(nname + n, namelen - n, map, mapsize); in ns_name_map() 829 if (l >= mapsize) { in ns_name_map()
|
| /freebsd-13.1/sys/riscv/riscv/ |
| H A D | busdma_bounce.c | 278 u_long mapsize; in alloc_dmamap() local 281 mapsize = sizeof(*map); in alloc_dmamap() 282 mapsize += sizeof(struct sync_list) * dmat->common.nsegments; in alloc_dmamap() 283 map = malloc(mapsize, M_DEVBUF, flags | M_ZERO); in alloc_dmamap()
|
| /freebsd-13.1/sys/dev/pci/ |
| H A D | pci.c | 3279 mapsize = pci_mapsize(testval); in pci_add_map() 3303 pm = pci_add_bar(dev, reg, map, mapsize); in pci_add_map() 3362 count = (pci_addr_t)1 << mapsize; in pci_add_map() 3363 flags = RF_ALIGNMENT_LOG2(mapsize); in pci_add_map() 5423 int mapsize; in pci_reserve_map() local 5434 mapsize = pm->pm_size; in pci_reserve_map() 5452 mapsize = pci_romsize(testval); in pci_reserve_map() 5454 mapsize = pci_mapsize(testval); in pci_reserve_map() 5455 if (mapsize == 0) in pci_reserve_map() 5487 count = ((pci_addr_t)1 << mapsize) * num; in pci_reserve_map() [all …]
|
| /freebsd-13.1/sys/arm64/arm64/ |
| H A D | busdma_bounce.c | 386 u_long mapsize; in alloc_dmamap() local 389 mapsize = sizeof(*map); in alloc_dmamap() 390 mapsize += sizeof(struct sync_list) * dmat->common.nsegments; in alloc_dmamap() 391 map = malloc(mapsize, M_DEVBUF, flags | M_ZERO); in alloc_dmamap()
|
| /freebsd-13.1/sys/arm/arm/ |
| H A D | busdma_machdep.c | 694 int mapsize, segsize; in allocate_map() local 706 mapsize = sizeof(*map) + sizeof(struct sync_list) * dmat->nsegments; in allocate_map() 707 map = malloc(mapsize + segsize, M_BUSDMA, mflags | M_ZERO); in allocate_map() 712 map->segments = (bus_dma_segment_t *)((uintptr_t)map + mapsize); in allocate_map()
|