Home
last modified time | relevance | path

Searched refs:nbytes (Results 76 – 100 of 355) sorted by relevance

12345678910>>...15

/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dxti_wrappers.c149 _xti_rcv(int fd, void *buf, unsigned int nbytes, int *flags) in _xti_rcv() argument
151 return (_tx_rcv(fd, buf, nbytes, flags, TX_XTI_API)); in _xti_rcv()
205 _xti_snd(int fd, void *buf, unsigned int nbytes, int flags) in _xti_snd() argument
207 return (_tx_snd(fd, buf, nbytes, flags, TX_XTI_API)); in _xti_snd()
211 _xti_xns5_snd(int fd, void *buf, unsigned int nbytes, int flags) in _xti_xns5_snd() argument
213 return (_tx_snd(fd, buf, nbytes, flags, TX_XTI_XNS5_API)); in _xti_xns5_snd()
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_kdi.c135 kdi_prw(void *buf, size_t nbytes, physaddr_t addr, int (*rw)(caddr_t, size_t, in kdi_prw() argument
142 if ((rc = rw(buf, nbytes, addr, &sz)) != 0) in kdi_prw()
149 kmdb_kdi_pread(void *buf, size_t nbytes, physaddr_t addr) in kmdb_kdi_pread() argument
151 return (kdi_prw(buf, nbytes, addr, mdb.m_kdi->kdi_pread)); in kmdb_kdi_pread()
155 kmdb_kdi_pwrite(void *buf, size_t nbytes, physaddr_t addr) in kmdb_kdi_pwrite() argument
157 return (kdi_prw(buf, nbytes, addr, mdb.m_kdi->kdi_pwrite)); in kmdb_kdi_pwrite()
H A Dkmdb_promio.c57 pio_read(mdb_io_t *io, void *buf, size_t nbytes) in pio_read() argument
62 return (kmdb_prom_read(buf, nbytes, &pdp->pio_ti)); in pio_read()
64 return (IOP_READ(io->io_next, buf, nbytes)); in pio_read()
68 pio_write(mdb_io_t *io, const void *buf, size_t nbytes) in pio_write() argument
73 return (kmdb_prom_write(buf, nbytes, &pdp->pio_ti)); in pio_write()
75 return (IOP_WRITE(io->io_next, buf, nbytes)); in pio_write()
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/
H A Dbt_put.c79 u_int32_t nbytes; local
210 nbytes = NBLEAFDBT(key->size, data->size);
211 if (h->upper - h->lower < nbytes + sizeof(indx_t)) {
213 data, dflags, nbytes, idx)) != RET_SUCCESS)
223 h->linp[idx] = h->upper -= nbytes;
280 u_int32_t nbytes; local
294 nbytes = NBLEAFDBT(key->size, data->size);
295 if (h->upper - h->lower < nbytes + sizeof(indx_t))
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_logio.c44 logio_read(mdb_io_t *io, void *buf, size_t nbytes) in logio_read() argument
50 rbytes = IOP_READ(io->io_next, buf, nbytes); in logio_read()
64 logio_write(mdb_io_t *io, const void *buf, size_t nbytes) in logio_write() argument
70 wbytes = IOP_WRITE(io->io_next, buf, nbytes); in logio_write()
H A Dmdb_string.c162 strntoul(const char *s, size_t nbytes, int base) in strntoul() argument
167 for (n = 0; nbytes != 0 && (c = *s) != '\0'; s++, nbytes--) in strntoul()
554 strnpbrk(const char *s1, const char *s2, size_t nbytes) in strnpbrk() argument
558 if (nbytes == 0) in strnpbrk()
568 } while (--nbytes != 0 && *s1++ != '\0'); in strnpbrk()
585 strabbr(char *s, size_t nbytes) in strabbr() argument
589 if (nbytes > sizeof (suffix) && strlen(s) >= nbytes - 1) in strabbr()
590 (void) strcpy(&s[nbytes - sizeof (suffix)], suffix); in strabbr()
H A Dmdb_gelf.c138 ssize_t nbytes; in mdb_gelf_sect_load() local
156 if (nbytes < 0) { in mdb_gelf_sect_load()
236 size_t nbytes; in gelf_shdrs_init() local
252 if (IOP_READ(gf->gf_io, shdrs, nbytes) != nbytes) { in gelf_shdrs_init()
358 size_t nbytes; in gelf_phdrs_init() local
374 if (IOP_READ(gf->gf_io, phdrs, nbytes) != nbytes) { in gelf_phdrs_init()
562 if (IOP_READ(gf->gf_io, dyns, nbytes) != nbytes) { in gelf_dyns_init()
721 ssize_t nbytes; in mdb_gelf_check() local
726 if (nbytes == -1) { in mdb_gelf_check()
1628 if (nbytes > 0) { in mdb_gelf_symtab_lookup_by_addr()
[all …]
H A Dmdb_kvm.c716 nbytes, as)) == -1) in kt_aread()
730 nbytes, as)) == -1) in kt_awrite()
743 nbytes)) == -1) in kt_vread()
756 nbytes)) == -1) in kt_vwrite()
781 nbytes)) == -1) in kt_pread()
794 nbytes)) == -1) in kt_pwrite()
976 } else if (nbytes > 0) { in kt_lookup_by_addr()
978 buf[nbytes - 1] = '\0'; in kt_lookup_by_addr()
1322 if (buf == NULL && nbytes == 0) in kt_xd_dumphdr()
1328 nbytes = MIN(nbytes, sizeof (dumphdr_t)); in kt_xd_dumphdr()
[all …]
H A Dmdb_proc.c2548 return (nbytes); in pt_fread()
2561 return (nbytes); in pt_fwrite()
2898 nbytes = 0; in pt_lookup_by_addr()
2901 nbytes -= n; in pt_lookup_by_addr()
5160 nbytes = MIN(nbytes, sizeof (auxv_t) * auxn); in pt_xd_auxv()
5187 nbytes = MIN(nbytes, cbytes); in pt_xd_cred()
5204 nbytes = MIN(nbytes, sizeof (GElf_Ehdr)); in pt_xd_ehdr()
5234 nbytes = MIN(nbytes, sizeof (lwpstatus_t) * nlwp); in pt_xd_lwpstatus()
5267 nbytes = MIN(nbytes, sizeof (psinfo_t)); in pt_xd_psinfo()
5283 nbytes = MIN(nbytes, sizeof (pstatus_t)); in pt_xd_pstatus()
[all …]
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsgcn.c948 int rv, size, nbytes; in sgcn_rw() local
984 nbytes = circular_buffer_read( in sgcn_rw()
990 nbytes = circular_buffer_write( in sgcn_rw()
1000 if (nbytes < 0) in sgcn_rw()
1003 if (nbytes == 0) in sgcn_rw()
1009 + nbytes) in sgcn_rw()
1018 + nbytes) in sgcn_rw()
1030 return (nbytes); in sgcn_rw()
1115 nbytes = min(nbytes, len); in circular_buffer_read()
1128 if (nbytes-nbytes_at_end) { in circular_buffer_read()
[all …]
/illumos-gate/usr/src/test/zfs-tests/cmd/randwritecomp/
H A Drandwritecomp.c54 rwc_pwrite(int fd, const void *buf, size_t nbytes, off_t offset) in rwc_pwrite() argument
56 size_t nleft = nbytes; in rwc_pwrite()
59 nwrite = pwrite(fd, buf, nbytes, offset); in rwc_pwrite()
69 (nbytes - nleft), nbytes); in rwc_pwrite()
/illumos-gate/usr/src/cmd/mdb/intel/mdb/
H A Dmdb_bhyve.c1030 nbytes, addr); in bhyve_aread()
1035 nbytes, addr); in bhyve_aread()
1040 nbytes, addr); in bhyve_aread()
1044 cnt = vmm_pread(bd->bd_vmm, buf, nbytes, addr); in bhyve_aread()
1069 nbytes, addr); in bhyve_awrite()
1074 nbytes, addr); in bhyve_awrite()
1079 nbytes, addr); in bhyve_awrite()
1083 cnt = vmm_pwrite(bd->bd_vmm, buf, nbytes, addr); in bhyve_awrite()
1164 return (bhyve_aread(tgt, MDB_TGT_AS_IO, buf, nbytes, addr)); in bhyve_ioread()
1236 size_t nbytes, GElf_Sym *symp, mdb_syminfo_t *sip) in bhyve_lookup_by_addr() argument
[all …]
/illumos-gate/usr/src/uts/sun4/os/
H A Dmachdep.c601 kdi_pread(caddr_t buf, size_t nbytes, uint64_t addr, size_t *ncopiedp) in kdi_pread() argument
614 for (i = slop; i < 4 && nbytes > 0; i++, nbytes--, nread++) in kdi_pread()
619 while (nbytes > 0) { in kdi_pread()
621 for (i = 0; i < 4 && nbytes > 0; i++, nbytes--, nread++, addr++) in kdi_pread()
632 kdi_pwrite(caddr_t buf, size_t nbytes, uint64_t addr, size_t *ncopiedp) in kdi_pwrite() argument
644 for (i = slop; i < 4 && nbytes > 0; i++, nbytes--, nwritten++) in kdi_pwrite()
650 while (nbytes > 3) { in kdi_pwrite()
651 for (word = 0, i = 0; i < 4; i++, nbytes--, nwritten++) in kdi_pwrite()
658 if (nbytes > 0) { in kdi_pwrite()
660 for (i = 0; nbytes > 0; i++, nbytes--, nwritten++) in kdi_pwrite()
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/speculation/
H A Derr.D_ACT_SPEC.SpeculateWithCopyOut.d41 size_t nbytes; variable
46 nbytes = 10;
55 copyout(buf, addr, nbytes);
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_tunables.c78 size_t nbytes = 0, tbytes = 0; in tcp_listener_conf_get() local
92 nbytes = snprintf(pval, size, "%d:%d", tl->tl_port, in tcp_listener_conf_get()
95 nbytes = snprintf(pval, size, ",%d:%d", tl->tl_port, in tcp_listener_conf_get()
97 size -= nbytes; in tcp_listener_conf_get()
98 pval += nbytes; in tcp_listener_conf_get()
99 tbytes += nbytes; in tcp_listener_conf_get()
290 size_t nbytes; in tcp_get_cc_algorithm() local
296 nbytes = snprintf(pval, psize, "%u", MOD_PROP_PERM_RW); in tcp_get_cc_algorithm()
298 nbytes = snprintf(pval, psize, "%s", CC_DEFAULT_ALGO_NAME); in tcp_get_cc_algorithm()
300 nbytes = snprintf(pval, psize, "%s", in tcp_get_cc_algorithm()
[all …]
/illumos-gate/usr/src/cmd/bhyve/test/tests/mevent/
H A Dread_pause.c57 ssize_t nbytes; in munch() local
73 if ((nbytes = read(fd, buf, sizeof (buf))) < 0) { in munch()
76 VERBOSE(("read %ld bytes '%s'", nbytes, buf)); in munch()
78 ASSERT_INT64_EQ(("wanted a byte of cookie"), nbytes, expected); in munch()
/illumos-gate/usr/src/common/fs/
H A Ddecompress.c73 unsigned int nbytes; in cf_alloc() local
77 nbytes = roundup(items * size, sizeof (long)); in cf_alloc()
78 if (nbytes > (DECOMP_BUFSIZE - filep->fi_dcscrused)) { in cf_alloc()
79 ptr = bkmem_alloc(nbytes); in cf_alloc()
82 filep->fi_dcscrused += nbytes; in cf_alloc()
84 bzero(ptr, nbytes); in cf_alloc()
/illumos-gate/usr/src/uts/common/io/bnxe/
H A Dbnxe_illumos.c231 size_t nbytes, off_t offset, size_t *nread) in bnxe_transceiver_read() argument
239 if (id != 0 || bp == NULL || nbytes == 0 || nread == NULL || in bnxe_transceiver_read()
246 if (nbytes > 256 || offset >= 256 || (offset + nbytes > 256)) { in bnxe_transceiver_read()
267 (uint16_t)offset, (uint16_t)nbytes, bp); in bnxe_transceiver_read()
274 *nread = nbytes; in bnxe_transceiver_read()
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_nicmon.c188 int nbytes; in smbd_nicmon_needscan() local
192 nbytes = read(sock, msg, sizeof (msg)); in smbd_nicmon_needscan()
193 if (nbytes <= 0) in smbd_nicmon_needscan()
200 if (nbytes < rtm->rtm_msglen) { in smbd_nicmon_needscan()
204 nbytes, rtm->rtm_msglen); in smbd_nicmon_needscan()
/illumos-gate/usr/src/cmd/mdb/common/modules/logindmux/
H A Dlogindmux.c35 logdmux_uqinfo(const queue_t *q, char *buf, size_t nbytes) in logdmux_uqinfo() argument
54 (void) mdb_snprintf(buf, nbytes, "peer rq : %p\nlower wq : %p", in logdmux_uqinfo()
62 logdmux_lqinfo(const queue_t *q, char *buf, size_t nbytes) in logdmux_lqinfo() argument
67 (void) mdb_snprintf(buf, nbytes, "peer wq : %p\nupper rq : %p", in logdmux_lqinfo()
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_prop_decode.c197 int nbytes; in di_prop_fm_decode_strings() local
202 nbytes = 0; in di_prop_fm_decode_strings()
213 nbytes += size; in di_prop_fm_decode_strings()
231 if ((strs = malloc(nbytes)) == NULL) { in di_prop_fm_decode_strings()
272 int nbytes; in di_prop_fm_decode_bytes() local
284 nbytes = DDI_PROP_BYTES(ph, DDI_PROP_CMD_GET_DSIZE, in di_prop_fm_decode_bytes()
286 if (nbytes < DDI_PROP_RESULT_OK) { in di_prop_fm_decode_bytes()
287 switch (nbytes) { in di_prop_fm_decode_bytes()
299 if ((tmp = malloc(nbytes)) == NULL) { in di_prop_fm_decode_bytes()
306 i = DDI_PROP_BYTES(ph, DDI_PROP_CMD_DECODE, tmp, nbytes); in di_prop_fm_decode_bytes()
[all …]
/illumos-gate/usr/src/lib/libgss/
H A Doid_ops.c333 OM_uint32 nbytes; local
362 nbytes = 0;
383 nbytes++;
389 nbytes++;
406 if (((*oid)->elements = (void *) malloc(nbytes))) {
407 (*oid)->length = nbytes;
426 nbytes = 0;
430 nbytes++;
434 op += nbytes;
/illumos-gate/usr/src/uts/common/os/
H A Dgroup.c382 int nbytes = 0; in group2intlist() local
409 nbytes = snprintf(ptr, len, "%d-%d", in group2intlist()
412 nbytes = snprintf(ptr, len, "%d,%d", in group2intlist()
415 nbytes = snprintf(ptr, len, "%d", start); in group2intlist()
417 if (nbytes <= 0) { in group2intlist()
425 ptr += nbytes; in group2intlist()
426 len -= nbytes; in group2intlist()
/illumos-gate/usr/src/uts/common/io/rge/
H A Drge_log.c188 uint32_t nbytes; in minidump() local
192 for (len = MIN(len, rgep->rxbuf_size); len != 0; len -= nbytes) { in minidump()
193 nbytes = MIN(len, sizeof (buf)); in minidump()
195 bcopy(dp, buf, nbytes); in minidump()
198 dp = (caddr_t)dp + nbytes; in minidump()
/illumos-gate/usr/src/uts/common/io/bge/
H A Dbge_log.c183 uint32_t nbytes; in minidump() local
187 for (len = MIN(len, BGE_STD_BUFF_SIZE); len != 0; len -= nbytes) { in minidump()
188 nbytes = MIN(len, sizeof (buf)); in minidump()
190 bcopy(dp, buf, nbytes); in minidump()
193 dp = (caddr_t)dp + nbytes; in minidump()

12345678910>>...15