Lines Matching +full:0 +full:xb00d

31 #define IRQ_TYPE_LEGACY				0
35 #define PCI_ENDPOINT_TEST_MAGIC 0x0
37 #define PCI_ENDPOINT_TEST_COMMAND 0x4
38 #define COMMAND_RAISE_LEGACY_IRQ BIT(0)
45 #define PCI_ENDPOINT_TEST_STATUS 0x8
46 #define STATUS_READ_SUCCESS BIT(0)
56 #define PCI_ENDPOINT_TEST_LOWER_SRC_ADDR 0x0c
57 #define PCI_ENDPOINT_TEST_UPPER_SRC_ADDR 0x10
59 #define PCI_ENDPOINT_TEST_LOWER_DST_ADDR 0x14
60 #define PCI_ENDPOINT_TEST_UPPER_DST_ADDR 0x18
62 #define PCI_ENDPOINT_TEST_SIZE 0x1c
63 #define PCI_ENDPOINT_TEST_CHECKSUM 0x20
65 #define PCI_ENDPOINT_TEST_IRQ_TYPE 0x24
66 #define PCI_ENDPOINT_TEST_IRQ_NUMBER 0x28
68 #define PCI_ENDPOINT_TEST_FLAGS 0x2c
69 #define FLAG_USE_DMA BIT(0)
71 #define PCI_DEVICE_ID_TI_J721E 0xb00d
72 #define PCI_DEVICE_ID_TI_AM654 0xb00c
73 #define PCI_DEVICE_ID_LS1088A 0x80c0
78 #define PCI_DEVICE_ID_RENESAS_R8A774A1 0x0028
79 #define PCI_DEVICE_ID_RENESAS_R8A774B1 0x002b
80 #define PCI_DEVICE_ID_RENESAS_R8A774C0 0x002d
81 #define PCI_DEVICE_ID_RENESAS_R8A774E1 0x0025
94 MODULE_PARM_DESC(irq_type, "IRQ mode selection in pci_endpoint_test (0 - Legacy, 1 - MSI, 2 - MSI-X…
187 if (irq < 0) in pci_endpoint_test_alloc_irq_vectors()
192 if (irq < 0) in pci_endpoint_test_alloc_irq_vectors()
197 if (irq < 0) in pci_endpoint_test_alloc_irq_vectors()
204 if (irq < 0) { in pci_endpoint_test_alloc_irq_vectors()
205 irq = 0; in pci_endpoint_test_alloc_irq_vectors()
221 for (i = 0; i < test->num_irqs; i++) in pci_endpoint_test_release_irq()
224 test->num_irqs = 0; in pci_endpoint_test_release_irq()
234 for (i = 0; i < test->num_irqs; i++) { in pci_endpoint_test_request_irq()
279 size = 0x4; in pci_endpoint_test_bar()
281 for (j = 0; j < size; j += 4) in pci_endpoint_test_bar()
282 pci_endpoint_test_bar_writel(test, barno, j, 0xA0A0A0A0); in pci_endpoint_test_bar()
284 for (j = 0; j < size; j += 4) { in pci_endpoint_test_bar()
286 if (val != 0xA0A0A0A0) in pci_endpoint_test_bar()
299 pci_endpoint_test_writel(test, PCI_ENDPOINT_TEST_IRQ_NUMBER, 0); in pci_endpoint_test_legacy_irq()
341 u32 flags = 0; in pci_endpoint_test_copy()
409 src_crc32 = crc32_le(~0, src_addr, size); in pci_endpoint_test_copy()
454 dst_crc32 = crc32_le(~0, dst_addr, size); in pci_endpoint_test_copy()
477 u32 flags = 0; in pci_endpoint_test_write()
494 if (err != 0) { in pci_endpoint_test_write()
538 crc32 = crc32_le(~0, addr, size); in pci_endpoint_test_write()
576 u32 flags = 0; in pci_endpoint_test_read()
652 crc32 = crc32_le(~0, addr, size); in pci_endpoint_test_read()
711 if (bar < 0 || bar > 5) in pci_endpoint_test_ioctl()
775 test->test_reg_bar = 0; in pci_endpoint_test_probe()
776 test->alignment = 0; in pci_endpoint_test_probe()
794 if ((dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(48)) != 0) && in pci_endpoint_test_probe()
795 dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)) != 0) { in pci_endpoint_test_probe()
817 for (bar = 0; bar < PCI_STD_NUM_BARS; bar++) { in pci_endpoint_test_probe()
838 id = ida_simple_get(&pci_endpoint_test_ida, 0, 0, GFP_KERNEL); in pci_endpoint_test_probe()
839 if (id < 0) { in pci_endpoint_test_probe()
870 return 0; in pci_endpoint_test_probe()
885 for (bar = 0; bar < PCI_STD_NUM_BARS; bar++) { in pci_endpoint_test_probe()
909 if (id < 0) in pci_endpoint_test_remove()
916 for (bar = 0; bar < PCI_STD_NUM_BARS; bar++) { in pci_endpoint_test_remove()
952 { PCI_DEVICE(PCI_VENDOR_ID_FREESCALE, 0x81c0),