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

12

/freebsd-current/libexec/rtld-elf/
H A Drtld_utrace.h56 size_t mapsize; member in struct:utrace_rtld
H A Dmap_object.c76 size_t mapsize; local
207 mapsize = base_vlimit - base_vaddr;
216 mapbase = mmap(base_addr, mapsize, PROT_NONE, base_flags, -1, 0);
295 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-current/lib/libsysdecode/
H A Dutrace.c44 uint32_t mapsize; member in struct:utrace_rtld32
93 ut->mapbase, (char *)ut->mapbase + ut->mapsize - 1,
98 ut->mapbase, (char *)ut->mapbase + ut->mapsize - 1,
192 ur.mapsize = pr->mapsize;
/freebsd-current/sys/dev/safe/
H A Dsafevar.h77 bus_size_t mapsize; member in struct:safe_operand
116 #define re_src_mapsize re_src.mapsize
121 #define re_dst_mapsize re_dst.mapsize
/freebsd-current/sys/dev/hifn/
H A Dhifn7751var.h260 bus_size_t mapsize; member in struct:hifn_operand
281 #define src_mapsize src.mapsize
286 #define dst_mapsize dst.mapsize
/freebsd-current/sbin/hastctl/
H A Dhastctl.c94 size_t mapsize; local
132 mapsize = activemap_calc_ondisk_size(mediasize - METADATA_SIZE,
136 res->hr_datasize = mediasize - METADATA_SIZE - mapsize;
140 res->hr_localoff = METADATA_SIZE + mapsize;
146 buf = calloc(1, mapsize);
149 mapsize);
153 if (pwrite(res->hr_localfd, buf, mapsize, METADATA_SIZE) !=
154 (ssize_t)mapsize) {
/freebsd-current/sbin/hastd/
H A Dsecondary.c222 size_t mapsize; local
238 mapsize = activemap_calc_ondisk_size(res->hr_local_mediasize -
240 map = malloc(mapsize);
244 mapsize);
298 mapsize = 0;
300 memset(map, 0xff, mapsize);
337 if (pread(res->hr_localfd, map, mapsize, METADATA_SIZE) !=
338 (ssize_t)mapsize) {
378 mapsize = activemap_calc_ondisk_size(res->hr_local_mediasize -
381 memset(map, 0xff, mapsize);
759 size_t mapsize; local
[all...]
H A Dprimary.c525 size_t mapsize; local
541 mapsize = activemap_ondisk_size(res->hr_amp);
542 buf = calloc(1, mapsize);
547 if (pread(res->hr_localfd, buf, mapsize, METADATA_SIZE) !=
548 (ssize_t)mapsize) {
551 activemap_copyin(res->hr_amp, buf, mapsize);
640 uint32_t mapsize; local
815 mapsize = nv_get_uint32(nvin, "mapsize");
816 if (mapsize >
[all...]
H A Dactivemap.c545 uint64_t nextents, mapsize; local
554 mapsize = bitstr_size(nextents);
555 return (roundup2(mapsize, sectorsize));
/freebsd-current/sys/dev/vt/
H A Dvt_font.c160 size_t glyphsize, mapsize; local
197 mapsize = f->map_count[i] * sizeof(vfnt_map_t);
198 vf->vf_map[i] = malloc(mapsize, M_VTFONT, M_WAITOK);
199 error = copyin(f->map[i], vf->vf_map[i], mapsize);
/freebsd-current/sbin/dump/
H A Dmain.c64 int mapsize; /* size of the state maps */ variable
464 mapsize = roundup(howmany(maxino, CHAR_BIT), TP_BSIZE);
465 usedinomap = (char *)calloc((unsigned) mapsize, sizeof(char));
466 dumpdirmap = (char *)calloc((unsigned) mapsize, sizeof(char));
467 dumpinomap = (char *)calloc((unsigned) mapsize, sizeof(char));
468 tapesize = 3 * (howmany(mapsize * sizeof(char), TP_BSIZE) + 1);
524 (howmany(mapsize * sizeof(char), TP_BSIZE) + 1);
H A Ddump.h35 extern int mapsize; /* size of the state maps */
/freebsd-current/sbin/fsck_ffs/
H A Dpass5.c52 int c, i, j, blk, frags, basesize, mapsize; local
142 mapsize = newcg->cg_nextfreeoff - newcg->cg_iusedoff;
232 memset(cg_inosused(newcg), 0, (size_t)(mapsize));
359 memcmp(cg_inosused(newcg), cg_inosused(cg), mapsize) != 0 &&
362 (size_t)mapsize);
494 int mapsize, /* size of above two maps */
513 for (i = 0; i < mapsize; i++) {
491 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-current/sys/contrib/openzfs/include/sys/
H A Dzil.h131 #define ZIL_XVAT_SIZE(mapsize) \
132 sizeof (lr_attr_t) + (sizeof (uint32_t) * (mapsize - 1)) + \
/freebsd-current/lib/libnetmap/
H A Dnmport.c191 off_t mapsize; local
207 mapsize = lseek(fd, 0, SEEK_END);
208 if (mapsize < 0) {
212 p = mmap(0, mapsize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
220 clnup->size = mapsize;
224 if (nmport_extmem(d, p, mapsize) < 0)
/freebsd-current/lib/libc/nameser/
H A Dns_name.c788 ns_name_map(ns_nname_ct nname, size_t namelen, ns_namemap_t map, int mapsize) { argument
818 l = ns_name_map(nname + n, namelen - n, map, mapsize);
823 if (l >= mapsize) {
/freebsd-current/sys/kern/
H A Dlink_elf_obj.c726 size_t mapsize; local
741 mapsize = 0;
974 mapsize += alignmask;
975 mapsize &= ~alignmask;
976 mapsize += shdr[i].sh_size;
986 ef->object = vm_pager_allocate(OBJT_PHYS, NULL, round_page(mapsize),
1009 round_page(mapsize), 0, VMFS_OPTIMAL_SPACE, VM_PROT_ALL,
1020 mapbase + round_page(mapsize),
1029 lf->size = mapsize;
1226 if (mapbase != (vm_offset_t)ef->address + mapsize) {
[all...]
H A Dlink_elf.c988 size_t mapsize; local
1132 mapsize = base_vlimit - base_vaddr;
1142 ef->object = vm_pager_allocate(OBJT_PHYS, NULL, mapsize, VM_PROT_ALL,
1157 (vm_offset_t *)&mapbase, mapsize, 0, VMFS_OPTIMAL_SPACE,
1165 mapbase = malloc_exec(mapsize, M_LINKER, M_WAITOK);
1208 lf->size = mapsize;
/freebsd-current/sys/amd64/sgx/
H A Dsgx.c1021 vm_size_t mapsize, struct vm_object **objp, int nprot)
1028 dprintf("%s: mapsize 0x%lx, offset %lx\n",
1029 __func__, mapsize, *offset);
1034 vmh->size = mapsize;
1036 mapsize, nprot, *offset, NULL);
1020 sgx_mmap_single(struct cdev *cdev, vm_ooffset_t *offset, vm_size_t mapsize, struct vm_object **objp, int nprot) argument
/freebsd-current/sys/riscv/riscv/
H A Dbusdma_bounce.c222 u_long mapsize; local
225 mapsize = sizeof(*map);
226 mapsize += sizeof(struct sync_list) * dmat->common.nsegments;
227 map = malloc(mapsize, M_DEVBUF, flags | M_ZERO);
/freebsd-current/sys/arm64/arm64/
H A Dbusdma_bounce.c362 u_long mapsize; local
365 mapsize = sizeof(*map);
366 mapsize += sizeof(struct sync_list) * dmat->common.nsegments;
367 map = malloc_domainset(mapsize, M_DEVBUF,
/freebsd-current/sys/arm/arm/
H A Dbusdma_machdep.c563 int mapsize, segsize; local
575 mapsize = sizeof(*map) + sizeof(struct sync_list) * dmat->nsegments;
576 map = malloc(mapsize + segsize, M_BUSDMA, mflags | M_ZERO);
581 map->segments = (bus_dma_segment_t *)((uintptr_t)map + mapsize);
/freebsd-current/sys/vm/
H A Dmemguard.c121 SYSCTL_ULONG(_vm_memguard, OID_AUTO, mapsize, CTLFLAG_RD,
/freebsd-current/sys/dev/pci/
H A Dpci.c3258 int barlen, basezero, flags, maprange, mapsize, type; local
3280 mapsize = pci_mapsize(testval);
3299 if ((type == SYS_RES_MEMORY && mapsize < 4) ||
3300 (type == SYS_RES_IOPORT && mapsize < 2))
3304 pm = pci_add_bar(dev, reg, map, mapsize);
3307 reg, pci_maptype(map), maprange, (uintmax_t)base, mapsize);
3363 count = (pci_addr_t)1 << mapsize;
3364 flags = RF_ALIGNMENT_LOG2(mapsize);
5433 int mapsize; local
5444 mapsize
[all...]

Completed in 323 milliseconds

12