Lines Matching +full:0 +full:x19000
46 if (fd < 0) { in run_test()
51 if (test->barnum >= 0 && test->barnum <= 5) { in run_test()
54 if (ret < 0) in run_test()
63 if (ret < 0) in run_test()
72 if (ret < 0) in run_test()
81 if (ret < 0) in run_test()
88 ret = ioctl(fd, PCITEST_LEGACY_IRQ, 0); in run_test()
90 if (ret < 0) in run_test()
96 if (test->msinum > 0 && test->msinum <= 32) { in run_test()
99 if (ret < 0) in run_test()
105 if (test->msixnum > 0 && test->msixnum <= 2048) { in run_test()
108 if (ret < 0) in run_test()
120 if (ret < 0) in run_test()
132 if (ret < 0) in run_test()
144 if (ret < 0) in run_test()
152 return (ret < 0) ? ret : 1 - ret; /* return 0 if test succeeded */ in run_test()
166 /* since '0' is a valid BAR number, initialize it to -1 */ in main()
170 test->size = 0x19000; in main()
173 test->device = "/dev/pci-endpoint-test.0"; in main()
182 if (test->barnum < 0 || test->barnum > 5) in main()
200 if (test->irqtype < 0 || test->irqtype > 2) in main()
220 test->size = strtoul(optarg, NULL, 0); in main()
231 "\t-D <dev> PCI endpoint test device {default: /dev/pci-endpoint-test.0}\n" in main()
232 "\t-b <bar num> BAR test (bar number between 0..5)\n" in main()
235 "\t-i <irq type> \tSet IRQ type (0 - Legacy, 1 - MSI, 2 - MSI-X)\n" in main()
245 argv[0]); in main()