Home
last modified time | relevance | path

Searched refs:M_TRAILINGSPACE (Results 1 – 25 of 46) sorted by relevance

12

/freebsd-12.1/sys/fs/nfsclient/
H A Dnfs_clcomsubs.c85 mlen = M_TRAILINGSPACE(mp); in nfsm_uiombuf()
94 mlen = M_TRAILINGSPACE(mp); in nfsm_uiombuf()
124 if (rem > M_TRAILINGSPACE(mp)) { in nfsm_uiombuf()
172 mlen = M_TRAILINGSPACE(mp); in nfsm_uiombuflist()
181 mlen = M_TRAILINGSPACE(mp); in nfsm_uiombuflist()
/freebsd-12.1/sys/xdr/
H A Dxdr_mbuf.c221 sz = M_TRAILINGSPACE(m) + (m->m_len - xdrs->x_handy); in xdrmbuf_putbytes()
231 if (xdrs->x_handy == m->m_len && M_TRAILINGSPACE(m) == 0) { in xdrmbuf_putbytes()
291 available = M_TRAILINGSPACE(m) + (m->m_len - xdrs->x_handy); in xdrmbuf_inline()
/freebsd-12.1/sys/netipsec/
H A Dipsec_mbuf.c89 } else if (hlen > M_TRAILINGSPACE(m)) { in m_makespace()
121 if (hlen <= M_TRAILINGSPACE(m) + remain) { in m_makespace()
216 if (pad > M_TRAILINGSPACE(m0)) { in m_pad()
/freebsd-12.1/sys/kern/
H A Dsubr_mchain.c76 mbp->mb_mleft = M_TRAILINGSPACE(m); in mb_initm()
124 mbp->mb_mleft = M_TRAILINGSPACE(m); in mb_reserve()
214 mleft = M_TRAILINGSPACE(m); in mb_put_mem()
265 mbp->mb_mleft = M_TRAILINGSPACE(m); in mb_put_mbuf()
H A Duipc_mbuf.c689 M_TRAILINGSPACE(m) < n->m_len) { in m_cat()
1069 M_TRAILINGSPACE(m)); in m_copyback()
1109 space = M_TRAILINGSPACE(m); in m_append()
1382 n->m_len < M_TRAILINGSPACE(m)) { in m_collapse()
1551 length = min(M_TRAILINGSPACE(mb), total - progress); in m_uiotombuf()
1629 m->m_len <= M_TRAILINGSPACE(mprev)) { in m_unshare()
1658 m->m_len <= M_TRAILINGSPACE(mprev)) { in m_unshare()
H A Duipc_mbuf2.c211 if ((off == 0 || offp) && M_TRAILINGSPACE(n) >= tlen in m_pulldown()
H A Duipc_sockbuf.c1035 m->m_len <= M_TRAILINGSPACE(n) && in sbcompress()
1409 KASSERT(CMSG_SPACE((u_int)size) <= M_TRAILINGSPACE(m), in sbcreatecontrol()
/freebsd-12.1/contrib/smbfs/lib/smb/
H A Dmbuf.c180 len -= M_TRAILINGSPACE(mp); in m_getm()
213 if (M_TRAILINGSPACE(m) < (int)size) { in mb_fit()
297 cplen = M_TRAILINGSPACE(m); in mb_put_mem()
H A Drq.c101 cplen = M_TRAILINGSPACE(m); in smb_rq_dmem()
/freebsd-12.1/sys/rpc/
H A Drpcm_subs.h84 { if ((s) > M_TRAILINGSPACE(mb)) { \
/freebsd-12.1/sys/fs/nfs/
H A Dnfsm_subs.h67 if (siz > M_TRAILINGSPACE(nd->nd_mb)) { in nfsm_build()
/freebsd-12.1/sys/dev/xen/netback/
H A Dnetback_unit_tests.c1019 XNB_ASSERT(M_TRAILINGSPACE(pMbuf) >= size); in xnb_pkt2mbufc_short()
1036 XNB_ASSERT(M_TRAILINGSPACE(pMbuf) >= size); in xnb_pkt2mbufc_csum()
1057 XNB_ASSERT(M_TRAILINGSPACE(pMbuf) >= size); in xnb_pkt2mbufc_1cluster()
1074 XNB_ASSERT(M_TRAILINGSPACE(pMbuf) >= size); in xnb_pkt2mbufc_largecluster()
1095 space += M_TRAILINGSPACE(m); in xnb_pkt2mbufc_2cluster()
1239 if (M_TRAILINGSPACE(pMbuf) == MCLBYTES) { in xnb_txpkt2gnttab_2cluster()
1260 } else if (M_TRAILINGSPACE(pMbuf) == 2 * MCLBYTES) { in xnb_txpkt2gnttab_2cluster()
1552 m->m_len = MAX(M_TRAILINGSPACE(m), size_remaining); in xnb_mbufc2pkt_long()
1592 m->m_len = MAX(M_TRAILINGSPACE(m), size_remaining); in xnb_mbufc2pkt_extra()
1632 m->m_len = MAX(M_TRAILINGSPACE(m), size_remaining); in xnb_mbufc2pkt_nospace()
[all …]
H A Dnetback.c1724 const size_t mbuf_space = M_TRAILINGSPACE(mbuf) - m_ofs; in xnb_txpkt2gnttab()
1757 if (M_TRAILINGSPACE(mbuf) - m_ofs <= 0) { in xnb_txpkt2gnttab()
1790 if (M_TRAILINGSPACE(mbuf) <= 0) { in xnb_update_mbufc()
/freebsd-12.1/contrib/smbfs/include/netsmb/
H A Dsmb_lib.h143 #define M_TRAILINGSPACE(m) ((m)->m_maxlen - (m)->m_len) macro
/freebsd-12.1/sys/netgraph/
H A Dng_nat.c756 rval = LibAliasIn(priv->lib, c, m->m_len + M_TRAILINGSPACE(m)); in ng_nat_rcvdata()
766 rval = LibAliasOut(priv->lib, c, m->m_len + M_TRAILINGSPACE(m)); in ng_nat_rcvdata()
H A Dng_tty.c430 length = min(M_TRAILINGSPACE(mb), len - total); in ngt_rint_bypass()
/freebsd-12.1/sys/netpfil/ipfw/
H A Dip_fw_nat.c364 mcl->m_len + M_TRAILINGSPACE(mcl), 0); in ipfw_nat()
379 mcl->m_len + M_TRAILINGSPACE(mcl)); in ipfw_nat()
382 mcl->m_len + M_TRAILINGSPACE(mcl)); in ipfw_nat()
/freebsd-12.1/sys/netinet6/
H A Dicmp6.c686 maxhlen = M_TRAILINGSPACE(n) - in icmp6_input()
1465 lenlim = M_TRAILINGSPACE(n); in ni6_input()
1524 ep = mtod(m, char *) + M_TRAILINGSPACE(m); in ni6_nametodns()
2486 maxlen = M_TRAILINGSPACE(m); in icmp6_redirect_output()
2645 if (8 - extra <= M_TRAILINGSPACE(m0)) { in icmp6_redirect_output()
/freebsd-12.1/sys/dev/ep/
H A Dif_ep.c769 lenthisone = min(rx_fifo, M_TRAILINGSPACE(m)); in epread()
779 lenthisone = min(rx_fifo, M_TRAILINGSPACE(m)); in epread()
/freebsd-12.1/sys/net80211/
H A Dieee80211_superg.c431 if (M_TRAILINGSPACE(m) < pad) { /* prepend to second */ in ieee80211_ff_encap()
564 if (M_TRAILINGSPACE(m) < pad) { /* prepend to second */ in ieee80211_amsdu_encap()
/freebsd-12.1/sys/cam/ctl/
H A Dctl_ha.c768 copylen = min(M_TRAILINGSPACE(mb), len - off); in ctl_ha_msg_send2()
779 copylen = min(M_TRAILINGSPACE(mb), len2 - off); in ctl_ha_msg_send2()
/freebsd-12.1/sys/netinet/
H A Dtcp_subr.c1441 KASSERT(M_TRAILINGSPACE(m) >= tlen, in tcp_respond()
1443 m, tlen, (long)M_TRAILINGSPACE(m))); in tcp_respond()
1449 if (M_TRAILINGSPACE(m) < TCP_MAXOLEN) { in tcp_respond()
H A Dip_icmp.c320 icmplen = min(icmplen, M_TRAILINGSPACE(m) - in icmp_error()
/freebsd-12.1/sys/kgssapi/krb5/
H A Dkrb5_mech.c1308 if (M_TRAILINGSPACE(mlast) >= padlen) { in krb5_wrap_old()
1448 if (M_TRAILINGSPACE(mlast) >= EC + 16 + cklen) { in krb5_wrap_new()
/freebsd-12.1/sys/dev/vte/
H A Dif_vte.c1018 padlen > M_TRAILINGSPACE(m))) in vte_encap()
1062 if (M_TRAILINGSPACE(m) < padlen) { in vte_encap()

12