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()
347 return 0; in pci_endpoint_test_validate_xfer_params()
357 u32 flags = 0; in pci_endpoint_test_copy()
427 src_crc32 = crc32_le(~0, src_addr, size); in pci_endpoint_test_copy()
472 dst_crc32 = crc32_le(~0, dst_addr, size); in pci_endpoint_test_copy()
495 u32 flags = 0; in pci_endpoint_test_write()
512 if (err != 0) { in pci_endpoint_test_write()
558 crc32 = crc32_le(~0, addr, size); in pci_endpoint_test_write()
596 u32 flags = 0; in pci_endpoint_test_read()
674 crc32 = crc32_le(~0, addr, size); in pci_endpoint_test_read()
733 if (bar < 0 || bar > 5) in pci_endpoint_test_ioctl()
797 test->test_reg_bar = 0; in pci_endpoint_test_probe()
798 test->alignment = 0; in pci_endpoint_test_probe()
816 if ((dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(48)) != 0) && in pci_endpoint_test_probe()
817 dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)) != 0) { in pci_endpoint_test_probe()
841 for (bar = 0; bar < PCI_STD_NUM_BARS; bar++) { in pci_endpoint_test_probe()
862 id = ida_simple_get(&pci_endpoint_test_ida, 0, 0, GFP_KERNEL); in pci_endpoint_test_probe()
863 if (id < 0) { in pci_endpoint_test_probe()
896 return 0; in pci_endpoint_test_probe()
911 for (bar = 0; bar < PCI_STD_NUM_BARS; bar++) { in pci_endpoint_test_probe()
935 if (id < 0) in pci_endpoint_test_remove()
942 for (bar = 0; bar < PCI_STD_NUM_BARS; bar++) { in pci_endpoint_test_remove()
978 { PCI_DEVICE(PCI_VENDOR_ID_FREESCALE, 0x81c0),