Home
last modified time | relevance | path

Searched refs:vl (Results 1 - 25 of 180) sorted by relevance

12345678

/kernel/linux/linux-6.6/tools/testing/selftests/arm64/signal/testcases/
H A Dza_regs.c25 int vq, vl; in sme_get_vls() local
31 vl = prctl(PR_SME_SET_VL, vq * 16); in sme_get_vls()
32 if (vl == -1) in sme_get_vls()
35 vl &= PR_SME_VL_LEN_MASK; in sme_get_vls()
38 if (vq < sve_vq_from_vl(vl)) in sme_get_vls()
42 vq = sve_vq_from_vl(vl); in sme_get_vls()
44 vls[nvls++] = vl; in sme_get_vls()
65 unsigned int vl) in do_one_sme_vl()
71 fprintf(stderr, "Testing VL %d\n", vl); in do_one_sme_vl()
73 if (prctl(PR_SME_SET_VL, vl) ! in do_one_sme_vl()
64 do_one_sme_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, unsigned int vl) do_one_sme_vl() argument
[all...]
H A Dssve_za_regs.c25 int vq, vl; in sme_get_vls() local
31 vl = prctl(PR_SME_SET_VL, vq * 16); in sme_get_vls()
32 if (vl == -1) in sme_get_vls()
35 vl &= PR_SME_VL_LEN_MASK; in sme_get_vls()
38 if (vq < sve_vq_from_vl(vl)) in sme_get_vls()
42 vq = sve_vq_from_vl(vl); in sme_get_vls()
44 vls[nvls++] = vl; in sme_get_vls()
68 unsigned int vl) in do_one_sme_vl()
77 fprintf(stderr, "Testing VL %d\n", vl); in do_one_sme_vl()
79 ret = prctl(PR_SME_SET_VL, vl); in do_one_sme_vl()
67 do_one_sme_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, unsigned int vl) do_one_sme_vl() argument
[all...]
H A Dssve_regs.c25 int vq, vl; in sme_get_vls() local
31 vl = prctl(PR_SME_SET_VL, vq * 16); in sme_get_vls()
32 if (vl == -1) in sme_get_vls()
35 vl &= PR_SME_VL_LEN_MASK; in sme_get_vls()
38 if (vq < sve_vq_from_vl(vl)) in sme_get_vls()
42 vq = sve_vq_from_vl(vl); in sme_get_vls()
44 vls[nvls++] = vl; in sme_get_vls()
63 unsigned int vl) in do_one_sme_vl()
70 fprintf(stderr, "Testing VL %d\n", vl); in do_one_sme_vl()
72 ret = prctl(PR_SME_SET_VL, vl); in do_one_sme_vl()
62 do_one_sme_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, unsigned int vl) do_one_sme_vl() argument
[all...]
H A Dza_no_regs.c25 int vq, vl; in sme_get_vls() local
31 vl = prctl(PR_SME_SET_VL, vq * 16); in sme_get_vls()
32 if (vl == -1) in sme_get_vls()
35 vl &= PR_SME_VL_LEN_MASK; in sme_get_vls()
38 vq = sve_vq_from_vl(vl); in sme_get_vls()
40 vls[nvls++] = vl; in sme_get_vls()
53 unsigned int vl) in do_one_sme_vl()
59 fprintf(stderr, "Testing VL %d\n", vl); in do_one_sme_vl()
61 if (prctl(PR_SME_SET_VL, vl) != vl) { in do_one_sme_vl()
52 do_one_sme_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, unsigned int vl) do_one_sme_vl() argument
[all...]
H A Dsve_regs.c25 int vq, vl; in sve_get_vls() local
31 vl = prctl(PR_SVE_SET_VL, vq * 16); in sve_get_vls()
32 if (vl == -1) in sve_get_vls()
35 vl &= PR_SVE_VL_LEN_MASK; in sve_get_vls()
38 vq = sve_vq_from_vl(vl); in sve_get_vls()
40 vls[nvls++] = vl; in sve_get_vls()
59 unsigned int vl) in do_one_sve_vl()
65 fprintf(stderr, "Testing VL %d\n", vl); in do_one_sve_vl()
67 if (prctl(PR_SVE_SET_VL, vl) == -1) { in do_one_sve_vl()
88 if (sve->vl ! in do_one_sve_vl()
58 do_one_sve_vl(struct tdescr *td, siginfo_t *si, ucontext_t *uc, unsigned int vl) do_one_sve_vl() argument
[all...]
H A Dfake_sigreturn_sve_change_vl.c23 int vq, vl; in sve_get_vls() local
29 vl = prctl(PR_SVE_SET_VL, vq * 16); in sve_get_vls()
30 if (vl == -1) in sve_get_vls()
33 vl &= PR_SVE_VL_LEN_MASK; in sve_get_vls()
36 vq = sve_vq_from_vl(vl); in sve_get_vls()
38 vls[nvls++] = vl; in sve_get_vls()
78 sve->vl, vls[0]); in fake_sigreturn_sve_change_vl()
79 sve->vl = vls[0]; in fake_sigreturn_sve_change_vl()
H A Dfake_sigreturn_sme_change_vl.c22 int vq, vl; in sme_get_vls() local
28 vl = prctl(PR_SVE_SET_VL, vq * 16); in sme_get_vls()
29 if (vl == -1) in sme_get_vls()
32 vl &= PR_SME_VL_LEN_MASK; in sme_get_vls()
35 vq = sve_vq_from_vl(vl); in sme_get_vls()
37 vls[nvls++] = vl; in sme_get_vls()
76 sve->vl, vls[0]); in fake_sigreturn_ssve_change_vl()
77 sve->vl = vls[0]; in fake_sigreturn_ssve_change_vl()
H A Dsme_vl.c17 unsigned int vl; variable
25 vl = ret; in get_sme_vl()
48 if (za->vl != vl) { in sme_vl()
50 za->vl, vl); in sme_vl()
53 fprintf(stderr, "got expected VL %u\n", vl); in sme_vl()
H A Dsve_vl.c17 unsigned int vl; variable
25 vl = ret; in get_sve_vl()
48 if (sve->vl != vl) { in sve_vl()
50 sve->vl, vl); in sve_vl()
53 fprintf(stderr, "got expected VL %u\n", vl); in sve_vl()
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/fp/
H A Dsve-ptrace.c170 sve.vl = sve_vl_from_vq(SVE_VQ_MIN); in ptrace_set_get_inherit()
215 unsigned int vl, bool *supported) in ptrace_set_get_vl()
225 prctl_vl = prctl(type->prctl_set, vl); in ptrace_set_get_vl()
231 *supported = (prctl_vl == vl); in ptrace_set_get_vl()
236 sve.vl = vl; in ptrace_set_get_vl()
240 type->name, vl); in ptrace_set_get_vl()
250 type->name, vl); in ptrace_set_get_vl()
254 ksft_test_result(new_sve->vl = prctl_vl, "Set %s VL %u\n", in ptrace_set_get_vl()
255 type->name, vl); in ptrace_set_get_vl()
214 ptrace_set_get_vl(pid_t child, const struct vec_type *type, unsigned int vl, bool *supported) ptrace_set_get_vl() argument
260 check_u32(unsigned int vl, const char *reg, uint32_t *in, uint32_t *out, int *errors) check_u32() argument
326 ptrace_set_sve_get_sve_data(pid_t child, const struct vec_type *type, unsigned int vl) ptrace_set_sve_get_sve_data() argument
424 ptrace_set_sve_get_fpsimd_data(pid_t child, const struct vec_type *type, unsigned int vl) ptrace_set_sve_get_fpsimd_data() argument
507 ptrace_set_fpsimd_get_sve_data(pid_t child, const struct vec_type *type, unsigned int vl) ptrace_set_fpsimd_get_sve_data() argument
621 unsigned int vq, vl; do_parent() local
[all...]
H A Dza-ptrace.c106 static void ptrace_set_get_vl(pid_t child, unsigned int vl, bool *supported) in ptrace_set_get_vl() argument
116 prctl_vl = prctl(PR_SME_SET_VL, vl); in ptrace_set_get_vl()
122 *supported = (prctl_vl == vl); in ptrace_set_get_vl()
127 za.vl = vl; in ptrace_set_get_vl()
130 ksft_test_result_fail("Failed to set VL %u\n", vl); in ptrace_set_get_vl()
139 ksft_test_result_fail("Failed to read VL %u\n", vl); in ptrace_set_get_vl()
143 ksft_test_result(new_za->vl = prctl_vl, "Set VL %u\n", vl); in ptrace_set_get_vl()
149 static void ptrace_set_no_data(pid_t child, unsigned int vl) in ptrace_set_no_data() argument
190 ptrace_set_get_data(pid_t child, unsigned int vl) ptrace_set_get_data() argument
254 unsigned int vq, vl; do_parent() local
[all...]
H A Dsve-probe-vls.c21 int vl; in main() local
35 vl = prctl(PR_SVE_SET_VL, vq * 16); in main()
36 if (vl == -1) in main()
40 vl &= PR_SVE_VL_LEN_MASK; in main()
42 if (rdvl_sve() != vl) in main()
44 vl, rdvl_sve()); in main()
46 if (!sve_vl_valid(vl)) in main()
47 ksft_exit_fail_msg("VL %d invalid\n", vl); in main()
48 vq = sve_vq_from_vl(vl); in main()
H A Dvlset.c24 static unsigned long vl; variable
53 case 'M': vl = SVE_VL_MAX; break; in parse_options()
66 if (!vl) { in parse_options()
72 vl = strtoul(argv[optind], &rest, 0); in parse_options()
74 vl = ULONG_MAX; in parse_options()
77 if (vl == ULONG_MAX && errno) { in parse_options()
112 if (vl & ~(vl & PR_SVE_VL_LEN_MASK)) { in main()
114 program_name, vl); in main()
134 t = prctl(set_ctl, vl | flag in main()
[all...]
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/
H A Dsja1105_vl.c105 if (rule->vl.type != SJA1105_VL_TIME_TRIGGERED) in sja1105_compose_gating_subschedule()
108 if (max_cycle_time < rule->vl.cycle_time) { in sja1105_compose_gating_subschedule()
109 max_cycle_time = rule->vl.cycle_time; in sja1105_compose_gating_subschedule()
110 its_base_time = rule->vl.base_time; in sja1105_compose_gating_subschedule()
130 if (rule->vl.type != SJA1105_VL_TIME_TRIGGERED) in sja1105_compose_gating_subschedule()
137 rbt = future_base_time(rule->vl.base_time, rule->vl.cycle_time, in sja1105_compose_gating_subschedule()
143 for (i = 0; i < rule->vl.num_entries; i++) { in sja1105_compose_gating_subschedule()
144 u8 gate_state = rule->vl.entries[i].gate_state; in sja1105_compose_gating_subschedule()
155 entry_time += rule->vl in sja1105_compose_gating_subschedule()
[all...]
/kernel/linux/linux-6.6/drivers/net/dsa/sja1105/
H A Dsja1105_vl.c105 if (rule->vl.type != SJA1105_VL_TIME_TRIGGERED) in sja1105_compose_gating_subschedule()
108 if (max_cycle_time < rule->vl.cycle_time) { in sja1105_compose_gating_subschedule()
109 max_cycle_time = rule->vl.cycle_time; in sja1105_compose_gating_subschedule()
110 its_base_time = rule->vl.base_time; in sja1105_compose_gating_subschedule()
130 if (rule->vl.type != SJA1105_VL_TIME_TRIGGERED) in sja1105_compose_gating_subschedule()
137 rbt = future_base_time(rule->vl.base_time, rule->vl.cycle_time, in sja1105_compose_gating_subschedule()
143 for (i = 0; i < rule->vl.num_entries; i++) { in sja1105_compose_gating_subschedule()
144 u8 gate_state = rule->vl.entries[i].gate_state; in sja1105_compose_gating_subschedule()
155 entry_time += rule->vl in sja1105_compose_gating_subschedule()
[all...]
/kernel/linux/linux-6.6/arch/arm64/kernel/
H A Dfpsimd.c278 return task->thread.vl[type]; in task_get_vl()
282 unsigned long vl) in task_set_vl()
284 task->thread.vl[type] = vl; in task_set_vl()
294 unsigned long vl) in task_set_vl_onexec()
296 task->thread.vl_onexec[type] = vl; in task_set_vl_onexec()
467 unsigned int vl; in fpsimd_save() local
485 vl = last->sve_vl; in fpsimd_save()
501 vl = last->sme_vl; in fpsimd_save()
507 if (WARN_ON(sve_get_vl() != vl)) { in fpsimd_save()
281 task_set_vl(struct task_struct *task, enum vec_type type, unsigned long vl) task_set_vl() argument
293 task_set_vl_onexec(struct task_struct *task, enum vec_type type, unsigned long vl) task_set_vl_onexec() argument
533 find_supported_vector_length(enum vec_type type, unsigned int vl) find_supported_vector_length() argument
564 int vl = get_default_vl(type); vec_proc_do_default_vl() local
702 unsigned int vq, vl; sve_to_fpsimd() local
743 unsigned int vl = 0; sve_state_size() local
848 vec_set_vector_length(struct task_struct *task, enum vec_type type, unsigned long vl, unsigned long flags) vec_set_vector_length() argument
969 unsigned long vl, flags; sve_set_current_vl() local
998 unsigned long vl, flags; sme_set_current_vl() local
1027 unsigned int vq, vl; vec_probe_vqs() local
1608 int vl, supported_vl; fpsimd_flush_thread_vl() local
[all...]
/kernel/linux/linux-5.10/arch/arm64/kernel/
H A Dfpsimd.c335 static unsigned int find_supported_vector_length(unsigned int vl) in find_supported_vector_length() argument
340 if (WARN_ON(!sve_vl_valid(vl))) in find_supported_vector_length()
341 vl = SVE_VL_MIN; in find_supported_vector_length()
346 if (vl > max_vl) in find_supported_vector_length()
347 vl = max_vl; in find_supported_vector_length()
350 __vq_to_bit(sve_vq_from_vl(vl))); in find_supported_vector_length()
360 int vl = get_sve_default_vl(); in sve_proc_do_default_vl() local
362 .data = &vl, in sve_proc_do_default_vl()
363 .maxlen = sizeof(vl), in sve_proc_do_default_vl()
371 if (vl in sve_proc_do_default_vl()
584 sve_set_vector_length(struct task_struct *task, unsigned long vl, unsigned long flags) sve_set_vector_length() argument
675 unsigned long vl, flags; sve_set_current_vl() local
702 unsigned int vq, vl; DECLARE_BITMAP() local
1024 int vl, supported_vl; fpsimd_flush_thread() local
[all...]
/kernel/linux/linux-6.6/drivers/ata/pata_parport/
H A Don20.c24 #define vl(v) \ macro
43 op(1); vl(r); op(0); in on20_read_regr()
64 op(1); vl(r); in on20_write_regr()
65 op(0); vl(val); in on20_write_regr()
66 op(0); vl(val); in on20_write_regr()
76 op(2); vl(8); op(2); vl(9); in on20_connect()
78 op(2); vl(0); op(2); vl(8); in on20_connect()
93 op(1); vl( in on20_read_block()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/fp/
H A Dsve-probe-vls.c20 int vl; in main() local
34 vl = prctl(PR_SVE_SET_VL, vq * 16); in main()
35 if (vl == -1) in main()
39 vl &= PR_SVE_VL_LEN_MASK; in main()
41 if (!sve_vl_valid(vl)) in main()
42 ksft_exit_fail_msg("VL %d invalid\n", vl); in main()
43 vq = sve_vq_from_vl(vl); in main()
H A Dvlset.c24 static unsigned long vl; variable
50 case 'M': vl = SVE_VL_MAX; break; in parse_options()
60 if (!vl) { in parse_options()
66 vl = strtoul(argv[optind], &rest, 0); in parse_options()
68 vl = ULONG_MAX; in parse_options()
71 if (vl == ULONG_MAX && errno) { in parse_options()
106 if (vl & ~(vl & PR_SVE_VL_LEN_MASK)) { in main()
108 program_name, vl); in main()
128 t = prctl(PR_SVE_SET_VL, vl | flag in main()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/riscv/vector/
H A Dv_initval_nolibc.c25 unsigned long vl; in main() local
47 : "=&r" (vl), "=r" (tmp) : "r" (datap) : "memory"); in main()
49 ksft_print_msg("vl = %lu\n", vl); in main()
53 dump(datap, vl * 4); in main()
57 for (i = 1; i < vl * 4; i++) { in main()
60 dump(datap, vl * 4); in main()
/kernel/linux/linux-5.10/drivers/block/paride/
H A Don20.c28 #define vl(v) w2(4);w0(v);w2(5);w2(7);w2(5);w2(4); macro
42 op(1); vl(r); op(0); in on20_read_regr()
65 op(1); vl(r); in on20_write_regr()
66 op(0); vl(val); in on20_write_regr()
67 op(0); vl(val); in on20_write_regr()
76 if (pi->mode) { op(2); vl(8); op(2); vl(9); } in on20_connect()
77 else { op(2); vl(0); op(2); vl(8); } in on20_connect()
91 op(1); vl( in on20_read_block()
[all...]
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/asm-arm64/asm/
H A Dsigcontext.h46 __u16 vl; member
57 #define sve_vl_valid(vl) \
58 ((vl) % SVE_VQ_BYTES == 0 && (vl) >= SVE_VL_MIN && (vl) <= SVE_VL_MAX)
59 #define sve_vq_from_vl(vl) ((vl) / SVE_VQ_BYTES)
/kernel/linux/linux-5.10/arch/arm64/include/uapi/asm/
H A Dsve_context.h25 #define __sve_vl_valid(vl) \
26 ((vl) % __SVE_VQ_BYTES == 0 && \
27 (vl) >= __SVE_VL_MIN && \
28 (vl) <= __SVE_VL_MAX)
30 #define __sve_vq_from_vl(vl) ((vl) / __SVE_VQ_BYTES)
/kernel/linux/linux-6.6/arch/arm64/include/uapi/asm/
H A Dsve_context.h25 #define __sve_vl_valid(vl) \
26 ((vl) % __SVE_VQ_BYTES == 0 && \
27 (vl) >= __SVE_VL_MIN && \
28 (vl) <= __SVE_VL_MAX)
30 #define __sve_vq_from_vl(vl) ((vl) / __SVE_VQ_BYTES)

Completed in 9 milliseconds

12345678