/linux-6.12.1/tools/testing/selftests/arm64/fp/ |
D | za-ptrace.c | 106 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 160 write_za.vl = vl; in ptrace_set_no_data() 164 ksft_test_result_fail("Failed to set VL %u no data\n", vl); in ptrace_set_no_data() [all …]
|
D | sve-ptrace.c | 170 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() argument 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() 260 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-ptrace.c | 177 int vl; in vl_in() local 180 vl = config->sme_vl_in; in vl_in() 182 vl = config->sve_vl_in; in vl_in() 184 return vl; in vl_in() 189 int vl; in vl_expected() local 192 vl = config->sme_vl_expected; in vl_expected() 194 vl = config->sve_vl_expected; in vl_expected() 196 return vl; in vl_expected() 385 if (sve->vl != config->sve_vl_in) { in check_ptrace_values_sve() 387 sve->vl, config->sve_vl_in); in check_ptrace_values_sve() [all …]
|
D | fp-stress.c | 335 static void start_sve(struct child_data *child, int vl, int cpu) in start_sve() argument 339 ret = prctl(PR_SVE_SET_VL, vl | PR_SVE_VL_INHERIT); in start_sve() 341 ksft_exit_fail_msg("Failed to set SVE VL %d\n", vl); in start_sve() 343 ret = asprintf(&child->name, "SVE-VL-%d-%d", vl, cpu); in start_sve() 352 static void start_ssve(struct child_data *child, int vl, int cpu) in start_ssve() argument 356 ret = asprintf(&child->name, "SSVE-VL-%d-%d", vl, cpu); in start_ssve() 360 ret = prctl(PR_SME_SET_VL, vl | PR_SME_VL_INHERIT); in start_ssve() 369 static void start_za(struct child_data *child, int vl, int cpu) in start_za() argument 373 ret = prctl(PR_SME_SET_VL, vl | PR_SVE_VL_INHERIT); in start_za() 377 ret = asprintf(&child->name, "ZA-VL-%d-%d", vl, cpu); in start_za() [all …]
|
/linux-6.12.1/tools/testing/selftests/arm64/signal/testcases/ |
D | ssve_za_regs.c | 48 unsigned int vl) in do_one_sme_vl() argument 57 fprintf(stderr, "Testing VL %d\n", vl); in do_one_sme_vl() 59 ret = prctl(PR_SME_SET_VL, vl); in do_one_sme_vl() 60 if (ret != vl) { in do_one_sme_vl() 81 if (ssve->vl != vl) { in do_one_sme_vl() 82 fprintf(stderr, "Got SSVE VL %d, expected %d\n", ssve->vl, vl); in do_one_sme_vl() 92 regs->size, ssve->vl); in do_one_sme_vl() 102 if (za->vl != vl) { in do_one_sme_vl() 103 fprintf(stderr, "Got ZA VL %d, expected %d\n", za->vl, vl); in do_one_sme_vl() 108 regs->size, za->vl); in do_one_sme_vl() [all …]
|
D | za_regs.c | 45 unsigned int vl) in do_one_sme_vl() argument 51 fprintf(stderr, "Testing VL %d\n", vl); in do_one_sme_vl() 53 if (prctl(PR_SME_SET_VL, vl) != vl) { in do_one_sme_vl() 73 if (za->vl != vl) { in do_one_sme_vl() 74 fprintf(stderr, "Got VL %d, expected %d\n", za->vl, vl); in do_one_sme_vl() 78 if (head->size != ZA_SIG_CONTEXT_SIZE(sve_vq_from_vl(vl))) { in do_one_sme_vl() 80 head->size, ZA_SIG_CONTEXT_SIZE(sve_vq_from_vl(vl))); in do_one_sme_vl() 85 head->size, za->vl); in do_one_sme_vl() 89 ZA_SIG_REGS_SIZE(sve_vq_from_vl(za->vl))) != 0) { in do_one_sme_vl()
|
D | ssve_regs.c | 43 unsigned int vl) in do_one_sme_vl() argument 50 fprintf(stderr, "Testing VL %d\n", vl); in do_one_sme_vl() 52 ret = prctl(PR_SME_SET_VL, vl); in do_one_sme_vl() 53 if (ret != vl) { in do_one_sme_vl() 74 if (ssve->vl != vl) { in do_one_sme_vl() 75 fprintf(stderr, "Got VL %d, expected %d\n", ssve->vl, vl); in do_one_sme_vl() 86 head->size, ssve->vl); in do_one_sme_vl()
|
D | za_no_regs.c | 37 unsigned int vl) in do_one_sme_vl() argument 43 fprintf(stderr, "Testing VL %d\n", vl); in do_one_sme_vl() 45 if (prctl(PR_SME_SET_VL, vl) != vl) { in do_one_sme_vl() 64 if (za->vl != vl) { in do_one_sme_vl() 65 fprintf(stderr, "Got VL %d, expected %d\n", za->vl, vl); in do_one_sme_vl() 77 head->size, za->vl); in do_one_sme_vl()
|
D | sve_regs.c | 43 unsigned int vl) in do_one_sve_vl() argument 49 fprintf(stderr, "Testing VL %d\n", vl); in do_one_sve_vl() 51 if (prctl(PR_SVE_SET_VL, vl) == -1) { in do_one_sve_vl() 72 if (sve->vl != vl) { in do_one_sve_vl() 73 fprintf(stderr, "Got VL %d, expected %d\n", sve->vl, vl); in do_one_sve_vl() 79 head->size, sve->vl); in do_one_sve_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()
|
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()
|
/linux-6.12.1/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.12.1/arch/arm64/kernel/ |
D | fpsimd.c | 251 return task->thread.vl[type]; in task_get_vl() 255 unsigned long vl) in task_set_vl() argument 257 task->thread.vl[type] = vl; in task_set_vl() 267 unsigned long vl) in task_set_vl_onexec() argument 269 task->thread.vl_onexec[type] = vl; in task_set_vl_onexec() 444 unsigned int vl; in fpsimd_save_user_state() local 465 vl = last->sve_vl; in fpsimd_save_user_state() 481 vl = last->sme_vl; in fpsimd_save_user_state() 487 if (WARN_ON(sve_get_vl() != vl)) { in fpsimd_save_user_state() 498 sve_ffr_offset(vl), in fpsimd_save_user_state() [all …]
|
/linux-6.12.1/tools/testing/selftests/arm64/signal/ |
D | sve_helpers.c | 18 int vq, vl; in sve_fill_vls() local 26 vl = prctl(pr_set_vl, vq * 16); in sve_fill_vls() 27 if (vl == -1) in sve_fill_vls() 30 vl &= len_mask; in sve_fill_vls() 41 if (vq < sve_vq_from_vl(vl)) in sve_fill_vls() 45 vq = sve_vq_from_vl(vl); in sve_fill_vls() 47 vls[nvls++] = vl; in sve_fill_vls()
|
/linux-6.12.1/drivers/ata/pata_parport/ |
D | on20.c | 24 #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(1); op(0); in on20_read_block() 111 op(1); vl(1); op(0); in on20_write_block()
|
/linux-6.12.1/tools/testing/selftests/riscv/vector/ |
D | v_initval_nolibc.c | 25 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()
|
/linux-6.12.1/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.12.1/arch/arm64/include/uapi/asm/ |
D | sve_context.h | 36 #define __sve_vl_valid(vl) \ argument 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) argument
|
D | sigcontext.h | 147 __u16 vl; member 174 __u16 vl; member 209 #define sve_vl_valid(vl) __sve_vl_valid(vl) argument 210 #define sve_vq_from_vl(vl) __sve_vq_from_vl(vl) argument
|
/linux-6.12.1/arch/riscv/include/asm/ |
D | vector.h | 86 : "=r" (dest->vstart), "=r" (dest->vtype), "=r" (dest->vl), in __vstate_csr_save() 99 : : "r" (src->vstart), "r" (src->vtype), "r" (src->vl), in __vstate_csr_restore() 106 unsigned long vl; in __riscv_v_vstate_save() local 122 : "=&r" (vl) : "r" (datap) : "memory"); in __riscv_v_vstate_save() 129 unsigned long vl; in __riscv_v_vstate_restore() local 144 : "=&r" (vl) : "r" (datap) : "memory"); in __riscv_v_vstate_restore() 151 unsigned long vl, vtype_inval = 1UL << (BITS_PER_LONG - 1); in __riscv_v_vstate_discard() local 164 : "=&r" (vl) : "r" (vtype_inval) : "memory"); in __riscv_v_vstate_discard()
|
/linux-6.12.1/tools/testing/selftests/arm64/abi/ |
D | syscall-abi.c | 475 int vl; in sve_count_vls() local 484 vl = prctl(PR_SVE_SET_VL, vq * 16); in sve_count_vls() 485 if (vl == -1) in sve_count_vls() 489 vl &= PR_SVE_VL_LEN_MASK; in sve_count_vls() 491 if (vq != sve_vq_from_vl(vl)) in sve_count_vls() 492 vq = sve_vq_from_vl(vl); in sve_count_vls() 494 sve_vls[sve_vl_count++] = vl; in sve_count_vls() 501 int vl; in sme_count_vls() local 510 vl = prctl(PR_SME_SET_VL, vq * 16); in sme_count_vls() 511 if (vl == -1) in sme_count_vls() [all …]
|
/linux-6.12.1/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.12.1/arch/arm64/include/asm/ |
D | fpsimd.h | 116 static inline size_t sve_ffr_offset(int vl) in sve_ffr_offset() argument 118 return SVE_SIG_FFR_OFFSET(sve_vq_from_vl(vl)) - SVE_SIG_REGS_OFFSET; in sve_ffr_offset() 123 unsigned int vl; in sve_pffr() local 126 vl = thread_get_sme_vl(thread); in sve_pffr() 128 vl = thread_get_sve_vl(thread); in sve_pffr() 130 return (char *)thread->sve_state + sve_ffr_offset(vl); in sve_pffr() 205 unsigned long vl, unsigned long flags); 396 unsigned int vl = task_get_sme_vl(task); in sme_state_size() local 399 size = ZA_SIG_REGS_SIZE(sve_vq_from_vl(vl)); in sme_state_size()
|