Lines Matching full:pairs
10 long riscv_hwprobe(struct riscv_hwprobe *pairs, size_t pair_count,
15 struct riscv_hwprobe pairs[8]; in main() local
23 * Just run a basic test: pass enough pairs to get up to the base in main()
27 pairs[i].key = i; in main()
28 out = riscv_hwprobe(pairs, 8, 1, &cpus, 0); in main()
33 if ((i < 4) && (pairs[i].key != i)) in main()
36 if (pairs[i].key != RISCV_HWPROBE_KEY_BASE_BEHAVIOR) in main()
39 if (pairs[i].value & RISCV_HWPROBE_BASE_BEHAVIOR_IMA) in main()
49 out = riscv_hwprobe(pairs, 8, 0, 0, 0); in main()
53 out = riscv_hwprobe(pairs, 8, 0, &cpus, 0); in main()
57 out = riscv_hwprobe(pairs, 8, 1, 0, 0); in main()
65 pairs[0].key = RISCV_HWPROBE_KEY_BASE_BEHAVIOR; in main()
66 out = riscv_hwprobe(pairs, 1, 1, &cpus, 0); in main()
69 if (pairs[0].key != RISCV_HWPROBE_KEY_BASE_BEHAVIOR) in main()
76 pairs[0].key = 0x5555; in main()
77 pairs[1].key = 1; in main()
78 pairs[1].value = 0xAAAA; in main()
79 out = riscv_hwprobe(pairs, 2, 0, 0, 0); in main()
83 if (pairs[0].key != -1) in main()
86 if ((pairs[1].key != 1) || (pairs[1].value == 0xAAAA)) in main()