Lines Matching +full:need +full:- +full:phy +full:- +full:for +full:- +full:wake
1 // SPDX-License-Identifier: ISC
11 if (!txq->sta) in mt76_txq_get_qid()
14 return txq->ac; in mt76_txq_get_qid()
20 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in mt76_tx_check_agg_ssn()
25 if (!sta || !ieee80211_is_data_qos(hdr->frame_control) || in mt76_tx_check_agg_ssn()
26 !ieee80211_is_data_present(hdr->frame_control)) in mt76_tx_check_agg_ssn()
29 tid = skb->priority & IEEE80211_QOS_CTL_TAG1D_MASK; in mt76_tx_check_agg_ssn()
30 txq = sta->txq[tid]; in mt76_tx_check_agg_ssn()
31 mtxq = (struct mt76_txq *)txq->drv_priv; in mt76_tx_check_agg_ssn()
32 if (!mtxq->aggr) in mt76_tx_check_agg_ssn()
35 mtxq->agg_ssn = le16_to_cpu(hdr->seq_ctrl) + 0x10; in mt76_tx_check_agg_ssn()
41 __acquires(&dev->status_lock) in mt76_tx_status_lock()
44 spin_lock_bh(&dev->status_lock); in mt76_tx_status_lock()
50 __releases(&dev->status_lock) in mt76_tx_status_unlock()
55 spin_unlock_bh(&dev->status_lock); in mt76_tx_status_unlock()
67 wcid = rcu_dereference(dev->wcid[cb->wcid]); in mt76_tx_status_unlock()
70 if (status.sta && (wcid->rate.flags || wcid->rate.legacy)) { in mt76_tx_status_unlock()
71 rs.rate_idx = wcid->rate; in mt76_tx_status_unlock()
80 spin_lock_bh(&dev->rx_lock); in mt76_tx_status_unlock()
82 spin_unlock_bh(&dev->rx_lock); in mt76_tx_status_unlock()
96 flags |= cb->flags; in __mt76_tx_status_skb_done()
97 cb->flags = flags; in __mt76_tx_status_skb_done()
104 info->status.rates[0].count = 0; in __mt76_tx_status_skb_done()
105 info->status.rates[0].idx = -1; in __mt76_tx_status_skb_done()
106 info->flags |= IEEE80211_TX_STAT_ACK; in __mt76_tx_status_skb_done()
124 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in mt76_tx_status_skb_add()
131 if (!wcid || !rcu_access_pointer(dev->wcid[wcid->idx])) in mt76_tx_status_skb_add()
134 if (info->flags & IEEE80211_TX_CTL_NO_ACK) in mt76_tx_status_skb_add()
137 if (!(info->flags & (IEEE80211_TX_CTL_REQ_TX_STATUS | in mt76_tx_status_skb_add()
139 if (mtk_wed_device_active(&dev->mmio.wed) && in mt76_tx_status_skb_add()
140 ((info->flags & IEEE80211_TX_CTL_HW_80211_ENCAP) || in mt76_tx_status_skb_add()
141 ieee80211_is_data(hdr->frame_control))) in mt76_tx_status_skb_add()
147 spin_lock_bh(&dev->status_lock); in mt76_tx_status_skb_add()
149 pid = idr_alloc(&wcid->pktid, skb, MT_PACKET_ID_FIRST, in mt76_tx_status_skb_add()
156 cb->wcid = wcid->idx; in mt76_tx_status_skb_add()
157 cb->pktid = pid; in mt76_tx_status_skb_add()
159 if (list_empty(&wcid->list)) in mt76_tx_status_skb_add()
160 list_add_tail(&wcid->list, &dev->wcid_list); in mt76_tx_status_skb_add()
163 spin_unlock_bh(&dev->status_lock); in mt76_tx_status_skb_add()
176 lockdep_assert_held(&dev->status_lock); in mt76_tx_status_skb_get()
178 skb = idr_remove(&wcid->pktid, pktid); in mt76_tx_status_skb_get()
182 /* look for stale entries in the wcid idr queue */ in mt76_tx_status_skb_get()
183 idr_for_each_entry(&wcid->pktid, skb, id) { in mt76_tx_status_skb_get()
187 if (!(cb->flags & MT_TX_CB_DMA_DONE)) in mt76_tx_status_skb_get()
190 if (time_is_after_jiffies(cb->jiffies + in mt76_tx_status_skb_get()
196 * and stop waiting for TXS callback. in mt76_tx_status_skb_get()
198 idr_remove(&wcid->pktid, cb->pktid); in mt76_tx_status_skb_get()
204 if (idr_is_empty(&wcid->pktid)) in mt76_tx_status_skb_get()
205 list_del_init(&wcid->list); in mt76_tx_status_skb_get()
218 list_for_each_entry_safe(wcid, tmp, &dev->wcid_list, list) in mt76_tx_status_check()
219 mt76_tx_status_skb_get(dev, wcid, flush ? -1 : 0, &list); in mt76_tx_status_check()
231 if (!wcid || info->tx_time_est) in mt76_tx_check_non_aql()
234 pending = atomic_dec_return(&wcid->non_aql_packets); in mt76_tx_check_non_aql()
236 atomic_cmpxchg(&wcid->non_aql_packets, pending, 0); in mt76_tx_check_non_aql()
253 if (wcid_idx < ARRAY_SIZE(dev->wcid)) in __mt76_tx_complete_skb()
254 wcid = rcu_dereference(dev->wcid[wcid_idx]); in __mt76_tx_complete_skb()
260 struct mt76_phy *phy = hw->priv; in __mt76_tx_complete_skb() local
262 if (skb == phy->test.tx_skb) in __mt76_tx_complete_skb()
263 phy->test.tx_done++; in __mt76_tx_complete_skb()
264 if (phy->test.tx_queued == phy->test.tx_done) in __mt76_tx_complete_skb()
265 wake_up(&dev->tx_wait); in __mt76_tx_complete_skb()
272 if (cb->pktid < MT_PACKET_ID_FIRST) { in __mt76_tx_complete_skb()
277 if (status.sta && (wcid->rate.flags || wcid->rate.legacy)) { in __mt76_tx_complete_skb()
278 rs.rate_idx = wcid->rate; in __mt76_tx_complete_skb()
282 spin_lock_bh(&dev->rx_lock); in __mt76_tx_complete_skb()
284 spin_unlock_bh(&dev->rx_lock); in __mt76_tx_complete_skb()
289 cb->jiffies = jiffies; in __mt76_tx_complete_skb()
299 __mt76_tx_queue_skb(struct mt76_phy *phy, int qid, struct sk_buff *skb, in __mt76_tx_queue_skb() argument
304 struct mt76_queue *q = phy->q_tx[qid]; in __mt76_tx_queue_skb()
305 struct mt76_dev *dev = phy->dev; in __mt76_tx_queue_skb()
310 non_aql = !info->tx_time_est; in __mt76_tx_queue_skb()
311 idx = dev->queue_ops->tx_queue_skb(dev, q, qid, skb, wcid, sta); in __mt76_tx_queue_skb()
315 wcid = (struct mt76_wcid *)sta->drv_priv; in __mt76_tx_queue_skb()
316 q->entry[idx].wcid = wcid->idx; in __mt76_tx_queue_skb()
321 pending = atomic_inc_return(&wcid->non_aql_packets); in __mt76_tx_queue_skb()
329 mt76_tx(struct mt76_phy *phy, struct ieee80211_sta *sta, in mt76_tx() argument
334 if (mt76_testmode_enabled(phy)) { in mt76_tx()
335 ieee80211_free_txskb(phy->hw, skb); in mt76_tx()
342 if (wcid && !(wcid->tx_info & MT_WCID_TX_INFO_SET)) in mt76_tx()
343 ieee80211_get_tx_rates(info->control.vif, sta, skb, in mt76_tx()
344 info->control.rates, 1); in mt76_tx()
346 info->hw_queue |= FIELD_PREP(MT_TX_HW_QUEUE_PHY, phy->band_idx); in mt76_tx()
348 spin_lock_bh(&wcid->tx_pending.lock); in mt76_tx()
349 __skb_queue_tail(&wcid->tx_pending, skb); in mt76_tx()
350 spin_unlock_bh(&wcid->tx_pending.lock); in mt76_tx()
352 spin_lock_bh(&phy->tx_lock); in mt76_tx()
353 if (list_empty(&wcid->tx_list)) in mt76_tx()
354 list_add_tail(&wcid->tx_list, &phy->tx_list); in mt76_tx()
355 spin_unlock_bh(&phy->tx_lock); in mt76_tx()
357 mt76_worker_schedule(&phy->dev->tx_worker); in mt76_tx()
362 mt76_txq_dequeue(struct mt76_phy *phy, struct mt76_txq *mtxq) in mt76_txq_dequeue() argument
368 skb = ieee80211_tx_dequeue(phy->hw, txq); in mt76_txq_dequeue()
373 info->hw_queue |= FIELD_PREP(MT_TX_HW_QUEUE_PHY, phy->band_idx); in mt76_txq_dequeue()
379 mt76_queue_ps_skb(struct mt76_phy *phy, struct ieee80211_sta *sta, in mt76_queue_ps_skb() argument
382 struct mt76_wcid *wcid = (struct mt76_wcid *)sta->drv_priv; in mt76_queue_ps_skb()
385 info->control.flags |= IEEE80211_TX_CTRL_PS_RESPONSE; in mt76_queue_ps_skb()
387 info->flags |= IEEE80211_TX_STATUS_EOSP | in mt76_queue_ps_skb()
391 __mt76_tx_queue_skb(phy, MT_TXQ_PSD, skb, wcid, sta, NULL); in mt76_queue_ps_skb()
400 struct mt76_phy *phy = hw->priv; in mt76_release_buffered_frames() local
401 struct mt76_dev *dev = phy->dev; in mt76_release_buffered_frames()
403 struct mt76_queue *hwq = phy->q_tx[MT_TXQ_PSD]; in mt76_release_buffered_frames()
406 spin_lock_bh(&hwq->lock); in mt76_release_buffered_frames()
407 for (i = 0; tids && nframes; i++, tids >>= 1) { in mt76_release_buffered_frames()
408 struct ieee80211_txq *txq = sta->txq[i]; in mt76_release_buffered_frames()
409 struct mt76_txq *mtxq = (struct mt76_txq *)txq->drv_priv; in mt76_release_buffered_frames()
416 skb = mt76_txq_dequeue(phy, mtxq); in mt76_release_buffered_frames()
420 nframes--; in mt76_release_buffered_frames()
422 mt76_queue_ps_skb(phy, sta, last_skb, false); in mt76_release_buffered_frames()
429 mt76_queue_ps_skb(phy, sta, last_skb, true); in mt76_release_buffered_frames()
430 dev->queue_ops->kick(dev, hwq); in mt76_release_buffered_frames()
435 spin_unlock_bh(&hwq->lock); in mt76_release_buffered_frames()
442 return q->stopped || q->blocked || in mt76_txq_stopped()
443 q->queued + MT_TXQ_FREE_THR >= q->ndesc; in mt76_txq_stopped()
447 mt76_txq_send_burst(struct mt76_phy *phy, struct mt76_queue *q, in mt76_txq_send_burst() argument
450 struct mt76_dev *dev = phy->dev; in mt76_txq_send_burst()
459 if (test_bit(MT_WCID_FLAG_PS, &wcid->flags)) in mt76_txq_send_burst()
462 if (atomic_read(&wcid->non_aql_packets) >= MT_MAX_NON_AQL_PKT) in mt76_txq_send_burst()
465 skb = mt76_txq_dequeue(phy, mtxq); in mt76_txq_send_burst()
470 if (!(wcid->tx_info & MT_WCID_TX_INFO_SET)) in mt76_txq_send_burst()
471 ieee80211_get_tx_rates(txq->vif, txq->sta, skb, in mt76_txq_send_burst()
472 info->control.rates, 1); in mt76_txq_send_burst()
474 spin_lock(&q->lock); in mt76_txq_send_burst()
475 idx = __mt76_tx_queue_skb(phy, qid, skb, wcid, txq->sta, &stop); in mt76_txq_send_burst()
476 spin_unlock(&q->lock); in mt76_txq_send_burst()
481 if (test_bit(MT76_RESET, &phy->state)) in mt76_txq_send_burst()
482 return -EBUSY; in mt76_txq_send_burst()
487 skb = mt76_txq_dequeue(phy, mtxq); in mt76_txq_send_burst()
492 if (!(wcid->tx_info & MT_WCID_TX_INFO_SET)) in mt76_txq_send_burst()
493 ieee80211_get_tx_rates(txq->vif, txq->sta, skb, in mt76_txq_send_burst()
494 info->control.rates, 1); in mt76_txq_send_burst()
496 spin_lock(&q->lock); in mt76_txq_send_burst()
497 idx = __mt76_tx_queue_skb(phy, qid, skb, wcid, txq->sta, &stop); in mt76_txq_send_burst()
498 spin_unlock(&q->lock); in mt76_txq_send_burst()
505 spin_lock(&q->lock); in mt76_txq_send_burst()
506 dev->queue_ops->kick(dev, q); in mt76_txq_send_burst()
507 spin_unlock(&q->lock); in mt76_txq_send_burst()
513 mt76_txq_schedule_list(struct mt76_phy *phy, enum mt76_txq_id qid) in mt76_txq_schedule_list() argument
515 struct mt76_queue *q = phy->q_tx[qid]; in mt76_txq_schedule_list()
516 struct mt76_dev *dev = phy->dev; in mt76_txq_schedule_list()
525 if (test_bit(MT76_RESET, &phy->state)) in mt76_txq_schedule_list()
526 return -EBUSY; in mt76_txq_schedule_list()
528 if (dev->queue_ops->tx_cleanup && in mt76_txq_schedule_list()
529 q->queued + 2 * MT_TXQ_FREE_THR >= q->ndesc) { in mt76_txq_schedule_list()
530 dev->queue_ops->tx_cleanup(dev, q, false); in mt76_txq_schedule_list()
533 txq = ieee80211_next_txq(phy->hw, qid); in mt76_txq_schedule_list()
537 mtxq = (struct mt76_txq *)txq->drv_priv; in mt76_txq_schedule_list()
538 wcid = rcu_dereference(dev->wcid[mtxq->wcid]); in mt76_txq_schedule_list()
539 if (!wcid || test_bit(MT_WCID_FLAG_PS, &wcid->flags)) in mt76_txq_schedule_list()
542 if (mtxq->send_bar && mtxq->aggr) { in mt76_txq_schedule_list()
544 struct ieee80211_sta *sta = txq->sta; in mt76_txq_schedule_list()
545 struct ieee80211_vif *vif = txq->vif; in mt76_txq_schedule_list()
546 u16 agg_ssn = mtxq->agg_ssn; in mt76_txq_schedule_list()
547 u8 tid = txq->tid; in mt76_txq_schedule_list()
549 mtxq->send_bar = false; in mt76_txq_schedule_list()
550 ieee80211_send_bar(vif, sta->addr, tid, agg_ssn); in mt76_txq_schedule_list()
554 n_frames = mt76_txq_send_burst(phy, q, mtxq, wcid); in mt76_txq_schedule_list()
556 ieee80211_return_txq(phy->hw, txq, false); in mt76_txq_schedule_list()
567 void mt76_txq_schedule(struct mt76_phy *phy, enum mt76_txq_id qid) in mt76_txq_schedule() argument
578 ieee80211_txq_schedule_start(phy->hw, qid); in mt76_txq_schedule()
579 len = mt76_txq_schedule_list(phy, qid); in mt76_txq_schedule()
580 ieee80211_txq_schedule_end(phy->hw, qid); in mt76_txq_schedule()
589 mt76_txq_schedule_pending_wcid(struct mt76_phy *phy, struct mt76_wcid *wcid) in mt76_txq_schedule_pending_wcid() argument
591 struct mt76_dev *dev = phy->dev; in mt76_txq_schedule_pending_wcid()
597 spin_lock(&wcid->tx_pending.lock); in mt76_txq_schedule_pending_wcid()
598 while ((skb = skb_peek(&wcid->tx_pending)) != NULL) { in mt76_txq_schedule_pending_wcid()
599 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data; in mt76_txq_schedule_pending_wcid()
603 if ((dev->drv->drv_flags & MT_DRV_HW_MGMT_TXQ) && in mt76_txq_schedule_pending_wcid()
604 !(info->flags & IEEE80211_TX_CTL_HW_80211_ENCAP) && in mt76_txq_schedule_pending_wcid()
605 !ieee80211_is_data(hdr->frame_control) && in mt76_txq_schedule_pending_wcid()
609 q = phy->q_tx[qid]; in mt76_txq_schedule_pending_wcid()
611 ret = -1; in mt76_txq_schedule_pending_wcid()
615 __skb_unlink(skb, &wcid->tx_pending); in mt76_txq_schedule_pending_wcid()
616 spin_unlock(&wcid->tx_pending.lock); in mt76_txq_schedule_pending_wcid()
619 spin_lock(&q->lock); in mt76_txq_schedule_pending_wcid()
620 __mt76_tx_queue_skb(phy, qid, skb, wcid, sta, NULL); in mt76_txq_schedule_pending_wcid()
621 dev->queue_ops->kick(dev, q); in mt76_txq_schedule_pending_wcid()
622 spin_unlock(&q->lock); in mt76_txq_schedule_pending_wcid()
624 spin_lock(&wcid->tx_pending.lock); in mt76_txq_schedule_pending_wcid()
626 spin_unlock(&wcid->tx_pending.lock); in mt76_txq_schedule_pending_wcid()
631 static void mt76_txq_schedule_pending(struct mt76_phy *phy) in mt76_txq_schedule_pending() argument
633 if (list_empty(&phy->tx_list)) in mt76_txq_schedule_pending()
639 spin_lock(&phy->tx_lock); in mt76_txq_schedule_pending()
640 while (!list_empty(&phy->tx_list)) { in mt76_txq_schedule_pending()
644 wcid = list_first_entry(&phy->tx_list, struct mt76_wcid, tx_list); in mt76_txq_schedule_pending()
645 list_del_init(&wcid->tx_list); in mt76_txq_schedule_pending()
647 spin_unlock(&phy->tx_lock); in mt76_txq_schedule_pending()
648 ret = mt76_txq_schedule_pending_wcid(phy, wcid); in mt76_txq_schedule_pending()
649 spin_lock(&phy->tx_lock); in mt76_txq_schedule_pending()
652 if (list_empty(&wcid->tx_list)) in mt76_txq_schedule_pending()
653 list_add_tail(&wcid->tx_list, &phy->tx_list); in mt76_txq_schedule_pending()
657 spin_unlock(&phy->tx_lock); in mt76_txq_schedule_pending()
663 void mt76_txq_schedule_all(struct mt76_phy *phy) in mt76_txq_schedule_all() argument
667 mt76_txq_schedule_pending(phy); in mt76_txq_schedule_all()
668 for (i = 0; i <= MT_TXQ_BK; i++) in mt76_txq_schedule_all()
669 mt76_txq_schedule(phy, i); in mt76_txq_schedule_all()
675 struct mt76_phy *phy; in mt76_tx_worker_run() local
678 for (i = 0; i < ARRAY_SIZE(dev->phys); i++) { in mt76_tx_worker_run()
679 phy = dev->phys[i]; in mt76_tx_worker_run()
680 if (!phy) in mt76_tx_worker_run()
683 mt76_txq_schedule_all(phy); in mt76_tx_worker_run()
687 for (i = 0; i < ARRAY_SIZE(dev->phys); i++) { in mt76_tx_worker_run()
688 phy = dev->phys[i]; in mt76_tx_worker_run()
689 if (!phy || !phy->test.tx_pending) in mt76_tx_worker_run()
692 mt76_testmode_tx_pending(phy); in mt76_tx_worker_run()
705 void mt76_stop_tx_queues(struct mt76_phy *phy, struct ieee80211_sta *sta, in mt76_stop_tx_queues() argument
710 for (i = 0; i < ARRAY_SIZE(sta->txq); i++) { in mt76_stop_tx_queues()
711 struct ieee80211_txq *txq = sta->txq[i]; in mt76_stop_tx_queues()
718 hwq = phy->q_tx[mt76_txq_get_qid(txq)]; in mt76_stop_tx_queues()
719 mtxq = (struct mt76_txq *)txq->drv_priv; in mt76_stop_tx_queues()
721 spin_lock_bh(&hwq->lock); in mt76_stop_tx_queues()
722 mtxq->send_bar = mtxq->aggr && send_bar; in mt76_stop_tx_queues()
723 spin_unlock_bh(&hwq->lock); in mt76_stop_tx_queues()
730 struct mt76_phy *phy = hw->priv; in mt76_wake_tx_queue() local
731 struct mt76_dev *dev = phy->dev; in mt76_wake_tx_queue()
733 if (!test_bit(MT76_STATE_RUNNING, &phy->state)) in mt76_wake_tx_queue()
736 mt76_worker_schedule(&dev->tx_worker); in mt76_wake_tx_queue()
760 /* First packet of a A-MSDU burst keeps track of the whole burst in mt76_skb_adjust_pad()
761 * length, need to update length of it and the last packet. in mt76_skb_adjust_pad()
765 if (!iter->next) { in mt76_skb_adjust_pad()
766 skb->data_len += pad; in mt76_skb_adjust_pad()
767 skb->len += pad; in mt76_skb_adjust_pad()
773 return -ENOMEM; in mt76_skb_adjust_pad()
784 if (e->skb) in mt76_queue_tx_complete()
785 dev->drv->tx_complete_skb(dev, e); in mt76_queue_tx_complete()
787 spin_lock_bh(&q->lock); in mt76_queue_tx_complete()
788 q->tail = (q->tail + 1) % q->ndesc; in mt76_queue_tx_complete()
789 q->queued--; in mt76_queue_tx_complete()
790 spin_unlock_bh(&q->lock); in mt76_queue_tx_complete()
796 struct mt76_phy *phy = &dev->phy; in __mt76_set_tx_blocked() local
797 struct mt76_queue *q = phy->q_tx[0]; in __mt76_set_tx_blocked()
799 if (blocked == q->blocked) in __mt76_set_tx_blocked()
802 q->blocked = blocked; in __mt76_set_tx_blocked()
804 phy = dev->phys[MT_BAND1]; in __mt76_set_tx_blocked()
805 if (phy) { in __mt76_set_tx_blocked()
806 q = phy->q_tx[0]; in __mt76_set_tx_blocked()
807 q->blocked = blocked; in __mt76_set_tx_blocked()
809 phy = dev->phys[MT_BAND2]; in __mt76_set_tx_blocked()
810 if (phy) { in __mt76_set_tx_blocked()
811 q = phy->q_tx[0]; in __mt76_set_tx_blocked()
812 q->blocked = blocked; in __mt76_set_tx_blocked()
816 mt76_worker_schedule(&dev->tx_worker); in __mt76_set_tx_blocked()
824 spin_lock_bh(&dev->token_lock); in mt76_token_consume()
826 token = idr_alloc(&dev->token, *ptxwi, 0, dev->token_size, GFP_ATOMIC); in mt76_token_consume()
828 dev->token_count++; in mt76_token_consume()
831 if (mtk_wed_device_active(&dev->mmio.wed) && in mt76_token_consume()
832 token >= dev->mmio.wed.wlan.token_start) in mt76_token_consume()
833 dev->wed_token_count++; in mt76_token_consume()
836 if (dev->token_count >= dev->token_size - MT76_TOKEN_FREE_THR) in mt76_token_consume()
839 spin_unlock_bh(&dev->token_lock); in mt76_token_consume()
850 spin_lock_bh(&dev->rx_token_lock); in mt76_rx_token_consume()
851 token = idr_alloc(&dev->rx_token, t, 0, dev->rx_token_size, in mt76_rx_token_consume()
854 t->ptr = ptr; in mt76_rx_token_consume()
855 t->dma_addr = phys; in mt76_rx_token_consume()
857 spin_unlock_bh(&dev->rx_token_lock); in mt76_rx_token_consume()
864 mt76_token_release(struct mt76_dev *dev, int token, bool *wake) in mt76_token_release() argument
868 spin_lock_bh(&dev->token_lock); in mt76_token_release()
870 txwi = idr_remove(&dev->token, token); in mt76_token_release()
872 dev->token_count--; in mt76_token_release()
875 if (mtk_wed_device_active(&dev->mmio.wed) && in mt76_token_release()
876 token >= dev->mmio.wed.wlan.token_start && in mt76_token_release()
877 --dev->wed_token_count == 0) in mt76_token_release()
878 wake_up(&dev->tx_wait); in mt76_token_release()
882 if (dev->token_count < dev->token_size - MT76_TOKEN_FREE_THR && in mt76_token_release()
883 dev->phy.q_tx[0]->blocked) in mt76_token_release()
884 *wake = true; in mt76_token_release()
886 spin_unlock_bh(&dev->token_lock); in mt76_token_release()
897 spin_lock_bh(&dev->rx_token_lock); in mt76_rx_token_release()
898 t = idr_remove(&dev->rx_token, token); in mt76_rx_token_release()
899 spin_unlock_bh(&dev->rx_token_lock); in mt76_rx_token_release()