Lines Matching full:bars

832  * Goes over standard PCI resources (BARs) and checks if the given resource
1111 * @dev: PCI device to have its BARs restored
1353 * restore the device's BARs subsequently (1 is returned in that case).
1419 * to confirm the state change, restore its BARs if they might be lost and
1455 * restore at least the BARs so that the device will be
1859 /* Restore BARs before the command register. */
2036 int __weak pcibios_enable_device(struct pci_dev *dev, int bars)
2038 return pci_enable_resources(dev, bars);
2063 static int do_pci_enable_device(struct pci_dev *dev, int bars)
2082 err = pcibios_enable_device(dev, bars);
2148 int i, bars = 0;
2168 bars |= (1 << i);
2171 bars |= (1 << i);
2173 err = do_pci_enable_device(dev, bars);
3735 * Returns -ENOTSUPP if resizable BARs are not supported at all.
4040 * @bars: Bitmask of BARs to be released
4045 void pci_release_selected_regions(struct pci_dev *pdev, int bars)
4050 if (bars & (1 << i))
4055 static int __pci_request_selected_regions(struct pci_dev *pdev, int bars,
4061 if (bars & (1 << i))
4068 if (bars & (1 << i))
4078 * @bars: Bitmask of BARs to be requested
4088 int pci_request_selected_regions(struct pci_dev *pdev, int bars,
4091 return __pci_request_selected_regions(pdev, bars, name, 0);
4098 * @bars: bit mask of BARs to request
4108 int pci_request_selected_regions_exclusive(struct pci_dev *pdev, int bars,
4111 return __pci_request_selected_regions(pdev, bars, name,
5187 * BARs, but also prevents the device from being Bus Master, preventing
5238 * device including MSI, bus mastering, BARs, decoding IO and memory spaces,
6245 int i, bars = 0;
6248 bars |= (1 << i);
6249 return bars;
6541 * 1) Increase the size of the resource. BARs are aligned on their
6544 * assignment of any other BARs inside the alignment region, so
6545 * if we're requesting page alignment, this means no other BARs
6555 * doesn't prevent other BARs being put inside the alignment
6595 * VF BARs are read-only zero according to SR-IOV spec r1.1, sec