/linux-6.3-rc2/tools/testing/selftests/arm64/signal/testcases/ |
A D | ssve_za_regs.c | 25 int vq, vl; in sme_get_vls() local 32 if (vl == -1) 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() argument 80 if (ret != vl) { in do_one_sme_vl() 101 if (ssve->vl != vl) { in do_one_sme_vl() 102 fprintf(stderr, "Got SSVE VL %d, expected %d\n", ssve->vl, vl); in do_one_sme_vl() 122 if (za->vl != vl) { in do_one_sme_vl() 123 fprintf(stderr, "Got ZA VL %d, expected %d\n", za->vl, vl); in do_one_sme_vl() [all …]
|
A D | za_regs.c | 25 int vq, vl; in sme_get_vls() local 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() argument 73 if (prctl(PR_SME_SET_VL, vl) != vl) { in do_one_sme_vl() 93 if (za->vl != vl) { in do_one_sme_vl() 94 fprintf(stderr, "Got VL %d, expected %d\n", za->vl, vl); in do_one_sme_vl() [all …]
|
A D | ssve_regs.c | 25 int vq, vl; in sme_get_vls() local 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() argument 73 if (ret != vl) { in do_one_sme_vl() 94 if (ssve->vl != vl) { in do_one_sme_vl() 95 fprintf(stderr, "Got VL %d, expected %d\n", ssve->vl, vl); in do_one_sme_vl() [all …]
|
A D | za_no_regs.c | 25 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() argument 61 if (prctl(PR_SME_SET_VL, vl) != vl) { in do_one_sme_vl() 80 if (za->vl != vl) { in do_one_sme_vl() 81 fprintf(stderr, "Got VL %d, expected %d\n", za->vl, vl); in do_one_sme_vl() [all …]
|
A D | sve_regs.c | 25 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() argument 67 if (prctl(PR_SVE_SET_VL, vl) == -1) { in do_one_sve_vl() 88 if (sve->vl != vl) { in do_one_sve_vl() 89 fprintf(stderr, "Got VL %d, expected %d\n", sve->vl, vl); in do_one_sve_vl() [all …]
|
A D | fake_sigreturn_sve_change_vl.c | 23 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()
|
A D | fake_sigreturn_sme_change_vl.c | 22 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()
|
A D | sme_vl.c | 17 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()
|
A D | sve_vl.c | 17 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()
|
/linux-6.3-rc2/tools/testing/selftests/arm64/fp/ |
A D | za-ptrace.c | 122 *supported = (prctl_vl == vl); in ptrace_set_get_vl() 127 za.vl = 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() 160 write_za.vl = vl; in ptrace_set_no_data() 205 data_size, vl); in ptrace_set_get_data() 213 write_za->vl = vl; in ptrace_set_get_data() 240 "Data match for VL %u\n", vl); in ptrace_set_get_data() 254 unsigned int vq, vl; in do_parent() local 315 vl = sve_vl_from_vq(vq); in do_parent() 322 ptrace_set_no_data(child, vl); in do_parent() [all …]
|
A D | sve-ptrace.c | 236 sve.vl = vl; in ptrace_set_get_vl() 255 type->name, vl); in ptrace_set_get_vl() 328 unsigned int vl) in ptrace_set_sve_get_sve_data() argument 352 write_sve->vl = vl; in ptrace_set_sve_get_sve_data() 415 type->name, vl); in ptrace_set_sve_get_sve_data() 453 write_sve->vl = vl; in ptrace_set_sve_get_fpsimd_data() 500 type->name, vl); in ptrace_set_sve_get_fpsimd_data() 547 if (read_sve->vl != vl) { in ptrace_set_fpsimd_get_sve_data() 549 read_sve->vl, vl); in ptrace_set_fpsimd_get_sve_data() 609 type->name, vl); in ptrace_set_fpsimd_get_sve_data() [all …]
|
A D | sve-probe-vls.c | 21 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()
|
A D | vlset.c | 24 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 | flags); in main()
|
A D | fp-stress.c | 326 ret = prctl(PR_SVE_SET_VL, vl | PR_SVE_VL_INHERIT); in start_sve() 328 ksft_exit_fail_msg("Failed to set SVE VL %d\n", vl); in start_sve() 347 ret = prctl(PR_SME_SET_VL, vl | PR_SME_VL_INHERIT); in start_ssve() 360 ret = prctl(PR_SME_SET_VL, vl | PR_SVE_VL_INHERIT); in start_za() 389 int vl; in probe_vls() local 394 vl = prctl(set_vl, vq * 16); in probe_vls() 395 if (vl == -1) in probe_vls() 399 vl &= PR_SVE_VL_LEN_MASK; in probe_vls() 401 if (*vl_count && (vl == vls[*vl_count - 1])) in probe_vls() 404 vq = sve_vq_from_vl(vl); in probe_vls() [all …]
|
/linux-6.3-rc2/drivers/net/dsa/sja1105/ |
A D | sja1105_vl.c | 110 its_base_time = rule->vl.base_time; in sja1105_compose_gating_subschedule() 137 rbt = future_base_time(rule->vl.base_time, rule->vl.cycle_time, in sja1105_compose_gating_subschedule() 539 rule->vl.destports |= destports; in sja1105_vl_redirect() 541 rule->vl.destports = destports; in sja1105_vl_redirect() 634 rule->vl.sharindx = index; in sja1105_vl_gate() 635 rule->vl.base_time = base_time; in sja1105_vl_gate() 641 if (!rule->vl.entries) { in sja1105_vl_gate() 692 ipv = key->vl.pcp; in sja1105_vl_gate() 699 rule->vl.ipv = ipv; in sja1105_vl_gate() 723 kfree(rule->vl.entries); in sja1105_vl_gate() [all …]
|
/linux-6.3-rc2/arch/arm64/kernel/ |
A D | fpsimd.c | 282 unsigned long vl) in task_set_vl() argument 284 task->thread.vl[type] = vl; in task_set_vl() 467 unsigned int vl; in fpsimd_save() local 546 if (vl > max_vl) in find_supported_vector_length() 547 vl = max_vl; in find_supported_vector_length() 566 .data = &vl, in vec_proc_do_default_vl() 575 if (vl == -1) in vec_proc_do_default_vl() 748 vl = max(vl, task_get_sme_vl(task)); in sve_state_size() 866 vl = find_supported_vector_length(type, vl); in vec_set_vector_length() 1024 vl = 0; in vec_probe_vqs() [all …]
|
/linux-6.3-rc2/drivers/ata/pata_parport/ |
A D | on20.c | 28 #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(1); op(0); in on20_read_block() 108 op(1); vl(1); op(0); in on20_write_block()
|
/linux-6.3-rc2/arch/arm64/include/uapi/asm/ |
A D | sve_context.h | 25 #define __sve_vl_valid(vl) \ argument 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) argument
|
A D | sigcontext.h | 140 __u16 vl; member 159 __u16 vl; member 194 #define sve_vl_valid(vl) __sve_vl_valid(vl) argument 195 #define sve_vq_from_vl(vl) __sve_vq_from_vl(vl) argument
|
/linux-6.3-rc2/drivers/infiniband/hw/hfi1/ |
A D | chip.c | 1563 else if (vl >= 0 && vl < C_VL_COUNT) in access_sw_xmit_discards() 5675 int vl) in handle_send_egress_err_info() argument 5718 if (vl >= 0 && vl < TXE_NUM_DATA_VL) in handle_send_egress_err_info() 5764 int vl; in engine_to_vl() local 5775 return vl; in engine_to_vl() 11151 reg = (((u64)vl->vl & SEND_LOW_PRIORITY_LIST_VL_MASK) in set_vl_weights() 11245 vl->vl = 0xf; in get_vlarb_preempt() 12544 for (vl = 0; vl < C_VL_COUNT; vl++) in do_update_synth_timer() 12555 for (vl = 0; vl < C_VL_COUNT; vl++) in do_update_synth_timer() 15013 int vl; in hfi1_init_dd() local [all …]
|
/linux-6.3-rc2/tools/testing/selftests/arm64/abi/ |
A D | syscall-abi.c | 467 int vl; in sve_count_vls() local 477 if (vl == -1) in sve_count_vls() 481 vl &= PR_SVE_VL_LEN_MASK; in sve_count_vls() 483 if (vq != sve_vq_from_vl(vl)) in sve_count_vls() 484 vq = sve_vq_from_vl(vl); in sve_count_vls() 486 sve_vls[sve_vl_count++] = vl; in sve_count_vls() 493 int vl; in sme_count_vls() local 503 if (vl == -1) in sme_count_vls() 507 vl &= PR_SME_VL_LEN_MASK; in sme_count_vls() 510 if (sve_vq_from_vl(vl) > vq) in sme_count_vls() [all …]
|
/linux-6.3-rc2/arch/arm64/include/asm/ |
A D | fpsimd.h | 91 static inline size_t sve_ffr_offset(int vl) in sve_ffr_offset() argument 93 return SVE_SIG_FFR_OFFSET(sve_vq_from_vl(vl)) - SVE_SIG_REGS_OFFSET; in sve_ffr_offset() 98 unsigned int vl; in sve_pffr() local 101 vl = thread_get_sme_vl(thread); in sve_pffr() 103 vl = thread_get_sve_vl(thread); in sve_pffr() 105 return (char *)thread->sve_state + sve_ffr_offset(vl); in sve_pffr() 181 unsigned long vl, unsigned long flags); 371 unsigned int vl = task_get_sme_vl(task); in sme_state_size() local 374 size = ZA_SIG_REGS_SIZE(sve_vq_from_vl(vl)); in sme_state_size()
|
A D | processor.h | 165 unsigned int vl[ARM64_VEC_MAX]; /* vector length */ member 187 return thread->vl[type]; in thread_get_vl() 210 unsigned long vl); 212 unsigned long vl); 226 static inline void task_set_sve_vl(struct task_struct *task, unsigned long vl) in task_set_sve_vl() argument 228 task_set_vl(task, ARM64_VEC_SVE, vl); in task_set_sve_vl() 237 unsigned long vl) in task_set_sve_vl_onexec() argument 239 task_set_vl_onexec(task, ARM64_VEC_SVE, vl); in task_set_sve_vl_onexec()
|
/linux-6.3-rc2/drivers/net/dsa/ |
A D | dsa_loop.c | 39 struct dsa_loop_vlan *vl; in dsa_loop_devlink_vtu_get() local 42 vl = &ps->vlans[i]; in dsa_loop_devlink_vtu_get() 43 if (vl->members) in dsa_loop_devlink_vtu_get() 212 struct dsa_loop_vlan *vl; in dsa_loop_port_vlan_add() local 220 vl = &ps->vlans[vlan->vid]; in dsa_loop_port_vlan_add() 222 vl->members |= BIT(port); in dsa_loop_port_vlan_add() 224 vl->untagged |= BIT(port); in dsa_loop_port_vlan_add() 226 vl->untagged &= ~BIT(port); in dsa_loop_port_vlan_add() 244 struct dsa_loop_vlan *vl; in dsa_loop_port_vlan_del() local 249 vl = &ps->vlans[vlan->vid]; in dsa_loop_port_vlan_del() [all …]
|
/linux-6.3-rc2/net/rose/ |
A D | rose_in.c | 49 rose->vl = 0; in rose_state1_machine() 116 rose->vl = 0; in rose_state3_machine() 134 rose->vl = 0; in rose_state3_machine() 156 rose->vl = 0; in rose_state3_machine() 176 rose->vl = 0; in rose_state3_machine() 190 if (((rose->vl + sysctl_rose_window_size) % ROSE_MODULUS) == rose->vr) { in rose_state3_machine() 228 rose->vl = 0; in rose_state4_machine()
|