/freebsd-11-stable/sys/vm/ |
H A D | redzone.c | 74 u_long nsize; local 76 bcopy(naddr - REDZONE_CHSIZE - sizeof(u_long), &nsize, sizeof(nsize)); 77 return (nsize); 81 redzone_size_ntor(u_long nsize) argument 84 return (nsize + redzone_roundup(nsize) + REDZONE_FSIZE); 98 redzone_setup(caddr_t raddr, u_long nsize) argument 103 atomic_add_long(&redzone_extra_mem, redzone_size_ntor(nsize) - nsize); 133 u_long nsize; local [all...] |
H A D | redzone.h | 33 u_long redzone_size_ntor(u_long nsize); 35 void *redzone_setup(caddr_t raddr, u_long nsize);
|
H A D | vm_unix.c | 65 char *nsize; member in struct:obreak_args 89 new = round_page((vm_offset_t)uap->nsize);
|
H A D | vnode_pager.c | 396 vnode_pager_setsize(struct vnode *vp, vm_ooffset_t nsize) argument 412 if (nsize == object->un_pager.vnp.vnp_size) { 419 nobjsize = OFF_TO_IDX(nsize + PAGE_MASK); 420 if (nsize < object->un_pager.vnp.vnp_size) { 435 if ((nsize & PAGE_MASK) && 436 (m = vm_page_lookup(object, OFF_TO_IDX(nsize))) != NULL && 438 int base = (int)nsize & PAGE_MASK; 471 object->un_pager.vnp.vnp_size = nsize;
|
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/ |
H A D | lmem.c | 26 ** void * frealloc (void *ud, void *ptr, size_t osize, size_t nsize); 27 ** (`osize' is the old size, `nsize' is the new size) 75 void *luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize) { argument 81 if (nsize > realosize && g->gcrunning) 84 newblock = (*g->frealloc)(g->ud, block, osize, nsize); 85 if (newblock == NULL && nsize > 0) { 86 api_check(L, nsize > realosize, 90 newblock = (*g->frealloc)(g->ud, block, osize, nsize); /* try again */ 95 lua_assert((nsize == 0) == (newblock == NULL)); 96 g->GCdebt = (g->GCdebt + nsize) [all...] |
/freebsd-11-stable/contrib/lua/src/ |
H A D | lmem.c | 28 ** void * frealloc (void *ud, void *ptr, size_t osize, size_t nsize); 29 ** ('osize' is the old size, 'nsize' is the new size) 77 void *luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize) { argument 83 if (nsize > realosize && g->gcrunning) 86 newblock = (*g->frealloc)(g->ud, block, osize, nsize); 87 if (newblock == NULL && nsize > 0) { 88 lua_assert(nsize > realosize); /* cannot fail when shrinking a block */ 91 newblock = (*g->frealloc)(g->ud, block, osize, nsize); /* try again */ 96 lua_assert((nsize == 0) == (newblock == NULL)); 97 g->GCdebt = (g->GCdebt + nsize) [all...] |
/freebsd-11-stable/contrib/openpam/lib/libpam/ |
H A D | pam_set_item.c | 64 size_t nsize, osize; local 68 osize = nsize = 0; 88 nsize = strlen(item) + 1; 91 osize = nsize = sizeof(struct pam_repository); 94 osize = nsize = sizeof(struct pam_conv); 104 if ((*slot = malloc(nsize)) == NULL) 106 memcpy(*slot, item, nsize);
|
/freebsd-11-stable/usr.bin/indent/ |
H A D | indent_globs.h | 59 int nsize = l_code-s_code+400; \ 61 codebuf = (char *) realloc(codebuf, nsize); \ 65 l_code = codebuf + nsize - 5; \ 70 int nsize = l_com-s_com+400; \ 73 combuf = (char *) realloc(combuf, nsize); \ 78 l_com = combuf + nsize - 5; \ 83 int nsize = l_lab-s_lab+400; \ 85 labbuf = (char *) realloc(labbuf, nsize); \ 89 l_lab = labbuf + nsize - 5; \ 94 int nsize [all...] |
/freebsd-11-stable/usr.sbin/kgzip/ |
H A D | kgz.h | 53 uint32_t nsize; /* encoded image size */ member in struct:kgz_hdr
|
H A D | kgzcmp.c | 84 unsigned x = (sizeof(struct kgz_hdr) + kh->nsize) & (16 - 1); 90 ahdr0.a.a_data += kh->nsize + x; 95 ehdr.st[KGZ_ST_KGZ_NDATA].st_size = htole32(kh->nsize); 97 htole32(le32toh(ehdr.sh[KGZ_SH_DATA].sh_size) + kh->nsize); 106 khle.nsize = htole32(khle.nsize); 170 kh->nsize = sb.st_size - off;
|
H A D | kgzip.c | 120 printf("dload=%#x dsize=%#x isize=%#x entry=%#x nsize=%#x\n", 121 kh.dload, kh.dsize, kh.isize, kh.entry, kh.nsize);
|
/freebsd-11-stable/sys/dev/ofw/ |
H A D | ofw_subr.c | 81 uint32_t c, nbridge, naddr, nsize; local 97 get_addr_props(bridge, &naddr, &nsize, &pci); 105 regno *= naddr + nsize; 106 if (regno + naddr + nsize > res) 114 for (c = 0; c < nsize; c++) 144 regno += naddr + nbridge + nsize; 157 for (c = 0; c < nsize; c++) 168 get_addr_props(bridge, &naddr, &nsize, &pci);
|
/freebsd-11-stable/contrib/jemalloc/src/ |
H A D | base.c | 46 size_t csize, nsize; local 53 nsize = (node == NULL) ? CACHELINE_CEILING(sizeof(extent_node_t)) : 0; 54 csize = CHUNK_CEILING(minsize + nsize); 64 addr = (void *)((uintptr_t)addr + nsize); 65 csize -= nsize; 67 base_allocated += nsize; 68 base_resident += PAGE_CEILING(nsize);
|
/freebsd-11-stable/contrib/netbsd-tests/sbin/resize_ffs/ |
H A D | common.sh | 114 local nsize=$4 140 if [ ${nsize} -lt ${osize} ]; then 142 local remove=$((numdata-numdata*nsize/osize)) 150 atf_check -s exit:0 -o ignore resize_ffs -c -y -s ${nsize} ${IMG} 151 atf_check -s exit:0 -o ignore resize_ffs -y -s ${nsize} ${IMG} 154 if [ ${nsize} -lt ${osize} ]; then 161 atf_check -s exit:1 -o ignore resize_ffs -c -y -s ${nsize} ${IMG}
|
/freebsd-11-stable/stand/i386/kgzldr/ |
H A D | boot.c | 48 uint32_t nsize; /* encoded image size */ member in struct:kgz_hdr 113 if ((size_t)(ip - kgz_ndata) + KGZ_TAIL > kgz.nsize)
|
/freebsd-11-stable/usr.sbin/makefs/ffs/ |
H A D | ffs_balloc.c | 88 int osize, nsize, num, i, error; local 152 nsize = fragroundup(fs, size); 153 if (nsize <= osize) { 182 nsize = fragroundup(fs, size); 184 nsize = fs->fs_bsize; 188 nsize, &newb); 192 bp = getblk(&vp, lbn, nsize, 0, 0, 0); 338 int osize, nsize, num, i, error; local 402 nsize = fragroundup(fs, size); 403 if (nsize < [all...] |
/freebsd-11-stable/stand/common/ |
H A D | interp_lua.c | 68 interp_lua_realloc(void *ud __unused, void *ptr, size_t osize __unused, size_t nsize) argument 71 if (nsize == 0) { 75 return realloc(ptr, nsize);
|
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_map.c | 73 size_t nsize = new_max * sizeof (void *); local 75 void **new_data = dt_zalloc(dtp, nsize); 121 size_t nsize = new_max * sizeof (void *); local 125 if ((new_pdesc = malloc(nsize)) == NULL || 126 (new_edesc = malloc(nsize)) == NULL) { 131 bzero(new_pdesc, nsize); 132 bzero(new_edesc, nsize); 331 size_t nsize = new_max * sizeof (void *); local 334 if ((new_aggdesc = malloc(nsize)) == NULL) 337 bzero(new_aggdesc, nsize); [all...] |
/freebsd-11-stable/sys/ufs/ffs/ |
H A D | ffs_balloc.c | 102 int deallocated, osize, nsize, num, i, error; local 185 nsize = fragroundup(fs, size); 186 if (nsize <= osize) { 197 &dp->di_db[0]), osize, nsize, flags, 204 nsize, osize, bp); 208 nsize = fragroundup(fs, size); 210 nsize = fs->fs_bsize; 214 nsize, flags, cred, &newb); 217 bp = getblk(vp, lbn, nsize, 0, 0, gbflags); 223 nsize, 580 int deallocated, osize, nsize, num, i, error; local [all...] |
/freebsd-11-stable/contrib/amd/amd/ |
H A D | map.c | 165 exported_ap_realloc_map(int nsize) argument 170 if (nsize < 0 || nsize == exported_ap_size) 173 exported_ap = (am_node **) xrealloc((voidp) exported_ap, nsize * sizeof(am_node *)); 175 if (nsize > exported_ap_size) 177 (nsize - exported_ap_size) * sizeof(am_node *)); 178 exported_ap_size = nsize;
|
/freebsd-11-stable/sys/fs/nfsclient/ |
H A D | nfs_clbio.c | 98 u_quad_t nsize; local 103 nsize = np->n_size; 108 if ((off_t)lbn * biosize >= nsize) 110 else if ((off_t)(lbn + 1) * biosize > nsize) 111 bcount = nsize - (off_t)lbn * biosize; 473 u_quad_t nsize; local 476 nsize = np->n_size; 490 (off_t)(lbn + 1 + nra) * biosize < nsize; nra++) { 518 if ((off_t)lbn * biosize >= nsize) { 520 } else if ((off_t)(lbn + 1) * biosize > nsize) { 1833 ncl_meta_setsize(struct vnode *vp, struct thread *td, u_quad_t nsize) argument [all...] |
/freebsd-11-stable/contrib/gcclibs/libiberty/ |
H A D | hashtab.c | 428 int nsize = prime_tab[nindex].prime; local 435 htab->entries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, 438 htab->entries = (PTR *) (*htab->alloc_f) (nsize, sizeof (PTR *)); 439 htab->size = nsize; 498 size_t nsize, osize, elts; local 512 nsize = prime_tab[nindex].prime; 517 nsize = osize; 521 nentries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, 524 nentries = (PTR *) (*htab->alloc_f) (nsize, sizeof (PTR *)); 528 htab->size = nsize; [all...] |
/freebsd-11-stable/contrib/binutils/libiberty/ |
H A D | hashtab.c | 428 int nsize = prime_tab[nindex].prime; local 435 htab->entries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, 438 htab->entries = (PTR *) (*htab->alloc_f) (nsize, sizeof (PTR *)); 439 htab->size = nsize; 498 size_t nsize, osize, elts; local 512 nsize = prime_tab[nindex].prime; 517 nsize = osize; 521 nentries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, 524 nentries = (PTR *) (*htab->alloc_f) (nsize, sizeof (PTR *)); 528 htab->size = nsize; [all...] |
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/ |
H A D | dtrace.c | 1195 dtrace_optval_t nsize; local 1200 (void) dtrace_getopt(g_dtp, bufs[i].optname, &nsize); 1202 if (nsize == DTRACEOPT_UNSET || nsize == 0) 1205 if (nsize >= bufs[i].val - sizeof (uint64_t)) 1208 for (; (INT64_C(1) << mul) <= nsize; j++, mul += 10) 1211 if (!(nsize & ((INT64_C(1) << (mul - 10)) - 1))) { 1213 (long long)nsize >> (mul - 10), " kmgtpe"[j]); 1216 (long long)nsize);
|
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | zcp.c | 727 * When nsize is 0, behaves as free() and returns NULL. 730 * at least nsize. 732 * Otherwise, behaves as realloc(), changing the allocation from osize to nsize. 740 zcp_lua_alloc(void *ud, void *ptr, size_t osize, size_t nsize) argument 746 if (nsize == 0) { 759 int64_t allocsize = nsize + sizeof (int64_t); 775 } else if (nsize <= osize) { 782 ASSERT3U(nsize, >, osize); 784 uint64_t *luabuf = zcp_lua_alloc(ud, NULL, 0, nsize);
|