Lines Matching refs:hif
33 struct mt7915_hif *hif; in mt7915_pci_get_hif2() local
38 list_for_each_entry(hif, &hif_list, list) { in mt7915_pci_get_hif2()
39 val = readl(hif->regs + MT_PCIE_RECOG_ID); in mt7915_pci_get_hif2()
44 get_device(hif->dev); in mt7915_pci_get_hif2()
47 hif = NULL; in mt7915_pci_get_hif2()
52 return hif; in mt7915_pci_get_hif2()
55 static void mt7915_put_hif2(struct mt7915_hif *hif) in mt7915_put_hif2() argument
57 if (!hif) in mt7915_put_hif2()
60 put_device(hif->dev); in mt7915_put_hif2()
85 struct mt7915_hif *hif; in mt7915_pci_hif2_probe() local
87 hif = devm_kzalloc(&pdev->dev, sizeof(*hif), GFP_KERNEL); in mt7915_pci_hif2_probe()
88 if (!hif) 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()
97 pci_set_drvdata(pdev, hif); in mt7915_pci_hif2_probe()
204 struct mt7915_hif *hif = pci_get_drvdata(pdev); in mt7915_hif_remove() local
206 list_del(&hif->list); in mt7915_hif_remove()