Lines Matching refs:sys_reg_desc

44 static u64 sys_reg_to_index(const struct sys_reg_desc *reg);
48 const struct sys_reg_desc *r) in read_from_write_only()
58 const struct sys_reg_desc *r) in write_to_read_only()
181 const struct sys_reg_desc *r) in access_rw()
196 const struct sys_reg_desc *r) in access_dcsw()
214 static void get_access_mask(const struct sys_reg_desc *r, u64 *mask, u64 *shift) in get_access_mask()
239 const struct sys_reg_desc *r) in access_vm_reg()
264 const struct sys_reg_desc *r) in access_actlr()
285 const struct sys_reg_desc *r) in access_gic_sgi()
330 const struct sys_reg_desc *r) in access_gic_sre()
341 const struct sys_reg_desc *r) in trap_raz_wi()
351 const struct sys_reg_desc *r) in trap_undef()
365 const struct sys_reg_desc *r) in trap_loregion()
383 const struct sys_reg_desc *r) in trap_oslar_el1()
401 const struct sys_reg_desc *r) in trap_oslsr_el1()
410 static int set_oslsr_el1(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in set_oslsr_el1()
426 const struct sys_reg_desc *r) in trap_dbgauthstatus_el1()
465 const struct sys_reg_desc *r) in trap_debug_regs()
487 const struct sys_reg_desc *rd, in reg_to_dbg()
504 const struct sys_reg_desc *rd, in dbg_to_reg()
515 const struct sys_reg_desc *rd) in trap_bvr()
529 static int set_bvr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in set_bvr()
536 static int get_bvr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in get_bvr()
544 const struct sys_reg_desc *rd) in reset_bvr()
551 const struct sys_reg_desc *rd) in trap_bcr()
565 static int set_bcr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in set_bcr()
572 static int get_bcr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in get_bcr()
580 const struct sys_reg_desc *rd) in reset_bcr()
587 const struct sys_reg_desc *rd) in trap_wvr()
602 static int set_wvr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in set_wvr()
609 static int get_wvr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in get_wvr()
617 const struct sys_reg_desc *rd) in reset_wvr()
624 const struct sys_reg_desc *rd) in trap_wcr()
638 static int set_wcr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in set_wcr()
645 static int get_wcr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in get_wcr()
653 const struct sys_reg_desc *rd) in reset_wcr()
658 static void reset_amair_el1(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) in reset_amair_el1()
664 static void reset_actlr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) in reset_actlr()
670 static void reset_mpidr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) in reset_mpidr()
688 const struct sys_reg_desc *r) in pmu_visibility()
696 static void reset_pmu_reg(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) in reset_pmu_reg()
713 static void reset_pmevcntr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) in reset_pmevcntr()
719 static void reset_pmevtyper(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) in reset_pmevtyper()
725 static void reset_pmselr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) in reset_pmselr()
731 static void reset_pmcr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) in reset_pmcr()
779 const struct sys_reg_desc *r) in access_pmcr()
809 const struct sys_reg_desc *r) in access_pmselr()
825 const struct sys_reg_desc *r) in access_pmceid()
861 const struct sys_reg_desc *r) in access_pmu_evcntr()
913 const struct sys_reg_desc *r) in access_pmu_evtyper()
950 const struct sys_reg_desc *r) in access_pmcnten()
978 const struct sys_reg_desc *r) in access_pminten()
1002 const struct sys_reg_desc *r) in access_pmovs()
1024 const struct sys_reg_desc *r) in access_pmswinc()
1040 const struct sys_reg_desc *r) in access_pmuserenr()
1085 const struct sys_reg_desc *r) in undef_access()
1099 const struct sys_reg_desc *rd) in ptrauth_visibility()
1120 const struct sys_reg_desc *r) in access_arch_timer()
1191 static u64 read_id_reg(const struct kvm_vcpu *vcpu, struct sys_reg_desc const *r) in read_id_reg()
1263 const struct sys_reg_desc *r) in id_visibility()
1278 const struct sys_reg_desc *r) in aa32_id_visibility()
1292 const struct sys_reg_desc *r) in raz_visibility()
1301 const struct sys_reg_desc *r) in access_id_reg()
1315 const struct sys_reg_desc *rd) in sve_visibility()
1324 const struct sys_reg_desc *rd, in set_id_aa64pfr0_el1()
1359 const struct sys_reg_desc *rd, in set_id_aa64dfr0_el1()
1398 const struct sys_reg_desc *rd, in set_id_dfr0_el1()
1444 static int get_id_reg(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in get_id_reg()
1451 static int set_id_reg(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in set_id_reg()
1461 static int get_raz_reg(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in get_raz_reg()
1468 static int set_wi_reg(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in set_wi_reg()
1475 const struct sys_reg_desc *r) in access_ctr()
1485 const struct sys_reg_desc *r) in access_clidr()
1498 static void reset_clidr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) in reset_clidr()
1548 static int set_clidr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in set_clidr()
1563 const struct sys_reg_desc *r) in access_csselr()
1575 const struct sys_reg_desc *r) in access_ccsidr()
1591 const struct sys_reg_desc *rd) in mte_visibility()
1608 const struct sys_reg_desc *rd) in el2_visibility()
1631 const struct sys_reg_desc *rd) in elx2_visibility()
1691 const struct sys_reg_desc *r) in access_sp_el1()
1703 const struct sys_reg_desc *r) in access_elr()
1715 const struct sys_reg_desc *r) in access_spsr()
1736 static const struct sys_reg_desc sys_reg_descs[] = {
2218 const struct sys_reg_desc *r) in trap_dbgdidr()
2262 static const struct sys_reg_desc cp14_regs[] = {
2347 static const struct sys_reg_desc cp14_64_regs[] = {
2376 static const struct sys_reg_desc cp15_regs[] = {
2524 static const struct sys_reg_desc cp15_64_regs[] = {
2534 static bool check_sysreg_table(const struct sys_reg_desc *table, unsigned int n, in check_sysreg_table()
2562 const struct sys_reg_desc *r) in perform_access()
2596 const struct sys_reg_desc *table, in emulate_cp()
2599 const struct sys_reg_desc *r; in emulate_cp()
2646 const struct sys_reg_desc *global, in kvm_handle_cp_64()
2814 const struct sys_reg_desc *global, in kvm_handle_cp_32()
2884 const struct sys_reg_desc *r; in emulate_sys_reg()
2976 const struct sys_reg_desc *get_reg_by_id(u64 id, in get_reg_by_id()
2977 const struct sys_reg_desc table[], in get_reg_by_id()
2989 static const struct sys_reg_desc *
2991 const struct sys_reg_desc table[], unsigned int num) in id_to_sys_reg_desc()
2994 const struct sys_reg_desc *r; in id_to_sys_reg_desc()
3019 const struct sys_reg_desc *r) \
3021 ((struct sys_reg_desc *)r)->val = read_sysreg(reg); \
3028 static void get_ctr_el0(struct kvm_vcpu *v, const struct sys_reg_desc *r) in FUNCTION_INVARIANT()
3030 ((struct sys_reg_desc *)r)->val = read_sanitised_ftr_reg(SYS_CTR_EL0); in FUNCTION_INVARIANT()
3034 static struct sys_reg_desc invariant_sys_regs[] __ro_after_init = {
3043 const struct sys_reg_desc *r; in get_invariant_sys_reg()
3055 const struct sys_reg_desc *r; in set_invariant_sys_reg()
3127 const struct sys_reg_desc table[], unsigned int num) in kvm_sys_reg_get_user()
3130 const struct sys_reg_desc *r; in kvm_sys_reg_get_user()
3168 const struct sys_reg_desc table[], unsigned int num) in kvm_sys_reg_set_user()
3171 const struct sys_reg_desc *r; in kvm_sys_reg_set_user()
3230 static u64 sys_reg_to_index(const struct sys_reg_desc *reg) in sys_reg_to_index()
3241 static bool copy_reg_to_user(const struct sys_reg_desc *reg, u64 __user **uind) in copy_reg_to_user()
3254 const struct sys_reg_desc *rd, in walk_one_sys_reg()
3278 const struct sys_reg_desc *i2, *end2; in walk_sys_regs()