Lines Matching +full:wed +full:- +full:pcie

1 // SPDX-License-Identifier: ISC
39 val = readl(hif->regs + MT_PCIE_RECOG_ID); in mt7915_pci_get_hif2()
44 get_device(hif->dev); in mt7915_pci_get_hif2()
60 put_device(hif->dev); in mt7915_put_hif2()
87 hif = devm_kzalloc(&pdev->dev, sizeof(*hif), GFP_KERNEL); in mt7915_pci_hif2_probe()
89 return -ENOMEM; in mt7915_pci_hif2_probe()
91 hif->dev = &pdev->dev; in mt7915_pci_hif2_probe()
92 hif->regs = pcim_iomap_table(pdev)[0]; in mt7915_pci_hif2_probe()
93 hif->irq = pdev->irq; in mt7915_pci_hif2_probe()
95 list_add(&hif->list, &hif_list); in mt7915_pci_hif2_probe()
121 ret = dma_set_mask(&pdev->dev, DMA_BIT_MASK(32)); in mt7915_pci_probe()
127 if (id->device == 0x7916 || id->device == 0x790a) in mt7915_pci_probe()
130 dev = mt7915_mmio_probe(&pdev->dev, pcim_iomap_table(pdev)[0], in mt7915_pci_probe()
131 id->device); in mt7915_pci_probe()
135 mdev = &dev->mt76; in mt7915_pci_probe()
150 irq = pdev->irq; in mt7915_pci_probe()
153 ret = devm_request_irq(mdev->dev, irq, mt7915_irq_handler, in mt7915_pci_probe()
158 /* master switch of PCIe tnterrupt enable */ in mt7915_pci_probe()
162 dev->hif2 = hif2; in mt7915_pci_probe()
165 /* master switch of PCIe tnterrupt enable */ in mt7915_pci_probe()
171 ret = devm_request_irq(mdev->dev, dev->hif2->irq, in mt7915_pci_probe()
173 KBUILD_MODNAME "-hif", dev); in mt7915_pci_probe()
185 if (dev->hif2) in mt7915_pci_probe()
186 devm_free_irq(mdev->dev, dev->hif2->irq, dev); in mt7915_pci_probe()
188 if (dev->hif2) in mt7915_pci_probe()
189 put_device(dev->hif2->dev); in mt7915_pci_probe()
190 devm_free_irq(mdev->dev, irq, dev); in mt7915_pci_probe()
192 if (mtk_wed_device_active(&mdev->mmio.wed)) in mt7915_pci_probe()
193 mtk_wed_device_detach(&mdev->mmio.wed); in mt7915_pci_probe()
197 mt76_free_device(&dev->mt76); in mt7915_pci_probe()
206 list_del(&hif->list); in mt7915_hif_remove()
216 mt7915_put_hif2(dev->hif2); in mt7915_pci_remove()