Lines Matching refs:tx
58 spin_lock_bh(&priv->tx.tx_lock); in ath9k_htc_check_stop_queues()
59 priv->tx.queued_cnt++; in ath9k_htc_check_stop_queues()
60 if ((priv->tx.queued_cnt >= ATH9K_HTC_TX_THRESHOLD) && in ath9k_htc_check_stop_queues()
61 !(priv->tx.flags & ATH9K_HTC_OP_TX_QUEUES_STOP)) { in ath9k_htc_check_stop_queues()
62 priv->tx.flags |= ATH9K_HTC_OP_TX_QUEUES_STOP; in ath9k_htc_check_stop_queues()
65 spin_unlock_bh(&priv->tx.tx_lock); in ath9k_htc_check_stop_queues()
70 spin_lock_bh(&priv->tx.tx_lock); in ath9k_htc_check_wake_queues()
71 if ((priv->tx.queued_cnt < ATH9K_HTC_TX_THRESHOLD) && in ath9k_htc_check_wake_queues()
72 (priv->tx.flags & ATH9K_HTC_OP_TX_QUEUES_STOP)) { in ath9k_htc_check_wake_queues()
73 priv->tx.flags &= ~ATH9K_HTC_OP_TX_QUEUES_STOP; in ath9k_htc_check_wake_queues()
76 spin_unlock_bh(&priv->tx.tx_lock); in ath9k_htc_check_wake_queues()
83 spin_lock_bh(&priv->tx.tx_lock); in ath9k_htc_tx_get_slot()
84 slot = find_first_zero_bit(priv->tx.tx_slot, MAX_TX_BUF_NUM); in ath9k_htc_tx_get_slot()
86 spin_unlock_bh(&priv->tx.tx_lock); in ath9k_htc_tx_get_slot()
89 __set_bit(slot, priv->tx.tx_slot); in ath9k_htc_tx_get_slot()
90 spin_unlock_bh(&priv->tx.tx_lock); in ath9k_htc_tx_get_slot()
97 spin_lock_bh(&priv->tx.tx_lock); in ath9k_htc_tx_clear_slot()
98 __clear_bit(slot, priv->tx.tx_slot); in ath9k_htc_tx_clear_slot()
99 spin_unlock_bh(&priv->tx.tx_lock); in ath9k_htc_tx_clear_slot()
137 epid_queue = &priv->tx.mgmt_ep_queue; in get_htc_epid_queue()
139 epid_queue = &priv->tx.cab_ep_queue; in get_htc_epid_queue()
141 epid_queue = &priv->tx.data_be_queue; in get_htc_epid_queue()
143 epid_queue = &priv->tx.data_bk_queue; in get_htc_epid_queue()
145 epid_queue = &priv->tx.data_vi_queue; in get_htc_epid_queue()
147 epid_queue = &priv->tx.data_vo_queue; in get_htc_epid_queue()
392 spin_lock_bh(&priv->tx.tx_lock); in __ath9k_htc_check_tx_aggr()
395 spin_unlock_bh(&priv->tx.tx_lock); in __ath9k_htc_check_tx_aggr()
430 spin_lock_bh(&priv->tx.tx_lock); in ath9k_htc_check_tx_aggr()
432 spin_unlock_bh(&priv->tx.tx_lock); in ath9k_htc_check_tx_aggr()
504 spin_lock_bh(&priv->tx.tx_lock); in ath9k_htc_tx_process()
505 if (WARN_ON(--priv->tx.queued_cnt < 0)) in ath9k_htc_tx_process()
506 priv->tx.queued_cnt = 0; in ath9k_htc_tx_process()
507 spin_unlock_bh(&priv->tx.tx_lock); in ath9k_htc_tx_process()
538 spin_lock_bh(&priv->tx.tx_lock); in ath9k_htc_tx_drain()
539 priv->tx.flags |= ATH9K_HTC_OP_TX_DRAIN; in ath9k_htc_tx_drain()
540 spin_unlock_bh(&priv->tx.tx_lock); in ath9k_htc_tx_drain()
550 ath9k_htc_tx_drainq(priv, &priv->tx.mgmt_ep_queue); in ath9k_htc_tx_drain()
551 ath9k_htc_tx_drainq(priv, &priv->tx.cab_ep_queue); in ath9k_htc_tx_drain()
552 ath9k_htc_tx_drainq(priv, &priv->tx.data_be_queue); in ath9k_htc_tx_drain()
553 ath9k_htc_tx_drainq(priv, &priv->tx.data_bk_queue); in ath9k_htc_tx_drain()
554 ath9k_htc_tx_drainq(priv, &priv->tx.data_vi_queue); in ath9k_htc_tx_drain()
555 ath9k_htc_tx_drainq(priv, &priv->tx.data_vo_queue); in ath9k_htc_tx_drain()
556 ath9k_htc_tx_drainq(priv, &priv->tx.tx_failed); in ath9k_htc_tx_drain()
568 spin_lock_bh(&priv->tx.tx_lock); in ath9k_htc_tx_drain()
569 priv->tx.flags &= ~ATH9K_HTC_OP_TX_DRAIN; in ath9k_htc_tx_drain()
570 spin_unlock_bh(&priv->tx.tx_lock); in ath9k_htc_tx_drain()
577 spin_lock_bh(&priv->tx.tx_lock); in ath9k_tx_failed_tasklet()
578 if (priv->tx.flags & ATH9K_HTC_OP_TX_DRAIN) { in ath9k_tx_failed_tasklet()
579 spin_unlock_bh(&priv->tx.tx_lock); in ath9k_tx_failed_tasklet()
582 spin_unlock_bh(&priv->tx.tx_lock); in ath9k_tx_failed_tasklet()
584 ath9k_htc_tx_drainq(priv, &priv->tx.tx_failed); in ath9k_tx_failed_tasklet()
696 skb_queue_tail(&priv->tx.tx_failed, skb); in ath9k_htc_txep()
788 ath9k_htc_tx_cleanup_queue(priv, &priv->tx.mgmt_ep_queue); in ath9k_htc_tx_cleanup_timer()
789 ath9k_htc_tx_cleanup_queue(priv, &priv->tx.cab_ep_queue); in ath9k_htc_tx_cleanup_timer()
790 ath9k_htc_tx_cleanup_queue(priv, &priv->tx.data_be_queue); in ath9k_htc_tx_cleanup_timer()
791 ath9k_htc_tx_cleanup_queue(priv, &priv->tx.data_bk_queue); in ath9k_htc_tx_cleanup_timer()
792 ath9k_htc_tx_cleanup_queue(priv, &priv->tx.data_vi_queue); in ath9k_htc_tx_cleanup_timer()
793 ath9k_htc_tx_cleanup_queue(priv, &priv->tx.data_vo_queue); in ath9k_htc_tx_cleanup_timer()
798 mod_timer(&priv->tx.cleanup_timer, in ath9k_htc_tx_cleanup_timer()
804 skb_queue_head_init(&priv->tx.mgmt_ep_queue); in ath9k_tx_init()
805 skb_queue_head_init(&priv->tx.cab_ep_queue); in ath9k_tx_init()
806 skb_queue_head_init(&priv->tx.data_be_queue); in ath9k_tx_init()
807 skb_queue_head_init(&priv->tx.data_bk_queue); in ath9k_tx_init()
808 skb_queue_head_init(&priv->tx.data_vi_queue); in ath9k_tx_init()
809 skb_queue_head_init(&priv->tx.data_vo_queue); in ath9k_tx_init()
810 skb_queue_head_init(&priv->tx.tx_failed); in ath9k_tx_init()