Home
last modified time | relevance | path

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

12

/freebsd-14.2/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()
202 mlen = M_TRAILINGSPACE(mp); in nfsm_uiombuflist()
216 mlen = M_TRAILINGSPACE(mp); in nfsm_uiombuflist()
251 rem <= M_TRAILINGSPACE(mp), in nfsm_uiombuflist()
/freebsd-14.2/sys/xdr/
H A Dxdr_mbuf.c217 sz = M_TRAILINGSPACE(m) + (m->m_len - xdrs->x_handy); in xdrmbuf_putbytes()
227 if (xdrs->x_handy == m->m_len && M_TRAILINGSPACE(m) == 0) { in xdrmbuf_putbytes()
287 available = M_TRAILINGSPACE(m) + (m->m_len - xdrs->x_handy); in xdrmbuf_inline()
/freebsd-14.2/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-14.2/sys/kern/
H A Dsubr_mchain.c74 mbp->mb_mleft = M_TRAILINGSPACE(m); in mb_initm()
122 mbp->mb_mleft = M_TRAILINGSPACE(m); in mb_reserve()
212 mleft = M_TRAILINGSPACE(m); in mb_put_mem()
263 mbp->mb_mleft = M_TRAILINGSPACE(m); in mb_put_mbuf()
H A Duipc_mbuf.c796 M_TRAILINGSPACE(m) < n->m_len) { in m_cat()
1235 M_TRAILINGSPACE(m)); in m_copyback()
1278 space = M_TRAILINGSPACE(m); in m_append()
1640 n->m_len < M_TRAILINGSPACE(m)) { in m_collapse()
1919 length = min(M_TRAILINGSPACE(mb), total - progress); in m_uiotombuf()
2060 m->m_len <= M_TRAILINGSPACE(mprev)) { in m_unshare()
2089 m->m_len <= M_TRAILINGSPACE(mprev)) { in m_unshare()
H A Duipc_sockbuf.c168 n->m_len <= M_TRAILINGSPACE(m) && in sbready_compress()
1439 m->m_len <= M_TRAILINGSPACE(n) && in sbcompress()
1511 m->m_len <= M_TRAILINGSPACE(n)) { in sbcompress_ktls_rx()
1863 KASSERT(CMSG_SPACE(size) <= M_TRAILINGSPACE(m), in sbcreatecontrol()
H A Duipc_mbuf2.c209 if ((off == 0 || offp) && M_TRAILINGSPACE(n) >= tlen in m_pulldown()
/freebsd-14.2/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-14.2/sys/rpc/
H A Drpcm_subs.h83 { if ((s) > M_TRAILINGSPACE(mb)) { \
/freebsd-14.2/sys/netinet/
H A Dtcp_lro_hpts.c210 if (M_TRAILINGSPACE(m) >= sizeof(struct tcp_ackent)) { in tcp_lro_get_last_if_ackcmp()
426 if (M_TRAILINGSPACE(nm) < sizeof(struct tcp_ackent)) { in do_bpf_strip_and_compress()
432 MPASS(M_TRAILINGSPACE(nm) >= sizeof(struct tcp_ackent)); in do_bpf_strip_and_compress()
H A Dip_fastfwd.c183 mcopy->m_len = min(ip_len, M_TRAILINGSPACE(mcopy)); in ip_redir_alloc()
/freebsd-14.2/sys/fs/nfs/
H A Dnfsm_subs.h64 siz > M_TRAILINGSPACE(nd->nd_mb)) { in nfsm_build()
/freebsd-14.2/sys/dev/xen/netback/
H A Dnetback_unit_tests.c1007 XNB_ASSERT(M_TRAILINGSPACE(pMbuf) >= size); in xnb_pkt2mbufc_short()
1024 XNB_ASSERT(M_TRAILINGSPACE(pMbuf) >= size); in xnb_pkt2mbufc_csum()
1045 XNB_ASSERT(M_TRAILINGSPACE(pMbuf) >= size); in xnb_pkt2mbufc_1cluster()
1062 XNB_ASSERT(M_TRAILINGSPACE(pMbuf) >= size); in xnb_pkt2mbufc_largecluster()
1083 space += M_TRAILINGSPACE(m); in xnb_pkt2mbufc_2cluster()
1227 if (M_TRAILINGSPACE(pMbuf) == MCLBYTES) { in xnb_txpkt2gnttab_2cluster()
1248 } else if (M_TRAILINGSPACE(pMbuf) == 2 * MCLBYTES) { in xnb_txpkt2gnttab_2cluster()
1539 m->m_len = MAX(M_TRAILINGSPACE(m), size_remaining); in xnb_mbufc2pkt_long()
1579 m->m_len = MAX(M_TRAILINGSPACE(m), size_remaining); in xnb_mbufc2pkt_extra()
1619 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-14.2/contrib/smbfs/include/netsmb/
H A Dsmb_lib.h143 #define M_TRAILINGSPACE(m) ((m)->m_maxlen - (m)->m_len) macro
/freebsd-14.2/sys/netgraph/
H A Dng_nat.c828 M_TRAILINGSPACE(m)); in ng_nat_rcvdata()
839 M_TRAILINGSPACE(m)); in ng_nat_rcvdata()
H A Dng_tty.c428 length = min(M_TRAILINGSPACE(mb), len - total); in ngt_rint_bypass()
/freebsd-14.2/sys/netpfil/ipfw/
H A Dip_fw_nat.c366 mcl->m_len + M_TRAILINGSPACE(mcl), 0); in ipfw_nat()
381 mcl->m_len + M_TRAILINGSPACE(mcl)); in ipfw_nat()
384 mcl->m_len + M_TRAILINGSPACE(mcl)); in ipfw_nat()
/freebsd-14.2/sys/netinet6/
H A Dicmp6.c732 maxhlen = M_TRAILINGSPACE(n) - in icmp6_input()
1498 lenlim = M_TRAILINGSPACE(n); in ni6_input()
1557 ep = mtod(m, char *) + M_TRAILINGSPACE(m); in ni6_nametodns()
2434 maxlen = M_TRAILINGSPACE(m); in icmp6_redirect_output()
2591 if (8 - extra <= M_TRAILINGSPACE(m0)) { in icmp6_redirect_output()
/freebsd-14.2/sys/net80211/
H A Dieee80211_superg.c428 if (M_TRAILINGSPACE(m) < pad) { /* prepend to second */ in ieee80211_ff_encap()
561 if (M_TRAILINGSPACE(m) < pad) { /* prepend to second */ in ieee80211_amsdu_encap()
/freebsd-14.2/sys/cam/ctl/
H A Dctl_ha.c705 copylen = min(M_TRAILINGSPACE(mb), len - off); in ctl_ha_msg_send2()
716 copylen = min(M_TRAILINGSPACE(mb), len2 - off); in ctl_ha_msg_send2()
/freebsd-14.2/sys/netlink/
H A Dnetlink_message_writer.c304 nw->alloc_len = M_TRAILINGSPACE(m); in nlmsg_get_ns_mbuf()
/freebsd-14.2/sys/kgssapi/krb5/
H A Dkrb5_mech.c1305 if (M_TRAILINGSPACE(mlast) >= padlen) { in krb5_wrap_old()
1445 if (M_TRAILINGSPACE(mlast) >= EC + 16 + cklen) { in krb5_wrap_new()
/freebsd-14.2/sys/dev/vte/
H A Dif_vte.c1009 padlen > M_TRAILINGSPACE(m))) in vte_encap()
1053 if (M_TRAILINGSPACE(m) < padlen) { in vte_encap()

12