/titanic_41/usr/src/lib/libipmi/common/ |
H A D | ipmi_hash.c | 61 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_HASHMINSIZE ? nsize : IPMI_HASHMINSIZE); in ipmi_hash_half() 170 ipmi_hash_resize(ipmi_hash_t *ihp, ulong_t nsize) in ipmi_hash_resize() argument 177 assert(nsize >= IPMI_HASHMINSIZE); in ipmi_hash_resize() [all …]
|
/titanic_41/usr/src/lib/libast/common/vmalloc/ |
H A D | vmdcheap.c | 36 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 */ 51 return vmalloc(Vmheap,nsize); 52 else if(nsize == 0) 54 else return vmresize(Vmheap,caddr,nsize,0);
|
H A D | vmmopen.c | 159 size_t csize, size_t nsize, Vmdisc_t* disc) in mmvmmemory() argument 161 static Void_t* mmvmmemory(vm, caddr, csize, nsize, disc) in mmvmmemory() 165 size_t nsize; 177 if(nsize < csize) 180 if(nsize > mmdc->mm->size-MM_START) 183 csize = MM_START + nsize + 184 ((nsize % disc->round) < (disc->round/2) ? disc->round/2 : 0); 208 mmdc->mm->busy = nsize+MM_START;
|
H A D | vmbest.c | 1272 static int okaddr(Void_t* addr, size_t nsize) in okaddr() argument 1274 static int okaddr(addr, nsize) in okaddr() 1276 size_t nsize; 1288 rv += *(((char*)addr)+nsize-1); 1302 size_t csize, size_t nsize, Vmdisc_t* disc) in sbrkmem() argument 1304 static Void_t* sbrkmem(vm, caddr, csize, nsize, disc) in sbrkmem() 1308 size_t nsize; /* new size */ 1319 return (Void_t*)VirtualAlloc(0,nsize,MEM_COMMIT,PAGE_READWRITE); 1320 else if(nsize == 0) 1344 if((addr+nsize) < addr) [all …]
|
/titanic_41/usr/src/uts/common/fs/nfs/ |
H A D | nfs_cmd.c | 331 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) < dp->d_reclen) in nfscmd_convdirplus() [all …]
|
/titanic_41/usr/src/lib/libidmap/common/ |
H A D | utils.c | 63 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_41/usr/src/lib/libbc/libc/sys/sys5/ |
H A D | writev.c | 51 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 D | write.c | 50 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_41/usr/src/lib/libbc/libc/sys/4.2/ |
H A D | writev.c | 54 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 D | write.c | 54 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_41/usr/src/lib/libdtrace/common/ |
H A D | dt_map.c | 72 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()
|
/titanic_41/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_vxvm.c | 298 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_41/usr/src/uts/common/fs/ufs/ |
H A D | ufs_bmap.c | 321 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 D | ufs_alloc.c | 183 int nsize, daddr_t *bnp, cred_t *cr) in realloccg() argument 197 (unsigned)nsize > fs->fs_bsize || fragoff(fs, nsize) != 0) { 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() 252 (off_t)(request - nsize), I_NOCANCEL); in realloccg() 262 (void) chkdq(ip, -(long)btodb(nsize - osize), 0, cr, (char **)NULL, in realloccg() [all …]
|
/titanic_41/usr/src/cmd/avs/ncall/ |
H A D | ncalladm.c | 223 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_41/usr/src/uts/common/syscall/ |
H A D | getdents.c | 82 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_41/usr/src/cmd/lvm/metassist/layout/ |
H A D | layout_slice.c | 104 uint64_t nsize, 722 uint64_t nsize = 0; /* new size (bytes) */ in create_new_slice() local 757 nsize = bytes_per_sect * in create_new_slice() 763 (double)(nsize/bytes_per_sect)); in create_new_slice() 777 nsize = bytes_per_cyl * in create_new_slice() 781 nsize += bytes_per_cyl; in create_new_slice() 788 (double)(nsize/bytes_per_cyl), ncyls); in create_new_slice() 794 if (osize == nsize) { in create_new_slice() 798 } else if (osize > nsize) { in create_new_slice() 804 (error = devconfig_set_size(*nslice, nsize)) || in create_new_slice() [all …]
|
/titanic_41/usr/src/lib/krb5/kadm5/ |
H A D | str_conv.c | 155 size_t nsize, psize; local 162 nsize = strlen(neg); 168 if (!strncasecmp(neg, string, nsize)) { 170 cpos += (int) nsize;
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | malloc.c | 606 ssize_t nsize; in _morecore() local 633 nsize = n + offset; 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_41/usr/src/cmd/dtrace/ |
H A D | dtrace.c | 1089 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_41/usr/src/uts/sun4u/starfire/os/ |
H A D | pda.c | 493 uint_t addr, size, naddr, nsize; in p2o_mem_coalesce() local 507 nsize = mc[ncp].Memc_Size; in p2o_mem_coalesce() 518 if (nsize >= overlap) { in p2o_mem_coalesce() 519 size += nsize - overlap; in p2o_mem_coalesce()
|
/titanic_41/usr/src/cmd/acct/ |
H A D | acctcom.c | 299 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_41/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | nvfile.h | 57 boolean_t nvf_node_name_get(char *id, char *name, uint_t nsize);
|
/titanic_41/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_whatis.c | 440 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_41/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/ |
H A D | pi_subr.c | 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()
|