Lines Matching refs:agg
400 tid_info = rcu_dereference(sta_info->agg[tid]); in carl9170_tx_status_process_ampdu()
1131 struct sk_buff_head agg; in carl9170_tx_ampdu() local
1147 __skb_queue_head_init(&agg); in carl9170_tx_ampdu()
1203 __skb_queue_tail(&agg, skb); in carl9170_tx_ampdu()
1205 if (skb_queue_len(&agg) >= CARL9170_NUM_TX_AGG_MAX) in carl9170_tx_ampdu()
1223 if (skb_queue_empty(&agg)) in carl9170_tx_ampdu()
1227 carl9170_set_ampdu_params(ar, skb_peek(&agg)); in carl9170_tx_ampdu()
1230 carl9170_set_immba(ar, skb_peek_tail(&agg)); in carl9170_tx_ampdu()
1233 skb_queue_splice_tail_init(&agg, &ar->tx_pending[queue]); in carl9170_tx_ampdu()
1401 struct carl9170_sta_tid *agg; in carl9170_tx_ampdu_queue() local
1411 agg = rcu_dereference(sta_info->agg[tid]); in carl9170_tx_ampdu_queue()
1413 if (!agg) in carl9170_tx_ampdu_queue()
1416 spin_lock_bh(&agg->lock); in carl9170_tx_ampdu_queue()
1417 if (unlikely(agg->state < CARL9170_TID_STATE_IDLE)) in carl9170_tx_ampdu_queue()
1421 if (unlikely(!BAW_WITHIN(agg->bsn, CARL9170_BAW_BITS, seq))) in carl9170_tx_ampdu_queue()
1424 if (WARN_ON_ONCE(!BAW_WITHIN(agg->snx, CARL9170_BAW_BITS, seq))) in carl9170_tx_ampdu_queue()
1427 off = SEQ_DIFF(seq, agg->bsn); in carl9170_tx_ampdu_queue()
1428 if (WARN_ON_ONCE(test_and_set_bit(off, agg->bitmap))) in carl9170_tx_ampdu_queue()
1431 if (likely(BAW_WITHIN(agg->hsn, CARL9170_BAW_BITS, seq))) { in carl9170_tx_ampdu_queue()
1432 __skb_queue_tail(&agg->queue, skb); in carl9170_tx_ampdu_queue()
1433 agg->hsn = seq; in carl9170_tx_ampdu_queue()
1437 skb_queue_reverse_walk(&agg->queue, iter) { in carl9170_tx_ampdu_queue()
1441 __skb_queue_after(&agg->queue, iter, skb); in carl9170_tx_ampdu_queue()
1446 __skb_queue_head(&agg->queue, skb); in carl9170_tx_ampdu_queue()
1449 if (unlikely(agg->state != CARL9170_TID_STATE_XMIT)) { in carl9170_tx_ampdu_queue()
1450 if (agg->snx == carl9170_get_seq(skb_peek(&agg->queue))) { in carl9170_tx_ampdu_queue()
1451 agg->state = CARL9170_TID_STATE_XMIT; in carl9170_tx_ampdu_queue()
1456 spin_unlock_bh(&agg->lock); in carl9170_tx_ampdu_queue()
1462 spin_unlock_bh(&agg->lock); in carl9170_tx_ampdu_queue()