Lines Matching refs:txq

231 	error = rt2560_alloc_tx_ring(sc, &sc->txq, RT2560_TX_RING_COUNT);
334 fail2: rt2560_free_tx_ring(sc, &sc->txq);
351 rt2560_free_tx_ring(sc, &sc->txq);
866 hw = RAL_READ(sc, RT2560_SECCSR1) - sc->txq.physaddr;
869 bus_dmamap_sync(sc->txq.desc_dmat, sc->txq.desc_map,
872 while (sc->txq.next_encrypt != hw) {
873 if (sc->txq.next_encrypt == sc->txq.cur_encrypt) {
875 sc->txq.cur_encrypt);
879 desc = &sc->txq.desc[sc->txq.next_encrypt];
895 sc->txq.next_encrypt);
897 sc->txq.next_encrypt =
898 (sc->txq.next_encrypt + 1) % RT2560_TX_RING_COUNT;
901 bus_dmamap_sync(sc->txq.desc_dmat, sc->txq.desc_map,
919 bus_dmamap_sync(sc->txq.desc_dmat, sc->txq.desc_map,
924 desc = &sc->txq.desc[sc->txq.next];
925 data = &sc->txq.data[sc->txq.next];
977 bus_dmamap_sync(sc->txq.data_dmat, data->map,
979 bus_dmamap_unload(sc->txq.data_dmat, data->map);
988 DPRINTFN(sc, 15, "tx done idx=%u\n", sc->txq.next);
990 sc->txq.queued--;
991 sc->txq.next = (sc->txq.next + 1) % RT2560_TX_RING_COUNT;
994 bus_dmamap_sync(sc->txq.desc_dmat, sc->txq.desc_map,
997 if (sc->prioq.queued == 0 && sc->txq.queued == 0)
1000 if (sc->txq.queued < RT2560_TX_RING_COUNT - 1)
1075 if (sc->prioq.queued == 0 && sc->txq.queued == 0)
1611 desc = &sc->txq.desc[sc->txq.cur_encrypt];
1612 data = &sc->txq.data[sc->txq.cur_encrypt];
1614 error = bus_dmamap_load_mbuf_sg(sc->txq.data_dmat, data->map,
1636 bus_dmamap_sync(sc->txq.data_dmat, data->map,
1639 sc->txq.queued++;
1640 sc->txq.cur_encrypt = (sc->txq.cur_encrypt + 1) % RT2560_TX_RING_COUNT;
1783 data = &sc->txq.data[sc->txq.cur_encrypt];
1784 desc = &sc->txq.desc[sc->txq.cur_encrypt];
1786 error = bus_dmamap_load_mbuf_sg(sc->txq.data_dmat, data->map, m0,
1804 error = bus_dmamap_load_mbuf_sg(sc->txq.data_dmat, data->map,
1849 bus_dmamap_sync(sc->txq.data_dmat, data->map, BUS_DMASYNC_PREWRITE);
1850 bus_dmamap_sync(sc->txq.desc_dmat, sc->txq.desc_map,
1854 m0->m_pkthdr.len, sc->txq.cur_encrypt, rate);
1857 sc->txq.queued++;
1858 sc->txq.cur_encrypt = (sc->txq.cur_encrypt + 1) % RT2560_TX_RING_COUNT;
1894 while (sc->txq.queued < RT2560_TX_RING_COUNT - 1 &&
2579 RAL_WRITE(sc, RT2560_TXCSR3, sc->txq.physaddr);
2688 rt2560_reset_tx_ring(sc, &sc->txq);