Lines Matching refs:mantis
37 int mantis_pci_init(struct mantis_pci *mantis) in mantis_pci_init() argument
40 struct mantis_hwconfig *config = mantis->hwconfig; in mantis_pci_init()
41 struct pci_dev *pdev = mantis->pdev; in mantis_pci_init()
47 mantis->pdev->bus->number, in mantis_pci_init()
48 PCI_SLOT(mantis->pdev->devfn), in mantis_pci_init()
49 PCI_FUNC(mantis->pdev->devfn)); in mantis_pci_init()
76 mantis->mmio = ioremap(pci_resource_start(pdev, 0), in mantis_pci_init()
79 if (!mantis->mmio) { in mantis_pci_init()
86 mantis->latency = latency; in mantis_pci_init()
87 mantis->revision = pdev->revision; in mantis_pci_init()
90 mantis->revision, in mantis_pci_init()
91 mantis->pdev->subsystem_vendor, in mantis_pci_init()
92 mantis->pdev->subsystem_device); in mantis_pci_init()
96 mantis->pdev->irq, in mantis_pci_init()
97 mantis->latency, in mantis_pci_init()
98 mantis->mantis_addr, in mantis_pci_init()
99 mantis->mmio); in mantis_pci_init()
105 mantis); in mantis_pci_init()
114 pci_set_drvdata(pdev, mantis); in mantis_pci_init()
120 if (mantis->mmio) in mantis_pci_init()
121 iounmap(mantis->mmio); in mantis_pci_init()
138 void mantis_pci_exit(struct mantis_pci *mantis) in mantis_pci_exit() argument
140 struct pci_dev *pdev = mantis->pdev; in mantis_pci_exit()
142 dprintk(MANTIS_NOTICE, 1, " mem: 0x%p", mantis->mmio); in mantis_pci_exit()
143 free_irq(pdev->irq, mantis); in mantis_pci_exit()
144 if (mantis->mmio) { in mantis_pci_exit()
145 iounmap(mantis->mmio); in mantis_pci_exit()