/titanic_41/usr/src/uts/common/rpc/ |
H A D | xdr_mblk.c | 91 xdrs->x_handy = (int)(m->b_wptr - m->b_rptr); in xdrmblk_init() 127 xdrs->x_handy = (int)(m->b_wptr - m->b_rptr); in xdrmblk_getint32() 142 xdrs->x_handy = (int)(m->b_wptr - m->b_rptr); in xdrmblk_getint32() 169 ASSERT(m->b_rptr == m->b_wptr); in xdrmblk_putint32() 174 *(int32_t *)m->b_wptr = htonl(*int32p); in xdrmblk_putint32() 175 m->b_wptr += sizeof (int32_t); in xdrmblk_putint32() 176 ASSERT(m->b_wptr <= m->b_datap->db_lim); in xdrmblk_putint32() 221 xdrs->x_handy = (int)(m->b_wptr - m->b_rptr); in xdrmblk_getbytes() 283 m->b_wptr = m->b_rptr + tail_bytes; in xdrmblk_getmblk() 285 ASSERT(nextm->b_rptr != nextm->b_wptr); in xdrmblk_getmblk() [all …]
|
/titanic_41/usr/src/uts/common/io/ppp/sppp/ |
H A D | s_common.c | 53 mp->b_wptr[0] = code; in putctl4() 54 ((uint16_t *)mp->b_wptr)[1] = val; in putctl4() 55 mp->b_wptr += 4; in putctl4() 76 mp->b_wptr[0] = code; in putctl8() 77 ((uint32_t *)mp->b_wptr)[1] = val; in putctl8() 78 mp->b_wptr += 8; in putctl8() 126 mp->b_wptr += sizeof (*plt); in create_lsmsg()
|
/titanic_41/usr/src/uts/common/inet/ipf/ |
H A D | misc.c | 43 mlen = m->b_wptr - s; 76 mlen = m->b_wptr - s; 94 mlen = mp->b_datap->db_lim - mp->b_wptr; 98 BCOPY(bp, mp->b_wptr, mlen); 101 mp->b_wptr += mlen; 104 mp->b_datap->db_struiolim = mp->b_wptr; 114 BCOPY(bp, m->b_wptr, len); 116 m->b_wptr += len;
|
/titanic_41/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 …]
|
/titanic_41/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 …]
|
/titanic_41/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()
|
/titanic_41/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 | 589 m->b_wptr = wptr; \ in bsd_compress() 592 wptr = m->b_wptr; \ in bsd_compress() 620 rmax = mp->b_wptr; \ in bsd_compress() 640 rmax = mp->b_wptr; in bsd_compress() 693 olen -= m->b_datap->db_lim - m->b_wptr; in bsd_compress() 699 wptr = m->b_wptr; in bsd_compress() 875 m->b_wptr = wptr; in bsd_compress() 923 rmax = mp->b_wptr; in bsd_incomp() 952 slen = mp->b_wptr - rptr; in bsd_incomp() 1132 rmax = cmsg->b_wptr; in bsd_decompress() [all …]
|
/titanic_41/usr/src/uts/common/io/ |
H A D | tty_common.c | 99 *mp->b_wptr++ = CTRL('g'); in ttycommon_qfull() 277 *bp->b_wptr++ = *mp->b_cont->b_rptr; in ttycommon_ioctl() 319 cb = (struct termios *)datap->b_wptr; in ttycommon_ioctl() 326 datap->b_wptr += sizeof (struct termios); in ttycommon_ioctl() 343 cb = (struct termio *)datap->b_wptr; in ttycommon_ioctl() 350 datap->b_wptr += sizeof (struct termio); in ttycommon_ioctl() 369 *(int *)datap->b_wptr = 1; in ttycommon_ioctl() 371 *(int *)datap->b_wptr = 0; in ttycommon_ioctl() 372 datap->b_wptr += sizeof (int); in ttycommon_ioctl() 391 *(struct winsize *)datap->b_wptr = tc->t_size; in ttycommon_ioctl() [all …]
|
H A D | telmod.c | 257 tmip->unbind_mp->b_wptr = tmip->unbind_mp->b_rptr + in telmodopen() 279 bp->b_wptr = bp->b_rptr + sizeof (union T_primitives); in telmodopen() 384 newmp->b_wptr = newmp->b_rptr + 1; in telmodrput() 442 mp->b_wptr = mp->b_rptr; in telmodrput() 534 newmp->b_wptr = newmp->b_rptr + 1; in telmodrsrv() 569 mp->b_wptr = mp->b_rptr; in telmodrsrv() 681 if (((mp->b_wptr - mp->b_rptr) == 1) && in telmodwput() 888 if (((mp->b_wptr - mp->b_rptr) == 1) && in telmodwsrv() 955 if (mp->b_rptr == mp->b_wptr) { in rcv_parse() 969 if (mp->b_wptr == (mp->b_rptr + 1)) { in rcv_parse() [all …]
|
H A D | ldterm.c | 793 strop = (struct stroptions *)bp->b_wptr; in ldtermopen() 798 bp->b_wptr += sizeof (struct stroptions); in ldtermopen() 858 strop = (struct stroptions *)bp->b_wptr; in ldtermclose() 861 bp->b_wptr += sizeof (struct stroptions); in ldtermclose() 879 bp->b_cont->b_wptr += sizeof (int); in ldtermclose() 992 if (mp->b_wptr - mp->b_rptr == 1) { in ldtermrput() 1000 mp->b_wptr = mp->b_rptr; in ldtermrput() 1012 *mp->b_wptr++ = (uchar_t)'\377'; in ldtermrput() 1013 *mp->b_wptr++ = '\0'; in ldtermrput() 1014 *mp->b_wptr++ = c; in ldtermrput() [all …]
|
H A D | ttcompat.c | 257 datamp->b_wptr += sizeof (struct termios); in ttcompatopen() 410 mp->b_wptr = mp->b_rptr + sizeof (struct copyreq); in ttcompatwput() 441 mp->b_wptr = mp->b_rptr + sizeof (struct iocblk); in ttcompatwput() 614 *(int *)datap->b_wptr = TIOCM_DTR; in ttcompat_do_ioctl() 615 datap->b_wptr += sizeof (int); in ttcompat_do_ioctl() 633 *(int *)datap->b_wptr = TIOCM_DTR; in ttcompat_do_ioctl() 634 datap->b_wptr += sizeof (int); in ttcompat_do_ioctl() 684 *(int *)datap->b_wptr = 0; /* stop */ in ttcompat_do_ioctl() 685 datap->b_wptr += sizeof (int); in ttcompat_do_ioctl() 699 *(int *)datap->b_wptr = 1; /* start */ in ttcompat_do_ioctl() [all …]
|
/titanic_41/usr/src/uts/common/io/ppp/spppasyn/ |
H A D | spppasyn.c | 691 mp->b_cont->b_wptr = mp->b_cont->b_rptr + len; in spppasyn_inner_ioctl() 830 *(uint32_t *)np->b_wptr = state->sa_flags & RCV_FLAGS; in spppasyn_wput() 833 np->b_wptr += msglen; in spppasyn_wput() 852 psp = (struct ppp_stats64 *)np->b_wptr; in spppasyn_wput() 857 np->b_wptr += msglen; in spppasyn_wput() 872 *(uint32_t *)np->b_wptr = PPPTYP_AHDLC; in spppasyn_wput() 875 np->b_wptr += msglen; in spppasyn_wput() 1039 tp = outmp->b_wptr; in ahdlc_encode() 1104 while (dp < (ep = mp->b_wptr)) { in ahdlc_encode() 1148 if (ep != mp->b_wptr && tpmax - tp < 5) { in ahdlc_encode() [all …]
|
/titanic_41/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | subr_mchain.c | 274 mblk->b_wptr += 4; in mb_init() 275 mblk->b_rptr = mblk->b_wptr; in mb_init() 351 bpos = m->b_wptr; in mb_reserve() 352 m->b_wptr += size; in mb_reserve() 379 *(m->b_wptr)++ = *p++; in mb_put_inline() 396 *(m->b_wptr)++ = *p++; \ 414 dst = (uintptr_t)mbp->mb_cur->b_wptr; in mb_put_padbyte() 511 dst = (caddr_t)m->b_wptr; in mb_put_mem() 531 m->b_wptr += cplen; in mb_put_mem() 567 bcopy(m->b_rptr, tail_mb->b_wptr, size); in mb_put_mbuf() [all …]
|
/titanic_41/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()
|
/titanic_41/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()
|
/titanic_41/usr/src/uts/common/io/nxge/ |
H A D | nxge_ndd.c | 79 ((mblk_t *)pmp)->b_wptr += plen; \ 1014 print_len = snprintf((char *)((mblk_t *)np)->b_wptr, buf_len, in nxge_param_get_txdma_info() 1016 ((mblk_t *)np)->b_wptr += print_len; in nxge_param_get_txdma_info() 1022 print_len = snprintf((char *)((mblk_t *)np)->b_wptr, in nxge_param_get_txdma_info() 1024 ((mblk_t *)np)->b_wptr += print_len; in nxge_param_get_txdma_info() 1070 print_len = snprintf((char *)((mblk_t *)np)->b_wptr, buf_len, in nxge_param_get_rxdma_info() 1073 ((mblk_t *)np)->b_wptr += print_len; in nxge_param_get_rxdma_info() 1075 print_len = snprintf((char *)((mblk_t *)np)->b_wptr, buf_len, in nxge_param_get_rxdma_info() 1079 ((mblk_t *)np)->b_wptr += print_len; in nxge_param_get_rxdma_info() 1086 ((mblk_t *)np)->b_wptr, buf_len, in nxge_param_get_rxdma_info() [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | ip_cksum.c | 50 #define mp_len(mp) ((mp)->b_wptr - (mp)->b_rptr) 107 mp->b_wptr != (uchar_t *)(mp->b_rptr + in ip_cksum() 120 ASSERT(mp->b_wptr == (mp->b_rptr + dp->db_cksumend)); in ip_cksum() 172 mlen = mp->b_wptr - (uchar_t *)w; in ip_cksum() 206 mp->b_wptr != (uchar_t *)(mp->b_rptr + in ip_cksum() 219 ASSERT(mp->b_wptr == (mp->b_rptr + dp->db_cksumend)); in ip_cksum() 274 mlen = mp->b_wptr - (uchar_t *)w; in ip_cksum() 392 crc32 = sctp_crc32(crc32, p, mp->b_wptr - p); in sctp_cksum()
|
/titanic_41/usr/src/uts/common/inet/tcp/ |
H A D | tcp_tpi.c | 219 ASSERT((uintptr_t)(mp->b_wptr - mp->b_rptr) <= (uintptr_t)INT_MAX); in tcp_tpi_bind() 220 if ((mp->b_wptr - mp->b_rptr) < sizeof (*tbr)) { in tcp_tpi_bind() 224 (uint_t)(mp->b_wptr - mp->b_rptr)); in tcp_tpi_bind() 251 mp->b_wptr = (uchar_t *)&sin[1]; in tcp_tpi_bind() 260 mp->b_wptr = (uchar_t *)&sin6[1]; in tcp_tpi_bind() 542 ASSERT((uintptr_t)(mp->b_wptr - mp->b_rptr) <= (uintptr_t)INT_MAX); in tcp_tpi_connect() 543 if ((mp->b_wptr - mp->b_rptr) < sizeof (*tcr)) { in tcp_tpi_connect() 616 nmp->b_wptr = (uchar_t *)&nsin[1]; in tcp_tpi_connect() 619 ntcr->OPT_offset = nmp->b_wptr - nmp->b_rptr; in tcp_tpi_connect() 623 nmp->b_wptr += tcr->OPT_length; in tcp_tpi_connect() [all …]
|
H A D | tcp_output.c | 126 if ((mp->b_wptr - rptr) >= sizeof (t_scalar_t)) { in tcp_wput() 274 ASSERT((uintptr_t)(mp->b_wptr - mp->b_rptr) <= in tcp_wput_data() 276 len = (int)(mp->b_wptr - mp->b_rptr); in tcp_wput_data() 299 dp->db_lim - mp1->b_wptr >= len) { in tcp_wput_data() 303 *mp1->b_wptr++ = *mp->b_rptr; in tcp_wput_data() 305 bcopy(mp->b_rptr, mp1->b_wptr, len); in tcp_wput_data() 306 mp1->b_wptr += len; in tcp_wput_data() 326 ASSERT((uintptr_t)(mp1->b_wptr - mp1->b_rptr) <= in tcp_wput_data() 328 tlen = (int)(mp1->b_wptr - mp1->b_rptr); in tcp_wput_data() 514 ASSERT((uintptr_t)(xmit_tail->b_wptr - in tcp_wput_data() [all …]
|
/titanic_41/usr/src/uts/common/io/usb/hcd/uhci/ |
H A D | uhcihub.c | 480 *intr_reqp->intr_data->b_wptr++ = (1 << (port+1)); in uhci_root_hub_reset_occurred() 615 *ctrl_reqp->ctrl_data->b_wptr++ = (uchar_t)new_port_status; in uhci_handle_get_port_status() 616 *ctrl_reqp->ctrl_data->b_wptr++ = (uchar_t)(new_port_status >> 8); in uhci_handle_get_port_status() 617 *ctrl_reqp->ctrl_data->b_wptr++ = (uchar_t)change_status; in uhci_handle_get_port_status() 618 *ctrl_reqp->ctrl_data->b_wptr++ = (uchar_t)(change_status >> 8); in uhci_handle_get_port_status() 656 bcopy(raw_descr, req->ctrl_data->b_wptr, req->ctrl_wLength); in uhci_handle_get_hub_descriptor() 657 req->ctrl_data->b_wptr += req->ctrl_wLength; in uhci_handle_get_hub_descriptor() 681 bzero(req->ctrl_data->b_wptr, req->ctrl_wLength); in uhci_handle_get_hub_status() 682 req->ctrl_data->b_wptr += req->ctrl_wLength; in uhci_handle_get_hub_status() 709 *req->ctrl_data->b_wptr++ = (uchar_t)dev_status; in uhci_handle_get_device_status() [all …]
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | strsun.h | 51 #define MBLKL(mp) _PTRDIFF((mp)->b_wptr, (mp)->b_rptr) 54 #define MBLKTAIL(mp) _PTRDIFF(DB_LIM(mp), (mp)->b_wptr) 56 (((mp)->b_rptr + (off) + (len)) <= (mp)->b_wptr))
|
/titanic_41/usr/src/uts/common/io/hxge/ |
H A D | hxge_ndd.c | 65 ((mblk_t *)pmp)->b_wptr += plen; \ 559 print_len = snprintf((char *)((mblk_t *)np)->b_wptr, buf_len, in hxge_param_get_rxdma_info() 561 ((mblk_t *)np)->b_wptr += print_len; in hxge_param_get_rxdma_info() 563 print_len = snprintf((char *)((mblk_t *)np)->b_wptr, buf_len, in hxge_param_get_rxdma_info() 566 ((mblk_t *)np)->b_wptr += print_len; in hxge_param_get_rxdma_info() 569 print_len = snprintf((char *)((mblk_t *)np)->b_wptr, buf_len, in hxge_param_get_rxdma_info() 573 ((mblk_t *)np)->b_wptr += print_len; in hxge_param_get_rxdma_info() 588 if ((tmp->b_wptr + size) >= tmp->b_datap->db_lim) { in hxge_mk_mblk_tail_space() 863 print_len = snprintf((char *)((mblk_t *)np)->b_wptr, buf_len, in hxge_param_get_vlan_ids() 865 ((mblk_t *)np)->b_wptr += print_len; in hxge_param_get_vlan_ids() [all …]
|