Home
last modified time | relevance | path

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

12

/freebsd-13.1/sys/fs/nfsclient/
H A Dnfs_clcomsubs.c86 mlen = M_TRAILINGSPACE(mp); in nfsm_uiombuf()
100 mlen = M_TRAILINGSPACE(mp); in nfsm_uiombuf()
130 M_TRAILINGSPACE(mp)) { in nfsm_uiombuf()
200 mlen = M_TRAILINGSPACE(mp); in nfsm_uiombuflist()
214 mlen = M_TRAILINGSPACE(mp); in nfsm_uiombuflist()
244 rem <= M_TRAILINGSPACE(mp), in nfsm_uiombuflist()
/freebsd-13.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-13.1/sys/netipsec/
H A Dipsec_mbuf.c91 } else if (hlen > M_TRAILINGSPACE(m)) { in m_makespace()
123 if (hlen <= M_TRAILINGSPACE(m) + remain) { in m_makespace()
218 if (pad > M_TRAILINGSPACE(m0)) { in m_pad()
/freebsd-13.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.c759 M_TRAILINGSPACE(m) < n->m_len) { in m_cat()
1198 M_TRAILINGSPACE(m)); in m_copyback()
1241 space = M_TRAILINGSPACE(m); in m_append()
1603 n->m_len < M_TRAILINGSPACE(m)) { in m_collapse()
1882 length = min(M_TRAILINGSPACE(mb), total - progress); in m_uiotombuf()
2019 m->m_len <= M_TRAILINGSPACE(mprev)) { in m_unshare()
2048 m->m_len <= M_TRAILINGSPACE(mprev)) { in m_unshare()
H A Duipc_sockbuf.c168 n->m_len <= M_TRAILINGSPACE(m) && in sbready_compress()
1321 m->m_len <= M_TRAILINGSPACE(n) && in sbcompress()
1392 m->m_len <= M_TRAILINGSPACE(n)) { in sbcompress_ktls_rx()
1739 KASSERT(CMSG_SPACE((u_int)size) <= M_TRAILINGSPACE(m), in sbcreatecontrol_how()
H A Duipc_mbuf2.c211 if ((off == 0 || offp) && M_TRAILINGSPACE(n) >= tlen in m_pulldown()
/freebsd-13.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-13.1/sys/rpc/
H A Drpcm_subs.h84 { if ((s) > M_TRAILINGSPACE(mb)) { \
/freebsd-13.1/sys/fs/nfs/
H A Dnfsm_subs.h67 siz > M_TRAILINGSPACE(nd->nd_mb)) { in nfsm_build()
/freebsd-13.1/sys/dev/xen/netback/
H A Dnetback_unit_tests.c1015 XNB_ASSERT(M_TRAILINGSPACE(pMbuf) >= size); in xnb_pkt2mbufc_short()
1032 XNB_ASSERT(M_TRAILINGSPACE(pMbuf) >= size); in xnb_pkt2mbufc_csum()
1053 XNB_ASSERT(M_TRAILINGSPACE(pMbuf) >= size); in xnb_pkt2mbufc_1cluster()
1070 XNB_ASSERT(M_TRAILINGSPACE(pMbuf) >= size); in xnb_pkt2mbufc_largecluster()
1091 space += M_TRAILINGSPACE(m); in xnb_pkt2mbufc_2cluster()
1235 if (M_TRAILINGSPACE(pMbuf) == MCLBYTES) { in xnb_txpkt2gnttab_2cluster()
1256 } else if (M_TRAILINGSPACE(pMbuf) == 2 * MCLBYTES) { in xnb_txpkt2gnttab_2cluster()
1547 m->m_len = MAX(M_TRAILINGSPACE(m), size_remaining); in xnb_mbufc2pkt_long()
1587 m->m_len = MAX(M_TRAILINGSPACE(m), size_remaining); in xnb_mbufc2pkt_extra()
1627 m->m_len = MAX(M_TRAILINGSPACE(m), size_remaining); in xnb_mbufc2pkt_nospace()
[all …]
H A Dnetback.c1715 const size_t mbuf_space = M_TRAILINGSPACE(mbuf) - m_ofs; in xnb_txpkt2gnttab()
1748 if (M_TRAILINGSPACE(mbuf) - m_ofs <= 0) { in xnb_txpkt2gnttab()
1781 if (M_TRAILINGSPACE(mbuf) <= 0) { in xnb_update_mbufc()
/freebsd-13.1/contrib/smbfs/include/netsmb/
H A Dsmb_lib.h143 #define M_TRAILINGSPACE(m) ((m)->m_maxlen - (m)->m_len) macro
/freebsd-13.1/sys/netgraph/
H A Dng_nat.c830 M_TRAILINGSPACE(m)); in ng_nat_rcvdata()
841 M_TRAILINGSPACE(m)); in ng_nat_rcvdata()
H A Dng_tty.c430 length = min(M_TRAILINGSPACE(mb), len - total); in ngt_rint_bypass()
/freebsd-13.1/sys/netpfil/ipfw/
H A Dip_fw_nat.c367 mcl->m_len + M_TRAILINGSPACE(mcl), 0); in ipfw_nat()
382 mcl->m_len + M_TRAILINGSPACE(mcl)); in ipfw_nat()
385 mcl->m_len + M_TRAILINGSPACE(mcl)); in ipfw_nat()
/freebsd-13.1/sys/netinet6/
H A Dicmp6.c710 maxhlen = M_TRAILINGSPACE(n) - in icmp6_input()
1469 lenlim = M_TRAILINGSPACE(n); in ni6_input()
1528 ep = mtod(m, char *) + M_TRAILINGSPACE(m); in ni6_nametodns()
2472 maxlen = M_TRAILINGSPACE(m); in icmp6_redirect_output()
2629 if (8 - extra <= M_TRAILINGSPACE(m0)) { in icmp6_redirect_output()
/freebsd-13.1/sys/net80211/
H A Dieee80211_superg.c430 if (M_TRAILINGSPACE(m) < pad) { /* prepend to second */ in ieee80211_ff_encap()
563 if (M_TRAILINGSPACE(m) < pad) { /* prepend to second */ in ieee80211_amsdu_encap()
/freebsd-13.1/sys/netinet/
H A Dip_fastfwd.c184 mcopy->m_len = min(ip_len, M_TRAILINGSPACE(mcopy)); in ip_redir_alloc()
H A Dtcp_lro.c1145 if (M_TRAILINGSPACE(m) >= sizeof(struct tcp_ackent)) { in tcp_lro_get_last_if_ackcmp()
1701 if (M_TRAILINGSPACE(nm) < sizeof(struct tcp_ackent)) { in do_bpf_strip_and_compress()
1707 MPASS(M_TRAILINGSPACE(nm) >= sizeof(struct tcp_ackent)); in do_bpf_strip_and_compress()
H A Dip_icmp.c330 icmplen = min(icmplen, M_TRAILINGSPACE(m) - in icmp_error()
/freebsd-13.1/sys/cam/ctl/
H A Dctl_ha.c707 copylen = min(M_TRAILINGSPACE(mb), len - off); in ctl_ha_msg_send2()
718 copylen = min(M_TRAILINGSPACE(mb), len2 - off); in ctl_ha_msg_send2()
/freebsd-13.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-13.1/sys/dev/vte/
H A Dif_vte.c1020 padlen > M_TRAILINGSPACE(m))) in vte_encap()
1064 if (M_TRAILINGSPACE(m) < padlen) { in vte_encap()

12