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,
923 desc = &sc->txq.desc[sc->txq.next];
924 data = &sc->txq.data[sc->txq.next];
980 bus_dmamap_sync(sc->txq.data_dmat, data->map,
982 bus_dmamap_unload(sc->txq.data_dmat, data->map);
991 DPRINTFN(sc, 15, "tx done idx=%u\n", sc->txq.next);
993 sc->txq.queued--;
994 sc->txq.next = (sc->txq.next + 1) % RT2560_TX_RING_COUNT;
997 bus_dmamap_sync(sc->txq.desc_dmat, sc->txq.desc_map,
1000 if (sc->prioq.queued == 0 && sc->txq.queued == 0)
1003 if (sc->txq.queued < RT2560_TX_RING_COUNT - 1)
1078 if (sc->prioq.queued == 0 && sc->txq.queued == 0)
1632 desc = &sc->txq.desc[sc->txq.cur_encrypt];
1633 data = &sc->txq.data[sc->txq.cur_encrypt];
1635 error = bus_dmamap_load_mbuf_sg(sc->txq.data_dmat, data->map,
1652 bus_dmamap_sync(sc->txq.data_dmat, data->map,
1655 sc->txq.queued++;
1656 sc->txq.cur_encrypt = (sc->txq.cur_encrypt + 1) % RT2560_TX_RING_COUNT;
1800 data = &sc->txq.data[sc->txq.cur_encrypt];
1801 desc = &sc->txq.desc[sc->txq.cur_encrypt];
1803 error = bus_dmamap_load_mbuf_sg(sc->txq.data_dmat, data->map, m0,
1821 error = bus_dmamap_load_mbuf_sg(sc->txq.data_dmat, data->map,
1866 bus_dmamap_sync(sc->txq.data_dmat, data->map, BUS_DMASYNC_PREWRITE);
1867 bus_dmamap_sync(sc->txq.desc_dmat, sc->txq.desc_map,
1871 m0->m_pkthdr.len, sc->txq.cur_encrypt, rate);
1874 sc->txq.queued++;
1875 sc->txq.cur_encrypt = (sc->txq.cur_encrypt + 1) % RT2560_TX_RING_COUNT;
1911 while (sc->txq.queued < RT2560_TX_RING_COUNT - 1 &&
2596 RAL_WRITE(sc, RT2560_TXCSR3, sc->txq.physaddr);
2705 rt2560_reset_tx_ring(sc, &sc->txq);