Home
last modified time | relevance | path

Searched refs:nbytes (Results 101 – 125 of 355) sorted by relevance

12345678910>>...15

/illumos-gate/usr/src/uts/common/zmod/
H A Dzmod_subr.c44 size_t nbytes = sizeof (struct zchdr) + items * size; in zcalloc() local
45 struct zchdr *z = kobj_zalloc(nbytes, KM_NOWAIT|KM_TMP); in zcalloc()
51 z->zch_size = nbytes; in zcalloc()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_fmt.c229 ssize_t nbytes; in fmt_rawstr() local
236 if (nbytes > 0) { in fmt_rawstr()
239 } else if (nbytes < 0) { in fmt_rawstr()
243 } while (nbytes == BUFSIZ); in fmt_rawstr()
258 ssize_t nbytes; in fmt_escstr() local
266 if (nbytes > 0) { in fmt_escstr()
271 } else if (nbytes < 0) { in fmt_escstr()
275 } while (nbytes == BUFSIZ); in fmt_escstr()
289 ssize_t nbytes; in fmt_escchr() local
301 s = convert(buf, nbytes); in fmt_escchr()
[all …]
H A Dmdb_help.c266 size_t nbytes; in cmd_walkers() local
269 nbytes = regerror(err, &f.reg, NULL, 0); in cmd_walkers()
270 buf = mdb_alloc(nbytes + 1, UM_SLEEP | UM_GC); in cmd_walkers()
271 (void) regerror(err, &f.reg, buf, nbytes); in cmd_walkers()
355 size_t nbytes; in cmd_dcmds() local
358 nbytes = regerror(err, &f.reg, NULL, 0); in cmd_dcmds()
359 buf = mdb_alloc(nbytes + 1, UM_SLEEP | UM_GC); in cmd_dcmds()
360 (void) regerror(err, &f.reg, buf, nbytes); in cmd_dcmds()
H A Dmdb_io.c1067 if (nbytes != 0 && *s == '/') { in iob_setattr()
1069 nbytes--; in iob_setattr()
1074 if (nbytes != 1) in iob_setattr()
1718 return (nbytes); in null_io_write()
1757 ASSERT(buf != NULL || nbytes == 0); in mdb_iob_vsnprintf()
1765 else if (buf != NULL && nbytes > 0) in mdb_iob_vsnprintf()
1781 ASSERT(buf != NULL || nbytes == 0); in mdb_iob_asnprintf()
1802 nbytes = mdb_iob_vsnprintf(buf, nbytes, format, alist); in mdb_iob_snprintf()
1805 return (nbytes); in mdb_iob_snprintf()
1832 size_t m, n, nleft = nbytes; in mdb_iob_nputs()
[all …]
H A Dmdb_grammar.y49 vfetch(void *buf, size_t nbytes, uintptr_t addr) in vfetch() argument
51 if (mdb_tgt_vread(mdb.m_target, buf, nbytes, addr) != nbytes) in vfetch()
56 ffetch(void *buf, size_t nbytes, uintptr_t addr) in ffetch() argument
58 if (mdb_tgt_fread(mdb.m_target, buf, nbytes, addr) != nbytes) in ffetch()
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_kvm.c157 if (nbytes == 0) in kmt_rw()
165 chunksz = nbytes; in kmt_rw()
179 while (nbytes > 0) { in kmt_rw()
180 n = MIN(chunksz, nbytes); in kmt_rw()
186 nbytes -= n; in kmt_rw()
222 return (nbytes); in kmt_reader()
229 return (nbytes); in kmt_writer()
243 (nbytes = kmdb_kdi_range_is_nontoxic(addr, nbytes, 0)) == 0) in kmt_read()
950 (void) strncpy(buf, name, nbytes); in kmt_lookup_by_addr()
951 buf[nbytes - 1] = '\0'; in kmt_lookup_by_addr()
[all …]
/illumos-gate/usr/src/cmd/format/
H A Dctlr_scsi.c1676 int nbytes; in scsi_read_defect_data() local
2129 int nbytes; in uscsi_mode_sense() local
2146 nbytes = page_size; in uscsi_mode_sense()
2259 int nbytes; in uscsi_mode_select() local
2383 nbytes += page_size; in uscsi_mode_select()
2707 int nbytes; in scsi_dump_mode_sense_pages() local
2722 nbytes = 255; in scsi_dump_mode_sense_pages()
2753 while (nbytes > 0) { in scsi_dump_mode_sense_pages()
2756 nbytes -= n; in scsi_dump_mode_sense_pages()
2757 if (nbytes < 0) in scsi_dump_mode_sense_pages()
[all …]
H A Dmenu_scsi.c910 int nbytes = sizeof (msbuf); in default_all_pages() local
920 nbytes = MAX_MODE_SENSE_SIZE; in default_all_pages()
921 (void) memset(msbuf, 0, nbytes); in default_all_pages()
925 FORMG0COUNT(&cdb, (uchar_t)nbytes); in default_all_pages()
930 ucmd.uscsi_buflen = nbytes; in default_all_pages()
945 nbytes = mh->length - sizeof (struct mode_header) - in default_all_pages()
949 while (nbytes > 0) { in default_all_pages()
952 nbytes -= n; in default_all_pages()
953 if (nbytes < 0) in default_all_pages()
961 if (nbytes < 0) { in default_all_pages()
/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dtli_wrappers.c134 t_rcv(int fd, char *buf, unsigned int nbytes, int *flags) in t_rcv() argument
136 return (_tx_rcv(fd, buf, nbytes, flags, TX_TLI_API)); in t_rcv()
170 t_snd(int fd, char *buf, unsigned int nbytes, int flags) in t_snd() argument
172 return (_tx_snd(fd, buf, nbytes, flags, TX_TLI_API)); in t_snd()
H A Dt_rcvvudata.c67 unsigned int nbytes; in _tx_rcvvudata() local
114 nbytes = _t_bytecount_upto_intmax(tiov, tiovcount); in _tx_rcvvudata()
116 if (nbytes != 0 && ((dataptr = malloc(nbytes)) == NULL)) { in _tx_rcvvudata()
121 databuf.maxlen = nbytes; in _tx_rcvvudata()
H A Dt_rcvv.c58 unsigned int nbytes; in _tx_rcvv() local
169 nbytes = _t_bytecount_upto_intmax(tiov, tiovcount); in _tx_rcvv()
171 if (nbytes != 0 && ((dataptr = malloc(nbytes)) == NULL)) { in _tx_rcvv()
183 databuf.maxlen = (int)nbytes; in _tx_rcvv()
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DSrvLocHeader.java124 int nbytes = 0; // number of bytes processed field in SrvLocHeader
320 nbytes += SHORT_SIZE; in getInt()
348 nbytes += SHORT_SIZE; in putInt()
375 nbytes += 3; in getInt24()
386 nbytes += 3; in putInt24()
397 nbytes += ret.length + SHORT_SIZE; in getString()
440 nbytes += bytes.length + SHORT_SIZE; in putString()
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioTypeChannel.cc74 size_t nbytes; in Convert() local
127 nbytes = (size_t)inhdr.FrameLength(); in Convert()
180 for (k = 0; k < nbytes; k++) in Convert()
183 cin += nbytes; in Convert()
/illumos-gate/usr/src/cmd/pgrep/
H A Dpsexp.c75 size_t nbytes; in psexp_compile() local
95 nbytes = regerror(err, &psexp->ps_reg, NULL, 0); in psexp_compile()
96 buf = alloca(nbytes + 1); in psexp_compile()
97 (void) regerror(err, &psexp->ps_reg, buf, nbytes); in psexp_compile()
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_tunables.c52 size_t nbytes = 0, tbytes = 0; in sctp_listener_conf_get() local
66 nbytes = snprintf(pval, size, "%d:%d", sl->sl_port, in sctp_listener_conf_get()
69 nbytes = snprintf(pval, size, ",%d:%d", sl->sl_port, in sctp_listener_conf_get()
71 size -= nbytes; in sctp_listener_conf_get()
72 pval += nbytes; in sctp_listener_conf_get()
73 tbytes += nbytes; in sctp_listener_conf_get()
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_lib.c424 ssize_t nbytes; in ctf_fdcreate_int() local
440 if ((nbytes = pread64(fd, &hdr.ctf, sizeof (hdr), 0)) <= 0) in ctf_fdcreate_int()
447 if (nbytes >= sizeof (ctf_preamble_t) && in ctf_fdcreate_int()
480 if (nbytes >= sizeof (Elf32_Ehdr) && in ctf_fdcreate_int()
499 if (nbytes < sizeof (GElf_Ehdr)) in ctf_fdcreate_int()
537 nbytes = sizeof (GElf_Shdr) * shnum; in ctf_fdcreate_int()
539 if ((sp = malloc(nbytes)) == NULL) in ctf_fdcreate_int()
549 nbytes = sizeof (Elf32_Shdr) * shnum; in ctf_fdcreate_int()
551 if ((sp32 = malloc(nbytes)) == NULL || pread64(fd, in ctf_fdcreate_int()
552 sp32, nbytes, hdr.e64.e_shoff) != nbytes) { in ctf_fdcreate_int()
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dlm_send.c74 u16_t old_nbytes = mm_le16_to_cpu(generic_bd->nbytes); in lm_handle_lso_split()
76 ASSERT_STATIC(OFFSETOF(struct eth_tx_bd, nbytes) == OFFSETOF(struct eth_tx_start_bd, nbytes)) ; in lm_handle_lso_split()
83 generic_bd->nbytes = mm_cpu_to_le16(old_nbytes - data_part_size); in lm_handle_lso_split()
85 LM_INC64(&frag_addr_data_offset, mm_le16_to_cpu(generic_bd->nbytes)); in lm_handle_lso_split()
93 prod_bd->nbytes = mm_cpu_to_le16(data_part_size); in lm_handle_lso_split()
98 mm_le16_to_cpu(generic_bd->nbytes), mm_le16_to_cpu(prod_bd->nbytes)); in lm_handle_lso_split()
198 mm_le16_to_cpu(start_bd->nbytes) - hlen_reminder, in lm_process_lso_packet()
206 u16_t start_bd_nbytes = mm_le16_to_cpu(start_bd->nbytes); in lm_process_lso_packet()
222 prod_bd->nbytes = mm_cpu_to_le16((u16_t) (*frag)->size); in lm_process_lso_packet()
239 u16_t prod_bd_nbytes = mm_le16_to_cpu(prod_bd->nbytes); in lm_process_lso_packet()
[all …]
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dread_fifo.c301 int n, nbytes, count = 0; in _buffer() local
349 nbytes = MSGMAX - (fbp->psave_end - fbp->save); in _buffer()
351 while ((n = read(fifo, fbp->psave_end, nbytes)) == 0 && count < 60) in _buffer()
361 fbp->full = (nbytes == n); in _buffer()
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dvnet_common.h107 uint32_t nbytes; /* data length */ member
120 uint32_t nbytes; member
131 uint32_t nbytes; /* Num bytes in data buffer */ member
/illumos-gate/usr/src/uts/common/io/ixgbe/
H A Dixgbe_transceiver.c226 size_t nbytes, off_t offset, size_t *nread) in ixgbe_transceiver_read() argument
234 if (id != 0 || buf == NULL || nbytes == 0 || nread == NULL || in ixgbe_transceiver_read()
242 if (nbytes > 256 || offset >= 256 || (offset + nbytes > 256)) { in ixgbe_transceiver_read()
267 for (i = 0; i < nbytes; i++, offset++, buf++) { in ixgbe_transceiver_read()
/illumos-gate/usr/src/uts/sun4v/io/n2rng/
H A Dn2rng_provider.c66 fips_random(n2rng_t *n2rng, uint8_t *out, size_t nbytes) in fips_random() argument
78 for (i = 0; i < nbytes; i += SHA1BYTES) { in fips_random()
144 bcopy(tempout, &out[i], min(nbytes - i, SHA1BYTES)); in fips_random()
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvds.c2036 nbytes = request->nbytes; in vd_start_bio()
2050 request->nbytes = nbytes - length; in vd_start_bio()
2226 size_t nbytes; in send_msg() local
3485 size_t nbytes = request->nbytes; /* modifiable copy */ in vd_do_ioctl() local
3674 if (request->nbytes >= ioctl[i].nbytes) in vd_ioctl()
3678 ioctl[i].nbytes, request->nbytes); in vd_ioctl()
3682 if (request->nbytes != ioctl[i].nbytes) { in vd_ioctl()
3833 size_t nbytes; in vd_get_capacity() local
3842 nbytes = request->nbytes; in vd_get_capacity()
3886 nbytes = request->nbytes; in vd_get_access()
[all …]
/illumos-gate/usr/src/cmd/bhyve/
H A Dsockstream.h32 ssize_t stream_read(int fd, void *buf, ssize_t nbytes);
33 ssize_t stream_write(int fd, const void *buf, ssize_t nbytes);
/illumos-gate/usr/src/lib/libdwarf/common/
H A Dpro_encode_nm.h35 int _dwarf_pro_encode_leb128_nm(Dwarf_Unsigned val, int *nbytes,
38 int _dwarf_pro_encode_signed_leb128_nm(Dwarf_Signed value, int *nbytes,
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/
H A Dfru_access.c1772 retval = pread(fd, buffer, nbytes, in fru_read_segment()
1775 if (retval != nbytes) { in fru_read_segment()
1802 if (nbytes > len) in fru_read_segment()
1803 nbytes = len; in fru_read_segment()
1813 return (nbytes); in fru_read_segment()
2133 size_t nbytes; in fru_get_num_packets() local
2137 seg_buf = alloca(nbytes); in fru_get_num_packets()
2248 return (nbytes); in fru_get_payload()
2339 if (retval != nbytes) { in fru_update_payload()
2502 retval = pwrite(fd, payload, nbytes, trailer_offset - nbytes); in fru_append_packet()
[all …]

12345678910>>...15