Lines Matching refs:mt76

55 	mt76_unregister_device(&dev->mt76);  in mt7921e_unregister_device()
56 mt76_for_each_q_rx(&dev->mt76, i) in mt7921e_unregister_device()
57 napi_disable(&dev->mt76.napi[i]); in mt7921e_unregister_device()
62 mt76_connac2_tx_token_put(&dev->mt76); in mt7921e_unregister_device()
66 skb_queue_purge(&dev->mt76.mcu.res_q); in mt7921e_unregister_device()
68 tasklet_disable(&dev->mt76.irq_tasklet); in mt7921e_unregister_device()
142 dev_err(dev->mt76.dev, "Access currently unsupported address %08x\n", in __mt7921_reg_addr()
150 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_rr()
158 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_wr()
166 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_rmw()
176 mt76_dma_attach(&dev->mt76); in mt7921_dma_init()
183 ret = mt76_connac_init_tx_queues(dev->phy.mt76, MT7921_TXQ_BAND0, in mt7921_dma_init()
192 ret = mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_WM, MT7921_TXQ_MCU_WM, in mt7921_dma_init()
198 ret = mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_FWDL, MT7921_TXQ_FWDL, in mt7921_dma_init()
204 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MCU], in mt7921_dma_init()
212 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MCU_WA], in mt7921_dma_init()
220 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MAIN], in mt7921_dma_init()
230 netif_napi_add_tx(dev->mt76.tx_napi_dev, &dev->mt76.tx_napi, in mt7921_dma_init()
232 napi_enable(&dev->mt76.tx_napi); in mt7921_dma_init()
328 dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_pci_probe()
332 mt76_mmio_init(&dev->mt76, pcim_iomap_table(pdev)[0]); in mt7921_pci_probe()
336 dev->phy.mt76 = &dev->mt76.phy; in mt7921_pci_probe()
337 dev->mt76.phy.priv = &dev->phy; in mt7921_pci_probe()
338 dev->bus_ops = dev->mt76.bus; in mt7921_pci_probe()
339 bus_ops = devm_kmemdup(dev->mt76.dev, dev->bus_ops, sizeof(*bus_ops), in mt7921_pci_probe()
349 dev->mt76.bus = bus_ops; in mt7921_pci_probe()
391 if (of_property_read_bool(dev->mt76.dev->of_node, "wakeup-source")) in mt7921_pci_probe()
392 device_init_wakeup(dev->mt76.dev, true); in mt7921_pci_probe()
400 mt76_free_device(&dev->mt76); in mt7921_pci_probe()
410 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_pci_remove()
413 if (of_property_read_bool(dev->mt76.dev->of_node, "wakeup-source")) in mt7921_pci_remove()
414 device_init_wakeup(dev->mt76.dev, false); in mt7921_pci_remove()
420 mt76_free_device(&dev->mt76); in mt7921_pci_remove()
429 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_pci_suspend()
458 mt76_connac_mcu_set_deep_sleep(&dev->mt76, true); in mt7921_pci_suspend()
495 mt76_connac_mcu_set_deep_sleep(&dev->mt76, false); in mt7921_pci_suspend()
503 mt792x_reset(&dev->mt76); in mt7921_pci_suspend()
512 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_pci_resume()
524 mt76_connac_irq_enable(&dev->mt76, in mt7921_pci_resume()
549 mt76_connac_mcu_set_deep_sleep(&dev->mt76, false); in mt7921_pci_resume()
561 mt792x_reset(&dev->mt76); in mt7921_pci_resume()