/illumos-gate/usr/src/cmd/format/ |
H A D | menu_scsi.c | 947 int nbytes = sizeof (msbuf); local 957 nbytes = MAX_MODE_SENSE_SIZE; 958 (void) memset(msbuf, 0, nbytes); 962 FORMG0COUNT(&cdb, (uchar_t)nbytes); 967 ucmd.uscsi_buflen = nbytes; 982 nbytes = mh->length - sizeof (struct mode_header) - 986 while (nbytes > 0) { 989 nbytes -= n; 990 if (nbytes < 0) 998 if (nbytes < [all...] |
H A D | misc.c | 854 dump(hdr, src, nbytes, format) 857 int nbytes; 873 while (nbytes > 0) { 876 n = min(nbytes, BYTES_PER_LINE); 891 nbytes -= n;
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | vds.c | 310 elem->payload.nbytes, \ 539 size_t nbytes; /* size of operation buffer */ member in struct:vd_ioctl 834 PR0("offset + nbytes (0x%lx + 0x%lx) > " 1978 size_t offset, length, nbytes; local 1989 if (request->nbytes == 0) { 1997 request->nbytes, request->addr); 2005 request->nbytes = 0; 2025 buflen = P2ROUNDUP(request->nbytes, 8); 2035 nbytes = request->nbytes; 2225 size_t nbytes; local 3483 size_t nbytes = request->nbytes; /* modifiable copy */ local 3830 size_t nbytes; local 3874 size_t nbytes; local 3913 size_t nbytes; local 4966 recv_msg(ldc_handle_t ldc_handle, void *msg, size_t *nbytes) argument [all...] |
H A D | vsw_txdring.c | 858 pub->nbytes = priv_desc->datalen; 1032 size_t nbytes = 0; local 1165 desc.hdr.dstate, desc.nbytes); 1167 if ((desc.nbytes < ETHERMIN) || 1168 (desc.nbytes > lp->mtu)) { 1177 * byte boundary, desc.nbytes is actual data length, 1180 nbytes = (desc.nbytes + VNET_IPALIGN + 7) & ~7; 1181 if (nbytes > ldcp->max_rxpool_size) { 1182 mp = allocb(desc.nbytes [all...] |
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_io.c | 1023 iob_setattr(mdb_iob_t *iob, const char *s, size_t nbytes) argument 1031 if (nbytes != 0 && *s == '/') { 1033 nbytes--; 1038 if (nbytes != 1) 1680 null_io_write(mdb_io_t *io, const void *buf, size_t nbytes) argument 1682 return (nbytes); 1713 mdb_iob_vsnprintf(char *buf, size_t nbytes, const char *format, va_list alist) argument 1721 ASSERT(buf != NULL || nbytes == 0); 1722 iob_spb_create(&iob, iob_buf, sizeof (iob_buf), &io, &spb, buf, nbytes); 1729 else if (buf != NULL && nbytes > 1736 mdb_iob_asnprintf(char *buf, size_t nbytes, const char *format, const mdb_arg_t *argv) argument 1761 mdb_iob_snprintf(char *buf, size_t nbytes, const char *format, ...) argument 1773 mdb_iob_nputs(mdb_iob_t *iob, const char *s, size_t nbytes) argument 2166 no_io_read(mdb_io_t *io, void *buf, size_t nbytes) argument 2175 no_io_write(mdb_io_t *io, const void *buf, size_t nbytes) argument [all...] |
H A D | mdb_kproc.c | 526 kp_vread(mdb_tgt_t *t, void *buf, size_t nbytes, uintptr_t addr) argument 529 ssize_t n = kvm_aread(kp->kp_cookie, addr, buf, nbytes, kp->kp_as); 538 kp_vwrite(mdb_tgt_t *t, const void *buf, size_t nbytes, uintptr_t addr) argument 541 ssize_t n = kvm_awrite(kp->kp_cookie, addr, buf, nbytes, kp->kp_as); 636 char *buf, size_t nbytes, GElf_Sym *symp, mdb_syminfo_t *sip) 654 addr, flags, buf, nbytes, symp, &sip->sym_id) == 0) { 687 addr - kpf->kpf_dyn_base, flags, buf, nbytes, 718 (void) mdb_snprintf(buf, nbytes, "%s`%s", 720 } else if (nbytes > 0) { 721 (void) strncpy(buf, name, nbytes); 635 kp_lookup_by_addr(mdb_tgt_t *t, uintptr_t addr, uint_t flags, char *buf, size_t nbytes, GElf_Sym *symp, mdb_syminfo_t *sip) argument 1060 kp_io_read(mdb_io_t *io, void *buf, size_t nbytes) argument [all...] |
H A D | mdb_err.c | 250 set_errbytes(size_t rbytes, size_t nbytes) argument 253 errno_nbytes = nbytes;
|
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_kvm.c | 138 kmt_rw(mdb_tgt_t *t, void *buf, size_t nbytes, uint64_t addr, argument 153 if (nbytes == 0) 161 chunksz = nbytes; 175 while (nbytes > 0) { 176 n = MIN(chunksz, nbytes); 182 nbytes -= n; 215 kmt_reader(void *buf, size_t nbytes, uint64_t addr) argument 217 kmt_bcopy((void *)(uintptr_t)addr, buf, nbytes); 218 return (nbytes); 222 kmt_writer(void *buf, size_t nbytes, uint64_ argument 230 kmt_read(mdb_tgt_t *t, void *buf, size_t nbytes, uintptr_t addr) argument 247 kmt_pread(mdb_tgt_t *t, void *buf, size_t nbytes, physaddr_t addr) argument 254 kmt_pwrite(mdb_tgt_t *t, const void *buf, size_t nbytes, physaddr_t addr) argument 865 kmt_lookup_by_addr(mdb_tgt_t *t, uintptr_t addr, uint_t flags, char *buf, size_t nbytes, GElf_Sym *symp, mdb_syminfo_t *sip) argument 1700 kmt_brkpt_info(mdb_tgt_t *t, mdb_sespec_t *sep, mdb_vespec_t *vep, mdb_tgt_spec_desc_t *sp, char *buf, size_t nbytes) argument 1908 kmt_wapt_info(mdb_tgt_t *t, mdb_sespec_t *sep, mdb_vespec_t *vep, mdb_tgt_spec_desc_t *sp, char *buf, size_t nbytes) argument 2092 kmt_trap_info(mdb_tgt_t *t, mdb_sespec_t *sep, mdb_vespec_t *vep, mdb_tgt_spec_desc_t *sp, char *buf, size_t nbytes) argument [all...] |
H A D | kmdb_module.c | 90 size_t nbytes, GElf_Sym *symp, mdb_syminfo_t *sip) 106 buf, nbytes, symp, &sip->sym_id) != 0 || 141 (void) mdb_snprintf(buf, nbytes, "DMOD`%s`%s", 89 kmdb_module_lookup_by_addr(uintptr_t addr, uint_t flags, char *buf, size_t nbytes, GElf_Sym *symp, mdb_syminfo_t *sip) argument
|
/illumos-gate/usr/src/cmd/lvm/metassist/layout/ |
H A D | layout.c | 332 uint64_t nbytes = 0; /* requested volume size */ local 338 (void) devconfig_get_size(req, &nbytes); 358 return (layout_stripe(req, nbytes, results)); 366 return (layout_concat(req, nbytes, results)); 378 return (layout_mirror(req, nsubs, nbytes, results)); 411 uint64_t nbytes = 0; local 415 (void) devconfig_get_size(req, &nbytes); 426 error = layout_stripe(req, nbytes, results); 428 error = layout_mirror(req, rlevel, nbytes, results);
|
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | wclib.c | 166 register Sfoff_t nbytes; local 183 nlines = nwords = nchars = nbytes = 0; 209 nbytes += n; 253 nchars = nbytes; 350 nbytes += c; 498 nchars = nbytes;
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/lib/libctsmc/ |
H A D | libctsmc.c | 213 int result, nbytes, i = 0; local 235 if ((nbytes = write(fd, (char *)req_pkt, SC_SEND_HEADER + 241 if ((nbytes = read(fd, (char *)rsp_pkt, SC_MSG_MAX_SIZE)) < 0) { 269 nbytes = read(fd, rsp_pkt, SC_MSG_MAX_SIZE); 270 if (nbytes < 0) { 278 for (i = 0; i < nbytes; i++) {
|
/illumos-gate/usr/src/common/smbsrv/ |
H A D | smb_oem.c | 182 * or when (nbytes - 1) oem characters have been stored. 188 ucstooem(char *oem, const smb_wchar_t *ucs, size_t nbytes, uint32_t cpid) argument 200 while (nbytes != 0 && (oemchar = ucspage->value[*ucs]) != 0) { 201 if (oemchar & 0xff00 && nbytes >= MTS_MB_CHAR_MAX) { 204 nbytes -= 2; 205 } else if (nbytes > 1) { 207 nbytes--;
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_kmod.c | 362 uint_t nbytes; local 386 rc = smb_netuserinfo_decode(user, data, len, &nbytes); 391 &nbytes); 395 rc = smb_netfileinfo_decode(ofile, data, len, &nbytes); 408 data += nbytes; 409 len -= nbytes;
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_user.c | 614 uint_t nbytes; local 628 rc = smb_user_netinfo_encode(user, pb, svcenum->se_bavail, &nbytes); 630 svcenum->se_bavail -= nbytes; 631 svcenum->se_bused += nbytes; 645 uint32_t *nbytes) 651 rc = smb_netuserinfo_encode(&info, buf, buflen, nbytes); 644 smb_user_netinfo_encode(smb_user_t *user, uint8_t *buf, size_t buflen, uint32_t *nbytes) argument
|
/illumos-gate/usr/src/uts/common/inet/tcp/ |
H A D | tcp_tunables.c | 71 size_t nbytes = 0, tbytes = 0; local 85 nbytes = snprintf(pval, size, "%d:%d", tl->tl_port, 88 nbytes = snprintf(pval, size, ",%d:%d", tl->tl_port, 90 size -= nbytes; 91 pval += nbytes; 92 tbytes += nbytes;
|
/illumos-gate/usr/src/cmd/gencat/ |
H A D | gencat.c | 417 int nbytes, bytes_read; local 422 nbytes = 0; 423 while (nbytes < n) { 424 bytes_read = READ(fd, p + nbytes, n - nbytes); 434 nbytes += bytes_read; 437 return (nbytes); 1038 unsigned nbytes; local 1103 nbytes = 0; 1104 while (nbytes < [all...] |
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | SDAAdvert.java | 206 hdr.nbytes += 1; 237 hdr.nbytes += 4;
|
/illumos-gate/usr/src/lib/libsmedia/library/inc/ |
H A D | smedia.h | 148 size_t nbytes); 151 size_t nbytes);
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/ |
H A D | fru_access.c | 1734 fru_read_segment(segment_hdl_t segment, void *buffer, size_t nbytes, argument 1763 if (seg_hash->u.seg_obj->segment.length < nbytes) { 1774 retval = pread(fd, buffer, nbytes, 1777 if (retval != nbytes) { 1804 if (nbytes > len) 1805 nbytes = len; 1806 (void) memcpy(buffer, ptr, nbytes); 1815 return (nbytes); 1834 fru_write_segment(segment_hdl_t segment, const void *data, size_t nbytes, argument 2135 size_t nbytes; local 2233 fru_get_payload(packet_hdl_t packet, void *buffer, size_t nbytes, door_cred_t *cred) argument 2269 fru_update_payload(packet_hdl_t packet, const void *data, size_t nbytes, packet_hdl_t *newpacket, door_cred_t *cred) argument 2382 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/uts/common/io/bnxe/ |
H A D | bnxe_mm_l4.c | 253 u32_t nbytes 307 u32_t nbytes
|
/illumos-gate/usr/src/cmd/mdb/common/modules/krtld/ |
H A D | krtld.c | 233 size_t nbytes; local 248 nbytes = sizeof (Shdr) * mod.hdr.e_shnum; 249 shdrs = mdb_alloc(nbytes, UM_SLEEP | UM_GC); 250 mdb_vread(shdrs, nbytes, (uintptr_t)mod.shdrs);
|
/illumos-gate/usr/src/cmd/sendmail/db/include/ |
H A D | db_auto.h | 15 size_t nbytes; member in struct:_db_addrem_args
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | mDNSUNP.h | 82 extern ssize_t recvfrom_flags(int fd, void *ptr, size_t nbytes, int *flagsp,
|
/illumos-gate/usr/src/lib/efcode/engine/ |
H A D | env.c | 333 int nbytes; local 335 nbytes = dig2 - dig1; 337 if (nbytes > CMN_MAX_DIGITS) 339 strncpy(cdigs, dig1, nbytes); 340 cdigs[nbytes] = 0;
|