Home
last modified time | relevance | path

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

12

/freebsd/sys/fs/nfsclient/
H A Dnfs_clcomsubs.c84 mlen = M_TRAILINGSPACE(mp); in nfsm_uiombuf()
98 mlen = M_TRAILINGSPACE(mp); in nfsm_uiombuf()
131 M_TRAILINGSPACE(mp)) { in nfsm_uiombuf()
201 mlen = M_TRAILINGSPACE(mp); in nfsm_uiombuflist()
214 mlen = M_TRAILINGSPACE(mp); in nfsm_uiombuflist()
249 rem <= M_TRAILINGSPACE(mp), in nfsm_uiombuflist()
/freebsd/sys/xdr/
H A Dxdr_mbuf.c220 sz = M_TRAILINGSPACE(m) + (m->m_len - xdrs->x_handy); in xdrmbuf_putbytes()
230 if (xdrs->x_handy == m->m_len && M_TRAILINGSPACE(m) == 0) { in xdrmbuf_putbytes()
290 available = M_TRAILINGSPACE(m) + (m->m_len - xdrs->x_handy); in xdrmbuf_inline()
/freebsd/sys/netipsec/
H A Dipsec_mbuf.c89 } else if (hlen > M_TRAILINGSPACE(m)) { in m_makespace()
119 if (hlen <= M_TRAILINGSPACE(m) + remain) { in m_makespace()
213 if (pad > M_TRAILINGSPACE(m0)) { in m_pad()
/freebsd/sys/kern/
H A Dsubr_mchain.c73 mbp->mb_mleft = M_TRAILINGSPACE(m); in mb_initm()
121 mbp->mb_mleft = M_TRAILINGSPACE(m); in mb_reserve()
211 mleft = M_TRAILINGSPACE(m); in mb_put_mem()
262 mbp->mb_mleft = M_TRAILINGSPACE(m); in mb_put_mbuf()
H A Duipc_mbuf.c794 M_TRAILINGSPACE(m) < n->m_len) { in m_cat()
1299 M_TRAILINGSPACE(m)); in m_copyback()
1342 space = M_TRAILINGSPACE(m); in m_append()
1706 n->m_len < M_TRAILINGSPACE(m)) { in m_collapse()
2030 mlen = min(M_TRAILINGSPACE(mb), total - mc->mc_len); in mc_uiotomc()
2164 m->m_len <= M_TRAILINGSPACE(mprev)) { in m_unshare()
2193 m->m_len <= M_TRAILINGSPACE(mprev)) { in m_unshare()
H A Duipc_sockbuf.c166 n->m_len <= M_TRAILINGSPACE(m) && in sbready_compress()
1428 m->m_len <= M_TRAILINGSPACE(n) && in sbcompress()
1500 m->m_len <= M_TRAILINGSPACE(n)) { in sbcompress_ktls_rx()
1846 KASSERT(CMSG_SPACE(size) <= M_TRAILINGSPACE(m), in sbcreatecontrol()
H A Duipc_mbuf2.c207 if ((off == 0 || offp) && M_TRAILINGSPACE(n) >= tlen in m_pulldown()
/freebsd/contrib/smbfs/lib/smb/
H A Dmbuf.c177 len -= M_TRAILINGSPACE(mp); in m_getm()
210 if (M_TRAILINGSPACE(m) < (int)size) { in mb_fit()
294 cplen = M_TRAILINGSPACE(m); in mb_put_mem()
H A Drq.c101 cplen = M_TRAILINGSPACE(m); in smb_rq_dmem()
/freebsd/sys/rpc/
H A Drpcm_subs.h81 { if ((s) > M_TRAILINGSPACE(mb)) { \
/freebsd/sys/netgraph/
H A Dng_nat.c835 M_TRAILINGSPACE(m)); in ng_nat_rcvdata()
846 M_TRAILINGSPACE(m)); in ng_nat_rcvdata()
861 if (new_m_len > (m->m_len + M_TRAILINGSPACE(m))) { in ng_nat_rcvdata()
871 ip_len, m->m_len + (int)M_TRAILINGSPACE(m), ipofs); in ng_nat_rcvdata()
H A Dng_tty.c428 length = min(M_TRAILINGSPACE(mb), len - total); in ngt_rint_bypass()
/freebsd/sys/netinet/
H A Dtcp_lro_hpts.c217 if (M_TRAILINGSPACE(m) >= sizeof(struct tcp_ackent)) { in tcp_lro_get_last_if_ackcmp()
437 if (M_TRAILINGSPACE(nm) < sizeof(struct tcp_ackent)) { in do_bpf_strip_and_compress()
443 MPASS(M_TRAILINGSPACE(nm) >= sizeof(struct tcp_ackent)); in do_bpf_strip_and_compress()
H A Dip_fastfwd.c187 mcopy->m_len = min(ip_len, M_TRAILINGSPACE(mcopy)); in ip_redir_alloc()
H A Dip_icmp.c335 icmplen = min(icmplen, M_TRAILINGSPACE(m) - in icmp_error()
/freebsd/sys/dev/xen/netback/
H A Dnetback_unit_tests.c1008 XNB_ASSERT(M_TRAILINGSPACE(pMbuf) >= size); in xnb_pkt2mbufc_short()
1025 XNB_ASSERT(M_TRAILINGSPACE(pMbuf) >= size); in xnb_pkt2mbufc_csum()
1046 XNB_ASSERT(M_TRAILINGSPACE(pMbuf) >= size); in xnb_pkt2mbufc_1cluster()
1063 XNB_ASSERT(M_TRAILINGSPACE(pMbuf) >= size); in xnb_pkt2mbufc_largecluster()
1084 space += M_TRAILINGSPACE(m); in xnb_pkt2mbufc_2cluster()
1228 if (M_TRAILINGSPACE(pMbuf) == MCLBYTES) { in xnb_txpkt2gnttab_2cluster()
1249 } else if (M_TRAILINGSPACE(pMbuf) == 2 * MCLBYTES) { in xnb_txpkt2gnttab_2cluster()
1540 m->m_len = MAX(M_TRAILINGSPACE(m), size_remaining); in xnb_mbufc2pkt_long()
1580 m->m_len = MAX(M_TRAILINGSPACE(m), size_remaining); in xnb_mbufc2pkt_extra()
1620 m->m_len = MAX(M_TRAILINGSPACE(m), size_remaining); in xnb_mbufc2pkt_nospace()
[all …]
H A Dnetback.c1713 const size_t mbuf_space = M_TRAILINGSPACE(mbuf) - m_ofs; in xnb_txpkt2gnttab()
1746 if (M_TRAILINGSPACE(mbuf) - m_ofs <= 0) { in xnb_txpkt2gnttab()
1779 if (M_TRAILINGSPACE(mbuf) <= 0) { in xnb_update_mbufc()
/freebsd/sys/fs/nfs/
H A Dnfsm_subs.h64 siz > M_TRAILINGSPACE(nd->nd_mb)) { in nfsm_build()
/freebsd/contrib/smbfs/include/netsmb/
H A Dsmb_lib.h143 #define M_TRAILINGSPACE(m) ((m)->m_maxlen - (m)->m_len) macro
/freebsd/sys/netpfil/ipfw/
H A Dip_fw_nat.c365 mcl->m_len + M_TRAILINGSPACE(mcl), 0); in ipfw_nat()
380 mcl->m_len + M_TRAILINGSPACE(mcl)); in ipfw_nat()
383 mcl->m_len + M_TRAILINGSPACE(mcl)); in ipfw_nat()
/freebsd/sys/netinet6/
H A Dicmp6.c733 maxhlen = M_TRAILINGSPACE(n) - in icmp6_input()
1470 lenlim = M_TRAILINGSPACE(n); in ni6_input()
1529 ep = mtod(m, char *) + M_TRAILINGSPACE(m); in ni6_nametodns()
2422 maxlen = M_TRAILINGSPACE(m); in icmp6_redirect_output()
2578 if (8 - extra <= M_TRAILINGSPACE(m0)) { in icmp6_redirect_output()
/freebsd/sys/net80211/
H A Dieee80211_superg.c429 if (M_TRAILINGSPACE(m) < pad) { /* prepend to second */ in ieee80211_ff_encap()
562 if (M_TRAILINGSPACE(m) < pad) { /* prepend to second */ in ieee80211_amsdu_encap()
/freebsd/sys/dev/nvmf/controller/
H A Dctl_frontend_nvmf.c400 mlen = M_TRAILINGSPACE(m); in nvmft_copy_data()
420 mlen = M_TRAILINGSPACE(m); in nvmft_copy_data()
/freebsd/sys/kgssapi/krb5/
H A Dkrb5_mech.c1385 if (M_TRAILINGSPACE(mlast) >= padlen) { in krb5_wrap_old()
1525 if (M_TRAILINGSPACE(mlast) >= EC + 16 + cklen) { in krb5_wrap_new()
/freebsd/sys/dev/vte/
H A Dif_vte.c1004 padlen > M_TRAILINGSPACE(m))) in vte_encap()
1048 if (M_TRAILINGSPACE(m) < padlen) { in vte_encap()

12