Lines Matching defs:txq
769 struct ath5k_txq *txq, int padsize,
875 spin_lock_bh(&txq->lock);
876 list_add_tail(&bf->list, &txq->q);
877 txq->txq_len++;
878 if (txq->link == NULL) /* is this first packet? */
879 ath5k_hw_set_txdp(ah, txq->qnum, bf->daddr);
881 *txq->link = bf->daddr;
883 txq->link = &ds->ds_link;
884 ath5k_hw_start_tx_dma(ah, txq->qnum);
885 spin_unlock_bh(&txq->lock);
1022 struct ath5k_txq *txq;
1055 txq = &ah->txqs[qnum];
1056 if (!txq->setup) {
1057 txq->qnum = qnum;
1058 txq->link = NULL;
1059 INIT_LIST_HEAD(&txq->q);
1060 spin_lock_init(&txq->lock);
1061 txq->setup = true;
1062 txq->txq_len = 0;
1063 txq->txq_max = ATH5K_TXQ_LEN_MAX;
1064 txq->txq_poll_mark = false;
1065 txq->txq_stuck = 0;
1157 struct ath5k_txq *txq;
1163 txq = &ah->txqs[i];
1164 spin_lock_bh(&txq->lock);
1165 list_for_each_entry_safe(bf, bf0, &txq->q, list) {
1173 txq->txq_len--;
1176 txq->link = NULL;
1177 txq->txq_poll_mark = false;
1178 spin_unlock_bh(&txq->lock);
1186 struct ath5k_txq *txq = ah->txqs;
1189 for (i = 0; i < ARRAY_SIZE(ah->txqs); i++, txq++)
1190 if (txq->setup) {
1191 ath5k_hw_release_tx_queue(ah, txq->qnum);
1192 txq->setup = false;
1656 struct ath5k_txq *txq, struct ieee80211_tx_control *control)
1663 trace_ath5k_tx(ah, skb, txq);
1676 if (txq->txq_len >= txq->txq_max &&
1677 txq->qnum <= AR5K_TX_QUEUE_ID_DATA_MAX)
1678 ieee80211_stop_queue(hw, txq->qnum);
1696 if (ath5k_txbuf_setup(ah, bf, txq, padsize, control)) {
1712 struct ath5k_txq *txq, struct ath5k_tx_status *ts,
1772 trace_ath5k_tx_complete(ah, skb, txq, ts);
1777 ath5k_tx_processq(struct ath5k_hw *ah, struct ath5k_txq *txq)
1785 spin_lock(&txq->lock);
1786 list_for_each_entry_safe(bf, bf0, &txq->q, list) {
1788 txq->txq_poll_mark = false;
1800 "queue %u\n", ret, txq->qnum);
1809 ath5k_tx_frame_completed(ah, skb, txq, &ts, bf);
1818 if (ath5k_hw_get_txdp(ah, txq->qnum) != bf->daddr) {
1822 txq->txq_len--;
1826 spin_unlock(&txq->lock);
1827 if (txq->txq_len < ATH5K_TXQ_LEN_LOW && txq->qnum < 4)
1828 ieee80211_wake_queue(ah->hw, txq->qnum);
2510 struct ath5k_txq *txq;
2521 txq = &ah->txqs[i];
2522 spin_lock_bh(&txq->lock);
2523 if (txq->txq_len > 1) {
2524 if (txq->txq_poll_mark) {
2527 txq->qnum);
2529 txq->txq_stuck++;
2530 spin_unlock_bh(&txq->lock);
2533 txq->txq_poll_mark = true;
2536 spin_unlock_bh(&txq->lock);
3031 struct ath5k_txq *txq;
3081 txq = ath5k_txq_setup(ah, AR5K_TX_QUEUE_DATA, AR5K_WME_AC_VO);
3082 if (IS_ERR(txq)) {
3084 ret = PTR_ERR(txq);
3087 txq = ath5k_txq_setup(ah, AR5K_TX_QUEUE_DATA, AR5K_WME_AC_VI);
3088 if (IS_ERR(txq)) {
3090 ret = PTR_ERR(txq);
3093 txq = ath5k_txq_setup(ah, AR5K_TX_QUEUE_DATA, AR5K_WME_AC_BE);
3094 if (IS_ERR(txq)) {
3096 ret = PTR_ERR(txq);
3099 txq = ath5k_txq_setup(ah, AR5K_TX_QUEUE_DATA, AR5K_WME_AC_BK);
3100 if (IS_ERR(txq)) {
3102 ret = PTR_ERR(txq);
3108 txq = ath5k_txq_setup(ah, AR5K_TX_QUEUE_DATA, AR5K_WME_AC_BE);
3109 if (IS_ERR(txq)) {
3111 ret = PTR_ERR(txq);