Lines Matching full:bars
744 * Goes over standard PCI resources (BARs) and checks if the given resource
922 * @dev: PCI device to have its BARs restored
1100 * restore at least the BARs so that the device will be in pci_raw_set_power_state()
1613 /* Restore BARs before the command register. */ in pci_restore_config_space()
1795 int __weak pcibios_enable_device(struct pci_dev *dev, int bars) in pcibios_enable_device() argument
1797 return pci_enable_resources(dev, bars); in pcibios_enable_device()
1800 static int do_pci_enable_device(struct pci_dev *dev, int bars) in do_pci_enable_device() argument
1815 err = pcibios_enable_device(dev, bars); in do_pci_enable_device()
1875 int i, bars = 0; in pci_enable_device_flags() local
1899 bars |= (1 << i); in pci_enable_device_flags()
1902 bars |= (1 << i); in pci_enable_device_flags()
1904 err = do_pci_enable_device(dev, bars); in pci_enable_device_flags()
3534 * Returns -ENOTSUPP if resizable BARs are not supported at all.
3866 * @bars: Bitmask of BARs to be released
3871 void pci_release_selected_regions(struct pci_dev *pdev, int bars) in pci_release_selected_regions() argument
3876 if (bars & (1 << i)) in pci_release_selected_regions()
3881 static int __pci_request_selected_regions(struct pci_dev *pdev, int bars, in __pci_request_selected_regions() argument
3887 if (bars & (1 << i)) in __pci_request_selected_regions()
3894 if (bars & (1 << i)) in __pci_request_selected_regions()
3904 * @bars: Bitmask of BARs to be requested
3907 int pci_request_selected_regions(struct pci_dev *pdev, int bars, in pci_request_selected_regions() argument
3910 return __pci_request_selected_regions(pdev, bars, res_name, 0); in pci_request_selected_regions()
3914 int pci_request_selected_regions_exclusive(struct pci_dev *pdev, int bars, in pci_request_selected_regions_exclusive() argument
3917 return __pci_request_selected_regions(pdev, bars, res_name, in pci_request_selected_regions_exclusive()
4996 * BARs, but also prevents the device from being Bus Master, preventing in pci_dev_save_and_disable()
5033 * device including MSI, bus mastering, BARs, decoding IO and memory spaces,
5969 int i, bars = 0; in pci_select_bars() local
5972 bars |= (1 << i); in pci_select_bars()
5973 return bars; in pci_select_bars()
6259 * 1) Increase the size of the resource. BARs are aligned on their in pci_request_resource_alignment()
6262 * assignment of any other BARs inside the alignment region, so in pci_request_resource_alignment()
6263 * if we're requesting page alignment, this means no other BARs in pci_request_resource_alignment()
6273 * doesn't prevent other BARs being put inside the alignment in pci_request_resource_alignment()
6314 * VF BARs are read-only zero according to SR-IOV spec r1.1, sec in pci_reassigndev_resource_alignment()