Lines Matching full:bars
751 * Goes over standard PCI resources (BARs) and checks if the given resource
929 * @dev: PCI device to have its BARs restored
1107 * restore at least the BARs so that the device will be in pci_raw_set_power_state()
1620 /* Restore BARs before the command register. */ in pci_restore_config_space()
1802 int __weak pcibios_enable_device(struct pci_dev *dev, int bars) in pcibios_enable_device() argument
1804 return pci_enable_resources(dev, bars); in pcibios_enable_device()
1807 static int do_pci_enable_device(struct pci_dev *dev, int bars) in do_pci_enable_device() argument
1822 err = pcibios_enable_device(dev, bars); in do_pci_enable_device()
1882 int i, bars = 0; in pci_enable_device_flags() local
1902 bars |= (1 << i); in pci_enable_device_flags()
1905 bars |= (1 << i); in pci_enable_device_flags()
1907 err = do_pci_enable_device(dev, bars); in pci_enable_device_flags()
3560 * Returns -ENOTSUPP if resizable BARs are not supported at all.
3899 * @bars: Bitmask of BARs to be released
3904 void pci_release_selected_regions(struct pci_dev *pdev, int bars) in pci_release_selected_regions() argument
3909 if (bars & (1 << i)) in pci_release_selected_regions()
3914 static int __pci_request_selected_regions(struct pci_dev *pdev, int bars, in __pci_request_selected_regions() argument
3920 if (bars & (1 << i)) in __pci_request_selected_regions()
3927 if (bars & (1 << i)) in __pci_request_selected_regions()
3937 * @bars: Bitmask of BARs to be requested
3940 int pci_request_selected_regions(struct pci_dev *pdev, int bars, in pci_request_selected_regions() argument
3943 return __pci_request_selected_regions(pdev, bars, res_name, 0); in pci_request_selected_regions()
3947 int pci_request_selected_regions_exclusive(struct pci_dev *pdev, int bars, in pci_request_selected_regions_exclusive() argument
3950 return __pci_request_selected_regions(pdev, bars, res_name, in pci_request_selected_regions_exclusive()
5034 * BARs, but also prevents the device from being Bus Master, preventing in pci_dev_save_and_disable()
5071 * device including MSI, bus mastering, BARs, decoding IO and memory spaces,
6007 int i, bars = 0; in pci_select_bars() local
6010 bars |= (1 << i); in pci_select_bars()
6011 return bars; in pci_select_bars()
6299 * 1) Increase the size of the resource. BARs are aligned on their in pci_request_resource_alignment()
6302 * assignment of any other BARs inside the alignment region, so in pci_request_resource_alignment()
6303 * if we're requesting page alignment, this means no other BARs in pci_request_resource_alignment()
6313 * doesn't prevent other BARs being put inside the alignment in pci_request_resource_alignment()
6354 * VF BARs are read-only zero according to SR-IOV spec r1.1, sec in pci_reassigndev_resource_alignment()