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

Lines Matching refs:mbuf

35 #include <sys/mbuf.h>
132 STATIC int mvneta_xmitfast_locked(struct mvneta_softc *, int, struct mbuf **);
135 STATIC int mvneta_transmit(struct ifnet *, struct mbuf *);
164 STATIC int mvneta_tx_queue(struct mvneta_softc *, struct mbuf **, int);
166 struct mvneta_tx_desc *, struct mbuf *);
175 struct mvneta_rx_desc *, struct mbuf *);
1806 * the ring without mbuf and no way to call the refill func.
1856 struct mbuf *m;
1896 mvneta_xmitfast_locked(struct mvneta_softc *sc, int q, struct mbuf **m)
1915 /* Reclaim mbuf if above threshold. */
1940 mvneta_transmit(struct ifnet *ifp, struct mbuf *m)
1993 struct mbuf *m;
2039 struct mbuf *m;
2694 mvneta_tx_queue(struct mvneta_softc *sc, struct mbuf **mbufp, int q)
2698 struct mbuf *mtmp, *mbuf;
2705 mbuf = *mbufp;
2712 if (__predict_false(mbuf->m_flags & M_VLANTAG)) {
2713 mbuf = ether_vlanencap(mbuf, mbuf->m_pkthdr.ether_vtag);
2714 if (mbuf == NULL) {
2719 mbuf->m_flags &= ~M_VLANTAG;
2720 *mbufp = mbuf;
2723 if (__predict_false(mbuf->m_next != NULL &&
2724 (mbuf->m_pkthdr.csum_flags &
2726 if (M_WRITABLE(mbuf) == 0) {
2727 mtmp = m_dup(mbuf, M_NOWAIT);
2728 m_freem(mbuf);
2734 *mbufp = mbuf = mtmp;
2738 /* load mbuf using dmamap of 1st descriptor */
2741 txbuf->dmap, mbuf, txsegs, &txnsegs,
2750 m_freem(mbuf);
2759 /* we have no enough descriptors or mbuf is broken */
2769 /* remember mbuf using 1st descriptor */
2770 txbuf->m = mbuf;
2786 mvneta_tx_set_csumflag(ifp, t, mbuf);
2816 struct mvneta_tx_desc *t, struct mbuf *m)
2954 * Handle trailing mbuf on TX queue.
3026 struct mbuf *m;
3059 /* Prefetch mbuf header. */
3079 /* Prefetch mbuf data. */
3082 /* Write value to mbuf (avoid read). */
3165 struct mbuf *m;
3194 KASSERT(1, ("Failed to load Rx mbuf DMA map"));
3229 struct mvneta_rx_desc *r, struct mbuf *m)