/illumos-gate/usr/src/cmd/picl/plugins/sun4v/lib/snmp/ |
H A D | snmplib.c | 436 uint_t *nbytes, int *snmp_syserr) in snmp_get_bitstr() argument 444 if (smd == NULL || prefix == NULL || bitstrp == NULL || nbytes == NULL) in snmp_get_bitstr() 454 nbytes, &err); in snmp_get_bitstr() 465 if (lookup_bitstr(prefix, row, &val, nbytes, grp->is_volatile) == 0) { in snmp_get_bitstr() 466 if ((*bitstrp = (uchar_t *)calloc(*nbytes, 1)) == NULL) in snmp_get_bitstr() 468 (void) memcpy(*bitstrp, (const void *)val, *nbytes); in snmp_get_bitstr() 482 if (lookup_bitstr(prefix, row, &val, nbytes, grp->is_volatile) < 0) in snmp_get_bitstr() 485 if ((*bitstrp = (uchar_t *)calloc(*nbytes, 1)) == NULL) in snmp_get_bitstr() 487 (void) memcpy(*bitstrp, (const void *)val, *nbytes); in snmp_get_bitstr()
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_user.c | 923 uint_t nbytes; in smb_user_enum_private() local 937 rc = smb_user_netinfo_encode(user, pb, svcenum->se_bavail, &nbytes); in smb_user_enum_private() 939 svcenum->se_bavail -= nbytes; in smb_user_enum_private() 940 svcenum->se_bused += nbytes; in smb_user_enum_private() 954 uint32_t *nbytes) in smb_user_netinfo_encode() argument 960 rc = smb_netuserinfo_encode(&info, buf, buflen, nbytes); in smb_user_netinfo_encode()
|
/illumos-gate/usr/src/cmd/pgrep/ |
H A D | pgrep.c | 187 mbstrip(char *buf, size_t nbytes) in mbstrip() argument 193 buf[nbytes - 1] = '\0'; in mbstrip() 203 if (nbytes <= n) { in mbstrip() 208 (void) memmove(p, p + n, nbytes - n); in mbstrip() 211 nbytes -= n; in mbstrip()
|
/illumos-gate/usr/src/uts/common/cpr/ |
H A D | cpr_dump.c | 844 size_t nbytes, clen, len; in cpr_compress_pages() local 848 nbytes = mmu_ptob(pages); in cpr_compress_pages() 854 dp->cpd_length = nbytes; in cpr_compress_pages() 862 cprbcopy(CPR->c_mapping_area, cpr_pagecopy, nbytes); in cpr_compress_pages() 863 dp->cpd_usum = checksum32(cpr_pagecopy, nbytes); in cpr_compress_pages() 878 clen = compress(datap, cpr_pagedata, nbytes); in cpr_compress_pages() 879 if (clen < nbytes) { in cpr_compress_pages()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | tiuser.h | 213 extern int t_rcv(int fildes, char *buf, unsigned nbytes, int *flags); 219 extern int t_snd(int fildes, char *buf, unsigned nbytes, int flags);
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_err.c | 250 set_errbytes(size_t rbytes, size_t nbytes) in set_errbytes() argument 253 errno_nbytes = nbytes; in set_errbytes()
|
H A D | mdb_termio.c | 413 return (IOP_READ(io->io_next, buf, nbytes)); in termio_read() 419 if (nbytes == 1) { in termio_read() 541 if ((rlen = strlen(s)) >= nbytes - 1) in termio_read() 542 rlen = nbytes - 1; in termio_read() 561 return (IOP_WRITE(io->io_next, buf, nbytes)); in termio_write() 563 return (IOP_WRITE(td->tio_out_io, buf, nbytes)); in termio_write() 1317 size_t nbytes; in termio_setup_attrs() local 1340 nbytes += strlen(str) + 1; in termio_setup_attrs() 1369 if (nbytes != 0) in termio_setup_attrs() 1370 td->tio_attrs = mdb_alloc(nbytes, UM_SLEEP); in termio_setup_attrs() [all …]
|
H A D | mdb_cmdbuf.c | 47 cmdbuf_shiftr(mdb_cmdbuf_t *cmd, size_t nbytes) in cmdbuf_shiftr() argument 50 &cmd->cmd_buf[cmd->cmd_bufidx + nbytes], in cmdbuf_shiftr() 111 mdb_cmdbuf_caninsert(mdb_cmdbuf_t *cmd, size_t nbytes) in mdb_cmdbuf_caninsert() argument 113 return (cmd->cmd_buflen + nbytes < cmd->cmd_linelen); in mdb_cmdbuf_caninsert()
|
H A D | mdb_nv.c | 71 size_t nbytes; in nv_var_alloc() local 75 nbytes = sizeof (mdb_var_t); in nv_var_alloc() 77 nbytes = sizeof (mdb_var_t) + strlen(name); in nv_var_alloc() 79 v = mdb_alloc(nbytes, um_flags); in nv_var_alloc()
|
/illumos-gate/usr/src/uts/common/io/audio/impl/ |
H A D | audio_output.c | 250 uint_t nbytes; in auimpl_consume_fragment() local 253 nbytes = framesz * n; in auimpl_consume_fragment() 254 bcopy(sp->s_data + (sp->s_tidx * framesz), cnvbuf, nbytes); in auimpl_consume_fragment() 255 cnvbuf += nbytes; in auimpl_consume_fragment()
|
/illumos-gate/usr/src/cmd/format/ |
H A D | misc.c | 816 dump(char *hdr, caddr_t src, int nbytes, int format) in dump() argument 831 while (nbytes > 0) { in dump() 834 n = min(nbytes, BYTES_PER_LINE); in dump() 848 nbytes -= n; in dump()
|
/illumos-gate/usr/src/cmd/dc/ |
H A D | dc.c | 2119 nbytes += size; in salloc() 2121 if (nbytes > maxsize) in salloc() 2122 maxsize = nbytes; in salloc() 2146 nbytes += HEADSZ; in morehd() 2170 nbytes += size; in copy() 2221 if (nbytes > maxsize) in seekc() 2222 maxsize = nbytes; in seekc() 2261 nbytes += size / 2; in more() 2262 if (nbytes > maxsize) in more() 2263 maxsize = nbytes; in more() [all …]
|
/illumos-gate/usr/src/uts/sun4u/opl/io/ |
H A D | drmach.c | 442 uint64_t nbytes = 0; in drmach_setup_mc_info() local 445 nbytes += p->ml_size; in drmach_setup_mc_info() 447 if ((mp->nbytes = nbytes) > 0) in drmach_setup_mc_info() 454 mp->nbytes = 0; in drmach_setup_mc_info() 2248 if (mp->nbytes == 0) { in drmach_mem_new() 2580 uint64_t nbytes; in drmach_pt_readmem() local 2583 nbytes = ml->ml_size; in drmach_pt_readmem() 3192 uint64_t nbytes; in drmach_copy_rename_prog__relocatable() local 3196 nbytes = ml->ml_size; in drmach_copy_rename_prog__relocatable() 3368 nbytes = PAGESIZE; in drmach_setup_memlist() [all …]
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vdc.c | 2879 if (ldep->nbytes > 0) { in vdc_map_to_shared_dring() 2897 dep->payload.nbytes = ldep->nbytes; in vdc_map_to_shared_dring() 3111 local_dep->nbytes = nbytes; in vdc_populate_descriptor() 3251 buf.b_bcount = nbytes; in vdc_do_op() 3586 if (ldep->nbytes == 0) { in vdc_depopulate_descriptor() 3599 if (dep->payload.nbytes > 0) in vdc_depopulate_descriptor() 3601 dep->payload.nbytes); in vdc_depopulate_descriptor() 3648 size_t nbytes; in vdc_populate_mem_hdl() local 3683 nbytes = ldep->nbytes; in vdc_populate_mem_hdl() 3885 status, (int)nbytes); in vdc_wait_for_response() [all …]
|
/illumos-gate/usr/src/lib/watchmalloc/common/ |
H A D | malloc.c | 1116 memalign(size_t align, size_t nbytes) in memalign() argument 1131 if (nbytes == 0 || misaligned(align) || align == 0 || in memalign() 1148 if (nbytes > MAX_MALLOC) { in memalign() 1152 ROUND(nbytes); in memalign() 1153 if (nbytes < MINSIZE) in memalign() 1154 nbytes = MINSIZE; in memalign() 1158 reqsize = nbytes + align + (MINSIZE + WORDSIZE); in memalign() 1160 if (reqsize < nbytes) { in memalign() 1227 frag_size = blksize - nbytes; in memalign() 1233 SIZE(aligned_blk) = nbytes; in memalign()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/libc/ |
H A D | libc.c | 346 ssize_t nbytes = mdb_get_xdata("lwpstatus", NULL, 0); in oldc_walk_init() local 348 if (nbytes <= 0) { in oldc_walk_init() 358 wsp->walk_addr = nbytes; /* Use walk_addr to track size */ in oldc_walk_init() 359 wsp->walk_data = mdb_alloc(nbytes, UM_SLEEP); in oldc_walk_init() 361 if (mdb_get_xdata("lwpstatus", wsp->walk_data, nbytes) != nbytes) { in oldc_walk_init() 363 mdb_free(wsp->walk_data, nbytes); in oldc_walk_init() 1390 ssize_t nbytes; in d_psinfo() local 1396 nbytes = mdb_get_xdata("psinfo", NULL, 0); in d_psinfo() 1398 if (nbytes <= 0) { in d_psinfo() 1403 if (mdb_get_xdata("psinfo", &psinfo, nbytes) != nbytes) { in d_psinfo()
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | lux_util.c | 73 static void string_dump(char *hdr, uchar_t *src, int nbytes, int format, 126 string_dump(char *hdr, uchar_t *src, int nbytes, int format, char msg_string[]) in string_dump() argument 141 while (nbytes > 0) { in string_dump() 144 n = MIN(nbytes, BYTES_PER_LINE); in string_dump() 162 nbytes -= n; in string_dump() 1557 dump_hex_data(char *hdr, uchar_t *src, int nbytes, int format) in dump_hex_data() argument 1572 while (nbytes > 0) { in dump_hex_data() 1575 n = MIN(nbytes, BYTES_PER_LINE); in dump_hex_data() 1590 nbytes -= n; in dump_hex_data()
|
/illumos-gate/usr/src/lib/libmapmalloc/common/ |
H A D | valloc.c | 48 memalign(size_t align, size_t nbytes) in memalign() argument
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | flush.c | 1001 _xread(FILE *iop, void *buf, size_t nbytes) in _xread() argument 1005 return (ops->std_read(iop, buf, nbytes)); in _xread() 1008 return (read(_get_fd(iop), buf, nbytes)); in _xread() 1012 _xwrite(FILE *iop, const void *buf, size_t nbytes) in _xwrite() argument 1016 return (ops->std_write(iop, buf, nbytes)); in _xwrite() 1018 return (write(_get_fd(iop), buf, nbytes)); in _xwrite()
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | swrand.c | 661 int i, nbytes, len, ent = 0; in physmem_ent_gen() local 729 nbytes = PAGESIZE - poffset < len ? in physmem_ent_gen() 746 nbytes); in physmem_ent_gen() 753 len -= nbytes; in physmem_ent_gen() 754 offset += nbytes; in physmem_ent_gen()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_capture.c | 547 ssize_t nbytes = 0; in nwrite() local 550 for (nwritten = 0; nwritten < buflen; nwritten += nbytes) { in nwrite() 551 nbytes = write(fd, &buf[nwritten], buflen - nwritten); in nwrite() 552 if (nbytes == -1) in nwrite() 554 if (nbytes == 0) { in nwrite()
|
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | SDAAdvert.java | 206 hdr.nbytes += 1; in initialize() 237 hdr.nbytes += 4; in putInt32()
|
/illumos-gate/usr/src/uts/common/io/bnxe/ |
H A D | bnxe_mm_l4.c | 253 u32_t nbytes in mm_tcp_copy_to_tcp_buf() argument 307 u32_t nbytes in mm_tcp_rx_peninsula_to_rq_copy_dmae() argument
|
/illumos-gate/usr/src/uts/common/io/skd/ |
H A D | skd.c | 2169 uint32_t nbytes; in skd_reset_skcomp() local 3128 uint32_t nbytes; in skd_cons_skcomp() local 3138 mem->size = nbytes; in skd_cons_skcomp() 3147 bzero(skcomp, nbytes); in skd_cons_skcomp() 3150 (void *)skcomp, nbytes); in skd_cons_skcomp() 3290 uint32_t nbytes; in skd_cons_sksb() local 3300 mem->size = nbytes; in skd_cons_sksb() 3314 mem->size = nbytes; in skd_cons_sksb() 3360 uint32_t nbytes; in skd_cons_sg_list() local 3366 mem->size = nbytes; in skd_cons_sg_list() [all …]
|
/illumos-gate/usr/src/lib/libnsl/nsl/ |
H A D | _utility.c | 1493 size_t nbytes; in _t_bytecount_upto_intmax() local 1496 nbytes = 0; in _t_bytecount_upto_intmax() 1497 for (i = 0; i < tiovcount && nbytes < INT_MAX; i++) { in _t_bytecount_upto_intmax() 1499 nbytes = INT_MAX; in _t_bytecount_upto_intmax() 1502 nbytes += tiov[i].iov_len; in _t_bytecount_upto_intmax() 1505 if (nbytes > INT_MAX) in _t_bytecount_upto_intmax() 1506 nbytes = INT_MAX; in _t_bytecount_upto_intmax() 1508 return ((unsigned int)nbytes); in _t_bytecount_upto_intmax()
|