/illumos-gate/usr/src/uts/common/io/ |
H A D | telmod.c | 356 mblk_t *newmp; in telmodrput() local 377 if ((newmp = allocb(sizeof (char), BPRI_MED)) == NULL) { in telmodrput() 381 newmp->b_datap->db_type = M_CTL; in telmodrput() 382 newmp->b_wptr = newmp->b_rptr + 1; in telmodrput() 383 *(newmp->b_rptr) = M_CTL_MAGIC_NUMBER; 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 [all …]
|
H A D | logindmux.c | 401 mblk_t *newmp; in logdmuxuwput() local 521 if ((newmp = allocb(sizeof (char), BPRI_MED)) == NULL) { in logdmuxuwput() 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() [all …]
|
H A D | rlmod.c | 843 mblk_t *newmp; in rlmodrmsg() local 866 newmp = mp; in rlmodrmsg() 886 if ((pullupmsg(newmp, -1)) == 0) { 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() [all …]
|
H A D | cryptmod.c | 2963 mblk_t *newmp; in encrypt_block() local 3071 newmp = do_encrypt(q, cbp); in encrypt_block() 3073 if (newmp != NULL && in encrypt_block() 3082 lp = mklenmp(newmp, plainlen); in encrypt_block() 3085 freeb(newmp); in encrypt_block() 3088 newmp = lp; in encrypt_block() 3091 return (newmp); in encrypt_block() 3104 mblk_t *newmp = NULL; in encrypt_msgb() local 3140 newmp = encrypt_block(q, tmi, mp1, outlen); in encrypt_msgb() 3141 if (newmp == NULL) in encrypt_msgb() [all …]
|
H A D | stream.c | 1650 mblk_t *newmp; in msgpullup() local 1660 if ((newmp = allocb_tmpl(len, mp)) == NULL) in msgpullup() 1663 newmp->b_flag = mp->b_flag; in msgpullup() 1664 newmp->b_band = mp->b_band; in msgpullup() 1673 bcopy(mp->b_rptr, newmp->b_wptr, n); in msgpullup() 1674 newmp->b_wptr += n; in msgpullup() 1685 newmp->b_cont = dupmsg(mp); in msgpullup() 1686 if (newmp->b_cont == NULL) { in msgpullup() 1687 freemsg(newmp); in msgpullup() 1691 ASSERT3U(MBLKL(newmp->b_cont), >=, offset); in msgpullup() [all …]
|
/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 893 newmp = i_dld_ether_header_update_tag(mp, pri, in str_mdata_fastpath_put() 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 936 if ((newmp = mac_header_cook(dsp->ds_mh, mp)) == NULL) in str_mdata_raw_put() 938 mp = newmp; in str_mdata_raw_put() 994 if ((newmp = i_dld_ether_header_update_tag(mp, pri, 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 [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 2990 newmp = allocb(sizeof (iptun_ipv6hdrs_t) + MBLKL(mp), BPRI_MED); in iptun_insert_encaplimit() 2991 if (newmp == NULL) { in iptun_insert_encaplimit() 2995 newmp->b_wptr += sizeof (iptun_ipv6hdrs_t); in iptun_insert_encaplimit() 2997 bcopy(mp->b_rptr, newmp->b_wptr, MBLKL(mp)); in iptun_insert_encaplimit() 2998 newmp->b_wptr += MBLKL(mp); in iptun_insert_encaplimit() 2999 newouter6 = (iptun_ipv6hdrs_t *)newmp->b_rptr; in iptun_insert_encaplimit() 3013 return (newmp); in iptun_insert_encaplimit() 3108 mblk_t *newmp; in iptun_output() local 3115 if ((newmp = msgpullup(mp, -1)) == NULL) { in iptun_output() [all …]
|
/illumos-gate/usr/src/uts/common/io/mac/ |
H A D | mac_util.c | 1414 mblk_t *newmp; in mac_strip_vlan_tag() local 1422 newmp = copymsg(mp); in mac_strip_vlan_tag() 1423 if (newmp == NULL) in mac_strip_vlan_tag() 1426 mp = newmp; in mac_strip_vlan_tag() 1935 mblk_t *newmp = NULL; in mac_pkt_hash() local 1940 newmp = msgpullup(mp, -1); in mac_pkt_hash() 1941 if ((newmp == NULL) || (MBLKL(newmp) < skip_len)) { in mac_pkt_hash() 1944 evhp = (struct ether_vlan_header *)newmp->b_rptr; in mac_pkt_hash() 1950 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 | 4407 mblk_t *newmp; in kstrwritemp() local 4456 newmp = (stp->sd_wputdatafunc)(vp, mp, NULL, in kstrwritemp() 4458 if (newmp == NULL) { in kstrwritemp() 4462 mp = newmp; in kstrwritemp() 4640 mblk_t *newmp; in sostream_direct() local 4659 newmp = (stp->sd_wputdatafunc)(SOTOV(so), mp, NULL, in sostream_direct() 4661 if (newmp == NULL) { in sostream_direct() 4665 mp = newmp; in sostream_direct() 4710 newmp = (stp->sd_wputdatafunc)(SOTOV(so), mp, NULL, in sostream_direct() 4712 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 | 1328 mblk_t *newmp; in icmp_icmp_error_ipv6() local 1344 if ((newmp = allocb(udi_size, BPRI_MED)) == NULL) { in icmp_icmp_error_ipv6() 1353 newmp->b_datap->db_type = M_PROTO; in icmp_icmp_error_ipv6() 1354 tudi = (struct T_unitdata_ind *)newmp->b_rptr; in icmp_icmp_error_ipv6() 1355 newmp->b_wptr = (uchar_t *)tudi + udi_size; in icmp_icmp_error_ipv6() 1383 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 | 1194 mblk_t *newmp; in udp_icmp_error_ipv6() local 1210 if ((newmp = allocb(udi_size, BPRI_MED)) == NULL) { in udp_icmp_error_ipv6() 1219 newmp->b_datap->db_type = M_PROTO; in udp_icmp_error_ipv6() 1220 tudi = (struct T_unitdata_ind *)newmp->b_rptr; in udp_icmp_error_ipv6() 1221 newmp->b_wptr = (uchar_t *)tudi + udi_size; in udp_icmp_error_ipv6() 1249 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()
|