Lines Matching refs:mt76

36 	mt76_unregister_device(&dev->mt76);  in mt7925e_unregister_device()
37 mt76_for_each_q_rx(&dev->mt76, i) in mt7925e_unregister_device()
38 napi_disable(&dev->mt76.napi[i]); in mt7925e_unregister_device()
47 skb_queue_purge(&dev->mt76.mcu.res_q); in mt7925e_unregister_device()
49 tasklet_disable(&dev->mt76.irq_tasklet); in mt7925e_unregister_device()
56 dev->bus_ops->wr(&dev->mt76, MT_HIF_REMAP_L1, dev->backup_l1); in mt7925_reg_remap_restore()
61 dev->bus_ops->wr(&dev->mt76, MT_HIF_REMAP_L2, dev->backup_l2); in mt7925_reg_remap_restore()
71 dev->backup_l1 = dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L1); in mt7925_reg_map_l1()
73 dev->bus_ops->rmw(&dev->mt76, MT_HIF_REMAP_L1, in mt7925_reg_map_l1()
78 dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L1); in mt7925_reg_map_l1()
87 dev->backup_l2 = dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L1); in mt7925_reg_map_l2()
89 dev->bus_ops->rmw(&dev->mt76, MT_HIF_REMAP_L1, in mt7925_reg_map_l2()
93 dev->bus_ops->wr(&dev->mt76, MT_HIF_REMAP_L2, addr); in mt7925_reg_map_l2()
95 dev->bus_ops->rr(&dev->mt76, MT_HIF_REMAP_L1); in mt7925_reg_map_l2()
186 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7925_rr()
194 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7925_wr()
202 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7925_rmw()
212 mt76_dma_attach(&dev->mt76); in mt7925_dma_init()
219 ret = mt76_connac_init_tx_queues(dev->phy.mt76, MT7925_TXQ_BAND0, in mt7925_dma_init()
228 ret = mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_WM, MT7925_TXQ_MCU_WM, in mt7925_dma_init()
234 ret = mt76_init_mcu_queue(&dev->mt76, MT_MCUQ_FWDL, MT7925_TXQ_FWDL, in mt7925_dma_init()
240 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MCU], in mt7925_dma_init()
247 ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MAIN], in mt7925_dma_init()
257 netif_napi_add_tx(dev->mt76.tx_napi_dev, &dev->mt76.tx_napi, in mt7925_dma_init()
259 napi_enable(&dev->mt76.tx_napi); in mt7925_dma_init()
353 dev = container_of(mdev, struct mt792x_dev, mt76); in mt7925_pci_probe()
357 mt76_mmio_init(&dev->mt76, pcim_iomap_table(pdev)[0]); in mt7925_pci_probe()
361 dev->phy.mt76 = &dev->mt76.phy; in mt7925_pci_probe()
362 dev->mt76.phy.priv = &dev->phy; in mt7925_pci_probe()
363 dev->bus_ops = dev->mt76.bus; in mt7925_pci_probe()
364 bus_ops = devm_kmemdup(dev->mt76.dev, dev->bus_ops, sizeof(*bus_ops), in mt7925_pci_probe()
374 dev->mt76.bus = bus_ops; in mt7925_pci_probe()
420 mt76_free_device(&dev->mt76); in mt7925_pci_probe()
430 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7925_pci_remove()
435 mt76_free_device(&dev->mt76); in mt7925_pci_remove()
444 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7925_pci_suspend()
527 mt792x_reset(&dev->mt76); in mt7925_pci_suspend()
536 struct mt792x_dev *dev = container_of(mdev, struct mt792x_dev, mt76); in mt7925_pci_resume()
549 mt76_connac_irq_enable(&dev->mt76, in mt7925_pci_resume()
589 mt792x_reset(&dev->mt76); in mt7925_pci_resume()