Lines Matching full:mt76
51 mt76_unregister_device(&dev->mt76); in mt7921e_unregister_device()
52 mt76_for_each_q_rx(&dev->mt76, i) in mt7921e_unregister_device()
53 napi_disable(&dev->mt76.napi[i]); in mt7921e_unregister_device()
58 mt76_connac2_tx_token_put(&dev->mt76); in mt7921e_unregister_device()
62 skb_queue_purge(&dev->mt76.mcu.res_q); in mt7921e_unregister_device()
64 tasklet_disable(&dev->mt76.irq_tasklet); in mt7921e_unregister_device()
138 dev_err(dev->mt76.dev, "Access currently unsupported address %08x\n", in __mt7921_reg_addr()
146 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_rr()
154 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_wr()
162 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_rmw()
172 mt76_dma_attach(&dev->mt76); in mt7921_dma_init()
179 ret = mt76_connac_init_tx_queues(dev->phy.mt76, MT7921_TXQ_BAND0, in mt7921_dma_init()
188 ret = mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_WM, MT7921_TXQ_MCU_WM, in mt7921_dma_init()
194 ret = mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_FWDL, MT7921_TXQ_FWDL, in mt7921_dma_init()
200 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MCU], in mt7921_dma_init()
208 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MCU_WA], in mt7921_dma_init()
216 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MAIN], in mt7921_dma_init()
226 netif_napi_add_tx(dev->mt76.tx_napi_dev, &dev->mt76.tx_napi, in mt7921_dma_init()
228 napi_enable(&dev->mt76.tx_napi); in mt7921_dma_init()
324 dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_pci_probe()
328 mt76_mmio_init(&dev->mt76, pcim_iomap_table(pdev)[0]); in mt7921_pci_probe()
332 dev->phy.mt76 = &dev->mt76.phy; in mt7921_pci_probe()
333 dev->mt76.phy.priv = &dev->phy; in mt7921_pci_probe()
334 dev->bus_ops = dev->mt76.bus; in mt7921_pci_probe()
335 bus_ops = devm_kmemdup(dev->mt76.dev, dev->bus_ops, sizeof(*bus_ops), in mt7921_pci_probe()
345 dev->mt76.bus = bus_ops; in mt7921_pci_probe()
386 if (of_property_read_bool(dev->mt76.dev->of_node, "wakeup-source")) in mt7921_pci_probe()
387 device_init_wakeup(dev->mt76.dev, true); in mt7921_pci_probe()
394 mt76_free_device(&dev->mt76); in mt7921_pci_probe()
404 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_pci_remove()
406 if (of_property_read_bool(dev->mt76.dev->of_node, "wakeup-source")) in mt7921_pci_remove()
407 device_init_wakeup(dev->mt76.dev, false); in mt7921_pci_remove()
412 mt76_free_device(&dev->mt76); in mt7921_pci_remove()
420 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_pci_suspend()
449 mt76_connac_mcu_set_deep_sleep(&dev->mt76, true); in mt7921_pci_suspend()
486 mt76_connac_mcu_set_deep_sleep(&dev->mt76, false); in mt7921_pci_suspend()
494 mt792x_reset(&dev->mt76); in mt7921_pci_suspend()
503 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7921_pci_resume()
515 mt76_connac_irq_enable(&dev->mt76, in mt7921_pci_resume()
540 mt76_connac_mcu_set_deep_sleep(&dev->mt76, false); in mt7921_pci_resume()
552 mt792x_reset(&dev->mt76); in mt7921_pci_resume()