/illumos-gate/usr/src/uts/common/io/ |
H A D | telmod.c | 356 mblk_t *newmp; in telmodrput() local 382 newmp->b_wptr = newmp->b_rptr + 1; in telmodrput() 384 newmp->b_cont = mp; in telmodrput() 389 putnext(q, newmp); in telmodrput() 462 newmp = mp->b_cont; in telmodrput() 464 mp = newmp; in telmodrput() 512 mblk_t *mp, *newmp; in telmodrsrv() local 533 newmp->b_wptr = newmp->b_rptr + 1; in telmodrsrv() 592 mp = newmp; in telmodrsrv() 1063 newmp->b_wptr = newmp->b_rptr + 1; in rcv_parse() [all …]
|
H A D | logindmux.c | 401 mblk_t *newmp; in logdmuxuwput() local 525 newmp->b_datap->db_type = M_CTL; in logdmuxuwput() 526 *newmp->b_wptr++ = M_CTL_MAGIC_NUMBER; in logdmuxuwput() 527 newmp->b_cont = mp; in logdmuxuwput() 528 mp = newmp; in logdmuxuwput() 579 mblk_t *mp, *newmp; in logdmuxuwsrv() local 587 if ((newmp = allocb(sizeof (char), BPRI_MED)) == in logdmuxuwsrv() 592 newmp->b_datap->db_type = M_CTL; in logdmuxuwsrv() 593 *newmp->b_wptr++ = M_CTL_MAGIC_NUMBER; in logdmuxuwsrv() 594 newmp->b_cont = mp; in logdmuxuwsrv() [all …]
|
H A D | rlmod.c | 843 mblk_t *newmp; in rlmodrmsg() local 866 newmp = mp; in rlmodrmsg() 887 sz = msgdsize(newmp); in rlmodrmsg() 888 recover(q, newmp, sz); in rlmodrmsg() 896 mp = newmp; in rlmodrmsg() 971 if (msgdsize(newmp) == 0) { in rlmodrmsg() 972 freemsg(newmp); in rlmodrmsg() 973 newmp = NULL; in rlmodrmsg() 976 if (newmp) { in rlmodrmsg() 978 (void) putbq(q, newmp); in rlmodrmsg() [all …]
|
H A D | cryptmod.c | 2963 mblk_t *newmp; in encrypt_block() local 3085 freeb(newmp); in encrypt_block() 3088 newmp = lp; in encrypt_block() 3091 return (newmp); in encrypt_block() 3141 if (newmp == NULL) in encrypt_msgb() 3144 putnext(q, newmp); in encrypt_msgb() 3146 newmp = NULL; in encrypt_msgb() 3151 return (newmp); in encrypt_msgb() 3244 freemsg(newmp); in start_stream() 3698 newmp = bp; in decrypt_rcmd_mblks() [all …]
|
H A D | stream.c | 1649 mblk_t *newmp; in msgpullup() local 1665 if ((newmp = allocb_tmpl(len, mp)) == NULL) in msgpullup() 1668 newmp->b_flag = mp->b_flag; in msgpullup() 1669 newmp->b_band = mp->b_band; in msgpullup() 1675 bcopy(mp->b_rptr, newmp->b_wptr, n); in msgpullup() 1676 newmp->b_wptr += n; in msgpullup() 1682 newmp->b_cont = dupmsg(mp); in msgpullup() 1683 if (newmp->b_cont == NULL) { in msgpullup() 1684 freemsg(newmp); in msgpullup() 1689 return (newmp); in msgpullup()
|
/illumos-gate/usr/src/common/inet/ |
H A D | inet_hash.c | 187 mblk_t *newmp = NULL; in inet_pkt_hash() local 192 newmp = msgpullup(mp, -1); in inet_pkt_hash() 193 if ((newmp == NULL) || (MBLKL(newmp) < skip_len)) { in inet_pkt_hash() 196 evhp = (struct ether_vlan_header *)newmp->b_rptr; in inet_pkt_hash() 202 freemsg(newmp); in inet_pkt_hash()
|
/illumos-gate/usr/src/uts/common/io/dld/ |
H A D | dld_str.c | 882 mblk_t *newmp; in str_mdata_fastpath_put() local 895 if (newmp == NULL) in str_mdata_fastpath_put() 897 mp = newmp; in str_mdata_fastpath_put() 919 mblk_t *bp, *newmp; in str_mdata_raw_put() local 938 mp = newmp; in str_mdata_raw_put() 998 mp = newmp; in str_mdata_raw_put() 1162 mblk_t *newmp; in i_dld_ether_header_strip_tag() local 1169 if (newmp == NULL) in i_dld_ether_header_strip_tag() 1172 mp = newmp; in i_dld_ether_header_strip_tag() 1237 mp = newmp; in dld_str_rx_raw() [all …]
|
/illumos-gate/usr/src/uts/common/io/dls/ |
H A D | dls.c | 509 mblk_t *newmp; in dls_header() local 516 newmp = msgpullup(payload, -1); in dls_header() 517 if ((newmp == NULL) || (MBLKL(newmp) < len)) { in dls_header() 518 freemsg(newmp); in dls_header() 523 *payloadp = payload = newmp; in dls_header()
|
H A D | dls_link.c | 118 mblk_t *newmp; \ 119 if ((newmp = msgpullup((mp), -1)) == NULL) { \ 124 (mp) = newmp; \
|
/illumos-gate/usr/src/lib/smbclnt/libfknsmb/common/ |
H A D | fake_stream.c | 1203 mblk_t *newmp; in msgpullup() local 1228 if ((newmp = allocb_tmpl(len, mp)) == NULL) in msgpullup() 1231 newmp->b_flag = mp->b_flag; in msgpullup() 1232 newmp->b_band = mp->b_band; in msgpullup() 1238 bcopy(mp->b_rptr, newmp->b_wptr, n); in msgpullup() 1239 newmp->b_wptr += n; in msgpullup() 1245 newmp->b_cont = dupmsg(mp); in msgpullup() 1246 if (newmp->b_cont == NULL) { in msgpullup() 1247 freemsg(newmp); in msgpullup() 1252 return (newmp); in msgpullup()
|
/illumos-gate/usr/src/uts/common/inet/iptun/ |
H A D | iptun.c | 2983 mblk_t *newmp; in iptun_insert_encaplimit() local 2991 if (newmp == NULL) { in iptun_insert_encaplimit() 2998 newmp->b_wptr += MBLKL(mp); in iptun_insert_encaplimit() 3013 return (newmp); in iptun_insert_encaplimit() 3108 mblk_t *newmp; in iptun_output() local 3120 mp = newmp; in iptun_output() 3356 mblk_t *newmp; in iptun_output_common() local 3423 for (newmp = mp; newmp != NULL; newmp = mp) { in iptun_output_common() 3429 newmp->b_next = NULL; in iptun_output_common() 3441 ixa->ixa_pktlen = msgdsize(newmp); in iptun_output_common() [all …]
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_util.c | 1519 mblk_t *newmp; in mac_strip_vlan_tag() local 1527 newmp = copymsg(mp); in mac_strip_vlan_tag() 1528 if (newmp == NULL) in mac_strip_vlan_tag() 1531 mp = newmp; in mac_strip_vlan_tag() 2040 mblk_t *newmp = NULL; in mac_pkt_hash() local 2045 newmp = msgpullup(mp, -1); in mac_pkt_hash() 2046 if ((newmp == NULL) || (MBLKL(newmp) < skip_len)) { in mac_pkt_hash() 2049 evhp = (struct ether_vlan_header *)newmp->b_rptr; in mac_pkt_hash() 2055 freemsg(newmp); in mac_pkt_hash()
|
H A D | mac_protect.c | 1618 mblk_t *newmp = NULL; in get_l3_info() local 1638 newmp = msgpullup(mp, -1); in get_l3_info() 1641 if (newmp == NULL) in get_l3_info() 1644 s = newmp->b_rptr; in get_l3_info() 1645 e = newmp->b_wptr; in get_l3_info() 1650 *nmp = newmp; in get_l3_info()
|
H A D | mac_client.c | 4485 mblk_t *newmp = copymsg(mp); in mac_header_cook() local 4486 if (newmp == NULL) in mac_header_cook() 4489 mp = newmp; in mac_header_cook() 4504 mblk_t *newmp = copymsg(mp); in mac_header_uncook() local 4505 if (newmp == NULL) in mac_header_uncook() 4508 mp = newmp; in mac_header_uncook()
|
/illumos-gate/usr/src/uts/common/io/hxge/ |
H A D | hxge_txdma.c | 457 p_mblk_t newmp = NULL; in hxge_tx_pkt_header_reserve() local 459 if ((newmp = allocb(TX_PKT_HEADER_SIZE, BPRI_MED)) == NULL) { in hxge_tx_pkt_header_reserve() 466 DB_TYPE(newmp) = M_DATA; in hxge_tx_pkt_header_reserve() 467 newmp->b_rptr = newmp->b_wptr = DB_LIM(newmp); in hxge_tx_pkt_header_reserve() 468 linkb(newmp, mp); in hxge_tx_pkt_header_reserve() 469 newmp->b_rptr -= TX_PKT_HEADER_SIZE; in hxge_tx_pkt_header_reserve() 473 newmp->b_rptr, newmp->b_wptr)); in hxge_tx_pkt_header_reserve() 476 return (newmp); in hxge_tx_pkt_header_reserve()
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_txdma.c | 747 p_mblk_t newmp = NULL; in nxge_tx_pkt_header_reserve() local 749 if ((newmp = allocb(TX_PKT_HEADER_SIZE, BPRI_MED)) == NULL) { in nxge_tx_pkt_header_reserve() 757 DB_TYPE(newmp) = M_DATA; in nxge_tx_pkt_header_reserve() 758 newmp->b_rptr = newmp->b_wptr = DB_LIM(newmp); in nxge_tx_pkt_header_reserve() 759 linkb(newmp, mp); in nxge_tx_pkt_header_reserve() 760 newmp->b_rptr -= TX_PKT_HEADER_SIZE; in nxge_tx_pkt_header_reserve() 764 newmp->b_rptr, newmp->b_wptr)); in nxge_tx_pkt_header_reserve() 769 return (newmp); in nxge_tx_pkt_header_reserve()
|
/illumos-gate/usr/src/uts/common/fs/sockfs/ |
H A D | sockstr.c | 174 mblk_t *newmp; in so_sock2stream() local 190 newmp = allocb_cred_wait(length, 0, in so_sock2stream() 193 newmp = allocb_wait(length, 0, 0, in so_sock2stream() 196 if (newmp == NULL) { in so_sock2stream() 200 bcopy(mp->b_rptr, newmp->b_wptr, length); in so_sock2stream() 201 newmp->b_wptr += length; in so_sock2stream() 202 newmp->b_next = mp->b_next; in so_sock2stream() 208 *mpp = newmp; in so_sock2stream() 212 mp = newmp; in so_sock2stream()
|
H A D | socktpi.c | 4408 mblk_t *newmp; in kstrwritemp() local 4457 newmp = (stp->sd_wputdatafunc)(vp, mp, NULL, in kstrwritemp() 4459 if (newmp == NULL) { in kstrwritemp() 4463 mp = newmp; in kstrwritemp() 4641 mblk_t *newmp; in sostream_direct() local 4660 newmp = (stp->sd_wputdatafunc)(SOTOV(so), mp, NULL, in sostream_direct() 4662 if (newmp == NULL) { in sostream_direct() 4666 mp = newmp; in sostream_direct() 4711 newmp = (stp->sd_wputdatafunc)(SOTOV(so), mp, NULL, in sostream_direct() 4713 if (newmp == NULL) { in sostream_direct() [all …]
|
/illumos-gate/usr/src/uts/common/io/usb/clients/usbser/ |
H A D | usbser.c | 2192 mblk_t *newmp; in usbser_rx_massage_data() local 2222 if ((newmp = allocb(tailsz + 1, BPRI_HI)) == NULL) { in usbser_rx_massage_data() 2230 *newmp->b_wptr++ = 0377; in usbser_rx_massage_data() 2232 bcopy(p, newmp->b_wptr, tailsz); in usbser_rx_massage_data() 2233 newmp->b_wptr += tailsz; in usbser_rx_massage_data() 2238 newmp->b_cont = mp->b_cont; in usbser_rx_massage_data() 2239 mp->b_cont = newmp; in usbser_rx_massage_data() 2240 p = newmp->b_rptr + 1; in usbser_rx_massage_data() 2241 mp = newmp; in usbser_rx_massage_data()
|
/illumos-gate/usr/src/uts/common/io/ppp/sppptun/ |
H A D | sppptun.c | 743 mblk_t *newmp; in prependb() local 750 if ((newmp = allocb(len, BPRI_LO)) == NULL) { in prependb() 754 newmp->b_wptr = newmp->b_rptr + len; in prependb() 755 newmp->b_cont = mp; in prependb() 756 return (newmp); in prependb()
|
/illumos-gate/usr/src/boot/common/ |
H A D | module.c | 1132 struct kernel_module **newmp) in file_addmodule() argument 1154 if (newmp) in file_addmodule() 1155 *newmp = mp; in file_addmodule()
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | icmp.c | 1327 mblk_t *newmp; in icmp_icmp_error_ipv6() local 1343 if ((newmp = allocb(udi_size, BPRI_MED)) == NULL) { in icmp_icmp_error_ipv6() 1352 newmp->b_datap->db_type = M_PROTO; in icmp_icmp_error_ipv6() 1353 tudi = (struct T_unitdata_ind *)newmp->b_rptr; in icmp_icmp_error_ipv6() 1354 newmp->b_wptr = (uchar_t *)tudi + udi_size; in icmp_icmp_error_ipv6() 1382 icmp_ulp_recv(connp, newmp, msgdsize(newmp)); in icmp_icmp_error_ipv6()
|
/illumos-gate/usr/src/uts/common/io/usbgem/ |
H A D | usbgem.c | 817 mblk_t *newmp; in usbgem_bulkin_cb() local 846 newmp = (*dp->ugc.usbgc_rx_make_packet)(dp, mp); in usbgem_bulkin_cb() 848 if (newmp != mp) { in usbgem_bulkin_cb() 854 for (tp = newmp; tp; tp = tp->b_next) { in usbgem_bulkin_cb() 868 mac_rx(dp->mh, NULL, newmp); in usbgem_bulkin_cb()
|
/illumos-gate/usr/src/uts/common/inet/udp/ |
H A D | udp.c | 1193 mblk_t *newmp; in udp_icmp_error_ipv6() local 1209 if ((newmp = allocb(udi_size, BPRI_MED)) == NULL) { in udp_icmp_error_ipv6() 1218 newmp->b_datap->db_type = M_PROTO; in udp_icmp_error_ipv6() 1219 tudi = (struct T_unitdata_ind *)newmp->b_rptr; in udp_icmp_error_ipv6() 1220 newmp->b_wptr = (uchar_t *)tudi + udi_size; in udp_icmp_error_ipv6() 1248 udp_ulp_recv(connp, newmp, msgdsize(newmp), ira); in udp_icmp_error_ipv6()
|
/illumos-gate/usr/src/uts/common/xen/io/ |
H A D | xnf.c | 2007 mblk_t *newmp = msgpullup(mp, -1); in xnf_send() local 2008 if (newmp == NULL) { in xnf_send() 2015 mp = newmp; in xnf_send()
|