Lines Matching full:bars

784  * Goes over standard PCI resources (BARs) and checks if the given resource
962 * @dev: PCI device to have its BARs restored
1140 * restore at least the BARs so that the device will be
1648 /* Restore BARs before the command register. */
1831 int __weak pcibios_enable_device(struct pci_dev *dev, int bars)
1833 return pci_enable_resources(dev, bars);
1836 static int do_pci_enable_device(struct pci_dev *dev, int bars)
1851 err = pcibios_enable_device(dev, bars);
1911 int i, bars = 0;
1931 bars |= (1 << i);
1934 bars |= (1 << i);
1936 err = do_pci_enable_device(dev, bars);
3600 * Returns -ENOTSUPP if resizable BARs are not supported at all.
3940 * @bars: Bitmask of BARs to be released
3945 void pci_release_selected_regions(struct pci_dev *pdev, int bars)
3950 if (bars & (1 << i))
3955 static int __pci_request_selected_regions(struct pci_dev *pdev, int bars,
3961 if (bars & (1 << i))
3968 if (bars & (1 << i))
3978 * @bars: Bitmask of BARs to be requested
3981 int pci_request_selected_regions(struct pci_dev *pdev, int bars,
3984 return __pci_request_selected_regions(pdev, bars, res_name, 0);
3988 int pci_request_selected_regions_exclusive(struct pci_dev *pdev, int bars,
3991 return __pci_request_selected_regions(pdev, bars, res_name,
5113 * BARs, but also prevents the device from being Bus Master, preventing
5283 * device including MSI, bus mastering, BARs, decoding IO and memory spaces,
6211 int i, bars = 0;
6214 bars |= (1 << i);
6215 return bars;
6503 * 1) Increase the size of the resource. BARs are aligned on their
6506 * assignment of any other BARs inside the alignment region, so
6507 * if we're requesting page alignment, this means no other BARs
6517 * doesn't prevent other BARs being put inside the alignment
6558 * VF BARs are read-only zero according to SR-IOV spec r1.1, sec