Lines Matching refs:pdev
154 mt76x0e_probe(struct pci_dev *pdev, const struct pci_device_id *id) in mt76x0e_probe() argument
175 ret = pcim_enable_device(pdev); in mt76x0e_probe()
179 ret = pcim_iomap_regions(pdev, BIT(0), pci_name(pdev)); in mt76x0e_probe()
183 pci_set_master(pdev); in mt76x0e_probe()
185 ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); in mt76x0e_probe()
189 mt76_pci_disable_aspm(pdev); in mt76x0e_probe()
191 mdev = mt76_alloc_device(&pdev->dev, sizeof(*dev), &mt76x0e_ops, in mt76x0e_probe()
199 mt76_mmio_init(mdev, pcim_iomap_table(pdev)[0]); in mt76x0e_probe()
206 ret = devm_request_irq(mdev->dev, pdev->irq, mt76x02_irq_handler, in mt76x0e_probe()
234 mt76x0e_remove(struct pci_dev *pdev) in mt76x0e_remove() argument
236 struct mt76_dev *mdev = pci_get_drvdata(pdev); in mt76x0e_remove()
245 static int mt76x0e_suspend(struct pci_dev *pdev, pm_message_t state) in mt76x0e_suspend() argument
247 struct mt76_dev *mdev = pci_get_drvdata(pdev); in mt76x0e_suspend()
265 pci_enable_wake(pdev, pci_choose_state(pdev, state), true); in mt76x0e_suspend()
266 pci_save_state(pdev); in mt76x0e_suspend()
268 return pci_set_power_state(pdev, pci_choose_state(pdev, state)); in mt76x0e_suspend()
271 static int mt76x0e_resume(struct pci_dev *pdev) in mt76x0e_resume() argument
273 struct mt76_dev *mdev = pci_get_drvdata(pdev); in mt76x0e_resume()
277 err = pci_set_power_state(pdev, PCI_D0); in mt76x0e_resume()
281 pci_restore_state(pdev); in mt76x0e_resume()