• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/xen/netback/

Lines Matching refs:mbuf

154 			 const struct mbuf *mbufc, gnttab_copy_table gnttab);
156 struct mbuf **mbufc, struct ifnet *ifnet,
163 static struct mbuf *xnb_pkt2mbufc(const struct xnb_pkt *pkt, struct ifnet *ifp);
165 struct mbuf *mbufc,
169 static void xnb_update_mbufc(struct mbuf *mbufc,
171 static int xnb_mbufc2pkt(const struct mbuf *mbufc,
175 const struct mbuf *mbufc,
193 static void xnb_add_mbuf_cksum(struct mbuf *mbufc);
579 xnb_dump_mbuf(const struct mbuf *m)
1443 struct mbuf *mbufc;
1595 * as in the hypervisor copy op or mbuf allocation
1648 * Create an mbuf chain to represent a packet. Initializes all of the headers
1649 * in the mbuf chain, but does not copy the data. The returned chain must be
1651 * \param[in] pkt A packet to model the mbuf chain after
1652 * \return A newly allocated mbuf chain, possibly with clusters attached.
1655 static struct mbuf*
1663 struct mbuf *m;
1700 xnb_txpkt2gnttab(const struct xnb_pkt *pkt, struct mbuf *mbufc,
1705 struct mbuf *mbuf = mbufc;/* current mbuf within the chain */
1709 int m_ofs = 0; /* offset of next data within mbuf's data area */
1715 const size_t mbuf_space = M_TRAILINGSPACE(mbuf) - m_ofs;
1732 mtod(mbuf, vm_offset_t) + m_ofs);
1734 mtod(mbuf, vm_offset_t) + m_ofs);
1748 if (M_TRAILINGSPACE(mbuf) - m_ofs <= 0) {
1749 /* Must move to the next mbuf */
1751 mbuf = mbuf->m_next;
1761 * \param[in,out] mbufc mbuf chain to update. The chain must be valid and of
1767 xnb_update_mbufc(struct mbuf *mbufc, const gnttab_copy_table gnttab,
1770 struct mbuf *mbuf = mbufc;
1779 mbuf->m_len += gnttab[i].len;
1781 if (M_TRAILINGSPACE(mbuf) <= 0) {
1782 mbuf = mbuf->m_next;
1799 * \param[out] mbufc The assembled mbuf chain, ready to send to the generic
1807 xnb_recv(netif_tx_back_ring_t *txb, domid_t otherend, struct mbuf **mbufc,
1867 * Create an xnb_pkt based on the contents of an mbuf chain.
1868 * \param[in] mbufc mbuf chain to transform into a packet
1879 xnb_mbufc2pkt(const struct mbuf *mbufc, struct xnb_pkt *pkt,
1918 * Assume that we can defragment the mbuf chain efficiently
1940 * Build a gnttab_copy table that can be used to copy data from an mbuf chain
1952 xnb_rxpkt2gnttab(const struct xnb_pkt *pkt, const struct mbuf *mbufc,
1957 const struct mbuf *mbuf = mbufc;/* current mbuf within the chain */
1961 int m_ofs = 0; /* offset of next data within mbuf's data area */
1969 const size_t mbuf_space = mbuf->m_len - m_ofs;
1986 mtod(mbuf, vm_offset_t) + m_ofs);
1988 mtod(mbuf, vm_offset_t) + m_ofs);
2003 if (mbuf->m_len - m_ofs <= 0) {
2004 /* Must move to the next mbuf */
2006 mbuf = mbuf->m_next;
2134 * Add IP, TCP, and/or UDP checksums to every mbuf in a chain. The first mbuf
2141 xnb_add_mbuf_cksum(struct mbuf *mbufc)
2316 struct mbuf *mbufc;
2392 xnb_send(netif_rx_back_ring_t *ring, domid_t otherend, const struct mbuf *mbufc,