Lines Matching refs:txq
137 struct ath_txq *txq; in ath_set_data_queue() local
174 txq = &asc->asc_txq[qnum]; in ath_set_data_queue()
175 txq->axq_qnum = qnum; in ath_set_data_queue()
176 txq->axq_depth = 0; in ath_set_data_queue()
177 txq->axq_intrcnt = 0; in ath_set_data_queue()
178 txq->axq_link = NULL; in ath_set_data_queue()
179 list_create(&txq->axq_list, sizeof (struct ath_buf), in ath_set_data_queue()
181 mutex_init(&txq->axq_lock, NULL, MUTEX_DRIVER, NULL); in ath_set_data_queue()
209 struct ath_txq *txq = &asc->asc_txq[i]; in ath_txq_cleanup() local
211 ATH_HAL_RELEASETXQUEUE(asc->asc_ah, txq->axq_qnum); in ath_txq_cleanup()
212 mutex_destroy(&txq->axq_lock); in ath_txq_cleanup()
213 asc->asc_txqsetup &= ~(1 << txq->axq_qnum); in ath_txq_cleanup()
367 ath_drainq(ath_t *asc, struct ath_txq *txq) in ath_drainq() argument
375 mutex_enter(&txq->axq_lock); in ath_drainq()
376 bf = list_head(&txq->axq_list); in ath_drainq()
378 txq->axq_link = NULL; in ath_drainq()
379 mutex_exit(&txq->axq_lock); in ath_drainq()
382 list_remove(&txq->axq_list, bf); in ath_drainq()
383 mutex_exit(&txq->axq_lock); in ath_drainq()
399 struct ath_txq *txq; in ath_draintxq() local
405 txq = &asc->asc_txq[i]; in ath_draintxq()
406 (void) ATH_HAL_STOPTXDMA(ah, txq->axq_qnum); in ath_draintxq()