Lines Matching defs:qid
217 int qid, ntries, error;
259 for (qid = 0; qid < 6; qid++) {
260 if ((error = rt2860_alloc_tx_ring(sc, &sc->txq[qid])) != 0) {
262 sc->sc_dev.dv_xname, qid);
288 fail1: while (--qid >= 0)
289 rt2860_free_tx_ring(sc, &sc->txq[qid]);
403 int qid;
408 for (qid = 0; qid < 6; qid++)
409 rt2860_free_tx_ring(sc, &sc->txq[qid]);
1206 rt2860_tx_intr(struct rt2860_softc *sc, int qid)
1210 struct rt2860_tx_ring *ring = &sc->txq[qid];
1215 hw = RAL_READ(sc, RT2860_TX_DTX_IDX(qid));
1237 sc->qfullmsk &= ~(1 << qid);
1544 uint8_t type, qsel, mcs, pid, tid, qid;
1557 qid = ieee80211_up_to_ac(ic, tid);
1561 qid = (type == IEEE80211_FC0_TYPE_MGT) ?
1564 ring = &sc->txq[qid];
1680 qsel = (qid < EDCA_NUM_AC) ? RT2860_TX_QSEL_EDCA : RT2860_TX_QSEL_MGMT;
1725 DPRINTFN(4, ("sending frame qid=%d wcid=%d nsegs=%d ridx=%d\n",
1726 qid, txwi->wcid, data->map->dm_nsegs, ridx));
1731 sc->qfullmsk |= 1 << qid;
1734 RAL_WRITE(sc, RT2860_TX_CTX_IDX(qid), ring->cur);
3659 int i, qid, ridx, ntries, error;
3813 for (qid = 0; qid < 6; qid++) {
3814 RAL_WRITE(sc, RT2860_TX_BASE_PTR(qid), sc->txq[qid].paddr);
3815 RAL_WRITE(sc, RT2860_TX_MAX_CNT(qid), RT2860_TX_RING_COUNT);
3816 RAL_WRITE(sc, RT2860_TX_CTX_IDX(qid), 0);
3960 int qid;
3990 for (qid = 0; qid < 6; qid++)
3991 rt2860_reset_tx_ring(sc, &sc->txq[qid]);