Home
last modified time | relevance | path

Searched refs:mt76 (Results 1 – 25 of 59) sorted by relevance

123

/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, MT7915_RTS_LEN_THRES, in mt7915_run()
[all …]
H A Dinit.c56 mutex_lock(&phy->dev->mt76.mutex); in mt7915_thermal_temp_show()
58 mutex_unlock(&phy->dev->mt76.mutex); in mt7915_thermal_temp_show()
86 mutex_lock(&phy->dev->mt76.mutex); in mt7915_thermal_temp_store()
93 dev_err(phy->dev->mt76.dev, in mt7915_thermal_temp_store()
95 mutex_unlock(&phy->dev->mt76.mutex); in mt7915_thermal_temp_store()
101 mutex_unlock(&phy->dev->mt76.mutex); in mt7915_thermal_temp_store()
151 dev_err(phy->dev->mt76.dev, in mt7915_thermal_set_cur_throttle_state()
163 mutex_lock(&phy->dev->mt76.mutex); in mt7915_thermal_set_cur_throttle_state()
165 mutex_unlock(&phy->dev->mt76.mutex); in mt7915_thermal_set_cur_throttle_state()
185 mutex_lock(&phy->dev->mt76.mutex); in mt7915_thermal_get_temp()
[all …]
H A Deeprom.c15 struct mt76_dev *mdev = &dev->mt76; in mt7915_eeprom_load_precal()
17 u32 offs = is_mt7915(&dev->mt76) ? MT_EE_DO_PRE_CAL : MT_EE_DO_PRE_CAL_V2; in mt7915_eeprom_load_precal()
30 offs = is_mt7915(&dev->mt76) ? MT_EE_PRECAL : MT_EE_PRECAL_V2; in mt7915_eeprom_load_precal()
49 u8 *eeprom = dev->mt76.eeprom.data; in mt7915_check_eeprom()
55 return CHECK_EEPROM_ERR(is_mt7915(&dev->mt76)); in mt7915_check_eeprom()
57 return CHECK_EEPROM_ERR(is_mt7916(&dev->mt76)); in mt7915_check_eeprom()
59 return CHECK_EEPROM_ERR(is_mt7981(&dev->mt76)); in mt7915_check_eeprom()
61 return CHECK_EEPROM_ERR(is_mt7986(&dev->mt76)); in mt7915_check_eeprom()
69 switch (mt76_chip(&dev->mt76)) { in mt7915_eeprom_name()
100 u8 *eeprom = dev->mt76.eeprom.data; in mt7915_eeprom_load_default()
[all …]
H A Dmmio.c422 if (is_mt798x(&dev->mt76)) in mt7915_reg_map_l1()
425 l1_remap = is_mt7915(&dev->mt76) ? in mt7915_reg_map_l1()
428 dev->bus_ops->rmw(&dev->mt76, l1_remap, in mt7915_reg_map_l1()
432 dev->bus_ops->rr(&dev->mt76, l1_remap); in mt7915_reg_map_l1()
441 if (is_mt7915(&dev->mt76)) { in mt7915_reg_map_l2()
445 dev->bus_ops->rmw(&dev->mt76, MT_HIF_REMAP_L2, in mt7915_reg_map_l2()
450 dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L2); in mt7915_reg_map_l2()
452 u32 ofs = is_mt798x(&dev->mt76) ? 0x400000 : 0; in mt7915_reg_map_l2()
457 dev->bus_ops->rmw(&dev->mt76, MT_HIF_REMAP_L2_MT7916 + ofs, in mt7915_reg_map_l2()
462 dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L2_MT7916 + ofs); in mt7915_reg_map_l2()
[all …]
H A Dmac.c105 spin_lock_bh(&dev->mt76.sta_poll_lock); in mt7915_mac_sta_poll()
106 list_splice_init(&dev->mt76.sta_poll_list, &sta_poll_list); in mt7915_mac_sta_poll()
107 spin_unlock_bh(&dev->mt76.sta_poll_lock); in mt7915_mac_sta_poll()
118 spin_lock_bh(&dev->mt76.sta_poll_lock); in mt7915_mac_sta_poll()
120 spin_unlock_bh(&dev->mt76.sta_poll_lock); in mt7915_mac_sta_poll()
126 spin_unlock_bh(&dev->mt76.sta_poll_lock); in mt7915_mac_sta_poll()
227 mt76_rx_signal(msta->vif->phy->mt76->antenna_mask, rssi); in mt7915_mac_sta_poll()
257 mtk_wed_device_ppe_check(&dev->mt76.mmio.wed, skb, in mt7915_wed_check_ppe()
267 struct mt76_phy *mphy = &dev->mt76.phy; in mt7915_mac_fill_rx()
291 if ((rxd1 & MT_RXD1_NORMAL_BAND_IDX) && !phy->mt76->band_idx) { in mt7915_mac_fill_rx()
[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()
225 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_mcu_send_message()
252 return mt76_mcu_send_msg(&dev->mt76, cmd, &req, sizeof(req), false); in mt7915_mcu_wa_cmd()
267 struct mt76_phy *mphy = &dev->mt76.phy; in mt7915_mcu_rx_csa_notify()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dpci_mac.c14 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7925e_tx_prepare_skb()
26 wcid = &dev->mt76.global_wcid; in mt7925e_tx_prepare_skb()
62 spin_lock_bh(&dev->mt76.token_lock); in mt7925_tx_token_put()
63 idr_for_each_entry(&dev->mt76.token, txwi, id) { in mt7925_tx_token_put()
65 dev->mt76.token_count--; in mt7925_tx_token_put()
67 spin_unlock_bh(&dev->mt76.token_lock); in mt7925_tx_token_put()
68 idr_destroy(&dev->mt76.token); in mt7925_tx_token_put()
85 wake_up(&dev->mt76.mcu.wait); in mt7925e_mac_reset()
86 skb_queue_purge(&dev->mt76.mcu.res_q); in mt7925e_mac_reset()
90 mt76_worker_disable(&dev->mt76.tx_worker); in mt7925e_mac_reset()
[all …]
H A Dusb.c30 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7925u_mcu_send_message()
49 ret = mt76u_bulk_msg(&dev->mt76, skb->data, skb->len, NULL, in mt7925u_mcu_send_message()
67 dev->mt76.mcu_ops = &mcu_ops; in mt7925u_mcu_init()
84 if (atomic_read(&dev->mt76.bus_hung)) in mt7925u_mac_reset()
88 if (atomic_read(&dev->mt76.bus_hung)) in mt7925u_mac_reset()
92 mt76_worker_disable(&dev->mt76.tx_worker); in mt7925u_mac_reset()
97 wake_up(&dev->mt76.mcu.wait); in mt7925u_mac_reset()
98 skb_queue_purge(&dev->mt76.mcu.res_q); in mt7925u_mac_reset()
100 mt76u_stop_rx(&dev->mt76); in mt7925u_mac_reset()
101 mt76u_stop_tx(&dev->mt76); in mt7925u_mac_reset()
[all …]
H A Dpci.c52 mt76_unregister_device(&dev->mt76); in mt7925e_unregister_device()
53 mt76_for_each_q_rx(&dev->mt76, i) in mt7925e_unregister_device()
54 napi_disable(&dev->mt76.napi[i]); in mt7925e_unregister_device()
63 skb_queue_purge(&dev->mt76.mcu.res_q); in mt7925e_unregister_device()
65 tasklet_disable(&dev->mt76.irq_tasklet); in mt7925e_unregister_device()
72 dev->bus_ops->wr(&dev->mt76, MT_HIF_REMAP_L1, dev->backup_l1); in mt7925_reg_remap_restore()
77 dev->bus_ops->wr(&dev->mt76, MT_HIF_REMAP_L2, dev->backup_l2); in mt7925_reg_remap_restore()
87 dev->backup_l1 = dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L1); in mt7925_reg_map_l1()
89 dev->bus_ops->rmw(&dev->mt76, MT_HIF_REMAP_L1, in mt7925_reg_map_l1()
94 dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L1); in mt7925_reg_map_l1()
[all …]
H A Dinit.c47 struct wiphy *wiphy = phy->mt76->hw->wiphy; in mt7925_thermal_init()
94 memzero_explicit(&dev->mt76.alpha2, sizeof(dev->mt76.alpha2)); in mt7925_mac_init()
120 if (is_mt7927(&dev->mt76)) { in __mt7925_init_hardware()
123 dev_warn(dev->mt76.dev, in __mt7925_init_hardware()
140 if (atomic_read(&dev->mt76.bus_hung)) { in mt7925_init_hardware()
149 if (atomic_read(&dev->mt76.bus_hung)) in mt7925_init_hardware()
156 dev_err(dev->mt76.dev, "hardware init failed\n"); in mt7925_init_hardware()
165 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7925_init_nan_cap()
206 dev_err(dev->mt76.dev, "MLO init failed\n"); in mt7925_init_work()
210 dev->mt76.init_wiphy = mt7925_init_nan_cap; in mt7925_init_work()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dinit.c144 mutex_lock(&phy->dev->mt76.mutex); in mt7996_thermal_temp_store()
152 dev_err(phy->dev->mt76.dev, in mt7996_thermal_temp_store()
154 mutex_unlock(&phy->dev->mt76.mutex); in mt7996_thermal_temp_store()
159 mutex_unlock(&phy->dev->mt76.mutex); in mt7996_thermal_temp_store()
211 dev_err(phy->dev->mt76.dev, in mt7996_thermal_set_cur_throttle_state()
239 struct wiphy *wiphy = phy->mt76->hw->wiphy; in mt7996_unregister_thermal()
245 snprintf(name, sizeof(name), "cooling_device%d", phy->mt76->band_idx); in mt7996_unregister_thermal()
252 struct wiphy *wiphy = phy->mt76->hw->wiphy; in mt7996_thermal_init()
259 wiphy_name(wiphy), phy->mt76->band_idx); in mt7996_thermal_init()
263 snprintf(cname, sizeof(cname), "cooling_device%d", phy->mt76->band_idx); in mt7996_thermal_init()
[all …]
H A Dmain.c15 mt7996_mac_enable_nf(dev, phy->mt76->band_idx); in mt7996_run()
37 set_bit(MT76_STATE_RUNNING, &phy->mt76->state); in mt7996_run()
39 ieee80211_queue_delayed_work(dev->mphy.hw, &phy->mt76->mac_work, in mt7996_run()
57 mutex_lock(&dev->mt76.mutex); in mt7996_start()
59 if (!ret && !is_mt7996(&dev->mt76)) { in mt7996_start()
64 mutex_unlock(&dev->mt76.mutex); in mt7996_start()
73 if (!phy || !test_bit(MT76_STATE_RUNNING, &phy->mt76->state)) in mt7996_stop_phy()
78 cancel_delayed_work_sync(&phy->mt76->mac_work); in mt7996_stop_phy()
80 mutex_lock(&dev->mt76.mutex); in mt7996_stop_phy()
85 clear_bit(MT76_STATE_RUNNING, &phy->mt76->state); in mt7996_stop_phy()
[all …]
H A Dmmio.c291 if (is_mt7996(&dev->mt76)) { in mt7996_reg_map_l1()
299 dev->bus_ops->rmw(&dev->mt76, MT_HIF_REMAP_L1, l1_mask, val); in mt7996_reg_map_l1()
301 dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L1); in mt7996_reg_map_l1()
310 if (is_mt7990(&dev->mt76)) { in mt7996_reg_map_l2()
322 dev->bus_ops->rmw(&dev->mt76, MT_HIF_REMAP_L2, l2_mask, val); in mt7996_reg_map_l2()
324 dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L2); in mt7996_reg_map_l2()
334 dev->bus_ops->rmw(&dev->mt76, MT_HIF_REMAP_CBTOP, in mt7996_reg_map_cbtop()
338 dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_CBTOP); in mt7996_reg_map_cbtop()
379 if (dev_is_pci(dev->mt76.dev) && in __mt7996_reg_remap_addr()
382 if (is_mt7990(&dev->mt76)) in __mt7996_reg_remap_addr()
[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()
21 return is_mt7990(&dev->mt76) ? 0 : -EINVAL; in mt7996_check_eeprom()
29 switch (mt76_chip(&dev->mt76)) { in mt7996_eeprom_name()
102 u8 *eeprom = dev->mt76.eeprom.data, fem[2]; in mt7996_eeprom_variant_valid()
123 if (!dev->mt76.phys[i]) in mt7996_eeprom_variant_valid()
139 u8 *eeprom = dev->mt76.eeprom.data; in mt7996_eeprom_check_or_use_default()
143 ret = request_firmware(&fw, mt7996_eeprom_name(dev), dev->mt76.dev); in mt7996_eeprom_check_or_use_default()
148 dev_err(dev->mt76.dev, "Invalid default bin\n"); in mt7996_eeprom_check_or_use_default()
[all …]
H A Dmac.c41 for (i = 0; i < ARRAY_SIZE(mvif->mt76.link); i++) { in mt7996_rx_get_wcid()
44 mlink = rcu_dereference(mvif->mt76.link[i]); in mt7996_rx_get_wcid()
92 spin_lock_bh(&dev->mt76.sta_poll_lock); in mt7996_mac_sta_poll()
93 list_splice_init(&dev->mt76.sta_poll_list, &sta_poll_list); in mt7996_mac_sta_poll()
94 spin_unlock_bh(&dev->mt76.sta_poll_lock); in mt7996_mac_sta_poll()
104 spin_lock_bh(&dev->mt76.sta_poll_lock); in mt7996_mac_sta_poll()
106 spin_unlock_bh(&dev->mt76.sta_poll_lock); in mt7996_mac_sta_poll()
115 spin_unlock_bh(&dev->mt76.sta_poll_lock); in mt7996_mac_sta_poll()
171 mlink = rcu_dereference(msta->vif->mt76.link[wcid->link_id]); in mt7996_mac_sta_poll()
306 i = mt76_get_rate(&dev->mt76, sband, i, cck); in mt7996_mac_fill_rx_rate()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7615/
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()
77 wcid = &dev->mt76.global_wcid; in mt7615_tx_prepare_skb()
86 spin_lock_bh(&dev->mt76.lock); in mt7615_tx_prepare_skb()
89 spin_unlock_bh(&dev->mt76.lock); in mt7615_tx_prepare_skb()
105 if (is_mt7615(&dev->mt76)) in mt7615_tx_prepare_skb()
129 mt76_queue_tx_cleanup(dev, dev->mt76.q_mcu[i], true); in mt7615_dma_reset()
131 mt76_for_each_q_rx(&dev->mt76, i) in mt7615_dma_reset()
134 mt76_tx_status_check(&dev->mt76, true); in mt7615_dma_reset()
145 if (is_mt7663(&dev->mt76)) in mt7615_hif_int_event_trigger()
187 struct mt76_phy *mphy_ext = dev->mt76.phys[MT_BAND1]; in mt7615_update_beacons()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/
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()
58 mt76_set_irq_mask(&dev->mt76, irq_map->host_irq_enable, mask, 0); in mt792x_irq_tasklet()
61 napi_schedule(&dev->mt76.tx_napi); in mt792x_irq_tasklet()
64 napi_schedule(&dev->mt76.napi[MT_RXQ_MCU]); in mt792x_irq_tasklet()
67 napi_schedule(&dev->mt76.napi[MT_RXQ_MCU_WA]); in mt792x_irq_tasklet()
70 napi_schedule(&dev->mt76.napi[MT_RXQ_MAIN]); in mt792x_irq_tasklet()
76 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt792x_rx_poll_complete()
[all …]
H A Dmt792x_usb.c29 struct usb_interface *usb_intf = to_usb_interface(dev->mt76.dev); in mt792xu_reset_work()
40 dev_warn(dev->mt76.dev, in mt792xu_queue_usb_reset()
85 atomic_set(&dev->mt76.bus_hung, true); in mt792xu_set_bus_hung()
87 if (READ_ONCE(dev->mt76.bus) == &mt792xu_bus_hung_ops) in mt792xu_set_bus_hung()
90 WRITE_ONCE(dev->mt76.bus, &mt792xu_bus_hung_ops); in mt792xu_set_bus_hung()
95 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt792xu_ctrl_timeout()
105 dev->mt76.usb.ctrl_timeout = mt792xu_ctrl_timeout; in mt792xu_reset_work_init()
120 mutex_lock(&dev->mt76.usb.usb_ctrl_mtx); in mt792xu_check_bus()
121 ret = mt792xu_read32(&dev->mt76, MT_HW_CHIPID, dev->mt76.usb.data); in mt792xu_check_bus()
122 mutex_unlock(&dev->mt76.usb.usb_ctrl_mtx); in mt792xu_check_bus()
[all …]
H A Dmt792x_core.c176 struct mt76_wcid *wcid = &dev->mt76.global_wcid; in mt792x_tx()
237 cancel_delayed_work_sync(&phy->mt76->mac_work); in mt792x_stop()
244 if (is_connac2(&dev->mt76)) { in mt792x_stop()
246 mt76_connac_mcu_set_mac_enable(&dev->mt76, 0, false, false); in mt792x_stop()
250 clear_bit(MT76_STATE_RUNNING, &phy->mt76->state); in mt792x_stop()
266 mt76_connac_mcu_uni_add_dev(&dev->mphy, link_conf, &mconf->mt76, in mt792x_mac_link_bss_remove()
269 rcu_assign_pointer(dev->mt76.wcid[idx], NULL); in mt792x_mac_link_bss_remove()
271 dev->mt76.vif_mask &= ~BIT_ULL(mconf->mt76.idx); in mt792x_mac_link_bss_remove()
272 mconf->vif->phy->omac_mask &= ~BIT_ULL(mconf->mt76.omac_idx); in mt792x_mac_link_bss_remove()
274 spin_lock_bh(&dev->mt76.sta_poll_lock); in mt792x_mac_link_bss_remove()
[all …]
H A DMakefile2 obj-$(CONFIG_MT76_CORE) += mt76.o
3 obj-$(CONFIG_MT76_USB) += mt76-usb.o
4 obj-$(CONFIG_MT76_SDIO) += mt76-sdio.o
7 obj-$(CONFIG_MT76_CONNAC_LIB) += mt76-connac-lib.o
11 mt76-y := \
18 mt76-y += npu.o
20 mt76-$(CONFIG_PCI) += pci.o
21 mt76-$(CONFIG_NL80211_TESTMODE) += testmode.o
23 mt76-usb-y := usb.o usb_trace.o
24 mt76-sdio-y := sdio.o sdio_txrx.o
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7921/
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 mt76_for_each_q_rx(&dev->mt76, i) { in mt7921e_mac_reset()
75 napi_disable(&dev->mt76.napi[i]); 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()
80 idr_init(&dev->mt76.token); in mt7921e_mac_reset()
[all …]
H A Dpci.c54 mt76_unregister_device(&dev->mt76); in mt7921e_unregister_device()
55 mt76_for_each_q_rx(&dev->mt76, i) in mt7921e_unregister_device()
56 napi_disable(&dev->mt76.napi[i]); in mt7921e_unregister_device()
61 mt76_connac2_tx_token_put(&dev->mt76); in mt7921e_unregister_device()
65 skb_queue_purge(&dev->mt76.mcu.res_q); in mt7921e_unregister_device()
67 tasklet_disable(&dev->mt76.irq_tasklet); in mt7921e_unregister_device()
141 dev_err(dev->mt76.dev, "Access currently unsupported address %08x\n", in __mt7921_reg_addr()
149 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_rr()
157 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_wr()
165 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_rmw()
[all …]
H A Dmain.c18 int nss = hweight8(phy->mt76->chainmask); in mt7921_init_he_caps()
88 if (is_mt7922(phy->mt76->dev)) { in mt7921_init_he_caps()
136 if (is_mt7922(phy->mt76->dev)) { in mt7921_init_he_caps()
150 if (is_mt7922(phy->mt76->dev)) { in mt7921_init_he_caps()
167 &phy->mt76->sband_5g.sband; in mt7921_init_he_caps()
202 if (phy->mt76->cap.has_2ghz) { in mt7921_set_stream_he_caps()
206 band = &phy->mt76->sband_2g.sband; in mt7921_set_stream_he_caps()
210 if (phy->mt76->cap.has_5ghz) { in mt7921_set_stream_he_caps()
214 band = &phy->mt76->sband_5g.sband; in mt7921_set_stream_he_caps()
217 if (phy->mt76->cap.has_6ghz) { in mt7921_set_stream_he_caps()
[all …]
/linux/drivers/net/wireless/mediatek/mt76/mt7603/
H A Deeprom.c51 dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, len, GFP_KERNEL); in mt7603_efuse_init()
52 dev->mt76.otp.size = len; in mt7603_efuse_init()
53 if (!dev->mt76.otp.data) in mt7603_efuse_init()
56 buf = dev->mt76.otp.data; in mt7603_efuse_init()
104 struct device_node *np = dev->mt76.dev->of_node; in mt7603_apply_cal_free_data()
105 u8 *eeprom = dev->mt76.eeprom.data; in mt7603_apply_cal_free_data()
130 ret = mt76_eeprom_init(&dev->mt76, MT7603_EEPROM_SIZE); in mt7603_eeprom_load()
166 if (dev->mt76.otp.data) { in mt7603_eeprom_init()
167 if (mt7603_check_eeprom(&dev->mt76) == 0) in mt7603_eeprom_init()
168 mt7603_apply_cal_free_data(dev, dev->mt76.otp.data); in mt7603_eeprom_init()
[all …]

123