Lines Matching refs:hc_dev
51 static struct pci_dev *hc_dev; variable
66 if (hc_dev) { in zt5550_hc_config()
77 hc_dev = pdev; in zt5550_hc_config()
78 dbg("hc_dev = %p", hc_dev); in zt5550_hc_config()
79 dbg("pci resource start %llx", (unsigned long long)pci_resource_start(hc_dev, 1)); in zt5550_hc_config()
80 dbg("pci resource len %llx", (unsigned long long)pci_resource_len(hc_dev, 1)); in zt5550_hc_config()
82 if (!request_mem_region(pci_resource_start(hc_dev, 1), in zt5550_hc_config()
83 pci_resource_len(hc_dev, 1), MY_NAME)) { in zt5550_hc_config()
90 ioremap(pci_resource_start(hc_dev, 1), pci_resource_len(hc_dev, 1)); in zt5550_hc_config()
93 (unsigned long long)pci_resource_len(hc_dev, 1), in zt5550_hc_config()
94 (unsigned long long)pci_resource_start(hc_dev, 1)); in zt5550_hc_config()
121 release_mem_region(pci_resource_start(hc_dev, 1), in zt5550_hc_config()
122 pci_resource_len(hc_dev, 1)); in zt5550_hc_config()
124 pci_disable_device(hc_dev); in zt5550_hc_config()
130 if (!hc_dev) in zt5550_hc_cleanup()
134 release_mem_region(pci_resource_start(hc_dev, 1), in zt5550_hc_cleanup()
135 pci_resource_len(hc_dev, 1)); in zt5550_hc_cleanup()
136 pci_disable_device(hc_dev); in zt5550_hc_cleanup()
166 if (hc_dev == NULL) in zt5550_hc_enable_irq()
179 if (hc_dev == NULL) in zt5550_hc_disable_irq()
202 zt5550_hpc.irq = hc_dev->irq; in zt5550_hc_init_one()
204 zt5550_hpc.dev_id = hc_dev; in zt5550_hc_init_one()