Lines Matching refs:bar
492 void pci_release_region(struct pci_dev *pdev, int bar) in pci_release_region() argument
494 if (pci_resource_len(pdev, bar) == 0) in pci_release_region()
496 if (pci_resource_flags(pdev, bar) & IORESOURCE_IO) in pci_release_region()
497 release_region(pci_resource_start(pdev, bar), in pci_release_region()
498 pci_resource_len(pdev, bar)); in pci_release_region()
499 else if (pci_resource_flags(pdev, bar) & IORESOURCE_MEM) in pci_release_region()
500 release_mem_region(pci_resource_start(pdev, bar), in pci_release_region()
501 pci_resource_len(pdev, bar)); in pci_release_region()
518 int pci_request_region(struct pci_dev *pdev, int bar, char *res_name) in pci_request_region() argument
520 if (pci_resource_len(pdev, bar) == 0) in pci_request_region()
523 if (pci_resource_flags(pdev, bar) & IORESOURCE_IO) { in pci_request_region()
524 if (!request_region(pci_resource_start(pdev, bar), in pci_request_region()
525 pci_resource_len(pdev, bar), res_name)) in pci_request_region()
528 else if (pci_resource_flags(pdev, bar) & IORESOURCE_MEM) { in pci_request_region()
529 if (!request_mem_region(pci_resource_start(pdev, bar), in pci_request_region()
530 pci_resource_len(pdev, bar), res_name)) in pci_request_region()
538 pci_resource_flags(pdev, bar) & IORESOURCE_IO ? "I/O" : "mem", in pci_request_region()
539 bar + 1, /* PCI BAR # */ in pci_request_region()
540 pci_resource_len(pdev, bar), pci_resource_start(pdev, bar), in pci_request_region()