Home
last modified time | relevance | path

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

12

/titanic_52/usr/src/lib/libipmi/common/
H A Dipmi_hash.c61 ulong_t nsize; in ipmi_hash_double() local
64 nsize = (size * 2) + 5; in ipmi_hash_double()
65 return (nsize < IPMI_HASHCROSSOVER ? nsize : in ipmi_hash_double()
75 ulong_t nsize; in ipmi_hash_half() local
78 nsize = (size - 33) / 2; in ipmi_hash_half()
79 return (nsize > IPMI_HASHCROSSUNDER ? nsize : in ipmi_hash_half()
83 nsize = (size - 5) / 2; in ipmi_hash_half()
85 return (nsize > IPMI_HASHMINSIZ in ipmi_hash_half()
170 ipmi_hash_resize(ipmi_hash_t * ihp,ulong_t nsize) ipmi_hash_resize() argument
[all...]
/titanic_52/usr/src/contrib/ast/src/lib/libast/vmalloc/
H A Dvmdcheap.c36 size_t csize, size_t nsize, in heapmem() argument
39 static Void_t* heapmem(vm, caddr, csize, nsize, disc) in heapmem()
43 size_t nsize; /* new size */
47 if(csize == 0 && nsize == 0)
50 return vmalloc(Vmheap,nsize);
51 else if(nsize == 0)
53 else return vmresize(Vmheap,caddr,nsize,0);
H A Dvmbest.c1128 static int chkaddr(Vmuchar_t* addr, size_t nsize) in chkaddr() argument
1136 rv = *(addr+nsize-1); in chkaddr()
1159 static Void_t* win32mem(Void_t* caddr, size_t csize, size_t nsize) in win32mem() argument
1160 { /**/ ASSERT(csize > 0 || nsize > 0) in win32mem()
1162 { caddr = (Void_t*)VirtualAlloc(0,nsize,MEM_COMMIT,PAGE_READWRITE); in win32mem()
1165 else if(nsize == 0) in win32mem()
1174 static Void_t* sbrkmem(Void_t* caddr, size_t csize, size_t nsize) in sbrkmem() argument
1187 if(nsize < csize) in sbrkmem()
1188 addr -= csize-nsize; in sbrkmem()
1189 else if((addr += nsize in sbrkmem()
1226 mmapmem(Void_t * caddr,size_t csize,size_t nsize,Mmdisc_t * mmdc) mmapmem() argument
1282 mallocmem(Void_t * caddr,size_t csize,size_t nsize) mallocmem() argument
1296 getmemory(Vmalloc_t * vm,Void_t * caddr,size_t csize,size_t nsize,Vmdisc_t * disc) getmemory() argument
[all...]
H A Dvmmopen.c301 size_t csize, size_t nsize, Vmdisc_t* disc) in mmgetmem() argument
303 static Void_t* mmgetmem(vm, caddr, csize, nsize, disc) in mmgetmem()
307 size_t nsize;
319 { if(caddr == MMDATA(mmvm) && nsize <= MMSIZE(mmvm) )
320 { mmvm->busy = nsize;
327 { mmvm->busy = nsize;
/titanic_52/usr/src/uts/common/fs/nfs/
H A Dnfs_cmd.c331 size_t nsize; in nfscmd_convname() local
343 nsize = strlen(name); in nfscmd_convname()
347 ret = kiconv(charset->inbound, &name, &nsize, in nfscmd_convname()
350 ret = kiconv(charset->outbound, &name, &nsize, in nfscmd_convname()
372 size_t nsize; in nfscmd_convdirent() local
385 nsize = strlen(((struct dirent64 *)data)->d_name); in nfscmd_convdirent()
392 ret = kiconv(charset->outbound, &iname, &nsize, &oname, &count, &err); in nfscmd_convdirent()
421 size_t nsize; in nfscmd_convdirplus() local
441 nsize = 0; in nfscmd_convdirplus()
451 if ((maxsize - nsize) < d in nfscmd_convdirplus()
[all...]
/titanic_52/usr/src/lib/libidmap/common/
H A Dutils.c63 size_t nsize; in _udt_extend_batch() local
66 nsize = (udthandle->batch.idmap_update_batch_len + in _udt_extend_batch()
69 udthandle->batch.idmap_update_batch_val, nsize); in _udt_extend_batch()
89 size_t nsize, len; in _get_ids_extend_batch() local
94 nsize = (len + _GET_IDS_SIZE_INCR) * sizeof (*t1); in _get_ids_extend_batch()
95 t1 = realloc(gh->batch.idmap_mapping_batch_val, nsize); in _get_ids_extend_batch()
103 nsize = (len + _GET_IDS_SIZE_INCR) * sizeof (*t2); in _get_ids_extend_batch()
104 t2 = realloc(gh->retlist, nsize); in _get_ids_extend_batch()
/titanic_52/usr/src/lib/libbc/libc/sys/sys5/
H A Dwritev.c51 int nsize, total = 0; in bc_writev() local
57 nsize = getmodsize(iov[i].iov_len, in bc_writev()
61 if ((nbuf = (void *)malloc(nsize)) == NULL) { in bc_writev()
66 (void) memset(nbuf, 0, nsize); in bc_writev()
H A Dwrite.c50 int nsize; in bc_write() local
54 nsize = getmodsize(size, sizeof (struct compat_utmp), in bc_write()
57 if ((nbuf = (void *)malloc(nsize)) == NULL) { in bc_write()
62 (void) memset(nbuf, 0, nsize); in bc_write()
/titanic_52/usr/src/lib/libbc/libc/sys/4.2/
H A Dwritev.c54 int nsize, total = 0; in bc_writev() local
60 nsize = getmodsize(iov[i].iov_len, in bc_writev()
64 if ((nbuf = (void *)malloc(nsize)) == NULL) { in bc_writev()
69 (void) memset(nbuf, 0, nsize); in bc_writev()
H A Dwrite.c54 int nsize; in bc_write() local
58 nsize = getmodsize(size, sizeof (struct compat_utmp), in bc_write()
61 if ((nbuf = (void *)malloc(nsize)) == NULL) { in bc_write()
66 (void) memset(nbuf, 0, nsize); in bc_write()
/titanic_52/usr/src/lib/libdtrace/common/
H A Ddt_map.c72 size_t nsize = new_max * sizeof (void *); in dt_strdata_add() local
74 void **new_data = dt_zalloc(dtp, nsize); in dt_strdata_add()
120 size_t nsize = new_max * sizeof (void *); in dt_epid_add() local
124 if ((new_pdesc = malloc(nsize)) == NULL || in dt_epid_add()
125 (new_edesc = malloc(nsize)) == NULL) { in dt_epid_add()
130 bzero(new_pdesc, nsize); in dt_epid_add()
131 bzero(new_edesc, nsize); in dt_epid_add()
322 size_t nsize = new_max * sizeof (void *); in dt_aggid_add() local
325 if ((new_aggdesc = malloc(nsize)) == NULL) in dt_aggid_add()
328 bzero(new_aggdesc, nsize); in dt_aggid_add()
[all...]
/titanic_52/usr/src/lib/libdiskmgt/common/
H A Dinuse_vxvm.c298 int nsize; in load_vxvm() local
318 nsize = (vxdl_libvxvm_get_conf)(VXVM_NAME_SIZE); in load_vxvm()
321 if (nsize == -1 || psize == -1) { in load_vxvm()
326 namep = (vm_name_t *)calloc(MAX_DISK_GROUPS, nsize); in load_vxvm()
388 pnp += nsize; in load_vxvm()
/titanic_52/usr/src/uts/common/fs/ufs/
H A Dufs_bmap.c321 long osize, nsize; in bmap_write() local
450 nsize = fragroundup(fs, size); in bmap_write()
451 if (nsize <= osize) in bmap_write()
460 btodb(nsize - osize)) > INT_MAX) { in bmap_write()
471 (int)nsize, &nb, cr); in bmap_write()
485 nsize = fragroundup(fs, size); in bmap_write()
487 nsize = bsize; in bmap_write()
495 btodb(nsize - osize)) > INT_MAX) { in bmap_write()
500 err = alloc(ip, pref, (int)nsize, &nb, cr); in bmap_write()
524 PAGESIZE, u_offset_t) < nsize) { in bmap_write()
[all...]
H A Dufs_alloc.c183 int nsize, daddr_t *bnp, cred_t *cr) in realloccg() argument
197 (unsigned)nsize > fs->fs_bsize || fragoff(fs, nsize) != 0) { in realloccg()
200 "osize=%d, nsize=%d, fs=%s\n", in realloccg()
201 ip->i_dev, fs->fs_bsize, osize, nsize, fs->fs_fsmnt); in realloccg()
214 err = chkdq(ip, (long)btodb(nsize - osize), 0, cr, &errmsg, &len); in realloccg()
224 bno = fragextend(ip, cg, (long)bprev, osize, nsize); in realloccg()
245 request = (fs->fs_optim == FS_OPTTIME) ? fs->fs_bsize : nsize; in realloccg()
250 if (nsize < request) in realloccg()
251 (void) free(ip, bno + numfrags(fs, nsize), in realloccg()
894 fragextend(struct inode * ip,int cg,long bprev,int osize,int nsize) fragextend() argument
[all...]
/titanic_52/usr/src/cmd/avs/ncall/
H A Dncalladm.c223 int nsize; in ncalladm_lintmain() local
368 nodes = getnodelist(fd, &nsize, &mnode); in ncalladm_lintmain()
390 for (i = 1; i < nsize; i++) { in ncalladm_lintmain()
397 if ((mnode == -1) || (i >= nsize)) { in ncalladm_lintmain()
407 if (nsize > 1) { in ncalladm_lintmain()
409 for (i = 1; i < nsize; i++) { in ncalladm_lintmain()
/titanic_52/usr/src/uts/common/syscall/
H A Dgetdents.c82 int osize, nsize; in getdents32() local
131 nsize = 0; in getdents32()
133 while (nsize < count) { in getdents32()
161 nsize += (uint_t)dp->d_reclen; in getdents32()
/titanic_52/usr/src/lib/krb5/kadm5/
H A Dstr_conv.c155 size_t nsize, psize; local
162 nsize = strlen(neg);
168 if (!strncasecmp(neg, string, nsize)) {
170 cpos += (int) nsize;
/titanic_52/usr/src/lib/libc/port/gen/
H A Dmalloc.c606 ssize_t nsize; in _morecore() local
633 nsize = n + offset; in _morecore()
635 /* check if nsize request could overflow in GETCORE */ in _morecore()
636 if ((size_t)nsize > MAX_MALLOC - (uintptr_t)addr) { in _morecore()
641 if ((size_t)nsize <= MAX_GETCORE) { in _morecore()
642 if (GETCORE(nsize) == ERRCORE) in _morecore()
661 nsize -= MAX_GETCORE; in _morecore()
662 delta = nsize; in _morecore()
/titanic_52/usr/src/cmd/dtrace/
H A Ddtrace.c1089 dtrace_optval_t nsize; in go() local
1094 (void) dtrace_getopt(g_dtp, bufs[i].optname, &nsize); in go()
1096 if (nsize == DTRACEOPT_UNSET || nsize == 0) in go()
1099 if (nsize >= bufs[i].val - sizeof (uint64_t)) in go()
1102 for (; (INT64_C(1) << mul) <= nsize; j++, mul += 10) in go()
1105 if (!(nsize & ((INT64_C(1) << (mul - 10)) - 1))) { in go()
1107 (long long)nsize >> (mul - 10), " kmgtpe"[j]); in go()
1110 (long long)nsize); in go()
/titanic_52/usr/src/uts/sun4u/starfire/os/
H A Dpda.c493 uint_t addr, size, naddr, nsize; in p2o_mem_coalesce() local
507 nsize = mc[ncp].Memc_Size; in p2o_mem_coalesce()
514 * if (nsize < overlap) then in p2o_mem_coalesce()
518 if (nsize >= overlap) { in p2o_mem_coalesce()
519 size += nsize - overlap; in p2o_mem_coalesce()
/titanic_52/usr/src/cmd/acct/
H A Dacctcom.c299 long nsize; in dofile() local
322 nsize = sizeof(struct acct); /* make sure offset is signed */ in dofile()
324 nsize = sizeof(struct o_acct); /* make sure offset is signed */ in dofile()
325 fseek(stdin, (long)(-nsize), 2); in dofile()
/titanic_52/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Dnvfile.h57 boolean_t nvf_node_name_get(char *id, char *name, uint_t nsize);
/titanic_52/usr/src/cmd/mdb/common/mdb/
H A Dmdb_whatis.c440 size_t nsize = MAX(2 * whatis_cb_size, WHATIS_CB_SIZE_MIN); in mdb_whatis_register() local
443 size_t nbytes = sizeof (*whatis_cb) * nsize; in mdb_whatis_register()
452 whatis_cb_size = nsize; in mdb_whatis_register()
/titanic_52/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/
H A Dpi_subr.c72 * topo_mod_free(mod, nodes, nsize);
77 char *type_str, char *arc_str, mde_cookie_t **nodes, size_t *nsize) in pi_find_mdenodes() argument
91 *nsize = sizeof (mde_cookie_t) * total_mdenodes; in pi_find_mdenodes()
92 *nodes = topo_mod_zalloc(mod, *nsize); in pi_find_mdenodes()
95 *nsize = 0; in pi_find_mdenodes()
103 topo_mod_free(mod, *nodes, *nsize); in pi_find_mdenodes()
105 *nsize = 0; in pi_find_mdenodes()
/titanic_52/usr/src/uts/common/krtld/
H A Dkobj.c713 int i, lsize, osize, nsize, allocsize; in load_exec() local
780 nsize = osize = 0; in load_exec()
802 nsize += lsize; in load_exec()
803 if (nsize + 1 > allocsize) { in load_exec()
813 *(mp->depends_on + nsize) = ' '; /* separate */ in load_exec()
814 nsize++; in load_exec()
815 osize = nsize; in load_exec()
817 if (nsize) { in load_exec()
818 mp->depends_on[nsize - 1] = '\0'; /* terminate the string */ in load_exec()
823 tmp = kobj_alloc(nsize, KM_WAI in load_exec()
1673 int allocsize = 0, osize = 0, nsize = 0; process_dynamic() local
[all...]

12