Home
last modified time | relevance | path

Searched refs:nsize (Results 1 – 25 of 43) sorted by relevance

12

/freebsd-9-stable/sys/vm/
Dredzone.c75 u_long nsize; in redzone_get_size() local
77 bcopy(naddr - REDZONE_CHSIZE - sizeof(u_long), &nsize, sizeof(nsize)); in redzone_get_size()
78 return (nsize); in redzone_get_size()
82 redzone_size_ntor(u_long nsize) in redzone_size_ntor() argument
85 return (nsize + redzone_roundup(nsize) + REDZONE_FSIZE); in redzone_size_ntor()
99 redzone_setup(caddr_t raddr, u_long nsize) in redzone_setup() argument
104 atomic_add_long(&redzone_extra_mem, redzone_size_ntor(nsize) - nsize); in redzone_setup()
106 haddr = raddr + redzone_roundup(nsize) - REDZONE_HSIZE; in redzone_setup()
107 faddr = haddr + REDZONE_HSIZE + nsize; in redzone_setup()
113 bcopy(&nsize, haddr, sizeof(nsize)); in redzone_setup()
[all …]
Dredzone.h33 u_long redzone_size_ntor(u_long nsize);
35 void *redzone_setup(caddr_t raddr, u_long nsize);
Dvnode_pager.c377 vnode_pager_setsize(vp, nsize) in vnode_pager_setsize() argument
379 vm_ooffset_t nsize;
395 if (nsize == object->un_pager.vnp.vnp_size) {
402 nobjsize = OFF_TO_IDX(nsize + PAGE_MASK);
403 if (nsize < object->un_pager.vnp.vnp_size) {
418 if ((nsize & PAGE_MASK) &&
419 (m = vm_page_lookup(object, OFF_TO_IDX(nsize))) != NULL &&
421 int base = (int)nsize & PAGE_MASK;
452 } else if ((nsize & PAGE_MASK) &&
454 vm_page_cache_free(object, OFF_TO_IDX(nsize),
[all …]
Dvm_unix.c65 char *nsize; member
93 new = round_page((vm_offset_t)uap->nsize);
Dvm_mmap.c1049 unsigned long nsize; local
1068 nsize = ptoa(npages + pmap_wired_count(map->pmap));
1069 if (nsize > lim_cur(proc, RLIMIT_MEMLOCK)) {
1078 error = racct_set(proc, RACCT_MEMLOCK, nsize);
/freebsd-9-stable/usr.bin/indent/
Dindent_globs.h59 int nsize = l_code-s_code+400; \
60 codebuf = (char *) realloc(codebuf, nsize); \
64 l_code = codebuf + nsize - 5; \
69 int nsize = l_com-s_com+400; \
70 combuf = (char *) realloc(combuf, nsize); \
74 l_com = combuf + nsize - 5; \
79 int nsize = l_lab-s_lab+400; \
80 labbuf = (char *) realloc(labbuf, nsize); \
84 l_lab = labbuf + nsize - 5; \
89 int nsize = l_token-s_token+400; \
[all …]
/freebsd-9-stable/contrib/openpam/lib/libpam/
Dpam_set_item.c64 size_t nsize, osize; in pam_set_item() local
70 osize = nsize = 0; in pam_set_item()
90 nsize = strlen(item) + 1; in pam_set_item()
93 osize = nsize = sizeof(struct pam_repository); in pam_set_item()
96 osize = nsize = sizeof(struct pam_conv); in pam_set_item()
106 if ((tmp = malloc(nsize)) == NULL) in pam_set_item()
108 memcpy(tmp, item, nsize); in pam_set_item()
/freebsd-9-stable/sys/ufs/ffs/
Dffs_balloc.c101 int deallocated, osize, nsize, num, i, error; in ffs_balloc_ufs1() local
183 nsize = fragroundup(fs, size); in ffs_balloc_ufs1()
184 if (nsize <= osize) { in ffs_balloc_ufs1()
195 &dp->di_db[0]), osize, nsize, flags, in ffs_balloc_ufs1()
202 nsize, osize, bp); in ffs_balloc_ufs1()
206 nsize = fragroundup(fs, size); in ffs_balloc_ufs1()
208 nsize = fs->fs_bsize; in ffs_balloc_ufs1()
212 nsize, flags, cred, &newb); in ffs_balloc_ufs1()
215 bp = getblk(vp, lbn, nsize, 0, 0, gbflags); in ffs_balloc_ufs1()
221 nsize, 0, bp); in ffs_balloc_ufs1()
[all …]
Dffs_alloc.c243 ffs_realloccg(ip, lbprev, bprev, bpref, osize, nsize, flags, cred, bpp) in ffs_realloccg() argument
248 int osize, nsize, flags;
274 (u_int)nsize > fs->fs_bsize || fragoff(fs, nsize) != 0) {
278 nsize, fs->fs_fsmnt);
287 freespace(fs, fs->fs_minfree) - numfrags(fs, nsize - osize) < 0) {
313 error = chkdq(ip, btodb(nsize - osize), cred, 0);
325 bno = ffs_fragextend(ip, cg, bprev, osize, nsize);
329 delta = btodb(nsize - osize);
335 allocbuf(bp, nsize);
337 vfs_bio_bzero_buf(bp, osize, nsize - osize);
[all …]
/freebsd-9-stable/usr.sbin/makefs/ffs/
Dffs_balloc.c88 int osize, nsize, num, i, error; in ffs_balloc_ufs1() local
151 nsize = fragroundup(fs, size); in ffs_balloc_ufs1()
152 if (nsize <= osize) { in ffs_balloc_ufs1()
181 nsize = fragroundup(fs, size); in ffs_balloc_ufs1()
183 nsize = fs->fs_bsize; in ffs_balloc_ufs1()
187 nsize, &newb); in ffs_balloc_ufs1()
191 bp = getblk(ip->i_fd, ip->i_fs, lbn, nsize); in ffs_balloc_ufs1()
339 int osize, nsize, num, i, error; in ffs_balloc_ufs2() local
402 nsize = fragroundup(fs, size); in ffs_balloc_ufs2()
403 if (nsize <= osize) { in ffs_balloc_ufs2()
[all …]
/freebsd-9-stable/sys/fs/ext2fs/
Dext2_balloc.c70 int osize, nsize, num, i, error; in ext2_balloc() local
110 nsize = fragroundup(fs, size); in ext2_balloc()
111 if (nsize <= osize) { in ext2_balloc()
121 (int)nsize, (int)size, (int)osize, in ext2_balloc()
132 nsize = fragroundup(fs, size); in ext2_balloc()
134 nsize = fs->e2fs_bsize; in ext2_balloc()
138 nsize, cred, &newb); in ext2_balloc()
141 bp = getblk(vp, lbn, nsize, 0, 0, 0); in ext2_balloc()
/freebsd-9-stable/usr.sbin/kgzip/
Dkgzcmp.c82 unsigned x = (sizeof(struct kgz_hdr) + kh->nsize) & (16 - 1); in kgzcmp()
88 ahdr0.a.a_data += kh->nsize + x; in kgzcmp()
93 ehdr.st[KGZ_ST_KGZ_NDATA].st_size = htole32(kh->nsize); in kgzcmp()
95 htole32(le32toh(ehdr.sh[KGZ_SH_DATA].sh_size) + kh->nsize); in kgzcmp()
104 khle.nsize = htole32(khle.nsize); in kgzcmp()
168 kh->nsize = sb.st_size - off; in mk_data()
Dkgz.h51 uint32_t nsize; /* encoded image size */ member
Dkgzip.c119 kh.dload, kh.dsize, kh.isize, kh.entry, kh.nsize); in main()
/freebsd-9-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
Ddt_map.c73 size_t nsize = new_max * sizeof (void *); in dt_strdata_add() local
75 void **new_data = dt_zalloc(dtp, nsize); in dt_strdata_add()
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);
/freebsd-9-stable/contrib/binutils/libiberty/
Dhashtab.c428 int nsize = prime_tab[nindex].prime; in htab_empty() local
435 htab->entries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_empty()
438 htab->entries = (PTR *) (*htab->alloc_f) (nsize, sizeof (PTR *)); in htab_empty()
439 htab->size = nsize; in htab_empty()
498 size_t nsize, osize, elts; in htab_expand() local
512 nsize = prime_tab[nindex].prime; in htab_expand()
517 nsize = osize; in htab_expand()
521 nentries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_expand()
524 nentries = (PTR *) (*htab->alloc_f) (nsize, sizeof (PTR *)); in htab_expand()
528 htab->size = nsize; in htab_expand()
/freebsd-9-stable/contrib/gcclibs/libiberty/
Dhashtab.c428 int nsize = prime_tab[nindex].prime; in htab_empty() local
435 htab->entries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_empty()
438 htab->entries = (PTR *) (*htab->alloc_f) (nsize, sizeof (PTR *)); in htab_empty()
439 htab->size = nsize; in htab_empty()
498 size_t nsize, osize, elts; in htab_expand() local
512 nsize = prime_tab[nindex].prime; in htab_expand()
517 nsize = osize; in htab_expand()
521 nentries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_expand()
524 nentries = (PTR *) (*htab->alloc_f) (nsize, sizeof (PTR *)); in htab_expand()
528 htab->size = nsize; in htab_expand()
/freebsd-9-stable/sys/powerpc/ofw/
Dofw_machdep.c681 uint32_t c, nbridge, naddr, nsize; in OF_decode_addr() local
698 OF_get_addr_props(bridge, &naddr, &nsize, &pci); in OF_decode_addr()
706 regno *= naddr + nsize; in OF_decode_addr()
707 if (regno + naddr + nsize > res) in OF_decode_addr()
714 for (c = 0; c < nsize; c++) in OF_decode_addr()
737 regno += naddr + nbridge + nsize; in OF_decode_addr()
750 for (c = 0; c < nsize; c++) in OF_decode_addr()
762 OF_get_addr_props(bridge, &naddr, &nsize, &pci); in OF_decode_addr()
/freebsd-9-stable/contrib/amd/amd/
Dmap.c169 exported_ap_realloc_map(int nsize) in exported_ap_realloc_map() argument
174 if (nsize < 0 || nsize == exported_ap_size) in exported_ap_realloc_map()
177 exported_ap = (am_node **) xrealloc((voidp) exported_ap, nsize * sizeof(am_node *)); in exported_ap_realloc_map()
179 if (nsize > exported_ap_size) in exported_ap_realloc_map()
181 (nsize - exported_ap_size) * sizeof(am_node *)); in exported_ap_realloc_map()
182 exported_ap_size = nsize; in exported_ap_realloc_map()
/freebsd-9-stable/sys/boot/i386/kgzldr/
Dboot.c48 uint32_t nsize; /* encoded image size */ member
113 if ((size_t)(ip - kgz_ndata) + KGZ_TAIL > kgz.nsize) in input()
/freebsd-9-stable/sys/gnu/fs/xfs/FreeBSD/support/
Dkmem.h81 #define kmem_realloc(ptr, nsize, osize, flg) \ argument
82 realloc(ptr, nsize, M_XFS, flg)
/freebsd-9-stable/sys/nfsclient/
Dnfs_bio.c467 u_quad_t nsize; in nfs_bioread() local
470 nsize = np->n_size; in nfs_bioread()
484 (off_t)(lbn + 1 + nra) * biosize < nsize; nra++) { in nfs_bioread()
512 if ((off_t)lbn * biosize >= nsize) { in nfs_bioread()
514 } else if ((off_t)(lbn + 1) * biosize > nsize) { in nfs_bioread()
515 bcount = nsize - (off_t)lbn * biosize; in nfs_bioread()
1767 nfs_meta_setsize(struct vnode *vp, struct ucred *cred, struct thread *td, u_quad_t nsize) in nfs_meta_setsize() argument
1776 np->n_size = nsize; in nfs_meta_setsize()
1779 if (nsize < tsize) { in nfs_meta_setsize()
1789 error = vtruncbuf(vp, cred, td, nsize, biosize); in nfs_meta_setsize()
[all …]
Dnfs_subs.c481 u_quad_t nsize; in nfs_loadattrcache() local
586 nsize = 0; in nfs_loadattrcache()
618 nsize = np->n_size = vap->va_size; in nfs_loadattrcache()
663 vnode_pager_setsize(vp, nsize); in nfs_loadattrcache()
/freebsd-9-stable/sys/fs/nfsclient/
Dnfs_clbio.c476 u_quad_t nsize; in ncl_bioread() local
479 nsize = np->n_size; in ncl_bioread()
493 (off_t)(lbn + 1 + nra) * biosize < nsize; nra++) { in ncl_bioread()
521 if ((off_t)lbn * biosize >= nsize) { in ncl_bioread()
523 } else if ((off_t)(lbn + 1) * biosize > nsize) { in ncl_bioread()
524 bcount = nsize - (off_t)lbn * biosize; in ncl_bioread()
1827 ncl_meta_setsize(struct vnode *vp, struct ucred *cred, struct thread *td, u_quad_t nsize) in ncl_meta_setsize() argument
1836 np->n_size = nsize; in ncl_meta_setsize()
1839 if (nsize < tsize) { in ncl_meta_setsize()
1849 error = vtruncbuf(vp, cred, td, nsize, biosize); in ncl_meta_setsize()
[all …]
/freebsd-9-stable/cddl/contrib/opensolaris/cmd/dtrace/
Ddtrace.c1146 dtrace_optval_t nsize; local
1151 (void) dtrace_getopt(g_dtp, bufs[i].optname, &nsize);
1153 if (nsize == DTRACEOPT_UNSET || nsize == 0)
1156 if (nsize >= bufs[i].val - sizeof (uint64_t))
1159 for (; (INT64_C(1) << mul) <= nsize; j++, mul += 10)
1162 if (!(nsize & ((INT64_C(1) << (mul - 10)) - 1))) {
1164 (long long)nsize >> (mul - 10), " kmgtpe"[j]);
1167 (long long)nsize);

12