| 707 | } |
| 708 | |
| 709 | static void |
| 710 | awg_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 | |
| 726 | static void |
| 727 | awg_setup_rxdesc(struct awg_softc *sc, int index, bus_addr_t paddr) |
no test coverage detected