Home
last modified time | relevance | path

Searched full:mt76 (Results 1 – 25 of 155) sorted by relevance

1234567

/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_mmio.c16 struct mt76x02_dev *dev = from_tasklet(dev, t, mt76.pre_tbtt_tasklet); in mt76x02_pre_tbtt_tasklet()
17 struct mt76_dev *mdev = &dev->mt76; in mt76x02_pre_tbtt_tasklet()
78 tasklet_enable(&dev->mt76.pre_tbtt_tasklet); in mt76x02e_pre_tbtt_enable()
80 tasklet_disable(&dev->mt76.pre_tbtt_tasklet); in mt76x02e_pre_tbtt_enable()
143 dev = container_of(w, struct mt76x02_dev, mt76.tx_worker); in mt76x02_tx_worker()
154 mt76.tx_napi); in mt76x02_poll_tx()
159 mt76_queue_tx_cleanup(dev, dev->mt76.q_mcu[MT_MCUQ_WM], false); in mt76x02_poll_tx()
166 mt76_queue_tx_cleanup(dev, dev->mt76.q_mcu[MT_MCUQ_WM], false); in mt76x02_poll_tx()
170 mt76_worker_schedule(&dev->mt76.tx_worker); in mt76x02_poll_tx()
185 status_fifo = devm_kzalloc(dev->mt76.dev, fifo_size, GFP_KERNEL); in mt76x02_dma_init()
[all …]
H A Dmt792x_dma.c15 if (test_bit(MT76_REMOVED, &dev->mt76.phy.state)) in mt792x_irq_handler()
22 tasklet_schedule(&dev->mt76.irq_tasklet); in mt792x_irq_handler()
37 intr &= dev->mt76.mmio.irqmask; in mt792x_irq_tasklet()
40 trace_dev_irq(&dev->mt76, intr, dev->mt76.mmio.irqmask); in mt792x_irq_tasklet()
60 mt76_set_irq_mask(&dev->mt76, irq_map->host_irq_enable, mask, 0); in mt792x_irq_tasklet()
63 napi_schedule(&dev->mt76.tx_napi); in mt792x_irq_tasklet()
66 napi_schedule(&dev->mt76.napi[MT_RXQ_MCU]); in mt792x_irq_tasklet()
69 napi_schedule(&dev->mt76.napi[MT_RXQ_MCU_WA]); in mt792x_irq_tasklet()
72 napi_schedule(&dev->mt76.napi[MT_RXQ_MAIN]); in mt792x_irq_tasklet()
78 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt792x_rx_poll_complete()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7915/
H A Dmain.c20 return phy && test_bit(MT76_STATE_RUNNING, &phy->mt76->state); in mt7915_dev_running()
33 ret = mt76_connac_mcu_set_pm(&dev->mt76, in mt7915_run()
34 dev->phy.mt76->band_idx, 0); in mt7915_run()
38 ret = mt7915_mcu_set_mac(dev, dev->phy.mt76->band_idx, in mt7915_run()
43 mt7915_mac_enable_nf(dev, dev->phy.mt76->band_idx); in mt7915_run()
47 ret = mt76_connac_mcu_set_pm(&dev->mt76, in mt7915_run()
48 phy->mt76->band_idx, 0); in mt7915_run()
52 ret = mt7915_mcu_set_mac(dev, phy->mt76->band_idx, in mt7915_run()
57 mt7915_mac_enable_nf(dev, phy->mt76->band_idx); in mt7915_run()
71 ret = mt76_connac_mcu_set_rts_thresh(&dev->mt76, 0x92b, in mt7915_run()
[all …]
H A Deeprom.c10 struct mt76_dev *mdev = &dev->mt76; in mt7915_eeprom_load_precal()
12 u32 offs = is_mt7915(&dev->mt76) ? MT_EE_DO_PRE_CAL : MT_EE_DO_PRE_CAL_V2; in mt7915_eeprom_load_precal()
25 offs = is_mt7915(&dev->mt76) ? MT_EE_PRECAL : MT_EE_PRECAL_V2; in mt7915_eeprom_load_precal()
44 u8 *eeprom = dev->mt76.eeprom.data; in mt7915_check_eeprom()
50 return CHECK_EEPROM_ERR(is_mt7915(&dev->mt76)); in mt7915_check_eeprom()
52 return CHECK_EEPROM_ERR(is_mt7916(&dev->mt76)); in mt7915_check_eeprom()
54 return CHECK_EEPROM_ERR(is_mt7981(&dev->mt76)); in mt7915_check_eeprom()
56 return CHECK_EEPROM_ERR(is_mt7986(&dev->mt76)); in mt7915_check_eeprom()
64 switch (mt76_chip(&dev->mt76)) { in mt7915_eeprom_name()
95 u8 *eeprom = dev->mt76.eeprom.data; in mt7915_eeprom_load_default()
[all …]
H A Ddma.c14 if (mtk_wed_device_active(&dev->mt76.mmio.wed)) { in mt7915_init_tx_queues()
15 if (is_mt798x(&dev->mt76)) in mt7915_init_tx_queues()
21 wed = &dev->mt76.mmio.wed; in mt7915_init_tx_queues()
24 return mt76_connac_init_tx_queues(phy->mt76, idx, n_desc, ring_base, in mt7915_init_tx_queues()
32 dev = container_of(napi, struct mt7915_dev, mt76.tx_napi); in mt7915_poll_tx()
34 mt76_connac_tx_cleanup(&dev->mt76); in mt7915_poll_tx()
54 if (is_mt7915(&dev->mt76)) { in mt7915_dma_config()
87 if (is_mt7916(&dev->mt76) && mtk_wed_device_active(&dev->mt76.mmio.wed)) { in mt7915_dma_config()
139 if (!is_mt7915(&dev->mt76)) { in __mt7915_dma_prefetch()
154 if (is_mt7915(&dev->mt76)) { in __mt7915_dma_prefetch()
[all …]
H A Dinit.c84 mutex_lock(&phy->dev->mt76.mutex); in mt7915_thermal_temp_store()
91 dev_err(phy->dev->mt76.dev, in mt7915_thermal_temp_store()
93 mutex_unlock(&phy->dev->mt76.mutex); in mt7915_thermal_temp_store()
98 mutex_unlock(&phy->dev->mt76.mutex); in mt7915_thermal_temp_store()
150 dev_err(phy->dev->mt76.dev, in mt7915_thermal_set_cur_throttle_state()
179 struct wiphy *wiphy = phy->mt76->hw->wiphy; in mt7915_unregister_thermal()
190 struct wiphy *wiphy = phy->mt76->hw->wiphy; in mt7915_thermal_init()
229 dev = container_of(mphy->dev, struct mt7915_dev, mt76); in mt7915_led_set_config()
284 int i, n_chains = hweight16(phy->mt76->chainmask); in __mt7915_init_txpower()
302 target_power = mt76_get_rate_power_limits(phy->mt76, chan, in __mt7915_init_txpower()
[all …]
H A Dmac.c59 if (idx >= ARRAY_SIZE(dev->mt76.wcid)) in mt7915_rx_get_wcid()
62 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7915_rx_get_wcid()
108 spin_lock_bh(&dev->mt76.sta_poll_lock); in mt7915_mac_sta_poll()
109 list_splice_init(&dev->mt76.sta_poll_list, &sta_poll_list); in mt7915_mac_sta_poll()
110 spin_unlock_bh(&dev->mt76.sta_poll_lock); in mt7915_mac_sta_poll()
121 spin_lock_bh(&dev->mt76.sta_poll_lock); in mt7915_mac_sta_poll()
123 spin_unlock_bh(&dev->mt76.sta_poll_lock); in mt7915_mac_sta_poll()
129 spin_unlock_bh(&dev->mt76.sta_poll_lock); in mt7915_mac_sta_poll()
230 mt76_rx_signal(msta->vif->phy->mt76->antenna_mask, rssi); in mt7915_mac_sta_poll()
273 mtk_wed_device_ppe_check(&dev->mt76.mmio.wed, skb, in mt7915_wed_check_ppe()
[all …]
H A Dmcu.c12 switch (mt76_chip(&(_dev)->mt76)) { \
63 enum nl80211_band band = msta->vif->phy->mt76->chandef.chan->band; in mt7915_mcu_set_sta_he_mcs()
104 if (is_mt7915(&dev->mt76) && nss > 1 && in mt7915_mcu_set_sta_he_mcs()
140 if (is_mt7915(&dev->mt76) && nss > 1 && in mt7915_mcu_set_sta_vht_mcs()
160 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_mcu_parse_response()
170 wake_up(&dev->mt76.mcu.wait); in mt7915_mcu_parse_response()
171 queue_work(dev->mt76.wq, &dev->reset_work); in mt7915_mcu_parse_response()
201 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_mcu_send_message()
226 return mt76_mcu_send_msg(&dev->mt76, cmd, &req, sizeof(req), false); in mt7915_mcu_wa_cmd()
241 struct mt76_phy *mphy = &dev->mt76.phy; in mt7915_mcu_rx_csa_notify()
[all …]
H A Dtestmode.c41 struct mt76_phy *mphy = phy->mt76; in mt7915_tm_set_tx_power()
54 .band_idx = phy->mt76->band_idx, in mt7915_tm_set_tx_power()
59 if (phy->mt76->test.state != MT76_TM_STATE_OFF) in mt7915_tm_set_tx_power()
60 tx_power = phy->mt76->test.tx_power; in mt7915_tm_set_tx_power()
66 ret = mt76_mcu_send_msg(&dev->mt76, in mt7915_tm_set_tx_power()
80 .param.freq.band = phy->mt76->band_idx, in mt7915_tm_set_freq_offset()
84 return mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD(ATE_CTRL), &req, in mt7915_tm_set_freq_offset()
100 return mt76_mcu_send_msg(&dev->mt76, in mt7915_tm_mode_ctrl()
114 .param.trx.band = phy->mt76->band_idx, in mt7915_tm_set_trx()
117 return mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD(ATE_CTRL), &req, in mt7915_tm_set_trx()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmain.c18 if (phy && test_bit(MT76_STATE_RUNNING, &phy->mt76->state)) in mt7996_dev_running()
23 return phy && test_bit(MT76_STATE_RUNNING, &phy->mt76->state); in mt7996_dev_running()
39 if (is_mt7992(&dev->mt76)) { in mt7996_run()
48 mt7996_mac_enable_nf(dev, phy->mt76->band_idx); in mt7996_run()
70 set_bit(MT76_STATE_RUNNING, &phy->mt76->state); in mt7996_run()
72 ieee80211_queue_delayed_work(hw, &phy->mt76->mac_work, in mt7996_run()
89 mutex_lock(&dev->mt76.mutex); in mt7996_start()
91 mutex_unlock(&dev->mt76.mutex); in mt7996_start()
101 cancel_delayed_work_sync(&phy->mt76->mac_work); in mt7996_stop()
103 mutex_lock(&dev->mt76.mutex); in mt7996_stop()
[all …]
H A Ddma.c20 if (phy->mt76->band_idx == MT_BAND2) in mt7996_init_tx_queues()
26 return mt76_connac_init_tx_queues(phy->mt76, idx, n_desc, in mt7996_init_tx_queues()
34 dev = container_of(napi, struct mt7996_dev, mt76.tx_napi); in mt7996_poll_tx()
36 mt76_connac_tx_cleanup(&dev->mt76); in mt7996_poll_tx()
64 if (is_mt7996(&dev->mt76)) { in mt7996_dma_config()
99 if (is_mt7996(&dev->mt76)) { in mt7996_dma_config()
138 queue = is_mt7996(&dev->mt76) ? MT_RXQ_BAND2_WA : MT_RXQ_BAND1_WA; in __mt7996_dma_prefetch()
143 queue = is_mt7996(&dev->mt76) ? MT_RXQ_BAND2 : MT_RXQ_BAND1; in __mt7996_dma_prefetch()
221 struct mtk_wed_device *wed = &dev->mt76.mmio.wed; in mt7996_dma_start()
363 if (mtk_wed_device_active(&dev->mt76.mmio.wed) && in mt7996_dma_enable()
[all …]
H A Dinit.c87 mutex_lock(&phy->dev->mt76.mutex); in mt7996_thermal_temp_store()
95 dev_err(phy->dev->mt76.dev, in mt7996_thermal_temp_store()
97 mutex_unlock(&phy->dev->mt76.mutex); in mt7996_thermal_temp_store()
102 mutex_unlock(&phy->dev->mt76.mutex); in mt7996_thermal_temp_store()
154 dev_err(phy->dev->mt76.dev, in mt7996_thermal_set_cur_throttle_state()
182 struct wiphy *wiphy = phy->mt76->hw->wiphy; in mt7996_unregister_thermal()
193 struct wiphy *wiphy = phy->mt76->hw->wiphy; in mt7996_thermal_init()
234 dev = container_of(mphy->dev, struct mt7996_dev, mt76); in mt7996_led_set_config()
296 int i, nss = hweight16(phy->mt76->chainmask); in __mt7996_init_txpower()
306 target_power = mt76_get_rate_power_limits(phy->mt76, chan, in __mt7996_init_txpower()
[all …]
H A Dmac.c61 if (idx >= ARRAY_SIZE(dev->mt76.wcid)) in mt7996_rx_get_wcid()
64 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7996_rx_get_wcid()
109 spin_lock_bh(&dev->mt76.sta_poll_lock); in mt7996_mac_sta_poll()
110 list_splice_init(&dev->mt76.sta_poll_list, &sta_poll_list); in mt7996_mac_sta_poll()
111 spin_unlock_bh(&dev->mt76.sta_poll_lock); in mt7996_mac_sta_poll()
121 spin_lock_bh(&dev->mt76.sta_poll_lock); in mt7996_mac_sta_poll()
123 spin_unlock_bh(&dev->mt76.sta_poll_lock); in mt7996_mac_sta_poll()
129 spin_unlock_bh(&dev->mt76.sta_poll_lock); in mt7996_mac_sta_poll()
185 mt76_rx_signal(msta->vif->phy->mt76->antenna_mask, rssi); in mt7996_mac_sta_poll()
315 i = mt76_get_rate(&dev->mt76, sband, i, cck); in mt7996_mac_fill_rx_rate()
[all …]
H A Deeprom.c12 u8 *eeprom = dev->mt76.eeprom.data; in mt7996_check_eeprom()
17 return is_mt7996(&dev->mt76) ? 0 : -EINVAL; in mt7996_check_eeprom()
19 return is_mt7992(&dev->mt76) ? 0 : -EINVAL; in mt7996_check_eeprom()
27 switch (mt76_chip(&dev->mt76)) { in mt7996_eeprom_name()
40 u8 *eeprom = dev->mt76.eeprom.data; in mt7996_eeprom_load_default()
44 ret = request_firmware(&fw, mt7996_eeprom_name(dev), dev->mt76.dev); in mt7996_eeprom_load_default()
49 dev_err(dev->mt76.dev, "Invalid default bin\n"); in mt7996_eeprom_load_default()
67 ret = mt76_eeprom_init(&dev->mt76, MT7996_EEPROM_SIZE); in mt7996_eeprom_load()
115 is_mt7992(&dev->mt76)) in mt7996_eeprom_parse_efuse_hw_cap()
123 u8 *eeprom = phy->dev->mt76.eeprom.data; in mt7996_eeprom_parse_band_config()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dmcu.c73 dev->mt76.mcu.timeout = 20 * HZ; in mt7615_mcu_fill_msg()
75 seq = ++dev->mt76.mcu.msg_seq & 0xf; in mt7615_mcu_fill_msg()
77 seq = ++dev->mt76.mcu.msg_seq & 0xf; in mt7615_mcu_fill_msg()
187 struct mt7615_dev *dev = container_of(mdev, struct mt7615_dev, mt76); in mt7615_mcu_send_message()
196 return mt76_tx_queue_skb_raw(dev, dev->mt76.q_mcu[qid], skb, 0); in mt7615_mcu_send_message()
210 return mt76_mcu_send_msg(&dev->mt76, MCU_EXT_QUERY(RF_REG_ACCESS), in mt7615_rf_rr()
226 return mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD(RF_REG_ACCESS), in mt7615_rf_wr()
232 if (!is_mt7622(&dev->mt76)) in mt7622_trigger_hif_int()
243 struct mt76_phy *mphy = &dev->mt76.phy; in mt7615_mcu_drv_pmctrl()
245 struct mt76_dev *mdev = &dev->mt76; in mt7615_mcu_drv_pmctrl()
[all …]
H A Dmain.c24 return phy && test_bit(MT76_STATE_RUNNING, &phy->mt76->state); in mt7615_dev_running()
47 ret = mt76_connac_mcu_set_mac_enable(&dev->mt76, 0, true, false); in mt7615_start()
59 ret = mt76_connac_mcu_set_mac_enable(&dev->mt76, 1, true, false); in mt7615_start()
67 ret = mt76_connac_mcu_set_channel_domain(phy->mt76); in mt7615_start()
71 ret = mt76_connac_mcu_set_rate_txpower(phy->mt76); in mt7615_start()
80 set_bit(MT76_STATE_RUNNING, &phy->mt76->state); in mt7615_start()
83 ieee80211_queue_delayed_work(hw, &phy->mt76->mac_work, timeout); in mt7615_start()
99 cancel_delayed_work_sync(&phy->mt76->mac_work); in mt7615_stop()
110 mt76_testmode_reset(phy->mt76, true); in mt7615_stop()
112 clear_bit(MT76_STATE_RUNNING, &phy->mt76->state); in mt7615_stop()
[all …]
H A Dpci_mac.c65 struct mt7615_dev *dev = container_of(mdev, struct mt7615_dev, mt76); in mt7615_tx_prepare_skb()
76 wcid = &dev->mt76.global_wcid; in mt7615_tx_prepare_skb()
85 spin_lock_bh(&dev->mt76.lock); in mt7615_tx_prepare_skb()
88 spin_unlock_bh(&dev->mt76.lock); in mt7615_tx_prepare_skb()
104 if (is_mt7615(&dev->mt76)) in mt7615_tx_prepare_skb()
128 mt76_queue_tx_cleanup(dev, dev->mt76.q_mcu[i], true); in mt7615_dma_reset()
130 mt76_for_each_q_rx(&dev->mt76, i) in mt7615_dma_reset()
133 mt76_tx_status_check(&dev->mt76, true); in mt7615_dma_reset()
144 if (is_mt7663(&dev->mt76)) in mt7615_hif_int_event_trigger()
186 struct mt76_phy *mphy_ext = dev->mt76.phys[MT_BAND1]; in mt7615_update_beacons()
[all …]
H A Deeprom.c50 if (is_mt7663(&dev->mt76)) in mt7615_efuse_init()
57 dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, len, GFP_KERNEL); in mt7615_efuse_init()
58 dev->mt76.otp.size = len; in mt7615_efuse_init()
59 if (!dev->mt76.otp.data) in mt7615_efuse_init()
62 buf = dev->mt76.otp.data; in mt7615_efuse_init()
80 ret = mt76_eeprom_init(&dev->mt76, MT7615_EEPROM_FULL_SIZE); in mt7615_eeprom_load()
104 u8 val, *eeprom = dev->mt76.eeprom.data; in mt7615_eeprom_parse_hw_band_cap()
106 if (is_mt7663(&dev->mt76)) { in mt7615_eeprom_parse_hw_band_cap()
113 if (is_mt7622(&dev->mt76)) { in mt7615_eeprom_parse_hw_band_cap()
119 if (is_mt7611(&dev->mt76)) { in mt7615_eeprom_parse_hw_band_cap()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7921/
H A Dsdio_mac.c35 struct mt76_sdio *sdio = &dev->mt76.sdio; in mt7921s_wfsys_reset()
58 readx_poll_timeout(mt7921s_read_whcr, &dev->mt76, status, in mt7921s_wfsys_reset()
78 wake_up(&dev->mt76.mcu.wait); in mt7921s_init_reset()
79 skb_queue_purge(&dev->mt76.mcu.res_q); in mt7921s_init_reset()
80 wait_event_timeout(dev->mt76.sdio.wait, in mt7921s_init_reset()
81 mt76s_txqs_empty(&dev->mt76), 5 * HZ); in mt7921s_init_reset()
82 mt76_worker_disable(&dev->mt76.sdio.txrx_worker); in mt7921s_init_reset()
84 mt7921s_disable_irq(&dev->mt76); in mt7921s_init_reset()
87 mt76_worker_enable(&dev->mt76.sdio.txrx_worker); in mt7921s_init_reset()
89 mt7921s_enable_irq(&dev->mt76); in mt7921s_init_reset()
[all …]
H A Dpci_mac.c13 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921e_tx_prepare_skb()
25 wcid = &dev->mt76.global_wcid; in mt7921e_tx_prepare_skb()
68 wake_up(&dev->mt76.mcu.wait); in mt7921e_mac_reset()
69 skb_queue_purge(&dev->mt76.mcu.res_q); in mt7921e_mac_reset()
73 mt76_worker_disable(&dev->mt76.tx_worker); in mt7921e_mac_reset()
74 napi_disable(&dev->mt76.napi[MT_RXQ_MAIN]); in mt7921e_mac_reset()
75 napi_disable(&dev->mt76.napi[MT_RXQ_MCU]); in mt7921e_mac_reset()
76 napi_disable(&dev->mt76.napi[MT_RXQ_MCU_WA]); in mt7921e_mac_reset()
77 napi_disable(&dev->mt76.tx_napi); in mt7921e_mac_reset()
79 mt76_connac2_tx_token_put(&dev->mt76); in mt7921e_mac_reset()
[all …]
H A Dpci.c47 mt76_unregister_device(&dev->mt76); in mt7921e_unregister_device()
48 mt76_for_each_q_rx(&dev->mt76, i) in mt7921e_unregister_device()
49 napi_disable(&dev->mt76.napi[i]); in mt7921e_unregister_device()
54 mt76_connac2_tx_token_put(&dev->mt76); in mt7921e_unregister_device()
58 skb_queue_purge(&dev->mt76.mcu.res_q); in mt7921e_unregister_device()
60 tasklet_disable(&dev->mt76.irq_tasklet); in mt7921e_unregister_device()
134 dev_err(dev->mt76.dev, "Access currently unsupported address %08x\n", in __mt7921_reg_addr()
142 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_rr()
150 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_wr()
158 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_rmw()
[all …]
H A Dmain.c17 int nss = hweight8(phy->mt76->chainmask); in mt7921_init_he_caps()
130 if (is_mt7922(phy->mt76->dev)) { in mt7921_init_he_caps()
142 if (is_mt7922(phy->mt76->dev)) { in mt7921_init_he_caps()
159 &phy->mt76->sband_5g.sband; in mt7921_init_he_caps()
194 if (phy->mt76->cap.has_2ghz) { in mt7921_set_stream_he_caps()
198 band = &phy->mt76->sband_2g.sband; in mt7921_set_stream_he_caps()
202 if (phy->mt76->cap.has_5ghz) { in mt7921_set_stream_he_caps()
206 band = &phy->mt76->sband_5g.sband; in mt7921_set_stream_he_caps()
209 if (phy->mt76->cap.has_6ghz) { in mt7921_set_stream_he_caps()
213 band = &phy->mt76->sband_6g.sband; in mt7921_set_stream_he_caps()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dpci_mac.c13 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7925e_tx_prepare_skb()
25 wcid = &dev->mt76.global_wcid; in mt7925e_tx_prepare_skb()
61 spin_lock_bh(&dev->mt76.token_lock); in mt7925_tx_token_put()
62 idr_for_each_entry(&dev->mt76.token, txwi, id) { in mt7925_tx_token_put()
64 dev->mt76.token_count--; in mt7925_tx_token_put()
66 spin_unlock_bh(&dev->mt76.token_lock); in mt7925_tx_token_put()
67 idr_destroy(&dev->mt76.token); in mt7925_tx_token_put()
84 wake_up(&dev->mt76.mcu.wait); in mt7925e_mac_reset()
85 skb_queue_purge(&dev->mt76.mcu.res_q); in mt7925e_mac_reset()
89 mt76_worker_disable(&dev->mt76.tx_worker); in mt7925e_mac_reset()
[all …]
H A Dpci.c36 mt76_unregister_device(&dev->mt76); in mt7925e_unregister_device()
37 mt76_for_each_q_rx(&dev->mt76, i) in mt7925e_unregister_device()
38 napi_disable(&dev->mt76.napi[i]); in mt7925e_unregister_device()
47 skb_queue_purge(&dev->mt76.mcu.res_q); in mt7925e_unregister_device()
49 tasklet_disable(&dev->mt76.irq_tasklet); in mt7925e_unregister_device()
56 dev->bus_ops->wr(&dev->mt76, MT_HIF_REMAP_L1, dev->backup_l1); in mt7925_reg_remap_restore()
61 dev->bus_ops->wr(&dev->mt76, MT_HIF_REMAP_L2, dev->backup_l2); in mt7925_reg_remap_restore()
71 dev->backup_l1 = dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L1); in mt7925_reg_map_l1()
73 dev->bus_ops->rmw(&dev->mt76, MT_HIF_REMAP_L1, in mt7925_reg_map_l1()
78 dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L1); in mt7925_reg_map_l1()
[all …]
H A Dmain.c22 int i, nss = hweight8(phy->mt76->antenna_mask); in mt7925_init_he_caps()
162 enum nl80211_chan_width width = phy->mt76->chandef.width; in mt7925_init_eht_caps()
163 int nss = hweight8(phy->mt76->antenna_mask); in mt7925_init_eht_caps()
164 int sts = hweight16(phy->mt76->chainmask); in mt7925_init_eht_caps()
241 struct wiphy *wiphy = phy->mt76->hw->wiphy; in mt7925_init_mlo_caps()
297 if (phy->mt76->cap.has_2ghz) in mt7925_set_stream_he_eht_caps()
298 __mt7925_set_stream_he_eht_caps(phy, &phy->mt76->sband_2g.sband, in mt7925_set_stream_he_eht_caps()
301 if (phy->mt76->cap.has_5ghz) in mt7925_set_stream_he_eht_caps()
302 __mt7925_set_stream_he_eht_caps(phy, &phy->mt76->sband_5g.sband, in mt7925_set_stream_he_eht_caps()
305 if (phy->mt76->cap.has_6ghz) in mt7925_set_stream_he_eht_caps()
[all …]

1234567