/freebsd/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 …]
|
/freebsd/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/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/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/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/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); 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
|
H A D | rtld.c | 334 ld_utrace_log(int event, void *handle, void *mapbase, size_t mapsize, in ld_utrace_log() argument 345 ut.mapsize = mapsize; in ld_utrace_log() 1685 obj->mapsize = rtld_round_page( in digest_phdr() 2881 dbg(" %p .. %p: %s", obj->mapbase, obj->mapbase + obj->mapsize - 1, in do_load_object() 2885 LD_UTRACE(UTRACE_LOAD_OBJECT, obj, obj->mapbase, obj->mapsize, 0, in do_load_object() 2891 munmap(obj->mapbase, obj->mapsize); in do_load_object() 2935 obj->mapsize = segn->p_vaddr + segn->p_memsz - (Elf_Addr)addr; in load_kpreload() 2978 if (addr < (void *)(obj->mapbase + obj->mapsize)) in obj_from_addr() 4570 munmap(obj->mapbase, obj->mapsize); in release_object() 5212 LD_UTRACE(UTRACE_UNLOAD_OBJECT, obj, obj->mapbase, obj->mapsize, in unload_object()
|
/freebsd/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/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/sys/kern/ |
H A D | link_elf_obj.c | 723 size_t mapsize; in link_elf_load_file() local 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() [all …]
|
H A D | link_elf.c | 982 size_t mapsize; in link_elf_load_file() local 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()
|
/freebsd/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/sys/riscv/riscv/ |
H A D | busdma_bounce.c | 222 u_long mapsize; in alloc_dmamap() 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() 218 u_long mapsize; alloc_dmamap() local
|
/freebsd/sys/amd64/sgx/ |
H A D | sgx.c | 1021 vm_size_t mapsize, struct vm_object **objp, int nprot) in sgx_mmap_single() argument 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/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/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/sys/arm64/arm64/ |
H A D | busdma_bounce.c | 364 u_long mapsize; in alloc_dmamap() local 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()
|
/freebsd/sys/arm/arm/ |
H A D | busdma_machdep.c | 563 int mapsize, segsize; in allocate_map() 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); 559 int mapsize, segsize; allocate_map() local
|
/freebsd/sys/dev/pci/ |
H A D | pci.c | 3301 int barlen, basezero, flags, maprange, mapsize, type; in pci_add_map() local 3323 mapsize = pci_mapsize(testval); in pci_add_map() 3342 if ((type == SYS_RES_MEMORY && mapsize < 4) || in pci_add_map() 3343 (type == SYS_RES_IOPORT && mapsize < 2)) in pci_add_map() 3347 pm = pci_add_bar(dev, reg, map, mapsize); in pci_add_map() 3350 reg, pci_maptype(map), maprange, (uintmax_t)base, mapsize); in pci_add_map() 3406 count = (pci_addr_t)1 << mapsize; in pci_add_map() 3407 flags = RF_ALIGNMENT_LOG2(mapsize); in pci_add_map() 5457 int mapsize; in pci_reserve_map() local 5468 mapsize = pm->pm_size; in pci_reserve_map() [all …]
|
/freebsd/sys/vm/ |
H A D | memguard.c | 121 SYSCTL_ULONG(_vm_memguard, OID_AUTO, mapsize, CTLFLAG_RD,
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_write_set_format_pax.c | 1367 size_t mapsize = archive_strlen(&(pax->sparse_map)); local 1368 pax->sparse_map_padding = 0x1ff & (-(ssize_t)mapsize); 1370 mapsize + pax->sparse_map_padding + sparse_total);
|