Lines Matching defs:pair

19 static void hwprobe_arch_id(struct riscv_hwprobe *pair,
29 switch (pair->key) {
56 pair->value = id;
59 static void hwprobe_isa_ext0(struct riscv_hwprobe *pair,
65 pair->value = 0;
67 pair->value |= RISCV_HWPROBE_IMA_FD;
70 pair->value |= RISCV_HWPROBE_IMA_C;
73 pair->value |= RISCV_HWPROBE_IMA_V;
85 pair->value |= RISCV_HWPROBE_EXT_##ext; \
139 pair->value &= ~missing;
144 struct riscv_hwprobe pair;
146 hwprobe_isa_ext0(&pair, cpus);
147 return (pair.value & ext);
186 static void hwprobe_one_pair(struct riscv_hwprobe *pair,
189 switch (pair->key) {
193 hwprobe_arch_id(pair, cpus);
202 pair->value = RISCV_HWPROBE_BASE_BEHAVIOR_IMA;
206 hwprobe_isa_ext0(pair, cpus);
210 pair->value = hwprobe_misaligned(cpus);
214 pair->value = 0;
216 pair->value = riscv_cboz_block_size;
225 pair->key = -1;
226 pair->value = 0;
270 struct riscv_hwprobe pair;
272 if (get_user(pair.key, &pairs->key))
275 pair.value = 0;
276 hwprobe_one_pair(&pair, &cpus);
277 ret = put_user(pair.key, &pairs->key);
279 ret = put_user(pair.value, &pairs->value);
319 struct riscv_hwprobe pair, tmp;
322 ret = copy_from_user(&pair, &pairs[i], sizeof(pair));
326 if (!riscv_hwprobe_key_is_valid(pair.key)) {
328 pair = (struct riscv_hwprobe){ .key = -1, };
329 ret = copy_to_user(&pairs[i], &pair, sizeof(pair));
337 tmp = (struct riscv_hwprobe){ .key = pair.key, };
344 if (!riscv_hwprobe_pair_cmp(&tmp, &pair))
381 struct riscv_hwprobe pair;
389 pair.key = key;
390 hwprobe_one_pair(&pair, cpu_online_mask);
392 WARN_ON_ONCE(pair.key < 0);
394 avd->all_cpu_hwprobe_values[key] = pair.value;
400 id_bitsmash |= pair.value;