/linux-6.1.9/tools/testing/selftests/arm64/fp/ |
D | za-ptrace.c | 96 static void ptrace_set_get_vl(pid_t child, unsigned int vl, bool *supported) in ptrace_set_get_vl() argument 106 prctl_vl = prctl(PR_SME_SET_VL, vl); in ptrace_set_get_vl() 112 *supported = (prctl_vl == vl); in ptrace_set_get_vl() 117 za.vl = vl; in ptrace_set_get_vl() 120 ksft_test_result_fail("Failed to set VL %u\n", vl); in ptrace_set_get_vl() 129 ksft_test_result_fail("Failed to read VL %u\n", vl); in ptrace_set_get_vl() 133 ksft_test_result(new_za->vl = prctl_vl, "Set VL %u\n", vl); in ptrace_set_get_vl() 139 static void ptrace_set_no_data(pid_t child, unsigned int vl) in ptrace_set_no_data() argument 150 write_za.vl = vl; in ptrace_set_no_data() 154 ksft_test_result_fail("Failed to set VL %u no data\n", vl); in ptrace_set_no_data() [all …]
|
D | sve-ptrace.c | 160 sve.vl = sve_vl_from_vq(SVE_VQ_MIN); in ptrace_set_get_inherit() 205 unsigned int vl, bool *supported) in ptrace_set_get_vl() argument 215 prctl_vl = prctl(type->prctl_set, vl); in ptrace_set_get_vl() 221 *supported = (prctl_vl == vl); in ptrace_set_get_vl() 226 sve.vl = vl; in ptrace_set_get_vl() 230 type->name, vl); in ptrace_set_get_vl() 240 type->name, vl); in ptrace_set_get_vl() 244 ksft_test_result(new_sve->vl = prctl_vl, "Set %s VL %u\n", in ptrace_set_get_vl() 245 type->name, vl); in ptrace_set_get_vl() 250 static void check_u32(unsigned int vl, const char *reg, in check_u32() argument [all …]
|
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()
|
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()
|
D | fp-stress.c | 302 static void start_sve(struct child_data *child, int vl, int cpu) in start_sve() argument 306 ret = prctl(PR_SVE_SET_VL, vl | PR_SVE_VL_INHERIT); in start_sve() 308 ksft_exit_fail_msg("Failed to set SVE VL %d\n", vl); in start_sve() 312 ret = asprintf(&child->name, "SVE-VL-%d-%d", vl, cpu); in start_sve() 319 static void start_ssve(struct child_data *child, int vl, int cpu) in start_ssve() argument 323 ret = prctl(PR_SME_SET_VL, vl | PR_SME_VL_INHERIT); in start_ssve() 329 ret = asprintf(&child->name, "SSVE-VL-%d-%d", vl, cpu); in start_ssve() 336 static void start_za(struct child_data *child, int vl, int cpu) in start_za() argument 340 ret = prctl(PR_SME_SET_VL, vl | PR_SVE_VL_INHERIT); in start_za() 346 ret = asprintf(&child->name, "ZA-VL-%d-%d", vl, cpu); in start_za() [all …]
|
/linux-6.1.9/tools/testing/selftests/arm64/signal/testcases/ |
D | za_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() 61 unsigned int vl) in do_one_sme_vl() argument 67 fprintf(stderr, "Testing VL %d\n", vl); in do_one_sme_vl() 69 if (prctl(PR_SME_SET_VL, vl) != vl) { in do_one_sme_vl() 89 if (za->vl != vl) { in do_one_sme_vl() [all …]
|
D | ssve_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() 59 unsigned int vl) in do_one_sme_vl() argument 66 fprintf(stderr, "Testing VL %d\n", vl); in do_one_sme_vl() 68 ret = prctl(PR_SME_SET_VL, vl); in do_one_sme_vl() 69 if (ret != vl) { in do_one_sme_vl() [all …]
|
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 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() 80 if (za->vl != vl) { in do_one_sme_vl() [all …]
|
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 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 != vl) { in do_one_sve_vl() [all …]
|
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()
|
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()
|
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()
|
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.1.9/drivers/net/dsa/sja1105/ |
D | sja1105_vl.c | 105 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.cycle_time; in sja1105_compose_gating_subschedule() 157 time += rule->vl.entries[i].interval; in sja1105_compose_gating_subschedule() [all …]
|
/linux-6.1.9/arch/arm64/kernel/ |
D | fpsimd.c | 286 return task->thread.vl[type]; in task_get_vl() 290 unsigned long vl) in task_set_vl() argument 292 task->thread.vl[type] = vl; in task_set_vl() 302 unsigned long vl) in task_set_vl_onexec() argument 304 task->thread.vl_onexec[type] = vl; in task_set_vl_onexec() 432 unsigned int vl; in fpsimd_save() local 443 vl = last->sve_vl; in fpsimd_save() 458 vl = last->sme_vl; in fpsimd_save() 464 if (WARN_ON(sve_get_vl() != vl)) { in fpsimd_save() 475 sve_ffr_offset(vl), in fpsimd_save() [all …]
|
D | signal.c | 232 unsigned int vl = task_get_sve_vl(current); in preserve_sve_context() local 236 vl = task_get_sme_vl(current); in preserve_sve_context() 237 vq = sve_vq_from_vl(vl); in preserve_sve_context() 240 vq = sve_vq_from_vl(vl); in preserve_sve_context() 248 __put_user_error(vl, &ctx->vl, err); in preserve_sve_context() 270 unsigned int vl, vq; in restore_sve_fpsimd_context() local 281 vl = task_get_sme_vl(current); in restore_sve_fpsimd_context() 291 vl = task_get_sve_vl(current); in restore_sve_fpsimd_context() 294 if (sve.vl != vl) in restore_sve_fpsimd_context() 303 vq = sve_vq_from_vl(sve.vl); in restore_sve_fpsimd_context() [all …]
|
/linux-6.1.9/drivers/block/paride/ |
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.1.9/arch/arm64/include/uapi/asm/ |
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
|
D | sigcontext.h | 136 __u16 vl; member 147 __u16 vl; member 174 #define sve_vl_valid(vl) __sve_vl_valid(vl) argument 175 #define sve_vq_from_vl(vl) __sve_vq_from_vl(vl) argument
|
/linux-6.1.9/drivers/infiniband/hw/hfi1/ |
D | chip.c | 1178 u64 (*rw_cntr)(const struct cntr_entry *, void *context, int vl, 1371 void *context, int vl, int mode, u64 data) in dev_access_u32_csr() argument 1377 if (vl == CNTR_INVALID_VL) in dev_access_u32_csr() 1379 csr += 0x100 * vl; in dev_access_u32_csr() 1381 if (vl != CNTR_INVALID_VL) in dev_access_u32_csr() 1429 int vl, int mode, u64 data) in dev_access_u64_csr() argument 1437 if (vl == CNTR_INVALID_VL) in dev_access_u64_csr() 1439 csr += 8 * vl; in dev_access_u64_csr() 1441 if (vl != CNTR_INVALID_VL) in dev_access_u64_csr() 1450 int vl, int mode, u64 data) in dc_access_lcb_cntr() argument [all …]
|
/linux-6.1.9/arch/arm64/include/asm/ |
D | fpsimd.h | 82 static inline size_t sve_ffr_offset(int vl) in sve_ffr_offset() argument 84 return SVE_SIG_FFR_OFFSET(sve_vq_from_vl(vl)) - SVE_SIG_REGS_OFFSET; in sve_ffr_offset() 89 unsigned int vl; in sve_pffr() local 92 vl = thread_get_sme_vl(thread); in sve_pffr() 94 vl = thread_get_sve_vl(thread); in sve_pffr() 96 return (char *)thread->sve_state + sve_ffr_offset(vl); in sve_pffr() 164 unsigned long vl, unsigned long flags); 354 unsigned int vl = task_get_sme_vl(task); in za_state_size() local 356 return ZA_SIG_REGS_SIZE(sve_vq_from_vl(vl)); in za_state_size()
|
D | processor.h | 158 unsigned int vl[ARM64_VEC_MAX]; /* vector length */ member 180 return thread->vl[type]; in thread_get_vl() 203 unsigned long vl); 205 unsigned long vl); 219 static inline void task_set_sve_vl(struct task_struct *task, unsigned long vl) in task_set_sve_vl() argument 221 task_set_vl(task, ARM64_VEC_SVE, vl); in task_set_sve_vl() 230 unsigned long vl) in task_set_sve_vl_onexec() argument 232 task_set_vl_onexec(task, ARM64_VEC_SVE, vl); in task_set_sve_vl_onexec()
|
/linux-6.1.9/drivers/net/dsa/ |
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.1.9/tools/testing/selftests/arm64/abi/ |
D | syscall-abi.c | 416 int vl; in sve_count_vls() local 425 vl = prctl(PR_SVE_SET_VL, vq * 16); in sve_count_vls() 426 if (vl == -1) in sve_count_vls() 430 vl &= PR_SVE_VL_LEN_MASK; in sve_count_vls() 432 if (vq != sve_vq_from_vl(vl)) in sve_count_vls() 433 vq = sve_vq_from_vl(vl); in sve_count_vls() 445 int vl; in sme_count_vls() local 457 vl = prctl(PR_SME_SET_VL, vq * 16); in sme_count_vls() 458 if (vl == -1) in sme_count_vls() 462 vl &= PR_SME_VL_LEN_MASK; in sme_count_vls() [all …]
|
/linux-6.1.9/net/rose/ |
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()
|