Home
last modified time | relevance | path

Searched refs:newmp (Results 1 – 21 of 21) sorted by relevance

/titanic_44/usr/src/uts/common/io/
H A Dtelmod.c358 mblk_t *newmp; in telmodrput() local
379 if ((newmp = allocb(sizeof (char), BPRI_MED)) == NULL) { in telmodrput()
383 newmp->b_datap->db_type = M_CTL; in telmodrput()
384 newmp->b_wptr = newmp->b_rptr + 1; in telmodrput()
385 *(newmp->b_rptr) = M_CTL_MAGIC_NUMBER; in telmodrput()
386 newmp->b_cont = mp; in telmodrput()
391 putnext(q, newmp); in telmodrput()
464 newmp = mp->b_cont; in telmodrput()
466 mp = newmp; in telmodrput()
513 mblk_t *mp, *newmp; in telmodrsrv() local
[all …]
H A Dlogindmux.c401 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 Drlmod.c844 mblk_t *newmp; in rlmodrmsg() local
867 newmp = mp; in rlmodrmsg()
887 if ((pullupmsg(newmp, -1)) == 0) { in rlmodrmsg()
888 sz = msgdsize(newmp); in rlmodrmsg()
889 recover(q, newmp, sz); in rlmodrmsg()
897 mp = newmp; in rlmodrmsg()
972 if (msgdsize(newmp) == 0) { in rlmodrmsg()
973 freemsg(newmp); in rlmodrmsg()
974 newmp = NULL; in rlmodrmsg()
977 if (newmp) { in rlmodrmsg()
[all …]
H A Dcryptmod.c2960 mblk_t *newmp; in encrypt_block() local
3068 newmp = do_encrypt(q, cbp); in encrypt_block()
3070 if (newmp != NULL && in encrypt_block()
3079 lp = mklenmp(newmp, plainlen); in encrypt_block()
3082 freeb(newmp); in encrypt_block()
3085 newmp = lp; in encrypt_block()
3088 return (newmp); in encrypt_block()
3101 mblk_t *newmp = NULL; in encrypt_msgb() local
3137 newmp = encrypt_block(q, tmi, mp1, outlen); in encrypt_msgb()
3138 if (newmp == NULL) in encrypt_msgb()
[all …]
H A Dstream.c1636 mblk_t *newmp; in msgpullup() local
1661 if ((newmp = allocb_tmpl(len, mp)) == NULL) in msgpullup()
1664 newmp->b_flag = mp->b_flag; in msgpullup()
1665 newmp->b_band = mp->b_band; in msgpullup()
1671 bcopy(mp->b_rptr, newmp->b_wptr, n); in msgpullup()
1672 newmp->b_wptr += n; in msgpullup()
1678 newmp->b_cont = dupmsg(mp); in msgpullup()
1679 if (newmp->b_cont == NULL) { in msgpullup()
1680 freemsg(newmp); in msgpullup()
1685 return (newmp); in msgpullup()
/titanic_44/usr/src/uts/common/io/dld/
H A Ddld_str.c865 mblk_t *newmp; in str_mdata_fastpath_put() local
876 newmp = i_dld_ether_header_update_tag(mp, pri, in str_mdata_fastpath_put()
878 if (newmp == NULL) in str_mdata_fastpath_put()
880 mp = newmp; in str_mdata_fastpath_put()
902 mblk_t *bp, *newmp; in str_mdata_raw_put() local
919 if ((newmp = mac_header_cook(dsp->ds_mh, mp)) == NULL) in str_mdata_raw_put()
921 mp = newmp; in str_mdata_raw_put()
977 if ((newmp = i_dld_ether_header_update_tag(mp, pri, in str_mdata_raw_put()
981 mp = newmp; in str_mdata_raw_put()
1145 mblk_t *newmp; in i_dld_ether_header_strip_tag() local
[all …]
/titanic_44/usr/src/uts/common/io/mac/
H A Dmac_util.c405 mblk_t *newmp; in mac_strip_vlan_tag() local
413 newmp = copymsg(mp); in mac_strip_vlan_tag()
414 if (newmp == NULL) in mac_strip_vlan_tag()
417 mp = newmp; in mac_strip_vlan_tag()
934 mblk_t *newmp = NULL; in mac_pkt_hash() local
939 newmp = msgpullup(mp, -1); in mac_pkt_hash()
940 if ((newmp == NULL) || (MBLKL(newmp) < skip_len)) { in mac_pkt_hash()
943 evhp = (struct ether_vlan_header *)newmp->b_rptr; in mac_pkt_hash()
949 freemsg(newmp); in mac_pkt_hash()
H A Dmac_protect.c1618 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 Dmac_client.c4300 mblk_t *newmp = copymsg(mp); in mac_header_cook() local
4301 if (newmp == NULL) in mac_header_cook()
4304 mp = newmp; in mac_header_cook()
4319 mblk_t *newmp = copymsg(mp); in mac_header_uncook() local
4320 if (newmp == NULL) in mac_header_uncook()
4323 mp = newmp; in mac_header_uncook()
/titanic_44/usr/src/uts/common/io/dls/
H A Ddls.c495 mblk_t *newmp; in dls_header() local
502 newmp = msgpullup(payload, -1); in dls_header()
503 if ((newmp == NULL) || (MBLKL(newmp) < len)) { in dls_header()
504 freemsg(newmp); in dls_header()
509 *payloadp = payload = newmp; in dls_header()
H A Ddls_link.c114 mblk_t *newmp; \
115 if ((newmp = msgpullup((mp), -1)) == NULL) { \
120 (mp) = newmp; \
/titanic_44/usr/src/uts/common/inet/iptun/
H A Diptun.c2981 mblk_t *newmp; in iptun_insert_encaplimit() local
2988 newmp = allocb(sizeof (iptun_ipv6hdrs_t) + MBLKL(mp), BPRI_MED); in iptun_insert_encaplimit()
2989 if (newmp == NULL) { in iptun_insert_encaplimit()
2993 newmp->b_wptr += sizeof (iptun_ipv6hdrs_t); in iptun_insert_encaplimit()
2995 bcopy(mp->b_rptr, newmp->b_wptr, MBLKL(mp)); in iptun_insert_encaplimit()
2996 newmp->b_wptr += MBLKL(mp); in iptun_insert_encaplimit()
2997 newouter6 = (iptun_ipv6hdrs_t *)newmp->b_rptr; in iptun_insert_encaplimit()
3011 return (newmp); in iptun_insert_encaplimit()
3106 mblk_t *newmp; in iptun_output() local
3113 if ((newmp = msgpullup(mp, -1)) == NULL) { in iptun_output()
[all …]
/titanic_44/usr/src/uts/common/io/hxge/
H A Dhxge_txdma.c457 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()
/titanic_44/usr/src/uts/common/io/nxge/
H A Dnxge_txdma.c747 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()
/titanic_44/usr/src/uts/common/fs/sockfs/
H A Dsockstr.c174 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 Dsocktpi.c4480 mblk_t *newmp; in kstrwritemp() local
4529 newmp = (stp->sd_wputdatafunc)(vp, mp, NULL, in kstrwritemp()
4531 if (newmp == NULL) { in kstrwritemp()
4535 mp = newmp; in kstrwritemp()
4706 mblk_t *newmp; in sostream_direct() local
4725 newmp = (stp->sd_wputdatafunc)(SOTOV(so), mp, NULL, in sostream_direct()
4727 if (newmp == NULL) { in sostream_direct()
4731 mp = newmp; in sostream_direct()
4776 newmp = (stp->sd_wputdatafunc)(SOTOV(so), mp, NULL, in sostream_direct()
4778 if (newmp == NULL) { in sostream_direct()
[all …]
/titanic_44/usr/src/uts/common/io/usb/clients/usbser/
H A Dusbser.c2193 mblk_t *newmp; in usbser_rx_massage_data() local
2223 if ((newmp = allocb(tailsz + 1, BPRI_HI)) == NULL) { in usbser_rx_massage_data()
2231 *newmp->b_wptr++ = 0377; in usbser_rx_massage_data()
2233 bcopy(p, newmp->b_wptr, tailsz); in usbser_rx_massage_data()
2234 newmp->b_wptr += tailsz; in usbser_rx_massage_data()
2239 newmp->b_cont = mp->b_cont; in usbser_rx_massage_data()
2240 mp->b_cont = newmp; in usbser_rx_massage_data()
2241 p = newmp->b_rptr + 1; in usbser_rx_massage_data()
2242 mp = newmp; in usbser_rx_massage_data()
/titanic_44/usr/src/uts/common/io/ppp/sppptun/
H A Dsppptun.c742 mblk_t *newmp; in prependb() local
749 if ((newmp = allocb(len, BPRI_LO)) == NULL) { in prependb()
753 newmp->b_wptr = newmp->b_rptr + len; in prependb()
754 newmp->b_cont = mp; in prependb()
755 return (newmp); in prependb()
/titanic_44/usr/src/uts/common/inet/kssl/
H A Dksslrec.c1441 mblk_t *mp, *newmp; in kssl_send_change_cipher_specs() local
1451 newmp = allocb(KSSL_SSL3_MAX_CCP_FIN_MSGLEN, BPRI_HI); in kssl_send_change_cipher_specs()
1453 if (newmp == NULL) in kssl_send_change_cipher_specs()
1457 ssl->handshake_sendbuf = newmp; in kssl_send_change_cipher_specs()
1459 linkb(ssl->handshake_sendbuf, newmp); in kssl_send_change_cipher_specs()
1461 mp = newmp; in kssl_send_change_cipher_specs()
/titanic_44/usr/src/uts/common/inet/ip/
H A Dicmp.c1320 mblk_t *newmp; in icmp_icmp_error_ipv6() local
1336 if ((newmp = allocb(udi_size, BPRI_MED)) == NULL) { in icmp_icmp_error_ipv6()
1345 newmp->b_datap->db_type = M_PROTO; in icmp_icmp_error_ipv6()
1346 tudi = (struct T_unitdata_ind *)newmp->b_rptr; in icmp_icmp_error_ipv6()
1347 newmp->b_wptr = (uchar_t *)tudi + udi_size; in icmp_icmp_error_ipv6()
1375 icmp_ulp_recv(connp, newmp, msgdsize(newmp)); in icmp_icmp_error_ipv6()
/titanic_44/usr/src/uts/common/inet/udp/
H A Dudp.c1110 mblk_t *newmp; in udp_icmp_error_ipv6() local
1126 if ((newmp = allocb(udi_size, BPRI_MED)) == NULL) { in udp_icmp_error_ipv6()
1135 newmp->b_datap->db_type = M_PROTO; in udp_icmp_error_ipv6()
1136 tudi = (struct T_unitdata_ind *)newmp->b_rptr; in udp_icmp_error_ipv6()
1137 newmp->b_wptr = (uchar_t *)tudi + udi_size; in udp_icmp_error_ipv6()
1165 udp_ulp_recv(connp, newmp, msgdsize(newmp), ira); in udp_icmp_error_ipv6()