Lines Matching full:bars

820  * Goes over standard PCI resources (BARs) and checks if the given resource
998 * @dev: PCI device to have its BARs restored
1198 * restore the device's BARs subsequently (1 is returned in that case).
1262 * to confirm the state change, restore its BARs if they might be lost and
1294 * restore at least the BARs so that the device will be
1716 /* Restore BARs before the command register. */
1900 int __weak pcibios_enable_device(struct pci_dev *dev, int bars)
1902 return pci_enable_resources(dev, bars);
1905 static int do_pci_enable_device(struct pci_dev *dev, int bars)
1920 err = pcibios_enable_device(dev, bars);
1980 int i, bars = 0;
2000 bars |= (1 << i);
2003 bars |= (1 << i);
2005 err = do_pci_enable_device(dev, bars);
3672 * Returns -ENOTSUPP if resizable BARs are not supported at all.
4020 * @bars: Bitmask of BARs to be released
4025 void pci_release_selected_regions(struct pci_dev *pdev, int bars)
4030 if (bars & (1 << i))
4035 static int __pci_request_selected_regions(struct pci_dev *pdev, int bars,
4041 if (bars & (1 << i))
4048 if (bars & (1 << i))
4058 * @bars: Bitmask of BARs to be requested
4061 int pci_request_selected_regions(struct pci_dev *pdev, int bars,
4064 return __pci_request_selected_regions(pdev, bars, res_name, 0);
4068 int pci_request_selected_regions_exclusive(struct pci_dev *pdev, int bars,
4071 return __pci_request_selected_regions(pdev, bars, res_name,
5196 * BARs, but also prevents the device from being Bus Master, preventing
5366 * device including MSI, bus mastering, BARs, decoding IO and memory spaces,
6294 int i, bars = 0;
6297 bars |= (1 << i);
6298 return bars;
6587 * 1) Increase the size of the resource. BARs are aligned on their
6590 * assignment of any other BARs inside the alignment region, so
6591 * if we're requesting page alignment, this means no other BARs
6601 * doesn't prevent other BARs being put inside the alignment
6642 * VF BARs are read-only zero according to SR-IOV spec r1.1, sec