Lines Matching refs:dev2
1268 static void hpt374_init(struct pci_dev *dev, struct pci_dev *dev2) in hpt374_init() argument
1270 if (dev2->irq != dev->irq) { in hpt374_init()
1272 dev2->irq = dev->irq; in hpt374_init()
1274 "fixed\n", pci_name(dev2)); in hpt374_init()
1293 static int hpt36x_init(struct pci_dev *dev, struct pci_dev *dev2) in hpt36x_init() argument
1306 pci_read_config_byte(dev2, PCI_INTERRUPT_PIN, &pin2); in hpt36x_init()
1308 if (pin1 != pin2 && dev->irq == dev2->irq) { in hpt36x_init()
1409 struct pci_dev *dev2 = NULL; in hpt366_init_one() local
1461 dev2 = pci_get_slot(dev->bus, dev->devfn + 1); in hpt366_init_one()
1463 dyn_info = kzalloc(sizeof(*dyn_info) * (dev2 ? 2 : 1), GFP_KERNEL); in hpt366_init_one()
1467 pci_dev_put(dev2); in hpt366_init_one()
1477 if (dev2) { in hpt366_init_one()
1481 hpt374_init(dev, dev2); in hpt366_init_one()
1483 if (hpt36x_init(dev, dev2)) in hpt366_init_one()
1487 ret = ide_pci_init_two(dev, dev2, &d, dyn_info); in hpt366_init_one()
1489 pci_dev_put(dev2); in hpt366_init_one()
1506 struct pci_dev *dev2 = host->dev[1] ? to_pci_dev(host->dev[1]) : NULL; in hpt366_remove() local
1509 pci_dev_put(dev2); in hpt366_remove()