/linux/tools/testing/selftests/riscv/hwprobe/ |
H A D | which-cpus.c | 61 struct riscv_hwprobe *pairs; in do_which_cpus() 66 pairs = malloc(nr_pairs * sizeof(struct riscv_hwprobe)); in do_which_cpus() 78 …rc = riscv_hwprobe(pairs, nr_pairs, sizeof(cpu_set_t), (unsigned long *)cpus, RISCV_HWPROBE_WHICH_… in do_which_cpus() 86 struct riscv_hwprobe pairs[2]; in main() 105 pairs[0] = (struct riscv_hwprobe){ .key = RISCV_HWPROBE_KEY_BASE_BEHAVIOR, }; in main() 106 rc = riscv_hwprobe(pairs, 1, 0, NULL, 0); in main() 110 pairs[0] = (struct riscv_hwprobe){ .key = RISCV_HWPROBE_KEY_IMA_EXT_0, }; in main() 111 rc = riscv_hwprobe(pairs, 1, 0, NULL, 0); in main() 115 …pairs[0] = (struct riscv_hwprobe){ .key = RISCV_HWPROBE_KEY_BASE_BEHAVIOR, .value = RISCV_HWPROBE_… in main() 117 rc = riscv_hwprobe(pairs, 1, 0, (unsigned long *)&cpus, RISCV_HWPROBE_WHICH_CPUS); in main() [all …]
|
H A D | hwprobe.c | 7 struct riscv_hwprobe pairs[8]; in main() 24 out = riscv_hwprobe(pairs, 8, 1, &cpus, 0); in main() 43 out = riscv_hwprobe(pairs, 8, 0, 0, 0); in main() 46 out = riscv_hwprobe(pairs, 8, 0, &cpus, 0); in main() 49 out = riscv_hwprobe(pairs, 8, 1, 0, 0); in main() 53 out = riscv_hwprobe(pairs, 1, 1, &cpus, 0); in main() 60 out = riscv_hwprobe(pairs, 2, 0, 0, 0); in main()
|
H A D | cbo.c | 86 struct riscv_hwprobe pair = { in test_zicboz() 94 rc = riscv_hwprobe(&pair, 1, sizeof(cpu_set_t), (unsigned long *)cpus, 0); in test_zicboz() 134 struct riscv_hwprobe pair = { in check_no_zicboz_cpus() 148 rc = riscv_hwprobe(&pair, 1, sizeof(cpu_set_t), (unsigned long *)&one_cpu, 0); in check_no_zicboz_cpus() 181 struct riscv_hwprobe pair; in main() 200 rc = riscv_hwprobe(&pair, 1, sizeof(cpu_set_t), (unsigned long *)&cpus, 0); in main()
|
H A D | hwprobe.h | 22 long riscv_hwprobe(struct riscv_hwprobe *pairs, size_t pair_count,
|
H A D | sys_hwprobe.S | 5 .global riscv_hwprobe 6 riscv_hwprobe: label
|
/linux/arch/riscv/kernel/vdso/ |
H A D | hwprobe.c | 11 extern int riscv_hwprobe(struct riscv_hwprobe *pairs, size_t pair_count, 15 static int riscv_vdso_get_values(struct riscv_hwprobe *pairs, size_t pair_count, in riscv_vdso_get_values() 22 struct riscv_hwprobe *p = pairs; in riscv_vdso_get_values() 23 struct riscv_hwprobe *end = pairs + pair_count; in riscv_vdso_get_values() 32 return riscv_hwprobe(pairs, pair_count, cpusetsize, cpus, flags); in riscv_vdso_get_values() 50 static int riscv_vdso_get_cpus(struct riscv_hwprobe *pairs, size_t pair_count, in riscv_vdso_get_cpus() 56 struct riscv_hwprobe *p = pairs; in riscv_vdso_get_cpus() 57 struct riscv_hwprobe *end = pairs + pair_count; in riscv_vdso_get_cpus() 74 return riscv_hwprobe(pairs, pair_count, cpusetsize, cpus, flags); in riscv_vdso_get_cpus() 78 struct riscv_hwprobe t = { in riscv_vdso_get_cpus() [all …]
|
H A D | sys_hwprobe.S | 8 SYM_FUNC_START(riscv_hwprobe) 15 SYM_FUNC_END(riscv_hwprobe)
|
/linux/arch/riscv/kernel/ |
H A D | sys_hwprobe.c | 21 static void hwprobe_arch_id(struct riscv_hwprobe *pair, in hwprobe_arch_id() 61 static void hwprobe_isa_ext0(struct riscv_hwprobe *pair, in hwprobe_isa_ext0() 162 struct riscv_hwprobe pair; in hwprobe_ext0_has() 204 static void hwprobe_one_pair(struct riscv_hwprobe *pair, in hwprobe_one_pair() 257 static int hwprobe_get_values(struct riscv_hwprobe __user *pairs, in hwprobe_get_values() 296 struct riscv_hwprobe pair; in hwprobe_get_values() 314 static int hwprobe_get_cpus(struct riscv_hwprobe __user *pairs, in hwprobe_get_cpus() 345 struct riscv_hwprobe pair, tmp; in hwprobe_get_cpus() 354 pair = (struct riscv_hwprobe){ .key = -1, }; in hwprobe_get_cpus() 363 tmp = (struct riscv_hwprobe){ .key = pair.key, }; in hwprobe_get_cpus() [all …]
|
/linux/arch/riscv/include/asm/ |
H A D | hwprobe.h | 30 static inline bool riscv_hwprobe_pair_cmp(struct riscv_hwprobe *pair, in riscv_hwprobe_pair_cmp() 31 struct riscv_hwprobe *other_pair) in riscv_hwprobe_pair_cmp()
|
H A D | syscall.h | 100 asmlinkage long sys_riscv_hwprobe(struct riscv_hwprobe *, size_t, size_t,
|
/linux/tools/testing/selftests/riscv/vector/ |
H A D | vstate_prctl.c | 75 struct riscv_hwprobe pair; in main() 80 rc = riscv_hwprobe(&pair, 1, 0, NULL, 0); in main()
|
/linux/arch/riscv/include/uapi/asm/ |
H A D | hwprobe.h | 15 struct riscv_hwprobe { struct
|
/linux/Documentation/arch/riscv/ |
H A D | hwprobe.rst | 9 struct riscv_hwprobe { 14 long sys_riscv_hwprobe(struct riscv_hwprobe *pairs, size_t pair_count,
|
/linux/scripts/ |
H A D | syscall.tbl | 305 258 riscv riscv_hwprobe sys_riscv_hwprobe
|