Lines Matching refs:bars
193 static int ide_pci_enable(struct pci_dev *dev, int bars, in ide_pci_enable() argument
221 ret = pci_request_selected_regions(dev, bars, d->name); in ide_pci_enable()
405 static int ide_setup_pci_controller(struct pci_dev *dev, int bars, in ide_setup_pci_controller() argument
414 ret = ide_pci_enable(dev, bars, d); in ide_setup_pci_controller()
435 pci_release_selected_regions(dev, bars); in ide_setup_pci_controller()
538 int ret, i, n_ports = dev2 ? 4 : 2, bars; in ide_pci_init_two() local
542 bars = (1 << 2) - 1; in ide_pci_init_two()
544 bars = (1 << 4) - 1; in ide_pci_init_two()
548 bars |= (1 << 2); in ide_pci_init_two()
550 bars |= (1 << 4); in ide_pci_init_two()
554 ret = ide_setup_pci_controller(pdev[i], bars, d, !i); in ide_pci_init_two()
557 pci_release_selected_regions(pdev[0], bars); in ide_pci_init_two()
608 pci_release_selected_regions(pdev[i], bars); in ide_pci_init_two()
625 int bars; in ide_pci_remove() local
628 bars = (1 << 2) - 1; in ide_pci_remove()
630 bars = (1 << 4) - 1; in ide_pci_remove()
634 bars |= (1 << 2); in ide_pci_remove()
636 bars |= (1 << 4); in ide_pci_remove()
642 pci_release_selected_regions(dev2, bars); in ide_pci_remove()
643 pci_release_selected_regions(dev, bars); in ide_pci_remove()