Home
last modified time | relevance | path

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

123

/Linux-v5.4/drivers/net/wireless/mediatek/mt76/
Dmt76x02_mmio.c17 struct mt76_queue *q = dev->mt76.q_tx[MT_TXQ_PSD].q; in mt76x02_pre_tbtt_tasklet()
31 mt76_csa_check(&dev->mt76); in mt76x02_pre_tbtt_tasklet()
33 if (dev->mt76.csa_complete) in mt76x02_pre_tbtt_tasklet()
63 tasklet_enable(&dev->mt76.pre_tbtt_tasklet); in mt76x02e_pre_tbtt_enable()
65 tasklet_disable(&dev->mt76.pre_tbtt_tasklet); in mt76x02e_pre_tbtt_enable()
106 hwq = devm_kzalloc(dev->mt76.dev, sizeof(*hwq), GFP_KERNEL); in mt76x02_init_tx_queue()
154 mt76_txq_schedule_all(&dev->mt76); in mt76x02_tx_tasklet()
160 mt76.tx_napi); in mt76x02_poll_tx()
174 tasklet_schedule(&dev->mt76.tx_tasklet); in mt76x02_poll_tx()
189 status_fifo = devm_kzalloc(dev->mt76.dev, fifo_size, GFP_KERNEL); in mt76x02_dma_init()
[all …]
Dmt76x02_util.c96 mt76); in mt76x02_led_set_config()
148 INIT_DELAYED_WORK(&dev->mt76.mac_work, mt76x02_mac_work); in mt76x02_init_device()
181 dev->mt76.led_cdev.brightness_set = in mt76x02_init_device()
183 dev->mt76.led_cdev.blink_set = mt76x02_led_set_blink; in mt76x02_init_device()
195 dev->mt76.global_wcid.idx = 255; in mt76x02_init_device()
196 dev->mt76.global_wcid.hw_key_idx = -1; in mt76x02_init_device()
200 dev->mt76.sband_2g.sband.ht_cap.cap |= in mt76x02_init_device()
202 dev->mt76.sband_5g.sband.ht_cap.cap |= in mt76x02_init_device()
204 dev->mt76.chainmask = 0x202; in mt76x02_init_device()
205 dev->mt76.antenna_mask = 3; in mt76x02_init_device()
[all …]
Dmt76x02_txrx.c17 struct mt76_wcid *wcid = &dev->mt76.global_wcid; in mt76x02_tx()
31 mt76_tx(&dev->mt76, control->sta, wcid, skb); in mt76x02_tx()
38 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x02_queue_rx_skb()
43 mt76_mcu_rx_event(&dev->mt76, skb); in mt76x02_queue_rx_skb()
66 max_txpwr = dev->mt76.rate_power.vht[8]; in mt76x02_tx_get_max_txpwr_adj()
72 max_txpwr = dev->mt76.rate_power.ht[idx & 0xf]; in mt76x02_tx_get_max_txpwr_adj()
75 max_txpwr = dev->mt76.rate_power.ht[rate->idx & 0xf]; in mt76x02_tx_get_max_txpwr_adj()
77 enum nl80211_band band = dev->mt76.chandef.chan->band; in mt76x02_tx_get_max_txpwr_adj()
81 struct wiphy *wiphy = dev->mt76.hw->wiphy; in mt76x02_tx_get_max_txpwr_adj()
82 struct mt76_rate_power *rp = &dev->mt76.rate_power; in mt76x02_tx_get_max_txpwr_adj()
[all …]
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt76x2/
Dpci_main.c22 ieee80211_queue_delayed_work(mt76_hw(dev), &dev->mt76.mac_work, in mt76x2_start()
27 set_bit(MT76_STATE_RUNNING, &dev->mt76.state); in mt76x2_start()
36 clear_bit(MT76_STATE_RUNNING, &dev->mt76.state); in mt76x2_stop()
46 tasklet_disable(&dev->mt76.pre_tbtt_tasklet); in mt76x2_set_channel()
49 mutex_lock(&dev->mt76.mutex); in mt76x2_set_channel()
50 set_bit(MT76_RESET, &dev->mt76.state); in mt76x2_set_channel()
52 mt76_set_channel(&dev->mt76); in mt76x2_set_channel()
65 clear_bit(MT76_RESET, &dev->mt76.state); in mt76x2_set_channel()
66 mutex_unlock(&dev->mt76.mutex); in mt76x2_set_channel()
69 tasklet_enable(&dev->mt76.pre_tbtt_tasklet); in mt76x2_set_channel()
[all …]
Dusb_main.c17 ieee80211_queue_delayed_work(mt76_hw(dev), &dev->mt76.mac_work, in mt76x2u_start()
19 set_bit(MT76_STATE_RUNNING, &dev->mt76.state); in mt76x2u_start()
28 clear_bit(MT76_STATE_RUNNING, &dev->mt76.state); in mt76x2u_stop()
29 mt76u_stop_tx(&dev->mt76); in mt76x2u_stop()
42 mutex_lock(&dev->mt76.mutex); in mt76x2u_set_channel()
43 set_bit(MT76_RESET, &dev->mt76.state); in mt76x2u_set_channel()
45 mt76_set_channel(&dev->mt76); in mt76x2u_set_channel()
57 clear_bit(MT76_RESET, &dev->mt76.state); in mt76x2u_set_channel()
58 mutex_unlock(&dev->mt76.mutex); in mt76x2u_set_channel()
61 mt76_txq_schedule_all(&dev->mt76); in mt76x2u_set_channel()
[all …]
Dusb_init.c110 dev->mt76.eeprom.data = devm_kzalloc(dev->mt76.dev, in mt76x2u_init_eeprom()
113 dev->mt76.eeprom.size = MT7612U_EEPROM_SIZE; in mt76x2u_init_eeprom()
114 if (!dev->mt76.eeprom.data) in mt76x2u_init_eeprom()
119 put_unaligned_le32(val, dev->mt76.eeprom.data + i); in mt76x2u_init_eeprom()
133 if (!mt76x02_wait_for_mac(&dev->mt76)) in mt76x2u_init_hardware()
146 if (!mt76x02_wait_for_mac(&dev->mt76)) in mt76x2u_init_hardware()
159 mt76x02_mac_setaddr(dev, dev->mt76.eeprom.data + MT_EE_MAC_ADDR); in mt76x2u_init_hardware()
160 dev->mt76.rxfilter = mt76_rr(dev, MT_RX_FILTR_CFG); in mt76x2u_init_hardware()
162 if (!mt76x02_wait_for_txrx_idle(&dev->mt76)) in mt76x2u_init_hardware()
209 err = mt76u_alloc_queues(&dev->mt76); in mt76x2u_register_device()
[all …]
Dusb_mcu.c23 mt76u_vendor_request(&dev->mt76, MT_VEND_DEV_MODE, in mt76x2u_mcu_load_ivb()
30 struct mt76_usb *usb = &dev->mt76.usb; in mt76x2u_mcu_enable_patch()
38 mt76u_vendor_request(&dev->mt76, MT_VEND_DEV_MODE, in mt76x2u_mcu_enable_patch()
45 struct mt76_usb *usb = &dev->mt76.usb; in mt76x2u_mcu_reset_wmt()
52 mt76u_vendor_request(&dev->mt76, MT_VEND_DEV_MODE, in mt76x2u_mcu_reset_wmt()
67 dev_err(dev->mt76.dev, in mt76x2u_mcu_load_rom_patch()
81 dev_info(dev->mt76.dev, "ROM patch already applied\n"); in mt76x2u_mcu_load_rom_patch()
85 err = request_firmware(&fw, MT7662_ROM_PATCH, dev->mt76.dev); in mt76x2u_mcu_load_rom_patch()
90 dev_err(dev->mt76.dev, "failed to load firmware\n"); in mt76x2u_mcu_load_rom_patch()
96 dev_info(dev->mt76.dev, "ROM patch build: %.15s\n", hdr->build_time); in mt76x2u_mcu_load_rom_patch()
[all …]
Dpci_mcu.c25 dev_err(dev->mt76.dev, in mt76pci_load_rom_patch()
39 dev_info(dev->mt76.dev, "ROM patch already applied\n"); in mt76pci_load_rom_patch()
43 ret = request_firmware(&fw, MT7662_ROM_PATCH, dev->mt76.dev); in mt76pci_load_rom_patch()
49 dev_err(dev->mt76.dev, "Failed to load firmware\n"); in mt76pci_load_rom_patch()
54 dev_info(dev->mt76.dev, "ROM patch build: %.15s\n", hdr->build_time); in mt76pci_load_rom_patch()
68 dev_err(dev->mt76.dev, "Failed to load ROM patch\n"); in mt76pci_load_rom_patch()
89 ret = request_firmware(&fw, MT7662_FIRMWARE, dev->mt76.dev); in mt76pci_load_firmware()
106 dev_info(dev->mt76.dev, "Firmware Version: %d.%d.%02d\n", in mt76pci_load_firmware()
110 dev_info(dev->mt76.dev, "Build: %x\n", val); in mt76pci_load_firmware()
111 dev_info(dev->mt76.dev, "Build Time: %.16s\n", hdr->build_time); in mt76pci_load_firmware()
[all …]
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt7615/
Dmain.c19 dev->mt76.survey_time = ktime_get_boottime(); in mt7615_start()
20 set_bit(MT76_STATE_RUNNING, &dev->mt76.state); in mt7615_start()
21 ieee80211_queue_delayed_work(mt76_hw(dev), &dev->mt76.mac_work, in mt7615_start()
31 clear_bit(MT76_STATE_RUNNING, &dev->mt76.state); in mt7615_stop()
32 cancel_delayed_work_sync(&dev->mt76.mac_work); in mt7615_stop()
74 mutex_lock(&dev->mt76.mutex); in mt7615_add_interface()
103 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7615_add_interface()
106 mt76_txq_init(&dev->mt76, vif->txq); in mt7615_add_interface()
109 mutex_unlock(&dev->mt76.mutex); in mt7615_add_interface()
125 rcu_assign_pointer(dev->mt76.wcid[idx], NULL); in mt7615_remove_interface()
[all …]
Deeprom.c53 dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, len, GFP_KERNEL); in mt7615_efuse_init()
54 dev->mt76.otp.size = len; in mt7615_efuse_init()
55 if (!dev->mt76.otp.data) in mt7615_efuse_init()
58 buf = dev->mt76.otp.data; in mt7615_efuse_init()
74 ret = mt76_eeprom_init(&dev->mt76, MT7615_EEPROM_SIZE); in mt7615_eeprom_load()
95 u8 val, *eeprom = dev->mt76.eeprom.data; in mt7615_eeprom_parse_hw_cap()
101 dev->mt76.cap.has_5ghz = true; in mt7615_eeprom_parse_hw_cap()
104 dev->mt76.cap.has_2ghz = true; in mt7615_eeprom_parse_hw_cap()
107 dev->mt76.cap.has_2ghz = true; in mt7615_eeprom_parse_hw_cap()
108 dev->mt76.cap.has_5ghz = true; in mt7615_eeprom_parse_hw_cap()
[all …]
Ddma.c21 hwq = devm_kzalloc(dev->mt76.dev, sizeof(*hwq), GFP_KERNEL); in mt7615_init_tx_queues()
30 q = &dev->mt76.q_tx[i]; in mt7615_init_tx_queues()
45 hwq = devm_kzalloc(dev->mt76.dev, sizeof(*hwq), GFP_KERNEL); in mt7615_init_mcu_queue()
62 struct mt7615_dev *dev = container_of(mdev, struct mt7615_dev, mt76); in mt7615_queue_rx_skb()
83 mt76_rx(&dev->mt76, q, skb); in mt7615_queue_rx_skb()
102 dev = container_of(napi, struct mt7615_dev, mt76.tx_napi); in mt7615_poll_tx()
113 tasklet_schedule(&dev->mt76.tx_tasklet); in mt7615_poll_tx()
122 mt76_dma_attach(&dev->mt76); in mt7615_dma_init()
155 ret = mt7615_init_mcu_queue(dev, &dev->mt76.q_tx[MT_TXQ_MCU], in mt7615_dma_init()
161 ret = mt7615_init_mcu_queue(dev, &dev->mt76.q_tx[MT_TXQ_FWDL], in mt7615_dma_init()
[all …]
Dinit.c107 set_bit(MT76_STATE_INITIALIZED, &dev->mt76.state); in mt7615_init_hardware()
120 idx = mt76_wcid_alloc(dev->mt76.wcid_mask, MT7615_WTBL_STA - 1); in mt7615_init_hardware()
124 dev->mt76.global_wcid.idx = idx; in mt7615_init_hardware()
125 dev->mt76.global_wcid.hw_key_idx = -1; in mt7615_init_hardware()
126 rcu_assign_pointer(dev->mt76.wcid[idx], &dev->mt76.global_wcid); in mt7615_init_hardware()
184 int i, n_chains = hweight8(dev->mt76.antenna_mask), target_chains; in mt7615_init_txpower()
185 u8 *eep = (u8 *)dev->mt76.eeprom.data; in mt7615_init_txpower()
228 struct cfg80211_chan_def *chandef = &dev->mt76.chandef; in mt7615_regd_notifier()
230 if (request->dfs_region == dev->mt76.region) in mt7615_regd_notifier()
233 dev->mt76.region = request->dfs_region; in mt7615_regd_notifier()
[all …]
Dmcu.c60 seq = ++dev->mt76.mmio.mcu.msg_seq & 0xf; in __mt7615_mcu_msg_send()
62 seq = ++dev->mt76.mmio.mcu.msg_seq & 0xf; in __mt7615_mcu_msg_send()
107 if (test_bit(MT76_STATE_MCU_RUNNING, &dev->mt76.state)) in __mt7615_mcu_msg_send()
146 struct mt7615_dev *dev = container_of(mdev, struct mt7615_dev, mt76); in mt7615_mcu_msg_send()
195 ieee80211_radar_detected(dev->mt76.hw); in mt7615_mcu_rx_ext_event()
199 ieee80211_iterate_active_interfaces_atomic(dev->mt76.hw, in mt7615_mcu_rx_ext_event()
234 mt76_mcu_rx_event(&dev->mt76, skb); in mt7615_mcu_rx_event()
250 return __mt76_mcu_send_msg(&dev->mt76, -MCU_CMD_TARGET_ADDRESS_LEN_REQ, in mt7615_mcu_init_download()
263 ret = __mt76_mcu_send_msg(&dev->mt76, -MCU_CMD_FW_SCATTER, in mt7615_mcu_send_firmware()
287 return __mt76_mcu_send_msg(&dev->mt76, -MCU_CMD_FW_START_REQ, in mt7615_mcu_start_firmware()
[all …]
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt76x0/
Dusb.c62 dev_dbg(dev->mt76.dev, "MCU not ready\n"); in mt76x0_init_usb_dma()
74 clear_bit(MT76_STATE_INITIALIZED, &dev->mt76.state); in mt76x0u_cleanup()
76 mt76u_queues_deinit(&dev->mt76); in mt76x0u_cleanup()
83 clear_bit(MT76_STATE_RUNNING, &dev->mt76.state); in mt76x0u_stop()
85 cancel_delayed_work_sync(&dev->mt76.mac_work); in mt76x0u_stop()
86 mt76u_stop_tx(&dev->mt76); in mt76x0u_stop()
89 if (test_bit(MT76_REMOVED, &dev->mt76.state)) in mt76x0u_stop()
93 dev_warn(dev->mt76.dev, "TX DMA did not stop\n"); in mt76x0u_stop()
98 dev_warn(dev->mt76.dev, "RX DMA did not stop\n"); in mt76x0u_stop()
111 ieee80211_queue_delayed_work(dev->mt76.hw, &dev->mt76.mac_work, in mt76x0u_start()
[all …]
Dmain.c19 mt76_set_channel(&dev->mt76); in mt76x0_set_channel()
34 mt76_txq_schedule_all(&dev->mt76); in mt76x0_set_channel()
41 mutex_lock(&dev->mt76.mutex); in mt76x0_config()
50 dev->mt76.txpower_conf = hw->conf.power_level * 2; in mt76x0_config()
52 if (test_bit(MT76_STATE_RUNNING, &dev->mt76.state)) in mt76x0_config()
58 dev->mt76.rxfilter |= MT_RX_FILTR_CFG_PROMISC; in mt76x0_config()
60 dev->mt76.rxfilter &= ~MT_RX_FILTR_CFG_PROMISC; in mt76x0_config()
62 mt76_wr(dev, MT_RX_FILTR_CFG, dev->mt76.rxfilter); in mt76x0_config()
65 mutex_unlock(&dev->mt76.mutex); in mt76x0_config()
Dpci_mcu.c15 bool is_combo_chip = mt76_chip(&dev->mt76) != 0x7610; in mt76x0e_load_firmware()
28 err = request_firmware(&fw, firmware, dev->mt76.dev); in mt76x0e_load_firmware()
51 dev_info(dev->mt76.dev, "Firmware Version: %d.%d.%02d\n", in mt76x0e_load_firmware()
55 dev_dbg(dev->mt76.dev, in mt76x0e_load_firmware()
61 dev_err(dev->mt76.dev, in mt76x0e_load_firmware()
74 dev_dbg(dev->mt76.dev, "loading FW - ILM %u\n", ilm_len); in mt76x0e_load_firmware()
80 dev_dbg(dev->mt76.dev, "loading FW - IVB %u\n", in mt76x0e_load_firmware()
88 dev_dbg(dev->mt76.dev, "loading FW - DLM %u\n", dlm_len); in mt76x0e_load_firmware()
100 dev_err(dev->mt76.dev, "Firmware failed to start\n"); in mt76x0e_load_firmware()
106 dev_dbg(dev->mt76.dev, "Firmware running!\n"); in mt76x0e_load_firmware()
[all …]
Deeprom.c40 dev_err(dev->mt76.dev, in mt76x0_efuse_physical_size_check()
54 dev_dbg(dev->mt76.dev, "2GHz %d 5GHz %d\n", in mt76x0_set_chip_cap()
55 dev->mt76.cap.has_2ghz, dev->mt76.cap.has_5ghz); in mt76x0_set_chip_cap()
58 dev->mt76.cap.has_2ghz = false; in mt76x0_set_chip_cap()
59 dev_dbg(dev->mt76.dev, "mask out 2GHz support\n"); in mt76x0_set_chip_cap()
63 dev->mt76.cap.has_5ghz = false; in mt76x0_set_chip_cap()
64 dev_dbg(dev->mt76.dev, "mask out 5GHz support\n"); in mt76x0_set_chip_cap()
71 dev_err(dev->mt76.dev, in mt76x0_set_chip_cap()
79 dev_err(dev->mt76.dev, "invalid tx-rx stream\n"); in mt76x0_set_chip_cap()
112 struct ieee80211_channel *chan = dev->mt76.chandef.chan; in mt76x0_read_rx_gain()
[all …]
Dpci.c19 ieee80211_queue_delayed_work(dev->mt76.hw, &dev->mt76.mac_work, in mt76x0e_start()
21 ieee80211_queue_delayed_work(dev->mt76.hw, &dev->cal_work, in mt76x0e_start()
23 set_bit(MT76_STATE_RUNNING, &dev->mt76.state); in mt76x0e_start()
31 cancel_delayed_work_sync(&dev->mt76.mac_work); in mt76x0e_stop_hw()
35 dev_warn(dev->mt76.dev, "TX DMA did not stop\n"); in mt76x0e_stop_hw()
42 dev_warn(dev->mt76.dev, "TX DMA did not stop\n"); in mt76x0e_stop_hw()
50 clear_bit(MT76_STATE_RUNNING, &dev->mt76.state); in mt76x0e_stop()
104 if (!mt76x02_wait_for_mac(&dev->mt76)) in mt76x0e_register_device()
122 if (mt76_chip(&dev->mt76) == 0x7610) { in mt76x0e_register_device()
148 set_bit(MT76_STATE_INITIALIZED, &dev->mt76.state); in mt76x0e_register_device()
[all …]
Dinit.c58 dev_err(dev->mt76.dev, "PLL and XTAL check failed\n"); in mt76x0_set_wlan_state()
167 if (!mt76x02_wait_for_wpdma(&dev->mt76, 200000)) in mt76x0_mac_start()
170 mt76_wr(dev, MT_RX_FILTR_CFG, dev->mt76.rxfilter); in mt76x0_mac_start()
174 return !mt76x02_wait_for_wpdma(&dev->mt76, 50) ? -ETIMEDOUT : 0; in mt76x0_mac_start()
191 dev_warn(dev->mt76.dev, "Warning: MAC TX did not stop!\n"); in mt76x0_mac_stop()
209 dev_warn(dev->mt76.dev, "Warning: MAC RX did not stop!\n"); in mt76x0_mac_stop()
217 if (!mt76x02_wait_for_wpdma(&dev->mt76, 1000)) in mt76x0_init_hardware()
221 if (!mt76x02_wait_for_mac(&dev->mt76)) in mt76x0_init_hardware()
231 if (!mt76x02_wait_for_txrx_idle(&dev->mt76)) in mt76x0_init_hardware()
238 dev->mt76.rxfilter = mt76_rr(dev, MT_RX_FILTR_CFG); in mt76x0_init_hardware()
[all …]
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt7603/
Deeprom.c50 dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, len, GFP_KERNEL); in mt7603_efuse_init()
51 dev->mt76.otp.size = len; in mt7603_efuse_init()
52 if (!dev->mt76.otp.data) in mt7603_efuse_init()
55 buf = dev->mt76.otp.data; in mt7603_efuse_init()
103 u8 *eeprom = dev->mt76.eeprom.data; in mt7603_apply_cal_free_data()
125 ret = mt76_eeprom_init(&dev->mt76, MT7603_EEPROM_SIZE); in mt7603_eeprom_load()
153 if (dev->mt76.otp.data) { in mt7603_eeprom_init()
154 if (mt7603_check_eeprom(&dev->mt76) == 0) in mt7603_eeprom_init()
155 mt7603_apply_cal_free_data(dev, dev->mt76.otp.data); in mt7603_eeprom_init()
157 memcpy(dev->mt76.eeprom.data, dev->mt76.otp.data, in mt7603_eeprom_init()
[all …]
Dmcu.c21 struct mt76_dev *mdev = &dev->mt76; in __mt7603_mcu_msg_send()
60 struct mt7603_dev *dev = container_of(mdev, struct mt7603_dev, mt76); in mt7603_mcu_msg_send()
79 skb = mt76_mcu_get_response(&dev->mt76, expires); in mt7603_mcu_msg_send()
118 return __mt76_mcu_send_msg(&dev->mt76, -MCU_CMD_TARGET_ADDRESS_LEN_REQ, in mt7603_mcu_init_download()
131 ret = __mt76_mcu_send_msg(&dev->mt76, -MCU_CMD_FW_SCATTER, in mt7603_mcu_send_firmware()
154 return __mt76_mcu_send_msg(&dev->mt76, -MCU_CMD_FW_START_REQ, in mt7603_mcu_start_firmware()
186 ret = request_firmware(&fw, firmware, dev->mt76.dev); in mt7603_load_firmware()
191 dev_err(dev->mt76.dev, "Invalid firmware\n"); in mt7603_load_firmware()
199 dev_info(dev->mt76.dev, "Firmware Version: %.10s\n", hdr->fw_ver); in mt7603_load_firmware()
200 dev_info(dev->mt76.dev, "Build Time: %.15s\n", hdr->build_date); in mt7603_load_firmware()
[all …]
Ddma.c14 hwq = devm_kzalloc(dev->mt76.dev, sizeof(*hwq), GFP_KERNEL); in mt7603_init_tx_queue()
53 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7603_rx_loopback_skb()
86 struct mt7603_dev *dev = container_of(mdev, struct mt7603_dev, mt76); in mt7603_queue_rx_skb()
95 mt76_mcu_rx_event(&dev->mt76, skb); in mt7603_queue_rx_skb()
108 mt76_mcu_rx_event(&dev->mt76, skb); in mt7603_queue_rx_skb()
112 mt76_rx(&dev->mt76, q, skb); in mt7603_queue_rx_skb()
143 dev = container_of(napi, struct mt7603_dev, mt76.tx_napi); in mt7603_poll_tx()
155 tasklet_schedule(&dev->mt76.tx_tasklet); in mt7603_poll_tx()
171 mt76_dma_attach(&dev->mt76); in mt7603_dma_init()
183 ret = mt7603_init_tx_queue(dev, &dev->mt76.q_tx[i], in mt7603_dma_init()
[all …]
Dinit.c114 int rx_chains = dev->mt76.antenna_mask; in mt7603_phy_init()
224 rcu_assign_pointer(dev->mt76.wcid[MT7603_WTBL_RESERVED], in mt7603_mac_init()
285 set_bit(MT76_STATE_INITIALIZED, &dev->mt76.state); in mt7603_init_hardware()
357 static void mt7603_led_set_config(struct mt76_dev *mt76, u8 delay_on, in mt7603_led_set_config() argument
360 struct mt7603_dev *dev = container_of(mt76, struct mt7603_dev, in mt7603_led_set_config()
361 mt76); in mt7603_led_set_config()
368 addr = mt7603_reg_map(dev, MT_LED_STATUS_0(mt76->led_pin)); in mt7603_led_set_config()
370 addr = mt7603_reg_map(dev, MT_LED_STATUS_1(mt76->led_pin)); in mt7603_led_set_config()
373 val = MT_LED_CTRL_REPLAY(mt76->led_pin) | in mt7603_led_set_config()
374 MT_LED_CTRL_KICK(mt76->led_pin); in mt7603_led_set_config()
[all …]
Dcore.c7 struct mt7603_dev *dev = container_of(mdev, struct mt7603_dev, mt76); in mt7603_rx_poll_complete()
20 if (!test_bit(MT76_STATE_INITIALIZED, &dev->mt76.state)) in mt7603_irq_handler()
23 intr &= dev->mt76.mmio.irqmask; in mt7603_irq_handler()
30 tasklet_schedule(&dev->mt76.pre_tbtt_tasklet); in mt7603_irq_handler()
32 if ((hwintr & MT_HW_INT3_TBTT0) && dev->mt76.csa_complete) in mt7603_irq_handler()
33 mt76_csa_finish(&dev->mt76); in mt7603_irq_handler()
38 napi_schedule(&dev->mt76.tx_napi); in mt7603_irq_handler()
43 napi_schedule(&dev->mt76.napi[0]); in mt7603_irq_handler()
48 napi_schedule(&dev->mt76.napi[1]); in mt7603_irq_handler()
59 dev->bus_ops->wr(&dev->mt76, MT_MCU_PCIE_REMAP_2, base); in mt7603_reg_map()
Dmain.c17 dev->mt76.survey_time = ktime_get_boottime(); in mt7603_start()
18 set_bit(MT76_STATE_RUNNING, &dev->mt76.state); in mt7603_start()
19 mt7603_mac_work(&dev->mt76.mac_work.work); in mt7603_start()
29 clear_bit(MT76_STATE_RUNNING, &dev->mt76.state); in mt7603_stop()
30 cancel_delayed_work_sync(&dev->mt76.mac_work); in mt7603_stop()
44 mutex_lock(&dev->mt76.mutex); in mt7603_add_interface()
76 mt76_txq_init(&dev->mt76, vif->txq); in mt7603_add_interface()
77 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7603_add_interface()
80 mutex_unlock(&dev->mt76.mutex); in mt7603_add_interface()
98 rcu_assign_pointer(dev->mt76.wcid[idx], NULL); in mt7603_remove_interface()
[all …]

123