• Home
  • Raw
  • Download

Lines Matching full:bar

108 	void __iomem	*bar[PCI_STD_NUM_BARS];  member
140 int bar, int offset) in pci_endpoint_test_bar_readl() argument
142 return readl(test->bar[bar] + offset); in pci_endpoint_test_bar_readl()
146 int bar, u32 offset, u32 value) in pci_endpoint_test_bar_writel() argument
148 writel(value, test->bar[bar] + offset); in pci_endpoint_test_bar_writel()
273 if (!test->bar[barno]) in pci_endpoint_test_bar()
703 enum pci_barno bar; in pci_endpoint_test_ioctl() local
710 bar = arg; in pci_endpoint_test_ioctl()
711 if (bar < 0 || bar > 5) in pci_endpoint_test_ioctl()
713 if (is_am654_pci_dev(pdev) && bar == BAR_0) in pci_endpoint_test_ioctl()
715 ret = pci_endpoint_test_bar(test, bar); in pci_endpoint_test_ioctl()
760 enum pci_barno bar; in pci_endpoint_test_probe() local
819 for (bar = 0; bar < PCI_STD_NUM_BARS; bar++) { in pci_endpoint_test_probe()
820 if (pci_resource_flags(pdev, bar) & IORESOURCE_MEM) { in pci_endpoint_test_probe()
821 base = pci_ioremap_bar(pdev, bar); in pci_endpoint_test_probe()
823 dev_err(dev, "Failed to read BAR%d\n", bar); in pci_endpoint_test_probe()
824 WARN_ON(bar == test_reg_bar); in pci_endpoint_test_probe()
826 test->bar[bar] = base; in pci_endpoint_test_probe()
830 test->base = test->bar[test_reg_bar]; in pci_endpoint_test_probe()
833 dev_err(dev, "Cannot perform PCI test without BAR%d\n", in pci_endpoint_test_probe()
889 for (bar = 0; bar < PCI_STD_NUM_BARS; bar++) { in pci_endpoint_test_probe()
890 if (test->bar[bar]) in pci_endpoint_test_probe()
891 pci_iounmap(pdev, test->bar[bar]); in pci_endpoint_test_probe()
907 enum pci_barno bar; in pci_endpoint_test_remove() local
920 for (bar = 0; bar < PCI_STD_NUM_BARS; bar++) { in pci_endpoint_test_remove()
921 if (test->bar[bar]) in pci_endpoint_test_remove()
922 pci_iounmap(pdev, test->bar[bar]); in pci_endpoint_test_remove()