/linux-master/tools/testing/selftests/arm64/fp/ |
H A D | rdvl-sve.c | 9 int vl = rdvl_sve(); local 11 printf("%d\n", vl);
|
H A D | rdvl-sme.c | 9 int vl = rdvl_sme(); local 11 printf("%d\n", vl);
|
H A D | sve-probe-vls.c | 21 int vl; local 35 vl = prctl(PR_SVE_SET_VL, vq * 16); 36 if (vl == -1) 40 vl &= PR_SVE_VL_LEN_MASK; 42 if (rdvl_sve() != vl) 44 vl, rdvl_sve()); 46 if (!sve_vl_valid(vl)) 47 ksft_exit_fail_msg("VL %d invalid\n", vl); 48 vq = sve_vq_from_vl(vl);
|
H A D | za-ptrace.c | 106 static void ptrace_set_get_vl(pid_t child, unsigned int vl, bool *supported) argument 116 prctl_vl = prctl(PR_SME_SET_VL, vl); 122 *supported = (prctl_vl == vl); 127 za.vl = vl; 130 ksft_test_result_fail("Failed to set VL %u\n", vl); 139 ksft_test_result_fail("Failed to read VL %u\n", vl); 143 ksft_test_result(new_za->vl = prctl_vl, "Set VL %u\n", vl); 149 static void ptrace_set_no_data(pid_t child, unsigned int vl) argument 190 ptrace_set_get_data(pid_t child, unsigned int vl) argument 254 unsigned int vq, vl; local [all...] |
H A D | vlset.c | 24 static unsigned long vl; variable 53 case 'M': vl = SVE_VL_MAX; break; 66 if (!vl) { 72 vl = strtoul(argv[optind], &rest, 0); 74 vl = ULONG_MAX; 77 if (vl == ULONG_MAX && errno) { 112 if (vl & ~(vl & PR_SVE_VL_LEN_MASK)) { 114 program_name, vl); 134 t = prctl(set_ctl, vl | flag [all...] |
H A D | sve-ptrace.c | 170 sve.vl = sve_vl_from_vq(SVE_VQ_MIN); 215 unsigned int vl, bool *supported) 225 prctl_vl = prctl(type->prctl_set, vl); 231 *supported = (prctl_vl == vl); 236 sve.vl = vl; 240 type->name, vl); 250 type->name, vl); 254 ksft_test_result(new_sve->vl = prctl_vl, "Set %s VL %u\n", 255 type->name, vl); 214 ptrace_set_get_vl(pid_t child, const struct vec_type *type, unsigned int vl, bool *supported) argument 260 check_u32(unsigned int vl, const char *reg, uint32_t *in, uint32_t *out, int *errors) argument 326 ptrace_set_sve_get_sve_data(pid_t child, const struct vec_type *type, unsigned int vl) argument 424 ptrace_set_sve_get_fpsimd_data(pid_t child, const struct vec_type *type, unsigned int vl) argument 507 ptrace_set_fpsimd_get_sve_data(pid_t child, const struct vec_type *type, unsigned int vl) argument 621 unsigned int vq, vl; local [all...] |
H A D | fp-stress.c | 322 static void start_sve(struct child_data *child, int vl, int cpu) argument 326 ret = prctl(PR_SVE_SET_VL, vl | PR_SVE_VL_INHERIT); 328 ksft_exit_fail_msg("Failed to set SVE VL %d\n", vl); 330 ret = asprintf(&child->name, "SVE-VL-%d-%d", vl, cpu); 339 static void start_ssve(struct child_data *child, int vl, int cpu) argument 343 ret = asprintf(&child->name, "SSVE-VL-%d-%d", vl, cpu); 347 ret = prctl(PR_SME_SET_VL, vl | PR_SME_VL_INHERIT); 356 static void start_za(struct child_data *child, int vl, int cpu) argument 360 ret = prctl(PR_SME_SET_VL, vl | PR_SVE_VL_INHERIT); 364 ret = asprintf(&child->name, "ZA-VL-%d-%d", vl, cp 389 int vl; local [all...] |
/linux-master/tools/testing/selftests/arm64/signal/testcases/ |
H A D | za_regs.c | 25 int vq, vl; local 31 vl = prctl(PR_SME_SET_VL, vq * 16); 32 if (vl == -1) 35 vl &= PR_SME_VL_LEN_MASK; 38 if (vq < sve_vq_from_vl(vl)) 42 vq = sve_vq_from_vl(vl); 44 vls[nvls++] = vl; 65 unsigned int vl) 71 fprintf(stderr, "Testing VL %d\n", vl); 73 if (prctl(PR_SME_SET_VL, vl) ! 64 do_one_sme_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, unsigned int vl) argument [all...] |
H A D | ssve_za_regs.c | 25 int vq, vl; local 31 vl = prctl(PR_SME_SET_VL, vq * 16); 32 if (vl == -1) 35 vl &= PR_SME_VL_LEN_MASK; 38 if (vq < sve_vq_from_vl(vl)) 42 vq = sve_vq_from_vl(vl); 44 vls[nvls++] = vl; 68 unsigned int vl) 77 fprintf(stderr, "Testing VL %d\n", vl); 79 ret = prctl(PR_SME_SET_VL, vl); 67 do_one_sme_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, unsigned int vl) argument [all...] |
H A D | ssve_regs.c | 25 int vq, vl; local 31 vl = prctl(PR_SME_SET_VL, vq * 16); 32 if (vl == -1) 35 vl &= PR_SME_VL_LEN_MASK; 38 if (vq < sve_vq_from_vl(vl)) 42 vq = sve_vq_from_vl(vl); 44 vls[nvls++] = vl; 63 unsigned int vl) 70 fprintf(stderr, "Testing VL %d\n", vl); 72 ret = prctl(PR_SME_SET_VL, vl); 62 do_one_sme_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, unsigned int vl) argument [all...] |
H A D | za_no_regs.c | 25 int vq, vl; local 31 vl = prctl(PR_SME_SET_VL, vq * 16); 32 if (vl == -1) 35 vl &= PR_SME_VL_LEN_MASK; 38 vq = sve_vq_from_vl(vl); 40 vls[nvls++] = vl; 53 unsigned int vl) 59 fprintf(stderr, "Testing VL %d\n", vl); 61 if (prctl(PR_SME_SET_VL, vl) != vl) { 52 do_one_sme_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, unsigned int vl) argument [all...] |
H A D | sme_vl.c | 17 unsigned int vl; variable 25 vl = ret; 48 if (za->vl != vl) { 50 za->vl, vl); 53 fprintf(stderr, "got expected VL %u\n", vl);
|
H A D | sve_vl.c | 17 unsigned int vl; variable 25 vl = ret; 48 if (sve->vl != vl) { 50 sve->vl, vl); 53 fprintf(stderr, "got expected VL %u\n", vl);
|
H A D | sve_regs.c | 25 int vq, vl; local 31 vl = prctl(PR_SVE_SET_VL, vq * 16); 32 if (vl == -1) 35 vl &= PR_SVE_VL_LEN_MASK; 38 vq = sve_vq_from_vl(vl); 40 vls[nvls++] = vl; 59 unsigned int vl) 65 fprintf(stderr, "Testing VL %d\n", vl); 67 if (prctl(PR_SVE_SET_VL, vl) == -1) { 88 if (sve->vl ! 58 do_one_sve_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, unsigned int vl) argument [all...] |
H A D | fake_sigreturn_sve_change_vl.c | 23 int vq, vl; local 29 vl = prctl(PR_SVE_SET_VL, vq * 16); 30 if (vl == -1) 33 vl &= PR_SVE_VL_LEN_MASK; 36 vq = sve_vq_from_vl(vl); 38 vls[nvls++] = vl; 78 sve->vl, vls[0]); 79 sve->vl = vls[0];
|
H A D | fake_sigreturn_sme_change_vl.c | 22 int vq, vl; local 28 vl = prctl(PR_SVE_SET_VL, vq * 16); 29 if (vl == -1) 32 vl &= PR_SME_VL_LEN_MASK; 35 vq = sve_vq_from_vl(vl); 37 vls[nvls++] = vl; 76 sve->vl, vls[0]); 77 sve->vl = vls[0];
|
/linux-master/tools/testing/selftests/riscv/vector/ |
H A D | v_initval_nolibc.c | 25 unsigned long vl; local 47 : "=&r" (vl), "=r" (tmp) : "r" (datap) : "memory"); 49 ksft_print_msg("vl = %lu\n", vl); 53 dump(datap, vl * 4); 57 for (i = 1; i < vl * 4; i++) { 60 dump(datap, vl * 4);
|
/linux-master/arch/arm64/include/uapi/asm/ |
H A D | sve_context.h | 36 #define __sve_vl_valid(vl) \ 37 ((vl) % __SVE_VQ_BYTES == 0 && \ 38 (vl) >= __SVE_VL_MIN && \ 39 (vl) <= __SVE_VL_MAX) 41 #define __sve_vq_from_vl(vl) ((vl) / __SVE_VQ_BYTES)
|
H A D | sigcontext.h | 47 * 0x8a0 sve_context (vl <= 64) (optional) 140 __u16 vl; member in struct:sve_context 167 __u16 vl; member in struct:za_context 202 #define sve_vl_valid(vl) __sve_vl_valid(vl) 203 #define sve_vq_from_vl(vl) __sve_vq_from_vl(vl) 209 * SVE_SIG_CONTEXT_SIZE(sve_vq_from_vl(sve_context.vl)) 213 * SVE_SIG_CONTEXT_SIZE(sve_vq_from_vl(sve_context.vl)), 225 * sve_context.vl mus [all...] |
/linux-master/drivers/net/dsa/sja1105/ |
H A D | sja1105_vl.c | 105 if (rule->vl.type != SJA1105_VL_TIME_TRIGGERED) 108 if (max_cycle_time < rule->vl.cycle_time) { 109 max_cycle_time = rule->vl.cycle_time; 110 its_base_time = rule->vl.base_time; 130 if (rule->vl.type != SJA1105_VL_TIME_TRIGGERED) 137 rbt = future_base_time(rule->vl.base_time, rule->vl.cycle_time, 143 for (i = 0; i < rule->vl.num_entries; i++) { 144 u8 gate_state = rule->vl.entries[i].gate_state; 155 entry_time += rule->vl [all...] |
/linux-master/drivers/ata/pata_parport/ |
H A D | on20.c | 24 #define vl(v) \ macro 43 op(1); vl(r); op(0); 64 op(1); vl(r); 65 op(0); vl(val); 66 op(0); vl(val); 76 op(2); vl(8); op(2); vl(9); 78 op(2); vl(0); op(2); vl(8); 93 op(1); vl( [all...] |
/linux-master/arch/arm64/kernel/ |
H A D | fpsimd.c | 251 return task->thread.vl[type]; 255 unsigned long vl) 257 task->thread.vl[type] = vl; 267 unsigned long vl) 269 task->thread.vl_onexec[type] = vl; 444 unsigned int vl; local 465 vl = last->sve_vl; 481 vl = last->sme_vl; 487 if (WARN_ON(sve_get_vl() != vl)) { 254 task_set_vl(struct task_struct *task, enum vec_type type, unsigned long vl) argument 266 task_set_vl_onexec(struct task_struct *task, enum vec_type type, unsigned long vl) argument 513 find_supported_vector_length(enum vec_type type, unsigned int vl) argument 544 int vl = get_default_vl(type); local 680 unsigned int vq, vl; local 727 unsigned int vl = 0; local 832 vec_set_vector_length(struct task_struct *task, enum vec_type type, unsigned long vl, unsigned long flags) argument 951 unsigned long vl, flags; local 980 unsigned long vl, flags; local 1009 unsigned int vq, vl; local 1574 int vl, supported_vl; local [all...] |
/linux-master/drivers/gpu/drm/nouveau/include/nvif/ |
H A D | unpack.h | 14 #define nvif_unpack(r,d,s,m,vl,vh,x) ({ \ 16 int _ret = (r), _vl = (vl), _vh = (vh); \
|
/linux-master/sound/usb/6fire/ |
H A D | comm.h | 32 u8 vh, u8 vl);
|
/linux-master/arch/arm64/include/asm/ |
H A D | fpsimd.h | 116 static inline size_t sve_ffr_offset(int vl) argument 118 return SVE_SIG_FFR_OFFSET(sve_vq_from_vl(vl)) - SVE_SIG_REGS_OFFSET; 123 unsigned int vl; local 126 vl = thread_get_sme_vl(thread); 128 vl = thread_get_sve_vl(thread); 130 return (char *)thread->sve_state + sve_ffr_offset(vl); 207 unsigned long vl, unsigned long flags); 398 unsigned int vl = task_get_sme_vl(task); local 401 size = ZA_SIG_REGS_SIZE(sve_vq_from_vl(vl));
|