Lines Matching refs:mdev

37 	struct mt76_dev *mdev;  in mt76x2e_probe()  local
54 mdev = mt76_alloc_device(&pdev->dev, sizeof(*dev), &mt76x2_ops, in mt76x2e_probe()
56 if (!mdev) in mt76x2e_probe()
59 dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x2e_probe()
60 mt76_mmio_init(mdev, pcim_iomap_table(pdev)[0]); in mt76x2e_probe()
63 mdev->rev = mt76_rr(dev, MT_ASIC_VERSION); in mt76x2e_probe()
64 dev_info(mdev->dev, "ASIC revision: %08x\n", mdev->rev); in mt76x2e_probe()
68 ret = devm_request_irq(mdev->dev, pdev->irq, mt76x02_irq_handler, in mt76x2e_probe()
101 struct mt76_dev *mdev = pci_get_drvdata(pdev); in mt76x2e_remove() local
102 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x2e_remove()
104 mt76_unregister_device(mdev); in mt76x2e_remove()
106 mt76_free_device(mdev); in mt76x2e_remove()
112 struct mt76_dev *mdev = pci_get_drvdata(pdev); in mt76x2e_suspend() local
115 napi_disable(&mdev->tx_napi); in mt76x2e_suspend()
116 tasklet_kill(&mdev->pre_tbtt_tasklet); in mt76x2e_suspend()
117 mt76_worker_disable(&mdev->tx_worker); in mt76x2e_suspend()
119 mt76_for_each_q_rx(mdev, i) in mt76x2e_suspend()
120 napi_disable(&mdev->napi[i]); in mt76x2e_suspend()
131 mt76_for_each_q_rx(mdev, i) in mt76x2e_suspend()
132 napi_enable(&mdev->napi[i]); in mt76x2e_suspend()
133 napi_enable(&mdev->tx_napi); in mt76x2e_suspend()
141 struct mt76_dev *mdev = pci_get_drvdata(pdev); in mt76x2e_resume() local
142 struct mt76x02_dev *dev = container_of(mdev, struct mt76x02_dev, mt76); in mt76x2e_resume()
151 mt76_worker_enable(&mdev->tx_worker); in mt76x2e_resume()
154 mt76_for_each_q_rx(mdev, i) { in mt76x2e_resume()
155 napi_enable(&mdev->napi[i]); in mt76x2e_resume()
156 napi_schedule(&mdev->napi[i]); in mt76x2e_resume()
158 napi_enable(&mdev->tx_napi); in mt76x2e_resume()
159 napi_schedule(&mdev->tx_napi); in mt76x2e_resume()