Home
last modified time | relevance | path

Searched refs:nbytes (Results 176 – 200 of 355) sorted by relevance

12345678910>>...15

/illumos-gate/usr/src/cmd/picl/plugins/sun4v/lib/snmp/
H A Dsnmplib.c436 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 Dsmb_user.c923 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 Dpgrep.c187 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 Dcpr_dump.c844 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 Dtiuser.h213 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 Dmdb_err.c250 set_errbytes(size_t rbytes, size_t nbytes) in set_errbytes() argument
253 errno_nbytes = nbytes; in set_errbytes()
H A Dmdb_termio.c413 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 Dmdb_cmdbuf.c47 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 Dmdb_nv.c71 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 Daudio_output.c250 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 Dmisc.c816 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 Ddc.c2119 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 Ddrmach.c442 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 Dvdc.c2879 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 Dmalloc.c1116 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 Dlibc.c346 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 Dlux_util.c73 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 Dvalloc.c48 memalign(size_t align, size_t nbytes) in memalign() argument
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dflush.c1001 _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 Dswrand.c661 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 Dsnoop_capture.c547 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 DSDAAdvert.java206 hdr.nbytes += 1; in initialize()
237 hdr.nbytes += 4; in putInt32()
/illumos-gate/usr/src/uts/common/io/bnxe/
H A Dbnxe_mm_l4.c253 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 Dskd.c2169 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.c1493 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()

12345678910>>...15