Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
Dmt76x02_mmio.c17 struct mt76_queue *q = dev->mt76.q_tx[MT_TXQ_PSD]; in mt76x02_pre_tbtt_tasklet()
38 mt76_csa_check(&dev->mt76); in mt76x02_pre_tbtt_tasklet()
40 if (dev->mt76.csa_complete) in mt76x02_pre_tbtt_tasklet()
70 tasklet_enable(&dev->mt76.pre_tbtt_tasklet); in mt76x02e_pre_tbtt_enable()
72 tasklet_disable(&dev->mt76.pre_tbtt_tasklet); in mt76x02e_pre_tbtt_enable()
112 hwq = devm_kzalloc(dev->mt76.dev, sizeof(*hwq), GFP_KERNEL); in mt76x02_init_tx_queue()
120 dev->mt76.q_tx[qid] = hwq; in mt76x02_init_tx_queue()
156 dev = container_of(w, struct mt76x02_dev, mt76.tx_worker); in mt76x02_tx_worker()
167 mt76.tx_napi); in mt76x02_poll_tx()
181 mt76_worker_schedule(&dev->mt76.tx_worker); in mt76x02_poll_tx()
[all …]
DMakefile2 obj-$(CONFIG_MT76_CORE) += mt76.o
3 obj-$(CONFIG_MT76_USB) += mt76-usb.o
4 obj-$(CONFIG_MT76_SDIO) += mt76-sdio.o
8 mt76-y := \
12 mt76-$(CONFIG_PCI) += pci.o
13 mt76-$(CONFIG_NL80211_TESTMODE) += testmode.o
15 mt76-usb-y := usb.o usb_trace.o
16 mt76-sdio-y := sdio.o
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7615/
Deeprom.c54 dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, len, GFP_KERNEL); in mt7615_efuse_init()
55 dev->mt76.otp.size = len; in mt7615_efuse_init()
56 if (!dev->mt76.otp.data) in mt7615_efuse_init()
59 buf = dev->mt76.otp.data; in mt7615_efuse_init()
75 ret = mt76_eeprom_init(&dev->mt76, MT7615_EEPROM_FULL_SIZE); in mt7615_eeprom_load()
99 u8 val, *eeprom = dev->mt76.eeprom.data; in mt7615_eeprom_parse_hw_band_cap()
101 if (is_mt7663(&dev->mt76)) { in mt7615_eeprom_parse_hw_band_cap()
103 dev->mt76.cap.has_2ghz = true; in mt7615_eeprom_parse_hw_band_cap()
104 dev->mt76.cap.has_5ghz = true; in mt7615_eeprom_parse_hw_band_cap()
108 if (is_mt7622(&dev->mt76)) { in mt7615_eeprom_parse_hw_band_cap()
[all …]
Dpci_init.c55 idx = mt76_wcid_alloc(dev->mt76.wcid_mask, MT7615_WTBL_STA - 1); in mt7615_init_hardware()
59 dev->mt76.global_wcid.idx = idx; in mt7615_init_hardware()
60 dev->mt76.global_wcid.hw_key_idx = -1; in mt7615_init_hardware()
61 rcu_assign_pointer(dev->mt76.wcid[idx], &dev->mt76.global_wcid); in mt7615_init_hardware()
71 struct mt76_dev *mt76; in mt7615_led_set_config() local
74 mt76 = container_of(led_cdev, struct mt76_dev, led_cdev); in mt7615_led_set_config()
75 dev = container_of(mt76, struct mt7615_dev, mt76); in mt7615_led_set_config()
77 if (test_bit(MT76_STATE_PM, &mt76->phy.state)) in mt7615_led_set_config()
84 addr = mt7615_reg_map(dev, MT_LED_STATUS_0(mt76->led_pin)); in mt7615_led_set_config()
86 addr = mt7615_reg_map(dev, MT_LED_STATUS_1(mt76->led_pin)); in mt7615_led_set_config()
[all …]
Dusb.c33 mt76u_stop_tx(&dev->mt76); in mt7663u_stop()
39 mt76u_queues_deinit(&dev->mt76); in mt7663u_cleanup()
89 dev = container_of(mdev, struct mt7615_dev, mt76); in mt7663u_probe()
108 dev_dbg(dev->mt76.dev, "Usb device already powered on\n"); in mt7663u_probe()
113 ret = mt76u_vendor_request(&dev->mt76, MT_VEND_POWER_ON, in mt7663u_probe()
121 dev_err(dev->mt76.dev, "Timeout for power on\n"); in mt7663u_probe()
127 ret = mt76u_alloc_mcu_queue(&dev->mt76); in mt7663u_probe()
131 ret = mt76u_alloc_queues(&dev->mt76); in mt7663u_probe()
142 mt76u_queues_deinit(&dev->mt76); in mt7663u_probe()
147 mt76_free_device(&dev->mt76); in mt7663u_probe()
[all …]
Ddma.c20 hwq = devm_kzalloc(dev->mt76.dev, sizeof(*hwq), GFP_KERNEL); in mt7615_init_tx_queue()
28 dev->mt76.q_tx[qid] = hwq; in mt7615_init_tx_queue()
73 if (!is_mt7615(&dev->mt76)) in mt7615_init_tx_queues()
81 dev->mt76.q_tx[i] = dev->mt76.q_tx[0]; in mt7615_init_tx_queues()
92 dev = container_of(napi, struct mt7615_dev, mt76.tx_napi); in mt7615_poll_tx()
104 struct mt76_dev *mdev = &dev->mt76; in mt7615_wait_pdma_busy()
205 if (dev->mt76.cap.has_5ghz) in mt7615_dma_init()
208 mt76_dma_attach(&dev->mt76); in mt7615_dma_init()
227 if (is_mt7615(&dev->mt76)) { in mt7615_dma_init()
247 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MCU], 1, in mt7615_dma_init()
[all …]
Dmmio.c67 if (is_mt7663(&dev->mt76)) { in mt7615_reg_map()
82 struct mt7615_dev *dev = container_of(mdev, struct mt7615_dev, mt76); in mt7615_rx_poll_complete()
109 intr &= dev->mt76.mmio.irqmask; in mt7615_irq_tasklet()
112 trace_dev_irq(&dev->mt76, intr, dev->mt76.mmio.irqmask); in mt7615_irq_tasklet()
117 mt76_set_irq_mask(&dev->mt76, MT_INT_MASK_CSR, mask, 0); in mt7615_irq_tasklet()
120 napi_schedule(&dev->mt76.tx_napi); in mt7615_irq_tasklet()
123 napi_schedule(&dev->mt76.napi[0]); in mt7615_irq_tasklet()
126 napi_schedule(&dev->mt76.napi[1]); in mt7615_irq_tasklet()
149 struct mt7615_dev *dev = container_of(mdev, struct mt7615_dev, mt76); in mt7615_rr()
157 struct mt7615_dev *dev = container_of(mdev, struct mt7615_dev, mt76); in mt7615_wr()
[all …]
Dmcu.c97 seq = ++dev->mt76.mcu.msg_seq & 0xf; in mt7615_mcu_fill_msg()
99 seq = ++dev->mt76.mcu.msg_seq & 0xf; in mt7615_mcu_fill_msg()
244 skb = mt76_mcu_get_response(&dev->mt76, expires); in mt7615_mcu_wait_response()
246 dev_err(dev->mt76.dev, "Message %ld (seq %d) timeout\n", in mt7615_mcu_wait_response()
264 struct mt7615_dev *dev = container_of(mdev, struct mt7615_dev, mt76); in mt7615_mcu_send_message()
306 return __mt76_mcu_send_msg(&dev->mt76, in mt7615_rf_rr()
323 return __mt76_mcu_send_msg(&dev->mt76, MCU_EXT_CMD_RF_REG_ACCESS, &req, in mt7615_rf_wr()
329 if (!is_mt7622(&dev->mt76)) in mt7622_trigger_hif_int()
339 struct mt76_phy *mphy = &dev->mt76.phy; in mt7615_mcu_drv_pmctrl()
340 struct mt76_dev *mdev = &dev->mt76; in mt7615_mcu_drv_pmctrl()
[all …]
Dtestmode.c51 struct mt76_phy *mphy = phy->mt76; in mt7615_tm_set_tx_power()
55 u8 *data, *eep = (u8 *)dev->mt76.eeprom.data; in mt7615_tm_set_tx_power()
70 if (dev->mt76.test.state != MT76_TM_STATE_OFF) in mt7615_tm_set_tx_power()
71 tx_power = dev->mt76.test.tx_power; in mt7615_tm_set_tx_power()
74 skb = mt76_mcu_msg_alloc(&dev->mt76, NULL, sizeof(req_hdr) + len); in mt7615_tm_set_tx_power()
93 return __mt76_mcu_skb_send_msg(&dev->mt76, skb, in mt7615_tm_set_tx_power()
105 if (dev->mt76.test.state == MT76_TM_STATE_OFF) { in mt7615_tm_reg_backup_restore()
118 b = devm_kzalloc(dev->mt76.dev, 4 * (n_regs + n_rf_regs), in mt7615_tm_reg_backup_restore()
137 if (!test_bit(MT76_STATE_RUNNING, &phy->mt76->state)) in mt7615_tm_init_phy()
140 mutex_unlock(&dev->mt76.mutex); in mt7615_tm_init_phy()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7603/
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()
164 if (dev->mt76.otp.data) { in mt7603_eeprom_init()
165 if (mt7603_check_eeprom(&dev->mt76) == 0) in mt7603_eeprom_init()
166 mt7603_apply_cal_free_data(dev, dev->mt76.otp.data); in mt7603_eeprom_init()
[all …]
Dcore.c8 struct mt7603_dev *dev = container_of(mdev, struct mt7603_dev, mt76); in mt7603_rx_poll_complete()
24 trace_dev_irq(&dev->mt76, intr, dev->mt76.mmio.irqmask); in mt7603_irq_handler()
26 intr &= dev->mt76.mmio.irqmask; in mt7603_irq_handler()
33 tasklet_schedule(&dev->mt76.pre_tbtt_tasklet); in mt7603_irq_handler()
35 if ((hwintr & MT_HW_INT3_TBTT0) && dev->mt76.csa_complete) in mt7603_irq_handler()
36 mt76_csa_finish(&dev->mt76); in mt7603_irq_handler()
41 napi_schedule(&dev->mt76.tx_napi); in mt7603_irq_handler()
46 napi_schedule(&dev->mt76.napi[0]); in mt7603_irq_handler()
51 napi_schedule(&dev->mt76.napi[1]); in mt7603_irq_handler()
62 dev->bus_ops->wr(&dev->mt76, MT_MCU_PCIE_REMAP_2, base); in mt7603_reg_map()
Dmcu.c21 struct mt76_dev *mdev = &dev->mt76; in __mt7603_mcu_msg_send()
59 struct mt7603_dev *dev = container_of(mdev, struct mt7603_dev, mt76); in mt7603_mcu_msg_send()
78 skb = mt76_mcu_get_response(&dev->mt76, expires); in mt7603_mcu_msg_send()
117 return __mt76_mcu_send_msg(&dev->mt76, -MCU_CMD_TARGET_ADDRESS_LEN_REQ, in mt7603_mcu_init_download()
130 ret = __mt76_mcu_send_msg(&dev->mt76, -MCU_CMD_FW_SCATTER, in mt7603_mcu_send_firmware()
153 return __mt76_mcu_send_msg(&dev->mt76, -MCU_CMD_FW_START_REQ, in mt7603_mcu_start_firmware()
185 ret = request_firmware(&fw, firmware, dev->mt76.dev); in mt7603_load_firmware()
190 dev_err(dev->mt76.dev, "Invalid firmware\n"); in mt7603_load_firmware()
198 dev_info(dev->mt76.dev, "Firmware Version: %.10s\n", hdr->fw_ver); in mt7603_load_firmware()
199 dev_info(dev->mt76.dev, "Build Time: %.15s\n", hdr->build_date); in mt7603_load_firmware()
[all …]
Ddma.c13 hwq = devm_kzalloc(dev->mt76.dev, sizeof(*hwq), GFP_KERNEL); in mt7603_init_tx_queue()
21 dev->mt76.q_tx[qid] = hwq; in mt7603_init_tx_queue()
61 wcid = rcu_dereference(dev->mt76.wcid[idx]); in mt7603_rx_loopback_skb()
95 struct mt7603_dev *dev = container_of(mdev, struct mt7603_dev, mt76); in mt7603_queue_rx_skb()
104 mt76_mcu_rx_event(&dev->mt76, skb); in mt7603_queue_rx_skb()
117 mt76_mcu_rx_event(&dev->mt76, skb); in mt7603_queue_rx_skb()
121 mt76_rx(&dev->mt76, q, skb); in mt7603_queue_rx_skb()
152 dev = container_of(napi, struct mt7603_dev, mt76.tx_napi); in mt7603_poll_tx()
166 mt76_worker_schedule(&dev->mt76.tx_worker); in mt7603_poll_tx()
182 mt76_dma_attach(&dev->mt76); in mt7603_dma_init()
[all …]
Dbeacon.c19 if (!(dev->mt76.beacon_mask & BIT(mvif->idx))) in mt7603_update_beacon_iter()
32 dev->mt76.q_tx[MT_TXQ_CAB]->hw_idx) | in mt7603_update_beacon_iter()
51 if (!(dev->mt76.beacon_mask & BIT(mvif->idx))) in mt7603_add_buffered_bc()
81 q = dev->mt76.q_tx[MT_TXQ_BEACON]; in mt7603_pre_tbtt_tasklet()
94 mt76_csa_check(&dev->mt76); in mt7603_pre_tbtt_tasklet()
95 if (dev->mt76.csa_complete) in mt7603_pre_tbtt_tasklet()
98 q = dev->mt76.q_tx[MT_TXQ_CAB]; in mt7603_pre_tbtt_tasklet()
139 if (dev->mt76.q_tx[MT_TXQ_BEACON]->queued > in mt7603_pre_tbtt_tasklet()
140 hweight8(dev->mt76.beacon_mask)) in mt7603_pre_tbtt_tasklet()
150 dev->mt76.beacon_mask |= BIT(idx); in mt7603_beacon_set_timer()
[all …]
Dinit.c226 rcu_assign_pointer(dev->mt76.wcid[MT7603_WTBL_RESERVED], in mt7603_mac_init()
361 static void mt7603_led_set_config(struct mt76_dev *mt76, u8 delay_on, in mt7603_led_set_config() argument
364 struct mt7603_dev *dev = container_of(mt76, struct mt7603_dev, in mt7603_led_set_config()
365 mt76); in mt7603_led_set_config()
372 addr = mt7603_reg_map(dev, MT_LED_STATUS_0(mt76->led_pin)); in mt7603_led_set_config()
374 addr = mt7603_reg_map(dev, MT_LED_STATUS_1(mt76->led_pin)); in mt7603_led_set_config()
377 val = MT_LED_CTRL_REPLAY(mt76->led_pin) | in mt7603_led_set_config()
378 MT_LED_CTRL_KICK(mt76->led_pin); in mt7603_led_set_config()
379 if (mt76->led_al) in mt7603_led_set_config()
380 val |= MT_LED_CTRL_POLARITY(mt76->led_pin); in mt7603_led_set_config()
[all …]
Dmain.c20 mt7603_mac_work(&dev->mt76.mac_work.work); in mt7603_start()
31 cancel_delayed_work_sync(&dev->mt76.mac_work); in mt7603_stop()
45 mutex_lock(&dev->mt76.mutex); in mt7603_add_interface()
78 rcu_assign_pointer(dev->mt76.wcid[idx], &mvif->sta.wcid); in mt7603_add_interface()
81 mutex_unlock(&dev->mt76.mutex); in mt7603_add_interface()
100 rcu_assign_pointer(dev->mt76.wcid[idx], NULL); in mt7603_remove_interface()
107 mutex_lock(&dev->mt76.mutex); in mt7603_remove_interface()
109 mutex_unlock(&dev->mt76.mutex); in mt7603_remove_interface()
135 u8 *rssi_data = (u8 *)dev->mt76.eeprom.data; in mt7603_set_channel()
140 cancel_delayed_work_sync(&dev->mt76.mac_work); in mt7603_set_channel()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x0/
Dusb.c62 dev_dbg(dev->mt76.dev, "MCU not ready\n"); in mt76x0_init_usb_dma()
76 mt76u_queues_deinit(&dev->mt76); in mt76x0u_cleanup()
85 cancel_delayed_work_sync(&dev->mt76.mac_work); in mt76x0u_stop()
86 mt76u_stop_tx(&dev->mt76); 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()
113 ieee80211_queue_delayed_work(dev->mt76.hw, &dev->cal_work, in mt76x0u_start()
151 if (!mt76x02_wait_for_mac(&dev->mt76)) in mt76x0u_init_hardware()
175 struct ieee80211_hw *hw = dev->mt76.hw; in mt76x0u_register_device()
[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()
238 target_power = (data & 0xff) - dev->mt76.rate_power.ofdm[7]; in mt76x0_get_power_info()
[all …]
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 …]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x2/
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 …]
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()
193 struct mt76_usb *usb = &dev->mt76.usb; in mt76x2u_register_device()
[all …]
Dpci_main.c17 ieee80211_queue_delayed_work(mt76_hw(dev), &dev->mt76.mac_work, in mt76x2_start()
39 tasklet_disable(&dev->mt76.pre_tbtt_tasklet); in mt76x2_set_channel()
42 mutex_lock(&dev->mt76.mutex); in mt76x2_set_channel()
56 mutex_unlock(&dev->mt76.mutex); in mt76x2_set_channel()
59 tasklet_enable(&dev->mt76.pre_tbtt_tasklet); in mt76x2_set_channel()
69 mutex_lock(&dev->mt76.mutex); in mt76x2_config()
73 dev->mt76.rxfilter |= MT_RX_FILTR_CFG_PROMISC; in mt76x2_config()
75 dev->mt76.rxfilter &= ~MT_RX_FILTR_CFG_PROMISC; in mt76x2_config()
77 mt76_wr(dev, MT_RX_FILTR_CFG, dev->mt76.rxfilter); in mt76x2_config()
92 mutex_unlock(&dev->mt76.mutex); in mt76x2_config()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt7915/
Ddma.c14 hwq = devm_kzalloc(dev->mt76.dev, sizeof(*hwq), GFP_KERNEL); in mt7915_init_tx_queues()
24 dev->mt76.q_tx[i] = hwq; in mt7915_init_tx_queues()
35 hwq = devm_kzalloc(dev->mt76.dev, sizeof(*hwq), GFP_KERNEL); in mt7915_init_mcu_queue()
43 dev->mt76.q_tx[qid] = hwq; in mt7915_init_mcu_queue()
51 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_queue_rx_skb()
66 mt76_rx(&dev->mt76, q, skb); in mt7915_queue_rx_skb()
87 dev = container_of(napi, struct mt7915_dev, mt76.tx_napi); in mt7915_poll_tx()
201 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_rr()
209 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_wr()
217 struct mt7915_dev *dev = container_of(mdev, struct mt7915_dev, mt76); in mt7915_rmw()
[all …]
Dmain.c20 return phy && test_bit(MT76_STATE_RUNNING, &phy->mt76->state); in mt7915_dev_running()
29 mutex_lock(&dev->mt76.mutex); in mt7915_start()
48 set_bit(MT76_STATE_RUNNING, &phy->mt76->state); in mt7915_start()
56 mutex_unlock(&dev->mt76.mutex); in mt7915_start()
68 mutex_lock(&dev->mt76.mutex); in mt7915_stop()
70 clear_bit(MT76_STATE_RUNNING, &phy->mt76->state); in mt7915_stop()
82 mutex_unlock(&dev->mt76.mutex); in mt7915_stop()
126 mutex_lock(&dev->mt76.mutex); in mt7915_add_interface()
128 mvif->idx = ffs(~phy->mt76->vif_mask) - 1; in mt7915_add_interface()
153 phy->mt76->vif_mask |= BIT(mvif->idx); in mt7915_add_interface()
[all …]

1234