MCPcopy Create free account
hub / github.com/F-Stack/f-stack / awg_clean_txbuf

Function awg_clean_txbuf

freebsd/arm/allwinner/if_awg.c:709–724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

707}
708
709static void
710awg_clean_txbuf(struct awg_softc *sc, int index)
711{
712 struct awg_bufmap *bmap;
713
714 --sc->tx.queued;
715
716 bmap = &sc->tx.buf_map[index];
717 if (bmap->mbuf != NULL) {
718 bus_dmamap_sync(sc->tx.buf_tag, bmap->map,
719 BUS_DMASYNC_POSTWRITE);
720 bus_dmamap_unload(sc->tx.buf_tag, bmap->map);
721 m_freem(bmap->mbuf);
722 bmap->mbuf = NULL;
723 }
724}
725
726static void
727awg_setup_rxdesc(struct awg_softc *sc, int index, bus_addr_t paddr)

Callers 2

awg_stopFunction · 0.85
awg_txeofFunction · 0.85

Calls 3

bus_dmamap_syncFunction · 0.50
bus_dmamap_unloadFunction · 0.50
m_freemFunction · 0.50

Tested by

no test coverage detected