/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lib/fruaccess/ |
H A D | fru_access.h | 94 ssize_t fru_read_segment(segment_hdl_t segment, void *buffer, size_t nbytes, 96 int fru_write_segment(segment_hdl_t segment, const void *data, size_t nbytes, 102 size_t nbytes, door_cred_t *cred); 103 int fru_update_payload(packet_hdl_t packet, const void *data, size_t nbytes, 106 const void *payload, size_t nbytes, segment_hdl_t *newsegment,
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_rawfile.c | 112 rf_read(mdb_io_t *io, void *buf, size_t nbytes, uint64_t addr) argument 122 if ((rbytes = IOP_READ(io, buf, nbytes)) == 0) 129 rf_write(mdb_io_t *io, const void *buf, size_t nbytes, uint64_t addr) argument 137 return (IOP_WRITE(io, buf, nbytes)); 175 rf_vread(mdb_tgt_t *t, void *buf, size_t nbytes, uintptr_t addr) argument 178 return (rf_read(RF_CORE(t->t_data), buf, nbytes, addr)); 180 return (rf_read(RF_OBJECT(t->t_data), buf, nbytes, addr)); 184 rf_vwrite(mdb_tgt_t *t, const void *buf, size_t nbytes, uintptr_t addr) argument 187 return (rf_write(RF_CORE(t->t_data), buf, nbytes, addr)); 189 return (rf_write(RF_OBJECT(t->t_data), buf, nbytes, add 193 rf_pread(mdb_tgt_t *t, void *buf, size_t nbytes, physaddr_t addr) argument 202 rf_pwrite(mdb_tgt_t *t, const void *buf, size_t nbytes, physaddr_t addr) argument 211 rf_fread(mdb_tgt_t *t, void *buf, size_t nbytes, uintptr_t addr) argument 217 rf_fwrite(mdb_tgt_t *t, const void *buf, size_t nbytes, uintptr_t addr) argument [all...] |
H A D | mdb_pipeio.c | 77 pio_read(mdb_io_t *io, void *buf, size_t nbytes) argument 82 if (nbytes == 0) 85 for (nleft = nbytes; nleft == nbytes; nleft -= n) { 132 if (nleft == nbytes) { 139 return (nbytes - nleft); 143 pio_write(mdb_io_t *io, const void *buf, size_t nbytes) argument 151 for (nleft = nbytes; nleft != 0; nleft -= n) { 193 if (nleft == nbytes && nbytes ! [all...] |
H A D | mdb_modapi.c | 58 mdb_vread(void *buf, size_t nbytes, uintptr_t addr) argument 60 ssize_t rbytes = mdb_tgt_vread(mdb.m_target, buf, nbytes, addr); 62 if (rbytes > 0 && rbytes < nbytes) 63 return (set_errbytes(rbytes, nbytes)); 69 mdb_vwrite(const void *buf, size_t nbytes, uintptr_t addr) argument 71 return (mdb_tgt_vwrite(mdb.m_target, buf, nbytes, addr)); 75 mdb_aread(void *buf, size_t nbytes, uintptr_t addr, void *as) argument 77 ssize_t rbytes = mdb_tgt_aread(mdb.m_target, as, buf, nbytes, addr); 79 if (rbytes > 0 && rbytes < nbytes) 80 return (set_errbytes(rbytes, nbytes)); 86 mdb_awrite(const void *buf, size_t nbytes, uintptr_t addr, void *as) argument 92 mdb_fread(void *buf, size_t nbytes, uintptr_t addr) argument 103 mdb_fwrite(const void *buf, size_t nbytes, uintptr_t addr) argument 109 mdb_pread(void *buf, size_t nbytes, physaddr_t addr) argument 120 mdb_pwrite(const void *buf, size_t nbytes, physaddr_t addr) argument 126 mdb_readstr(char *buf, size_t nbytes, uintptr_t addr) argument 139 mdb_readsym(void *buf, size_t nbytes, const char *name) argument 151 mdb_writesym(const void *buf, size_t nbytes, const char *name) argument 202 mdb_lookup_by_addr(uintptr_t addr, uint_t flags, char *buf, size_t nbytes, GElf_Sym *sym) argument 249 mdb_snprintf(char *buf, size_t nbytes, const char *format, ...) argument 785 size_t nbytes = sizeof (uintptr_t) * p->pipe_len; local 796 mdb_get_xdata(const char *name, void *buf, size_t nbytes) argument [all...] |
H A D | mdb_lex.l | 248 size_t nbytes; 260 nbytes = stresc2chr(s); /* Convert escapes */ 263 if (nbytes > sizeof (uintmax_t)) { 269 p = ((char*)&yylval.l_immediate) + nbytes - 1; 271 for (q = s; nbytes != 0; nbytes--) 275 sizeof (uintmax_t) - nbytes, nbytes);
|
/illumos-gate/usr/src/tools/ctf/dwarf/common/ |
H A D | pro_frame.c | 304 int nbytes; local 323 res = _dwarf_pro_encode_leb128_nm(offset, &nbytes, 329 ptr = (char *) _dwarf_p_get_alloc(dbg, nbytes); 334 memcpy(ptr, buff1, nbytes); 337 curinst->dfp_nbytes = nbytes; 373 int nbytes, nbytes1, nbytes2; local 389 nbytes = 0; 415 nbytes = 1; 427 nbytes = 2; 439 nbytes [all...] |
/illumos-gate/usr/src/lib/libnsl/dial/ |
H A D | interface.c | 155 tread(int fd, char *buf, unsigned nbytes) argument 159 return ((ssize_t)t_rcv(fd, buf, nbytes, &rcvflags)); 167 twrite(int fd, char *buf, unsigned nbytes) argument 188 if (info.tsdu <= 0 || nbytes <= info.tsdu) 189 return ((ssize_t)t_snd(fd, buf, nbytes, NULL)); 193 while (nbytes >= info.tsdu) { 197 nbytes -= info.tsdu; 199 if (nbytes != 0) { 200 if ((ret = t_snd(fd, &buf[i], nbytes, NULL)) != nbytes) [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw8/fruaccess/ |
H A D | libfruaccess.c | 67 size_t nbytes, door_cred_t *cred); 69 size_t nbytes, segment_hdl_t *newsegment, 75 size_t nbytes, packet_hdl_t *newpacket, door_cred_t *cred); 77 const void *payload, size_t nbytes, 283 fru_read_segment(segment_hdl_t segment, void *buffer, size_t nbytes, argument 293 readsegment.fru_cnt = nbytes; 303 fru_write_segment(segment_hdl_t segment, const void *buffer, size_t nbytes, argument 313 writesegment.fru_cnt = nbytes; 363 fru_get_payload(packet_hdl_t packet, void *buffer, size_t nbytes, argument 373 payload.fru_cnt = nbytes; 382 fru_update_payload(packet_hdl_t packet, const void *data, size_t nbytes, packet_hdl_t *newpacket, door_cred_t *cred) argument 409 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/cmd/lvm/metassist/layout/ |
H A D | layout_concat.c | 57 uint64_t nbytes, 67 * FUNCTION: layout_concat(devconfig_t *request, uint64_t nbytes, 71 * nbytes - the desired capacity of the concat 80 * Attempts to construct a concat of size nbytes. 115 uint64_t nbytes, 146 print_layout_volume_msg(devconfig_type_to_str(TYPE_CONCAT), nbytes); local 189 request, selhbas, nbytes, &concat); 207 request, nbytes, disks, 255 request, nbytes, disks, 302 uint64_t nbytes, 113 layout_concat( devconfig_t *request, uint64_t nbytes, dlist_t **results) argument 299 compose_concat_within_hba( devconfig_t *request, dlist_t *hbas, uint64_t nbytes, devconfig_t **concat) argument 366 populate_concat( devconfig_t *request, uint64_t nbytes, dlist_t *disks, dlist_t *othervols, devconfig_t **concat) argument 392 print_populate_volume_msg(devconfig_type_to_str(TYPE_CONCAT), nbytes); local [all...] |
/illumos-gate/usr/src/cmd/mdb/intel/kmdb/ |
H A D | kvm_isadep.c | 207 kmt_io_check(uint64_t nbytes, uintptr_t addr, int dowarn) argument 215 if (nbytes != 1 && nbytes != 2 && nbytes != 4) { 221 if ((addr & (nbytes - 1)) != 0) { 224 "aligned\n", (u_longlong_t)nbytes, 225 (u_longlong_t)nbytes); 374 kmt_write(mdb_tgt_t *t, const void *buf, size_t nbytes, uintptr_t addr) argument 377 (nbytes = kmdb_kdi_range_is_nontoxic(addr, nbytes, 395 kmt_iorw(mdb_tgt_t *t, void *buf, size_t nbytes, uint64_t addr, void (*iorw)(void *, size_t, uintptr_t)) argument 417 kmt_ioread(mdb_tgt_t *t, void *buf, size_t nbytes, uintptr_t addr) argument 424 kmt_iowrite(mdb_tgt_t *t, const void *buf, size_t nbytes, uintptr_t addr) argument [all...] |
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pcore.c | 385 note_pstatus(struct ps_prochandle *P, size_t nbytes) argument 393 if (nbytes < sizeof (pstatus32_t) || 401 if (nbytes < sizeof (pstatus_t) || 416 note_lwpstatus(struct ps_prochandle *P, size_t nbytes) argument 427 if (nbytes < sizeof (lwpstatus32_t) || 434 if (nbytes < sizeof (lwpstatus_t) || 497 note_linux_psinfo(struct ps_prochandle *P, size_t nbytes) argument 504 if (nbytes < sizeof (p32) || 510 if (nbytes < sizeof (p64) || 614 note_linux_prstatus(struct ps_prochandle *P, size_t nbytes) argument 662 note_psinfo(struct ps_prochandle *P, size_t nbytes) argument 693 note_lwpsinfo(struct ps_prochandle *P, size_t nbytes) argument 729 note_fdinfo(struct ps_prochandle *P, size_t nbytes) argument 749 note_platform(struct ps_prochandle *P, size_t nbytes) argument 771 note_secflags(struct ps_prochandle *P, size_t nbytes) argument 799 note_utsname(struct ps_prochandle *P, size_t nbytes) argument 830 note_content(struct ps_prochandle *P, size_t nbytes) argument 849 note_cred(struct ps_prochandle *P, size_t nbytes) argument 889 note_ldt(struct ps_prochandle *P, size_t nbytes) argument 917 note_priv(struct ps_prochandle *P, size_t nbytes) argument 940 note_priv_info(struct ps_prochandle *P, size_t nbytes) argument 966 note_zonename(struct ps_prochandle *P, size_t nbytes) argument 990 note_auxv(struct ps_prochandle *P, size_t nbytes) argument 1053 note_xreg(struct ps_prochandle *P, size_t nbytes) argument 1077 note_gwindows(struct ps_prochandle *P, size_t nbytes) argument 1115 note_asrs(struct ps_prochandle *P, size_t nbytes) argument 1140 note_spymaster(struct ps_prochandle *P, size_t nbytes) argument 1172 note_notsup(struct ps_prochandle *P, size_t nbytes) argument 2122 size_t nbytes; local 2269 size_t nbytes; local [all...] |
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_extvnops.c | 82 int nbytes; /* Number bytes this IO */ local 136 nbytes = MIN((pplen - curlen), 138 ASSERT(nbytes > 0); 150 fdb_add_hole(fdbp, offset1 - offset, nbytes); 152 offset1 += nbytes; 153 curlen += nbytes; 248 int nbytes; /* Number bytes in this IO */ local 308 nbytes = (int)MIN(fs->fs_bsize - offsetn, io_len - done_len); 311 uoff, nbytes)); 313 if (uoff + nbytes > i [all...] |
H A D | ufs_directio.c | 131 size_t nbytes; member in struct:directio_buf 264 directio_start(struct ufsvfs *ufsvfsp, struct inode *ip, size_t nbytes, argument 286 dbp->nbytes = nbytes; 290 bp->b_bcount = nbytes; 304 ufs_directio_kstats.nread.value.ui64 += nbytes; 308 ufs_directio_kstats.nwritten.value.ui64 += nbytes; 354 size_t nbytes; local 438 nbytes = uio->uio_iovcnt; 439 while (nbytes 787 directio_hole(struct uio *uio, size_t nbytes) argument 821 size_t nbytes; local [all...] |
/illumos-gate/usr/src/cmd/spell/ |
H A D | malloc.c | 81 malloc(nbytes) 82 unsigned nbytes; 89 nw = (nbytes+WORD+WORD-1)/WORD + 1; /*need one more than asked for*/ 156 /* ialloc(q, nbytes) inserts a block that did not come 164 ialloc(qq, nbytes) 166 unsigned nbytes; 172 r = q + (nbytes/WORD) - 1; 195 /* realloc(p, nbytes) reallocates a block obtained from malloc() 197 * to have new size nbytes, and old content 202 realloc(pp, nbytes) [all...] |
/illumos-gate/usr/src/cmd/bnu/ |
H A D | interface.c | 265 tread(fd, buf, nbytes) 268 unsigned nbytes; 272 return ((ssize_t)t_rcv(fd, buf, nbytes, &rcvflags)); 280 twrite(fd, buf, nbytes) 283 unsigned nbytes; 304 if (info.tsdu <= 0 || nbytes <= info.tsdu) 305 return (t_snd(fd, buf, nbytes, NULL)); 310 while (nbytes >= info.tsdu) { 314 nbytes -= info.tsdu; 316 if (nbytes ! [all...] |
/illumos-gate/usr/src/lib/smbsrv/libmlrpc/common/ |
H A D | ndr_svc.c | 445 size_t nbytes; local 452 if ((nbytes = iov->iov_len) == 0) { 458 if (nbytes > buflen) 459 nbytes = buflen; 462 bcopy(buf, iov->iov_base, nbytes); 464 bcopy(iov->iov_base, buf, nbytes); 466 iov->iov_base += nbytes; 467 iov->iov_len -= nbytes; 468 uio->uio_resid -= nbytes; 469 uio->uio_offset += nbytes; [all...] |
/illumos-gate/usr/src/lib/libnsl/nsl/ |
H A D | t_snd.c | 53 _tx_snd(int fd, char *buf, unsigned nbytes, int flags, int api_semantics) argument 106 (nbytes > (uint32_t)tsdu_limit)) { 138 if (nbytes == 0 && !(tiptr->ti_prov_flag & (SENDZERO|OLD_SENDZERO))) { 164 bytes_remaining = nbytes; 211 if (nbytes == bytes_remaining) { 239 return (nbytes - bytes_remaining);
|
H A D | xti_wrappers.c | 152 _xti_rcv(int fd, void *buf, unsigned int nbytes, int *flags) argument 154 return (_tx_rcv(fd, buf, nbytes, flags, TX_XTI_API)); 208 _xti_snd(int fd, void *buf, unsigned int nbytes, int flags) argument 210 return (_tx_snd(fd, buf, nbytes, flags, TX_XTI_API)); 214 _xti_xns5_snd(int fd, void *buf, unsigned int nbytes, int flags) argument 216 return (_tx_snd(fd, buf, nbytes, flags, TX_XTI_XNS5_API));
|
H A D | tli_wrappers.c | 136 t_rcv(int fd, char *buf, unsigned int nbytes, int *flags) argument 138 return (_tx_rcv(fd, buf, nbytes, flags, TX_TLI_API)); 172 t_snd(int fd, char *buf, unsigned int nbytes, int flags) argument 174 return (_tx_snd(fd, buf, nbytes, flags, TX_TLI_API));
|
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_kdi.c | 137 kdi_prw(void *buf, size_t nbytes, physaddr_t addr, int (*rw)(caddr_t, size_t, argument 144 if ((rc = rw(buf, nbytes, addr, &sz)) != 0) 151 kmdb_kdi_pread(void *buf, size_t nbytes, physaddr_t addr) argument 153 return (kdi_prw(buf, nbytes, addr, mdb.m_kdi->kdi_pread)); 157 kmdb_kdi_pwrite(void *buf, size_t nbytes, physaddr_t addr) argument 159 return (kdi_prw(buf, nbytes, addr, mdb.m_kdi->kdi_pwrite));
|
H A D | kmdb_promio.c | 57 pio_read(mdb_io_t *io, void *buf, size_t nbytes) argument 62 return (kmdb_prom_read(buf, nbytes, &pdp->pio_ti)); 64 return (IOP_READ(io->io_next, buf, nbytes)); 68 pio_write(mdb_io_t *io, const void *buf, size_t nbytes) argument 73 return (kmdb_prom_write(buf, nbytes, &pdp->pio_ti)); 75 return (IOP_WRITE(io->io_next, buf, nbytes));
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | bio.c | 51 size_t nbytes; local 70 nbytes = sizeof (struct hbuf) * v.v_hbuf; 71 hbufs = mdb_alloc(nbytes, UM_SLEEP); 73 if (mdb_vread(hbufs, nbytes, hbuf_addr) != nbytes) { 75 mdb_free(hbufs, nbytes);
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | vnet_common.h | 107 uint32_t nbytes; /* data length */ member in struct:vnet_public_desc 120 uint32_t nbytes; member in struct:vnet_ibnd_desc 131 uint32_t nbytes; /* Num bytes in data buffer */ member in struct:vnet_rxdring_data_desc
|
/illumos-gate/usr/src/cmd/mdb/sparc/kmdb/ |
H A D | kvm_isadep.c | 235 kmt_write_page(mdb_tgt_t *t, const void *buf, size_t nbytes, uintptr_t addr) argument 245 (nbytes = kmdb_kdi_range_is_nontoxic(addr, nbytes, 1)) == 0) 259 return (kmt_pwrite(t, buf, nbytes, pa)); 263 mdb_dprintf(MDB_DBG_KMOD, "copying %lu bytes from %p to %p\n", nbytes, 267 (void) kmt_writer((void *)buf, nbytes, addr); 270 return (nbytes); 275 kmt_write(mdb_tgt_t *t, const void *buf, size_t nbytes, uintptr_t addr) argument 282 if (nbytes == 0) 291 ntowrite = MIN(mdb.m_pagesize - n, nbytes); 319 kmt_ioread(mdb_tgt_t *t, void *buf, size_t nbytes, uintptr_t addr) argument 326 kmt_iowrite(mdb_tgt_t *t, const void *buf, size_t nbytes, uintptr_t addr) argument [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/ptm/ |
H A D | ptm.c | 77 ptms_pr_qinfo(char *buf, size_t nbytes, struct pt_ttys *pt, char *peername, argument 80 (void) mdb_snprintf(buf, nbytes, 178 ptms_qinfo(const queue_t *q, char *buf, size_t nbytes, int ismaster) argument 195 ptms_pr_qinfo(buf, nbytes, &pt, "slave", pt.pts_rdq, c); 197 ptms_pr_qinfo(buf, nbytes, &pt, "master", pt.ptm_rdq, c); 201 ptm_qinfo(const queue_t *q, char *buf, size_t nbytes) argument 203 ptms_qinfo(q, buf, nbytes, 1); 207 pts_qinfo(const queue_t *q, char *buf, size_t nbytes) argument 209 ptms_qinfo(q, buf, nbytes, 0);
|