/illumos-gate/usr/src/uts/common/io/ppp/sppp/ |
H A D | s_common.c | 52 mp->b_wptr[0] = code; in putctl4() 53 ((uint16_t *)mp->b_wptr)[1] = val; in putctl4() 54 mp->b_wptr += 4; in putctl4() 75 mp->b_wptr[0] = code; in putctl8() 76 ((uint32_t *)mp->b_wptr)[1] = val; in putctl8() 77 mp->b_wptr += 8; in putctl8() 125 mp->b_wptr += sizeof (*plt); in create_lsmsg()
|
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | misc.c | 39 mlen = m->b_wptr - s; 72 mlen = m->b_wptr - s; 90 mlen = mp->b_datap->db_lim - mp->b_wptr; 94 BCOPY(bp, mp->b_wptr, mlen); 97 mp->b_wptr += mlen; 100 mp->b_datap->db_struiolim = mp->b_wptr; 110 BCOPY(bp, m->b_wptr, len); 112 m->b_wptr += len;
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | xdr_mblk.c | 199 while (!IS_P2ALIGNED(m->b_wptr, sizeof (int32_t)) || in xdrmblk_putint32() 214 ASSERT(m->b_rptr == m->b_wptr); in xdrmblk_putint32() 219 *(int32_t *)m->b_wptr = htonl(*int32p); in xdrmblk_putint32() 220 m->b_wptr += sizeof (int32_t); in xdrmblk_putint32() 223 ASSERT(m->b_wptr <= m->b_datap->db_lim); in xdrmblk_putint32() 343 m->b_wptr = m->b_rptr + tail_bytes; in xdrmblk_getmblk() 345 ASSERT(nextm->b_rptr != nextm->b_wptr); in xdrmblk_getmblk() 386 *m->b_wptr++ = *addr++; in xdrmblk_putbytes() 388 bcopy(addr, m->b_wptr, xdrs->x_handy); in xdrmblk_putbytes() 389 m->b_wptr += xdrs->x_handy; in xdrmblk_putbytes() [all …]
|
/illumos-gate/usr/src/uts/common/io/usb/scsa2usb/ |
H A D | usb_ms_bulkonly.c | 345 *mp->b_wptr++ = CBW_MSB(CBW_SIGNATURE); /* CBW Signature */; in scsa2usb_fill_in_cbw() 346 *mp->b_wptr++ = CBW_MID1(CBW_SIGNATURE); in scsa2usb_fill_in_cbw() 347 *mp->b_wptr++ = CBW_MID2(CBW_SIGNATURE); in scsa2usb_fill_in_cbw() 348 *mp->b_wptr++ = CBW_LSB(CBW_SIGNATURE); in scsa2usb_fill_in_cbw() 349 *mp->b_wptr++ = CBW_LSB(cmd->cmd_tag); /* CBW Tag */ in scsa2usb_fill_in_cbw() 350 *mp->b_wptr++ = CBW_MID2(cmd->cmd_tag); in scsa2usb_fill_in_cbw() 351 *mp->b_wptr++ = CBW_MID1(cmd->cmd_tag); in scsa2usb_fill_in_cbw() 352 *mp->b_wptr++ = CBW_MSB(cmd->cmd_tag); in scsa2usb_fill_in_cbw() 422 *mp->b_wptr++ = CBW_MSB(len); /* Transfer Length */ in scsa2usb_fill_in_cbw() 423 *mp->b_wptr++ = CBW_MID1(len); in scsa2usb_fill_in_cbw() [all …]
|
/illumos-gate/usr/src/uts/common/inet/ |
H A D | snmpcom.c | 99 if (mpdata->b_wptr + len >= mpdata->b_datap->db_lim) { in snmp_append_data() 105 bcopy(blob, (char *)mpdata->b_wptr, len); in snmp_append_data() 106 mpdata->b_wptr += len; in snmp_append_data() 125 if ((*last_mpp)->b_wptr + len >= (*last_mpp)->b_datap->db_lim) { in snmp_append_data2() 131 bcopy(blob, (char *)(*last_mpp)->b_wptr, len); in snmp_append_data2() 132 (*last_mpp)->b_wptr += len; in snmp_append_data2() 186 if ((mp->b_wptr - mp->b_rptr) < sizeof (struct T_optmgmt_req) || in snmpcom_req() 250 mpctl->b_wptr += TOAHDR_SIZE; in snmpcom_req() 288 mpctl->b_wptr = mpctl->b_rptr + TOAHDR_SIZE; in snmpcom_req()
|
H A D | mi.c | 56 (mp->b_cont->b_rptr != mp->b_cont->b_wptr)) 339 iocp->ioc_count = mp1->b_wptr - mp1->b_rptr; in mi_copyout() 366 cq->cq_size = mp1->b_wptr - mp1->b_rptr; in mi_copyout() 420 if (!q || (mp->b_wptr - mp->b_rptr) < sizeof (struct iocblk)) { in mi_copy_done() 676 if (mp->b_wptr >= mp->b_datap->db_lim) { in mi_mpprintf_putc() 682 *mp->b_wptr++ = (unsigned char)ch; in mi_mpprintf_putc() 882 msg_len = mp->b_wptr - mp->b_rptr; in mi_offset_param() 899 if (offset < mp->b_wptr - mp->b_rptr) in mi_offset_paramc() 901 offset -= mp->b_wptr - mp->b_rptr; in mi_offset_paramc() 1159 mp->b_wptr = mp->b_rptr + size; in mi_timer_alloc() [all …]
|
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | deflate.c | 324 rmax = mp->b_wptr; \ in z_compress() 341 rmax = mp->b_wptr; in z_compress() 387 wspace = m->b_datap->db_lim - m->b_wptr; in z_compress() 393 m->b_wptr = m->b_rptr; in z_compress() 397 wptr = m->b_wptr; in z_compress() 433 state->strm.avail_in = mp->b_wptr - rptr; in z_compress() 459 state->strm.avail_in = mp->b_wptr - mp->b_rptr; in z_compress() 465 m->b_wptr += wspace; in z_compress() 485 state->strm.next_out = m->b_wptr; in z_compress() 487 m->b_wptr; in z_compress() [all …]
|
H A D | bsd-comp.c | 587 m->b_wptr = wptr; \ in bsd_compress() 590 wptr = m->b_wptr; \ in bsd_compress() 618 rmax = mp->b_wptr; \ in bsd_compress() 638 rmax = mp->b_wptr; in bsd_compress() 691 olen -= m->b_datap->db_lim - m->b_wptr; in bsd_compress() 697 wptr = m->b_wptr; in bsd_compress() 873 m->b_wptr = wptr; in bsd_compress() 921 rmax = mp->b_wptr; in bsd_incomp() 950 slen = mp->b_wptr - rptr; in bsd_incomp() 1130 rmax = cmsg->b_wptr; in bsd_decompress() [all …]
|
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/ |
H A D | fake_stream.c | 321 mp->b_rptr = mp->b_wptr = dbp->db_base; in allocb() 502 cur_size = mp->b_wptr - mp->b_rptr; in reallocb() 515 mp->b_wptr = mp->b_rptr = mp->b_datap->db_base; in reallocb() 526 mp1->b_wptr = mp1->b_rptr + cur_size; in reallocb() 596 new_mp->b_wptr = mp->b_wptr; in dupb() 655 mp->b_rptr = mp->b_wptr = base; in gesballoc() 771 mp->b_rptr = mp->b_wptr = dbp->db_base; in bcache_allocb() 865 mp->b_rptr = mp->b_wptr = dbp->db_base; in allocb_wait() 914 mp->b_wptr += sizeof (struct iocblk); in mkiocb() 1006 ASSERT(bp->b_wptr >= bp->b_rptr); in copyb() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | telmod.c | 255 tmip->unbind_mp->b_wptr = tmip->unbind_mp->b_rptr + in telmodopen() 277 bp->b_wptr = bp->b_rptr + sizeof (union T_primitives); in telmodopen() 382 newmp->b_wptr = newmp->b_rptr + 1; in telmodrput() 440 mp->b_wptr = mp->b_rptr; in telmodrput() 533 newmp->b_wptr = newmp->b_rptr + 1; in telmodrsrv() 568 mp->b_wptr = mp->b_rptr; in telmodrsrv() 681 if (((mp->b_wptr - mp->b_rptr) == 1) && in telmodwput() 889 if (((mp->b_wptr - mp->b_rptr) == 1) && in telmodwsrv() 957 if (mp->b_rptr == mp->b_wptr) { in rcv_parse() 971 if (mp->b_wptr == (mp->b_rptr + 1)) { in rcv_parse() [all …]
|
H A D | tty_common.c | 100 *mp->b_wptr++ = CTRL('g'); in ttycommon_qfull() 278 *bp->b_wptr++ = *mp->b_cont->b_rptr; in ttycommon_ioctl() 320 cb = (struct termios *)datap->b_wptr; in ttycommon_ioctl() 327 datap->b_wptr += sizeof (struct termios); in ttycommon_ioctl() 344 cb = (struct termio *)datap->b_wptr; in ttycommon_ioctl() 351 datap->b_wptr += sizeof (struct termio); in ttycommon_ioctl() 370 *(int *)datap->b_wptr = 1; in ttycommon_ioctl() 372 *(int *)datap->b_wptr = 0; in ttycommon_ioctl() 373 datap->b_wptr += sizeof (int); in ttycommon_ioctl() 392 *(struct winsize *)datap->b_wptr = tc->t_size; in ttycommon_ioctl() [all …]
|
H A D | ldterm.c | 808 strop = (struct stroptions *)bp->b_wptr; in ldtermopen() 813 bp->b_wptr += sizeof (struct stroptions); in ldtermopen() 873 strop = (struct stroptions *)bp->b_wptr; in ldtermclose() 876 bp->b_wptr += sizeof (struct stroptions); in ldtermclose() 894 bp->b_cont->b_wptr += sizeof (int); in ldtermclose() 1007 if (mp->b_wptr - mp->b_rptr == 1) { in ldtermrput() 1015 mp->b_wptr = mp->b_rptr; in ldtermrput() 1027 *mp->b_wptr++ = (uchar_t)'\377'; in ldtermrput() 1028 *mp->b_wptr++ = '\0'; in ldtermrput() 1029 *mp->b_wptr++ = c; in ldtermrput() [all …]
|
H A D | ttcompat.c | 311 mp->b_wptr = mp->b_rptr + sizeof (struct copyreq); in ttcompatwput() 342 mp->b_wptr = mp->b_rptr + sizeof (struct iocblk); in ttcompatwput() 516 *(int *)datap->b_wptr = TIOCM_DTR; in ttcompat_do_ioctl() 517 datap->b_wptr += sizeof (int); in ttcompat_do_ioctl() 535 *(int *)datap->b_wptr = TIOCM_DTR; in ttcompat_do_ioctl() 536 datap->b_wptr += sizeof (int); in ttcompat_do_ioctl() 586 *(int *)datap->b_wptr = 0; /* stop */ in ttcompat_do_ioctl() 587 datap->b_wptr += sizeof (int); in ttcompat_do_ioctl() 601 *(int *)datap->b_wptr = 1; /* start */ in ttcompat_do_ioctl() 602 datap->b_wptr += sizeof (int); in ttcompat_do_ioctl() [all …]
|
/illumos-gate/usr/src/uts/common/io/ppp/spppasyn/ |
H A D | spppasyn.c | 690 mp->b_cont->b_wptr = mp->b_cont->b_rptr + len; in spppasyn_inner_ioctl() 829 *(uint32_t *)np->b_wptr = state->sa_flags & RCV_FLAGS; in spppasyn_wput() 832 np->b_wptr += msglen; in spppasyn_wput() 851 psp = (struct ppp_stats64 *)np->b_wptr; in spppasyn_wput() 856 np->b_wptr += msglen; in spppasyn_wput() 871 *(uint32_t *)np->b_wptr = PPPTYP_AHDLC; in spppasyn_wput() 874 np->b_wptr += msglen; in spppasyn_wput() 1038 tp = outmp->b_wptr; in ahdlc_encode() 1103 while (dp < (ep = mp->b_wptr)) { in ahdlc_encode() 1147 if (ep != mp->b_wptr && tpmax - tp < 5) { in ahdlc_encode() [all …]
|
/illumos-gate/usr/src/uts/common/ktli/ |
H A D | t_ksndudat.c | 105 bcopy(unitdata->udata.buf, dbp->b_wptr, unitdata->udata.len); in t_ksndudata() 124 dbp->b_wptr += msgsz; /* on behalf of the user */ in t_ksndudata() 154 udreq = (struct T_unitdata_req *)bp->b_wptr; in t_ksndudata() 158 bcopy(unitdata->addr.buf, bp->b_wptr + msgsz, in t_ksndudata() 167 bcopy(unitdata->opt.buf, bp->b_wptr + msgsz, unitdata->opt.len); in t_ksndudata() 174 bp->b_wptr += msgsz; in t_ksndudata()
|
/illumos-gate/usr/src/uts/common/io/kbtrans/ |
H A D | kbtrans_streams.c | 756 *(uchar_t *)datap->b_wptr = lower->kbtrans_led_state; in kbtrans_ioctl() 757 datap->b_wptr += sizeof (uchar_t); in kbtrans_ioctl() 770 *(int *)datap->b_wptr = in kbtrans_ioctl() 774 datap->b_wptr += sizeof (int); in kbtrans_ioctl() 787 *(int *)datap->b_wptr = upper->kbtrans_streams_translate_mode; in kbtrans_ioctl() 788 datap->b_wptr += sizeof (int); in kbtrans_ioctl() 881 *(int *)datap->b_wptr = upper->kbtrans_streams_translatable; in kbtrans_ioctl() 882 datap->b_wptr += sizeof (int); in kbtrans_ioctl() 904 *(int *)datap->b_wptr = lower->kbtrans_compat; in kbtrans_ioctl() 905 datap->b_wptr += sizeof (int); in kbtrans_ioctl() [all …]
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_notify.c | 87 mp->b_wptr = (uchar_t *)(sin4 + 1); in sctp_notify() 96 mp->b_wptr = (uchar_t *)(sin6 + 1); in sctp_notify() 108 rwnd += emp->b_wptr - emp->b_rptr; in sctp_notify() 155 mp->b_wptr += sacp->sac_length; in sctp_assoc_event() 192 mp->b_wptr = (uchar_t *)(sfp + 1); in sctp_sendfail() 234 if (nmp->b_rptr == nmp->b_wptr) { in sctp_sendfail_sent() 281 if (nmp->b_rptr == nmp->b_wptr) { in sctp_sendfail_event() 358 mp->b_wptr = (uchar_t *)(spc + 1); in sctp_intf_event() 424 mp->b_wptr = mp->b_rptr + len; in sctp_error_event() 448 mp->b_wptr = (uchar_t *)(sse + 1); in sctp_shutdown_event() [all …]
|
H A D | sctp_shutdown.c | 108 smp->b_wptr = smp->b_rptr + sizeof (*sch) + sizeof (*ctsn); in sctp_send_shutdown() 116 sch = (sctp_chunk_hdr_t *)sendmp->b_wptr; in sctp_send_shutdown() 117 sendmp->b_wptr += sizeof (*sch) + sizeof (*ctsn); in sctp_send_shutdown() 205 scch = (sctp_chunk_hdr_t *)scmp->b_wptr; in sctp_shutdown_complete() 210 scmp->b_wptr += sizeof (*scch); in sctp_shutdown_complete() 269 mp->b_wptr = (mp->b_rptr + ixas.ixa_pktlen); in sctp_ootb_shutdown_ack() 386 sach = (sctp_chunk_hdr_t *)samp->b_wptr; in sctp_send_shutdown_ack() 391 samp->b_wptr += sizeof (*sach); in sctp_send_shutdown_ack()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | ip_cksum.c | 49 #define mp_len(mp) ((mp)->b_wptr - (mp)->b_rptr) 106 mp->b_wptr != (uchar_t *)(mp->b_rptr + in ip_cksum() 119 ASSERT(mp->b_wptr == (mp->b_rptr + dp->db_cksumend)); in ip_cksum() 171 mlen = mp->b_wptr - (uchar_t *)w; in ip_cksum() 205 mp->b_wptr != (uchar_t *)(mp->b_rptr + in ip_cksum() 218 ASSERT(mp->b_wptr == (mp->b_rptr + dp->db_cksumend)); in ip_cksum() 273 mlen = mp->b_wptr - (uchar_t *)w; in ip_cksum() 391 crc32 = sctp_crc32(crc32, p, mp->b_wptr - p); in sctp_cksum() 461 endptr = mp->b_wptr; in ip_hdr_length_nexthdr_v6()
|
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | subr_mchain.c | 278 mblk->b_wptr += 4; in mb_init() 279 mblk->b_rptr = mblk->b_wptr; in mb_init() 355 bpos = m->b_wptr; in mb_reserve() 356 m->b_wptr += size; in mb_reserve() 383 *(m->b_wptr)++ = *p++; in mb_put_inline() 400 *(m->b_wptr)++ = *p++; \ 418 dst = (uintptr_t)mbp->mb_cur->b_wptr; in mb_put_padbyte() 531 dst = (caddr_t)m->b_wptr; in mb_put_mem() 551 m->b_wptr += cplen; in mb_put_mem() 588 bcopy(m->b_rptr, tail_mb->b_wptr, size); in mb_put_mbuf() [all …]
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_ndd.c | 74 if (mp->b_wptr + len >= mp->b_datap->db_lim) { in mac_add_name() 80 cp = (char *)mp->b_wptr; in mac_add_name() 82 mp->b_wptr += strnlen(cp, len); in mac_add_name() 83 mp->b_wptr++; /* skip past the terminating \0 */ in mac_add_name() 147 *tmp->b_wptr++ = '\0'; in mac_ndd_get_names() 225 cp = (char *)mp1->b_wptr; in mac_ndd_get_ioctl() 235 mp1->b_wptr = mp1->b_rptr; in mac_ndd_get_ioctl() 312 mp1->b_wptr = (uchar_t *)valp; in mac_ndd_get_ioctl() 353 if (valp >= (char *)mp1->b_wptr) in mac_ndd_set_ioctl()
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_ndd.c | 79 ((mblk_t *)pmp)->b_wptr += plen; \ 989 print_len = snprintf((char *)((mblk_t *)np)->b_wptr, buf_len, in nxge_param_get_txdma_info() 991 ((mblk_t *)np)->b_wptr += print_len; in nxge_param_get_txdma_info() 997 print_len = snprintf((char *)((mblk_t *)np)->b_wptr, in nxge_param_get_txdma_info() 999 ((mblk_t *)np)->b_wptr += print_len; in nxge_param_get_txdma_info() 1045 print_len = snprintf((char *)((mblk_t *)np)->b_wptr, buf_len, in nxge_param_get_rxdma_info() 1048 ((mblk_t *)np)->b_wptr += print_len; in nxge_param_get_rxdma_info() 1050 print_len = snprintf((char *)((mblk_t *)np)->b_wptr, buf_len, in nxge_param_get_rxdma_info() 1054 ((mblk_t *)np)->b_wptr += print_len; in nxge_param_get_rxdma_info() 1061 ((mblk_t *)np)->b_wptr, buf_len, in nxge_param_get_rxdma_info() [all …]
|
/illumos-gate/usr/src/uts/common/inet/tcp/ |
H A D | tcp_output.c | 141 if ((mp->b_wptr - rptr) >= sizeof (t_scalar_t)) { in tcp_wput() 289 ASSERT((uintptr_t)(mp->b_wptr - mp->b_rptr) <= in tcp_wput_data() 291 len = (int)(mp->b_wptr - mp->b_rptr); in tcp_wput_data() 314 dp->db_lim - mp1->b_wptr >= len) { in tcp_wput_data() 318 *mp1->b_wptr++ = *mp->b_rptr; in tcp_wput_data() 320 bcopy(mp->b_rptr, mp1->b_wptr, len); in tcp_wput_data() 321 mp1->b_wptr += len; in tcp_wput_data() 341 ASSERT((uintptr_t)(mp1->b_wptr - mp1->b_rptr) <= in tcp_wput_data() 343 tlen = (int)(mp1->b_wptr - mp1->b_rptr); in tcp_wput_data() 529 ASSERT((uintptr_t)(xmit_tail->b_wptr - in tcp_wput_data() [all …]
|
H A D | tcp_tpi.c | 223 ASSERT((uintptr_t)(mp->b_wptr - mp->b_rptr) <= (uintptr_t)INT_MAX); in tcp_tpi_bind() 224 if ((mp->b_wptr - mp->b_rptr) < sizeof (*tbr)) { in tcp_tpi_bind() 228 (uint_t)(mp->b_wptr - mp->b_rptr)); in tcp_tpi_bind() 255 mp->b_wptr = (uchar_t *)&sin[1]; in tcp_tpi_bind() 264 mp->b_wptr = (uchar_t *)&sin6[1]; in tcp_tpi_bind() 548 ASSERT((uintptr_t)(mp->b_wptr - mp->b_rptr) <= (uintptr_t)INT_MAX); in tcp_tpi_connect() 549 if ((mp->b_wptr - mp->b_rptr) < sizeof (*tcr)) { in tcp_tpi_connect() 622 nmp->b_wptr = (uchar_t *)&nsin[1]; in tcp_tpi_connect() 625 ntcr->OPT_offset = nmp->b_wptr - nmp->b_rptr; in tcp_tpi_connect() 629 nmp->b_wptr += tcr->OPT_length; in tcp_tpi_connect() [all …]
|
/illumos-gate/usr/src/uts/common/io/usb/hcd/xhci/ |
H A D | xhci_hub.c | 177 bcopy(&stand, mp->b_wptr, sizeof (stand)); in xhci_root_hub_get_device_status() 187 bcopy(&psm, mp->b_wptr, sizeof (psm)); in xhci_root_hub_get_device_status() 193 mp->b_wptr += len; in xhci_root_hub_get_device_status() 214 bcopy(&status, mp->b_wptr, sizeof (status)); in xhci_root_hub_get_status() 215 mp->b_wptr += sizeof (status); in xhci_root_hub_get_status() 239 bcopy(&xhcip->xhci_usba.xa_hub_descr, ucrp->ctrl_data->b_wptr, len); in xhci_root_hub_get_descriptor() 240 ucrp->ctrl_data->b_wptr += len; in xhci_root_hub_get_descriptor() 533 bcopy(&ps, mp->b_wptr, sizeof (uint16_t)); in xhci_root_hub_handle_port_get_status() 534 mp->b_wptr += sizeof (uint16_t); in xhci_root_hub_handle_port_get_status() 535 bcopy(&cs, mp->b_wptr, sizeof (uint16_t)); in xhci_root_hub_handle_port_get_status() [all …]
|