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