/illumos-gate/usr/src/lib/libmalloc/common/ |
H A D | malloc.c | 177 * malloc(nbytes) - give a user nbytes to use 181 malloc(size_t nbytes) argument 186 ret = malloc_unlocked(nbytes, 0); 305 * malloc_unlocked(nbytes, nosmall) - Do the real work for malloc 309 malloc_unlocked(size_t nbytes, int nosmall) argument 326 if (nbytes == 0) 329 if (nbytes <= maxfast && !nosmall) { 359 return (malloc_unlocked(nbytes, 0)); 373 nb = (nbytes [all...] |
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_dup.c | 393 __db_ditem(dbc, pagep, indx, nbytes) 396 u_int32_t indx, nbytes; 407 ldbt.size = nbytes; 410 (u_int32_t)indx, nbytes, &ldbt, NULL, &LSN(pagep))) != 0) 429 memmove(from + nbytes, from, pagep->inp[indx] - HOFFSET(pagep)); 430 HOFFSET(pagep) += nbytes; 436 pagep->inp[cnt] += nbytes; 459 __db_pitem(dbc, pagep, indx, nbytes, hdr, data) 463 u_int32_t nbytes; 493 (u_int32_t)indx, nbytes, hd [all...] |
/illumos-gate/usr/src/lib/liblgrp/common/ |
H A D | lgrp.c | 316 lgrp_mem_size_t nbytes; local 376 nbytes = lgrp_mem_size((lgrp_cookie_t)snap, i, 378 if (ncpus == 0 && nbytes == 0) { 1135 lgrp_mem_size_t nbytes; local 1173 nbytes = lgrp_mem_size(cookie, to, LGRP_MEM_SZ_INSTALLED, 1175 if (nbytes <= 0) { 1176 if (nbytes == 0)
|
/illumos-gate/usr/src/cmd/lvm/metassist/layout/ |
H A D | layout_slice.c | 91 uint64_t nbytes, 144 * uint64_t nbytes, 155 * INPUT: nbytes - required size 166 * nbytes. 197 * at least nbytes in capacity. 204 uint64_t nbytes, 363 if (snbytes > nbytes) { 365 } else if (snbytes == nbytes) { 373 if (nbytes_is_min && (snbytes < nbytes)) { 402 m = (snbytes == nbytes 203 choose_slice( uint64_t nbytes, uint16_t npaths, dlist_t *slices, dlist_t *used, dlist_t *used_hbas, dlist_t *used_disks, boolean_t unused_disk, boolean_t nbytes_is_min, boolean_t add_extra_cyl, devconfig_t **chosen) argument 560 uint64_t nbytes = 0; local 709 create_new_slice( dm_descriptor_t oslice, uint64_t nbytes, boolean_t add_extra_cyl, devconfig_t **nslice) argument [all...] |
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_subr.c | 806 dt_string2str(char *s, char *str, int nbytes) argument 810 if (nbytes == 0) { 818 if (nbytes <= len) { 819 (void) strncpy(str, s, nbytes - 1); 824 str[nbytes - 1] = '\0'; 833 dtrace_addr2str(dtrace_hdl_t *dtp, uint64_t addr, char *str, int nbytes) argument 867 return (dt_string2str(s, str, nbytes)); 872 uint64_t addr, char *str, int nbytes) 884 return (dt_string2str(c, str, nbytes)); 910 return (dt_string2str(c, str, nbytes)); 871 dtrace_uaddr2str(dtrace_hdl_t *dtp, pid_t pid, uint64_t addr, char *str, int nbytes) argument [all...] |
/illumos-gate/usr/src/cmd/truss/ |
H A D | actions.c | 1060 int nbytes; local 1065 nbytes = (count < sizeof (buffer))? count : sizeof (buffer); 1066 if ((nbytes = Pread(Proc, buffer, nbytes, offset)) <= 0) 1068 count -= nbytes; 1069 offset += nbytes; 1071 while (nbytes > 0 && !interrupt) { 1074 n = (nbytes < 32)? nbytes : 32; 1081 nbytes [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | ramdisk.c | 1054 rd_rw(rd_devstate_t *rsp, struct buf *bp, offset_t offset, size_t nbytes) argument 1062 while (nbytes > 0) { 1074 copy_bytes = MIN(nbytes, rem_in_window); 1085 nbytes -= copy_bytes; 1118 size_t nbytes; local 1126 nbytes = min(bp->b_bcount, rsp->rd_size - offset); 1128 rd_rw(rsp, bp, offset, nbytes); 1130 bp->b_resid = bp->b_bcount - nbytes; 1138 kioptr->nread += nbytes; 1141 kioptr->nwritten += nbytes; [all...] |
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vsw_rxdring.c | 723 uint_t nbytes = 0; local 742 * Ensure load ordering of dstate and nbytes. 746 if ((rxdp->nbytes < ETHERMIN) || 747 (rxdp->nbytes > ldcp->lane_in.mtu) || 769 nbytes = rxdp->nbytes; 782 dmp = allocb(nbytes + VNET_IPALIGN, BPRI_MED); 784 dmp->b_rptr + VNET_IPALIGN, nbytes); 796 mp->b_wptr = mp->b_rptr + nbytes; 810 statsp->rbytes += rxdp->nbytes; [all...] |
H A D | vnet_txdring.c | 684 txdp->nbytes = size; 978 size_t nbytes; local 1053 if ((rxd.nbytes < ETHERMIN) || 1054 (rxd.nbytes > lp->mtu) || 1064 nbytes = (VNET_IPALIGN + rxd.nbytes + 7) & ~7; 1065 if (nbytes > ldcp->max_rxpool_size) { 1066 mp = allocb(VNET_IPALIGN + rxd.nbytes + 8, 1070 vmp = vio_multipool_allocb(&ldcp->vmp, nbytes); 1080 rxd.nbytes [all...] |
H A D | vnet_rxdring.c | 704 txdp->nbytes = size; 707 * Ensure store ordering of nbytes and dstate (below); so that the peer 708 * sees the right nbytes value after it checks that the dstate is READY. 1057 uint32_t nbytes = 0; local 1076 * Ensure load ordering of dstate and nbytes. 1080 nbytes = rxdp->nbytes; 1082 if ((nbytes < ETHERMIN) || 1083 (nbytes > lp->mtu) || 1117 dmp = allocb(nbytes [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/sppp/ |
H A D | sppp.c | 270 sppp_qinfo(const queue_t *q, char *buf, size_t nbytes) argument 280 (void) mdb_snprintf(buf, nbytes, "minor %d", 283 (void) mdb_snprintf(buf, nbytes, "sppp%d", 610 sppptun_qinfo(const queue_t *q, char *buf, size_t nbytes) argument 618 mdb_snprintf(buf, nbytes, "sppp%d client %04X", 621 mdb_snprintf(buf, nbytes, "%s", ts.tll.tll_name);
|
/illumos-gate/usr/src/cmd/mdb/intel/mdb/ |
H A D | proc_ia32dep.c | 221 fpcw2str(uint32_t cw, char *buf, size_t nbytes) argument 223 char *end = buf + nbytes; 285 fpsw2str(uint32_t cw, char *buf, size_t nbytes) argument 287 char *end = buf + nbytes; 329 fpmxcsr2str(uint32_t mxcsr, char *buf, size_t nbytes) argument 331 char *end = buf + nbytes;
|
H A D | proc_amd64dep.c | 280 fpcw2str(uint32_t cw, char *buf, size_t nbytes) argument 282 char *end = buf + nbytes; 344 fpsw2str(uint32_t cw, char *buf, size_t nbytes) argument 346 char *end = buf + nbytes; 388 fpmxcsr2str(uint32_t mxcsr, char *buf, size_t nbytes) argument 390 char *end = buf + nbytes;
|
/illumos-gate/usr/src/cmd/sort/common/ |
H A D | utility.c | 485 * cxwrite() implements a buffered version of fwrite(ptr, nbytes, 1, .) on 494 cxwrite(int fd, char *ptr, size_t nbytes) argument 513 while (nbytes != 0) { 514 if (offset + nbytes > XBUFFER_SIZE) 517 mbytes = nbytes; 520 nbytes -= mbytes; 524 if (nbytes) {
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | bt_delete.c | 484 u_int32_t nbytes; local 504 nbytes = NBLEAF(bl); 506 memmove(from + nbytes, from, (char *)to - from); 507 h->upper += nbytes; 513 ip[0] += nbytes; 515 ip[0] = ip[1] < offset ? ip[1] + nbytes : ip[1];
|
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | SSAAdvert.java | 160 hdr.nbytes++;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/ |
H A D | zlib.h | 155 typedef void (*free_func) OF((voidpf opaque, voidpf address, uInt nbytes));
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_cmdbuf.c | 49 cmdbuf_shiftr(mdb_cmdbuf_t *cmd, size_t nbytes) argument 52 &cmd->cmd_buf[cmd->cmd_bufidx + nbytes], 113 mdb_cmdbuf_caninsert(mdb_cmdbuf_t *cmd, size_t nbytes) argument 115 return (cmd->cmd_buflen + nbytes < cmd->cmd_linelen);
|
H A D | mdb_nv.c | 70 size_t nbytes; local 74 nbytes = sizeof (mdb_var_t); 76 nbytes = sizeof (mdb_var_t) + strlen(name); 78 v = mdb_alloc(nbytes, um_flags);
|
/illumos-gate/usr/src/tools/ctf/dwarf/common/ |
H A D | pro_macinfo.c | 160 int nbytes; local 169 res = _dwarf_pro_encode_leb128_nm(line, &nbytes, 177 dbg->de_compose_avail -= nbytes; 178 dbg->de_compose_used_len += nbytes;
|
/illumos-gate/usr/src/uts/common/io/audio/impl/ |
H A D | audio_output.c | 250 uint_t nbytes; local 253 nbytes = framesz * n; 254 bcopy(sp->s_data + (sp->s_tidx * framesz), cnvbuf, nbytes); 255 cnvbuf += nbytes;
|
/illumos-gate/usr/src/uts/sun4u/os/ |
H A D | ppage.c | 419 size_t nbytes; local 424 nbytes = MMU_PAGESIZE; 426 for (; nbytes > 0; fm_pa += 32, to_pa += 32, nbytes -= 32)
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/lib/snmp/ |
H A D | snmplib.c | 445 uint_t *nbytes, int *snmp_syserr) 453 if (smd == NULL || prefix == NULL || bitstrp == NULL || nbytes == NULL) 463 nbytes, &err); 474 if (lookup_bitstr(prefix, row, &val, nbytes, grp->is_volatile) == 0) { 475 if ((*bitstrp = (uchar_t *)calloc(*nbytes, 1)) == NULL) 477 (void) memcpy(*bitstrp, (const void *)val, *nbytes); 491 if (lookup_bitstr(prefix, row, &val, nbytes, grp->is_volatile) < 0) 494 if ((*bitstrp = (uchar_t *)calloc(*nbytes, 1)) == NULL) 496 (void) memcpy(*bitstrp, (const void *)val, *nbytes); 444 snmp_get_bitstr(picl_snmphdl_t hdl, char *prefix, int row, uchar_t **bitstrp, uint_t *nbytes, int *snmp_syserr) argument
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/blade/fruaccess/ |
H A D | fru_access.c | 1662 fru_read_segment(segment_hdl_t segment, void *buffer, size_t nbytes, argument 1691 if (seg_hash->u.seg_obj->segment.length < nbytes) { 1700 retval = pread(fd, buffer, nbytes, seg_hash->u.seg_obj->segment.offset); 1702 if (retval != nbytes) { 1705 return (nbytes); 1724 fru_write_segment(segment_hdl_t segment, const void *data, size_t nbytes, argument 2082 fru_get_payload(packet_hdl_t packet, void *buffer, size_t nbytes, argument 2139 if (nbytes != packet_hash_obj->u.pkt_obj->paylen) { 2145 (void) memcpy(buffer, payload, nbytes); 2148 return (nbytes); 2167 fru_update_payload(packet_hdl_t packet, const void *data, size_t nbytes, packet_hdl_t *newpacket, door_cred_t *cred) argument 2279 fru_append_packet(segment_hdl_t segment, packet_t *packet, const void *payload, size_t nbytes, segment_hdl_t *newsegment, door_cred_t *cred) argument [all...] |
/illumos-gate/usr/src/lib/libnsl/nsl/ |
H A D | _utility.c | 1493 size_t nbytes; local 1496 nbytes = 0; 1497 for (i = 0; i < tiovcount && nbytes < INT_MAX; i++) { 1499 nbytes = INT_MAX; 1502 nbytes += tiov[i].iov_len; 1505 if (nbytes > INT_MAX) 1506 nbytes = INT_MAX; 1508 return ((unsigned int)nbytes);
|