Searched refs:mapsize (Results 1 - 25 of 36) sorted by relevance

12

/freebsd-13-stable/libexec/rtld-elf/
H A Drtld_utrace.h58 size_t mapsize; member in struct:utrace_rtld
H A Dmap_object.c78 size_t mapsize; local
208 mapsize = base_vlimit - base_vaddr;
217 mapbase = mmap(base_addr, mapsize, PROT_NONE, base_flags, -1, 0);
296 obj->mapsize = mapsize;
337 munmap(mapbase, mapsize);
H A Drtld.h149 size_t mapsize; /* Size of mapped region in bytes */ member in struct:Struct_Obj_Entry
/freebsd-13-stable/lib/libsysdecode/
H A Dutrace.c47 uint32_t mapsize; member in struct:utrace_rtld32
96 ut->mapbase, (char *)ut->mapbase + ut->mapsize - 1,
101 ut->mapbase, (char *)ut->mapbase + ut->mapsize - 1,
195 ur.mapsize = pr->mapsize;
/freebsd-13-stable/sys/dev/hifn/
H A Dhifn7751var.h261 bus_size_t mapsize; member in struct:hifn_operand
282 #define src_mapsize src.mapsize
287 #define dst_mapsize dst.mapsize
/freebsd-13-stable/sys/dev/safe/
H A Dsafevar.h79 bus_size_t mapsize; member in struct:safe_operand
118 #define re_src_mapsize re_src.mapsize
123 #define re_dst_mapsize re_dst.mapsize
/freebsd-13-stable/sbin/hastctl/
H A Dhastctl.c97 size_t mapsize; local
135 mapsize = activemap_calc_ondisk_size(mediasize - METADATA_SIZE,
139 res->hr_datasize = mediasize - METADATA_SIZE - mapsize;
143 res->hr_localoff = METADATA_SIZE + mapsize;
149 buf = calloc(1, mapsize);
152 mapsize);
156 if (pwrite(res->hr_localfd, buf, mapsize, METADATA_SIZE) !=
157 (ssize_t)mapsize) {
/freebsd-13-stable/sbin/hastd/
H A Dsecondary.c225 size_t mapsize; local
241 mapsize = activemap_calc_ondisk_size(res->hr_local_mediasize -
243 map = malloc(mapsize);
247 mapsize);
301 mapsize = 0;
303 memset(map, 0xff, mapsize);
340 if (pread(res->hr_localfd, map, mapsize, METADATA_SIZE) !=
341 (ssize_t)mapsize) {
381 mapsize = activemap_calc_ondisk_size(res->hr_local_mediasize -
384 memset(map, 0xff, mapsize);
762 size_t mapsize; local
[all...]
H A Dprimary.c528 size_t mapsize; local
544 mapsize = activemap_ondisk_size(res->hr_amp);
545 buf = calloc(1, mapsize);
550 if (pread(res->hr_localfd, buf, mapsize, METADATA_SIZE) !=
551 (ssize_t)mapsize) {
554 activemap_copyin(res->hr_amp, buf, mapsize);
643 uint32_t mapsize; local
818 mapsize = nv_get_uint32(nvin, "mapsize");
819 if (mapsize >
[all...]
H A Dactivemap.c548 uint64_t nextents, mapsize; local
557 mapsize = bitstr_size(nextents);
558 return (roundup2(mapsize, sectorsize));
/freebsd-13-stable/sys/dev/vt/
H A Dvt_font.c164 size_t glyphsize, mapsize; local
201 mapsize = f->map_count[i] * sizeof(vfnt_map_t);
202 vf->vf_map[i] = malloc(mapsize, M_VTFONT, M_WAITOK);
203 error = copyin(f->map[i], vf->vf_map[i], mapsize);
/freebsd-13-stable/sbin/dump/
H A Dmain.c76 int mapsize; /* size of the state maps */ variable
476 mapsize = roundup(howmany(maxino, CHAR_BIT), TP_BSIZE);
477 usedinomap = (char *)calloc((unsigned) mapsize, sizeof(char));
478 dumpdirmap = (char *)calloc((unsigned) mapsize, sizeof(char));
479 dumpinomap = (char *)calloc((unsigned) mapsize, sizeof(char));
480 tapesize = 3 * (howmany(mapsize * sizeof(char), TP_BSIZE) + 1);
536 (howmany(mapsize * sizeof(char), TP_BSIZE) + 1);
H A Ddump.h39 extern int mapsize; /* size of the state maps */
/freebsd-13-stable/sbin/fsck_ffs/
H A Dpass5.c61 int c, i, j, blk, frags, basesize, mapsize; local
151 mapsize = newcg->cg_nextfreeoff - newcg->cg_iusedoff;
241 memset(cg_inosused(newcg), 0, (size_t)(mapsize));
368 memcmp(cg_inosused(newcg), cg_inosused(cg), mapsize) != 0 &&
371 (size_t)mapsize);
477 int mapsize, /* size of above two maps */
496 for (i = 0; i < mapsize; i++) {
474 check_maps( u_char *map1, u_char *map2, int mapsize, ufs2_daddr_t startvalue, const char *name, int *opcode, int skip, int limit, int usesysctl) argument
/freebsd-13-stable/usr.sbin/kldxref/
H A Def_obj.c365 size_t mapsize, alignmask, max_addralign; local
498 mapsize = 0;
506 mapsize += alignmask;
507 mapsize &= ~alignmask;
508 mapsize += shdr[i].sh_size;
514 ef->size = mapsize;
515 if (posix_memalign((void **)&ef->address, max_addralign, mapsize)) {
/freebsd-13-stable/sys/kern/
H A Dlink_elf_obj.c671 size_t mapsize; local
686 mapsize = 0;
919 mapsize += alignmask;
920 mapsize &= ~alignmask;
921 mapsize += shdr[i].sh_size;
931 ef->object = vm_pager_allocate(OBJT_PHYS, NULL, round_page(mapsize),
954 round_page(mapsize), 0, VMFS_OPTIMAL_SPACE, VM_PROT_ALL,
965 mapbase + round_page(mapsize),
974 lf->size = mapsize;
1159 if (mapbase != (vm_offset_t)ef->address + mapsize) {
[all...]
H A Dlink_elf.c955 size_t mapsize; local
1099 mapsize = base_vlimit - base_vaddr;
1109 ef->object = vm_pager_allocate(OBJT_PHYS, NULL, mapsize, VM_PROT_ALL,
1124 (vm_offset_t *)&mapbase, mapsize, 0, VMFS_OPTIMAL_SPACE,
1132 mapbase = malloc_exec(mapsize, M_LINKER, M_WAITOK);
1183 lf->size = mapsize;
/freebsd-13-stable/sys/contrib/openzfs/include/sys/
H A Dzil.h130 #define ZIL_XVAT_SIZE(mapsize) \
131 sizeof (lr_attr_t) + (sizeof (uint32_t) * (mapsize - 1)) + \
/freebsd-13-stable/lib/libnetmap/
H A Dnmport.c192 off_t mapsize; local
208 mapsize = lseek(fd, 0, SEEK_END);
209 if (mapsize < 0) {
213 p = mmap(0, mapsize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
221 clnup->size = mapsize;
225 if (nmport_extmem(d, p, mapsize) < 0)
/freebsd-13-stable/lib/libc/nameser/
H A Dns_name.c794 ns_name_map(ns_nname_ct nname, size_t namelen, ns_namemap_t map, int mapsize) { argument
824 l = ns_name_map(nname + n, namelen - n, map, mapsize);
829 if (l >= mapsize) {
/freebsd-13-stable/sys/amd64/sgx/
H A Dsgx.c1026 vm_size_t mapsize, struct vm_object **objp, int nprot)
1033 dprintf("%s: mapsize 0x%lx, offset %lx\n",
1034 __func__, mapsize, *offset);
1039 vmh->size = mapsize;
1041 mapsize, nprot, *offset, NULL);
1025 sgx_mmap_single(struct cdev *cdev, vm_ooffset_t *offset, vm_size_t mapsize, struct vm_object **objp, int nprot) argument
/freebsd-13-stable/sys/riscv/riscv/
H A Dbusdma_bounce.c278 u_long mapsize; local
281 mapsize = sizeof(*map);
282 mapsize += sizeof(struct sync_list) * dmat->common.nsegments;
283 map = malloc(mapsize, M_DEVBUF, flags | M_ZERO);
/freebsd-13-stable/sys/vm/
H A Dmemguard.c123 SYSCTL_ULONG(_vm_memguard, OID_AUTO, mapsize, CTLFLAG_RD,
/freebsd-13-stable/sys/arm64/arm64/
H A Dbusdma_bounce.c386 u_long mapsize; local
389 mapsize = sizeof(*map);
390 mapsize += sizeof(struct sync_list) * dmat->common.nsegments;
391 map = malloc(mapsize, M_DEVBUF, flags | M_ZERO);
/freebsd-13-stable/sys/dev/pci/
H A Dpci.c3216 int barlen, basezero, flags, maprange, mapsize, type; local
3238 mapsize = pci_mapsize(testval);
3257 if ((type == SYS_RES_MEMORY && mapsize < 4) ||
3258 (type == SYS_RES_IOPORT && mapsize < 2))
3262 pm = pci_add_bar(dev, reg, map, mapsize);
3265 reg, pci_maptype(map), maprange, (uintmax_t)base, mapsize);
3321 count = (pci_addr_t)1 << mapsize;
3322 flags = RF_ALIGNMENT_LOG2(mapsize);
5373 int mapsize; local
5384 mapsize
[all...]

Completed in 165 milliseconds

12