Lines Matching full:bar

118 	void __iomem	*bar[PCI_STD_NUM_BARS];  member
282 memcpy_toio(test->bar[barno] + offset, write_buf, size); in pci_endpoint_test_bar_memcmp()
284 memcpy_fromio(read_buf, test->bar[barno] + offset, size); in pci_endpoint_test_bar_memcmp()
298 if (!test->bar[barno]) in pci_endpoint_test_bar()
308 * iterating over the whole BAR size (which might be much larger). in pci_endpoint_test_bar()
334 /* Keep the BAR pattern in the top byte. */ in bar_test_pattern_with_offset()
355 test->bar[barno] + j); in pci_endpoint_test_bars_write_bar()
374 val = readl_relaxed(test->bar[barno] + j); in pci_endpoint_test_bars_read_bar()
377 "BAR%d incorrect data at offset: %#x, got: %#x expected: %#x\n", in pci_endpoint_test_bars_read_bar()
388 enum pci_barno bar; in pci_endpoint_test_bars() local
392 for (bar = 0; bar < PCI_STD_NUM_BARS; bar++) in pci_endpoint_test_bars()
393 if (test->bar[bar]) in pci_endpoint_test_bars()
394 pci_endpoint_test_bars_write_bar(test, bar); in pci_endpoint_test_bars()
398 * If there is an address translation issue on the EP, writing one BAR in pci_endpoint_test_bars()
399 * might have overwritten another BAR. Ensure that this is not the case. in pci_endpoint_test_bars()
400 * (Reading back the BAR directly after writing can not detect this.) in pci_endpoint_test_bars()
402 for (bar = 0; bar < PCI_STD_NUM_BARS; bar++) { in pci_endpoint_test_bars()
403 if (test->bar[bar]) { in pci_endpoint_test_bars()
404 ret = pci_endpoint_test_bars_read_bar(test, bar); in pci_endpoint_test_bars()
841 enum pci_barno bar; in pci_endpoint_test_ioctl() local
852 bar = arg; in pci_endpoint_test_ioctl()
853 if (bar > BAR_5) in pci_endpoint_test_ioctl()
855 if (is_am654_pci_dev(pdev) && bar == BAR_0) in pci_endpoint_test_ioctl()
857 ret = pci_endpoint_test_bar(test, bar); in pci_endpoint_test_ioctl()
919 enum pci_barno bar; in pci_endpoint_test_probe() local
973 for (bar = 0; bar < PCI_STD_NUM_BARS; bar++) { in pci_endpoint_test_probe()
974 if (pci_resource_flags(pdev, bar) & IORESOURCE_MEM) { in pci_endpoint_test_probe()
975 base = pci_ioremap_bar(pdev, bar); in pci_endpoint_test_probe()
977 dev_err(dev, "Failed to read BAR%d\n", bar); in pci_endpoint_test_probe()
978 WARN_ON(bar == test_reg_bar); in pci_endpoint_test_probe()
980 test->bar[bar] = base; in pci_endpoint_test_probe()
984 test->base = test->bar[test_reg_bar]; in pci_endpoint_test_probe()
987 dev_err(dev, "Cannot perform PCI test without BAR%d\n", in pci_endpoint_test_probe()
1045 for (bar = 0; bar < PCI_STD_NUM_BARS; bar++) { in pci_endpoint_test_probe()
1046 if (test->bar[bar]) in pci_endpoint_test_probe()
1047 pci_iounmap(pdev, test->bar[bar]); in pci_endpoint_test_probe()
1063 enum pci_barno bar; in pci_endpoint_test_remove() local
1079 for (bar = 0; bar < PCI_STD_NUM_BARS; bar++) { in pci_endpoint_test_remove()
1080 if (test->bar[bar]) in pci_endpoint_test_remove()
1081 pci_iounmap(pdev, test->bar[bar]); in pci_endpoint_test_remove()