| /freebsd-src/sbin/hastd/ |
| H A D | secondary.c | 222 size_t mapsize; in init_remote() local 238 mapsize = activemap_calc_ondisk_size(res->hr_local_mediasize - in init_remote() 240 map = malloc(mapsize); in init_remote() 244 mapsize); in init_remote() 298 mapsize = 0; in init_remote() 300 memset(map, 0xff, mapsize); in init_remote() 337 if (pread(res->hr_localfd, map, mapsize, METADATA_SIZE) != in init_remote() 338 (ssize_t)mapsize) { in init_remote() 378 mapsize = activemap_calc_ondisk_size(res->hr_local_mediasize - in init_remote() 381 memset(map, 0xff, mapsize); in init_remote() [all …]
|
| H A D | primary.c | 525 size_t mapsize; in init_local() local 541 mapsize = activemap_ondisk_size(res->hr_amp); in init_local() 542 buf = calloc(1, mapsize); in init_local() 547 if (pread(res->hr_localfd, buf, mapsize, METADATA_SIZE) != in init_local() 548 (ssize_t)mapsize) { in init_local() 551 activemap_copyin(res->hr_amp, buf, mapsize); in init_local() 640 uint32_t mapsize; in init_remote() local 815 mapsize = nv_get_uint32(nvin, "mapsize"); in init_remote() 816 if (mapsize > 0) { in init_remote() 817 map = malloc(mapsize); in init_remote() [all …]
|
| H A D | activemap.c | 544 uint64_t nextents, mapsize; in activemap_calc_ondisk_size() 553 mapsize = bitstr_size(nextents); in activemap_calc_ondisk_size() 554 return (roundup2(mapsize, sectorsize)); in activemap_calc_ondisk_size() 545 uint64_t nextents, mapsize; activemap_calc_ondisk_size() local
|
| /freebsd-src/lib/libsysdecode/ |
| H A D | utrace.c | 44 uint32_t mapsize; member 93 ut->mapbase, (char *)ut->mapbase + ut->mapsize - 1, in print_utrace_rtld() 98 ut->mapbase, (char *)ut->mapbase + ut->mapsize - 1, in print_utrace_rtld() 192 ur.mapsize = pr->mapsize; in sysdecode_utrace()
|
| /freebsd-src/sbin/hastctl/ |
| H A D | hastctl.c | 93 size_t mapsize; in create_one() 131 mapsize = activemap_calc_ondisk_size(mediasize - METADATA_SIZE, in create_one() 135 res->hr_datasize = mediasize - METADATA_SIZE - mapsize; in create_one() 139 res->hr_localoff = METADATA_SIZE + mapsize; in create_one() 145 buf = calloc(1, mapsize); in create_one() 148 mapsize); in create_one() 152 if (pwrite(res->hr_localfd, buf, mapsize, METADATA_SIZE) != in create_one() 153 (ssize_t)mapsize) { in create_one() 94 size_t mapsize; create_one() local
|
| /freebsd-src/sys/dev/vt/ |
| H A D | vt_font.c | 160 size_t glyphsize, mapsize; in vtfont_load() local 197 mapsize = f->map_count[i] * sizeof(vfnt_map_t); in vtfont_load() 198 vf->vf_map[i] = malloc(mapsize, M_VTFONT, M_WAITOK); in vtfont_load() 199 error = copyin(f->map[i], vf->vf_map[i], mapsize); in vtfont_load()
|
| /freebsd-src/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-src/sbin/dump/ |
| H A D | main.c | 64 int mapsize; /* size of the state maps */ variable 464 mapsize = roundup(howmany(maxino, CHAR_BIT), TP_BSIZE); in main() 465 usedinomap = (char *)calloc((unsigned) mapsize, sizeof(char)); in main() 466 dumpdirmap = (char *)calloc((unsigned) mapsize, sizeof(char)); in main() 467 dumpinomap = (char *)calloc((unsigned) mapsize, sizeof(char)); in main() 468 tapesize = 3 * (howmany(mapsize * sizeof(char), TP_BSIZE) + 1); in main() 524 (howmany(mapsize * sizeof(char), TP_BSIZE) + 1); in main()
|
| H A D | dump.h | 35 extern int mapsize; /* size of the state maps */
|
| /freebsd-src/libexec/rtld-elf/ |
| H A D | map_object.c | 76 size_t mapsize; in map_object() local 205 mapsize = base_vlimit - base_vaddr; in map_object() 215 mapbase = mmap(base_addr, mapsize, PROT_NONE, base_flags, -1, 0); in map_object() 305 obj->mapsize = mapsize; in map_object() 347 munmap(mapbase, mapsize);
|
| 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-src/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-src/sbin/fsck_ffs/ |
| H A D | pass5.c | 52 int c, i, j, blk, frags, basesize, mapsize; in pass5() local 142 mapsize = newcg->cg_nextfreeoff - newcg->cg_iusedoff; in pass5() 232 memset(cg_inosused(newcg), 0, (size_t)(mapsize)); in pass5() 359 memcmp(cg_inosused(newcg), cg_inosused(cg), mapsize) != 0 && in pass5() 362 (size_t)mapsize); in pass5() 494 int mapsize, /* size of above two maps */ in check_maps() argument 513 for (i = 0; i < mapsize; i++) { in check_maps()
|
| /freebsd-src/sys/kern/ |
| H A D | link_elf_obj.c | 723 size_t mapsize; in link_elf_load_file() 738 mapsize = 0; in link_elf_load_file() 971 mapsize += alignmask; in link_elf_load_file() 972 mapsize &= ~alignmask; in link_elf_load_file() 973 mapsize += shdr[i].sh_size; in link_elf_load_file() 983 ef->object = vm_pager_allocate(OBJT_PHYS, NULL, round_page(mapsize), in link_elf_load_file() 1006 round_page(mapsize), 0, VMFS_OPTIMAL_SPACE, VM_PROT_ALL, in link_elf_load_file() 1017 mapbase + round_page(mapsize), in link_elf_load_file() 1026 lf->size = mapsize; in link_elf_load_file() 1223 if (mapbase != (vm_offset_t)ef->address + mapsize) { in link_elf_load_file() 726 size_t mapsize; link_elf_load_file() local [all...] |
| H A D | link_elf.c | 982 size_t mapsize; in link_elf_load_file() 1126 mapsize = base_vlimit - base_vaddr; in link_elf_load_file() 1136 ef->object = vm_pager_allocate(OBJT_PHYS, NULL, mapsize, VM_PROT_ALL, in link_elf_load_file() 1151 (vm_offset_t *)&mapbase, mapsize, 0, VMFS_OPTIMAL_SPACE, in link_elf_load_file() 1159 mapbase = malloc_exec(mapsize, M_LINKER, M_WAITOK); in link_elf_load_file() 1202 lf->size = mapsize; in link_elf_load_file() 988 size_t mapsize; link_elf_load_file() local
|
| /freebsd-src/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-src/sys/riscv/riscv/ |
| H A D | busdma_bounce.c | 222 u_long mapsize; in alloc_dmamap() local 225 mapsize = sizeof(*map); in alloc_dmamap() 226 mapsize += sizeof(struct sync_list) * dmat->common.nsegments; in alloc_dmamap() 227 map = malloc(mapsize, M_DEVBUF, flags | M_ZERO); in alloc_dmamap()
|
| /freebsd-src/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-src/sys/amd64/sgx/ |
| H A D | sgx.c | 1021 vm_size_t mapsize, struct vm_object **objp, int nprot) in sgx_mmap_single() argument 1028 dprintf("%s: mapsize 0x%lx, offset %lx\n", in sgx_mmap_single() 1029 __func__, mapsize, *offset); in sgx_mmap_single() 1034 vmh->size = mapsize; in sgx_mmap_single() 1036 mapsize, nprot, *offset, NULL); in sgx_mmap_single()
|
| /freebsd-src/lib/libc/nameser/ |
| H A D | ns_name.c | 788 ns_name_map(ns_nname_ct nname, size_t namelen, ns_namemap_t map, int mapsize) { in ns_name_map() argument 818 l = ns_name_map(nname + n, namelen - n, map, mapsize); in ns_name_map() 823 if (l >= mapsize) { in ns_name_map()
|
| /freebsd-src/sys/arm64/arm64/ |
| H A D | busdma_bounce.c | 364 u_long mapsize; in alloc_dmamap() 367 mapsize = sizeof(*map); in alloc_dmamap() 368 mapsize += sizeof(struct sync_list) * dmat->common.nsegments; in alloc_dmamap() 369 map = malloc_domainset(mapsize, M_DEVBUF, in alloc_dmamap() 362 u_long mapsize; alloc_dmamap() local
|
| /freebsd-src/sys/arm/arm/ |
| H A D | busdma_machdep.c | 563 int mapsize, segsize; in allocate_map() local 575 mapsize = sizeof(*map) + sizeof(struct sync_list) * dmat->nsegments; in allocate_map() 576 map = malloc(mapsize + segsize, M_BUSDMA, mflags | M_ZERO); in allocate_map() 581 map->segments = (bus_dma_segment_t *)((uintptr_t)map + mapsize); in allocate_map()
|
| /freebsd-src/sys/dev/pci/ |
| H A D | pci.c | 3261 int barlen, basezero, flags, maprange, mapsize, type; in pci_add_map() 3283 mapsize = pci_mapsize(testval); in pci_add_map() 3302 if ((type == SYS_RES_MEMORY && mapsize < 4) || in pci_add_map() 3303 (type == SYS_RES_IOPORT && mapsize < 2)) in pci_add_map() 3307 pm = pci_add_bar(dev, reg, map, mapsize); in pci_add_map() 3310 reg, pci_maptype(map), maprange, (uintmax_t)base, mapsize); in pci_add_map() 3366 count = (pci_addr_t)1 << mapsize; in pci_add_map() 3367 flags = RF_ALIGNMENT_LOG2(mapsize); in pci_add_map() 5417 int mapsize; in DB_SHOW_COMMAND_FLAGS() 5428 mapsize in pci_reserve_map() 3258 int barlen, basezero, flags, maprange, mapsize, type; pci_add_map() local 5433 int mapsize; pci_reserve_map() local [all...] |
| /freebsd-src/sys/vm/ |
| H A D | memguard.c | 121 SYSCTL_ULONG(_vm_memguard, OID_AUTO, mapsize, CTLFLAG_RD,
|