Lines Matching refs:sys_reg_desc

42 static u64 sys_reg_to_index(const struct sys_reg_desc *reg);
46 const struct sys_reg_desc *r) in read_from_write_only()
56 const struct sys_reg_desc *r) in write_to_read_only()
110 const struct sys_reg_desc *r) in access_dcsw()
128 static void get_access_mask(const struct sys_reg_desc *r, u64 *mask, u64 *shift) in get_access_mask()
153 const struct sys_reg_desc *r) in access_vm_reg()
178 const struct sys_reg_desc *r) in access_actlr()
199 const struct sys_reg_desc *r) in access_gic_sgi()
244 const struct sys_reg_desc *r) in access_gic_sre()
255 const struct sys_reg_desc *r) in trap_raz_wi()
271 const struct sys_reg_desc *r) in trap_loregion()
289 const struct sys_reg_desc *r) in trap_oslar_el1()
307 const struct sys_reg_desc *r) in trap_oslsr_el1()
316 static int set_oslsr_el1(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in set_oslsr_el1()
332 const struct sys_reg_desc *r) in trap_dbgauthstatus_el1()
371 const struct sys_reg_desc *r) in trap_debug_regs()
396 const struct sys_reg_desc *rd, in reg_to_dbg()
413 const struct sys_reg_desc *rd, in dbg_to_reg()
424 const struct sys_reg_desc *rd) in trap_bvr()
438 static int set_bvr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in set_bvr()
445 static int get_bvr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in get_bvr()
453 const struct sys_reg_desc *rd) in reset_bvr()
460 const struct sys_reg_desc *rd) in trap_bcr()
474 static int set_bcr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in set_bcr()
481 static int get_bcr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in get_bcr()
489 const struct sys_reg_desc *rd) in reset_bcr()
496 const struct sys_reg_desc *rd) in trap_wvr()
511 static int set_wvr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in set_wvr()
518 static int get_wvr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in get_wvr()
526 const struct sys_reg_desc *rd) in reset_wvr()
533 const struct sys_reg_desc *rd) in trap_wcr()
547 static int set_wcr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in set_wcr()
554 static int get_wcr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in get_wcr()
562 const struct sys_reg_desc *rd) in reset_wcr()
567 static void reset_amair_el1(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) in reset_amair_el1()
573 static void reset_actlr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) in reset_actlr()
579 static void reset_mpidr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) in reset_mpidr()
597 const struct sys_reg_desc *r) in pmu_visibility()
605 static void reset_pmu_reg(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) in reset_pmu_reg()
622 static void reset_pmevcntr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) in reset_pmevcntr()
628 static void reset_pmevtyper(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) in reset_pmevtyper()
634 static void reset_pmselr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) in reset_pmselr()
640 static void reset_pmcr(struct kvm_vcpu *vcpu, const struct sys_reg_desc *r) in reset_pmcr()
692 const struct sys_reg_desc *r) in access_pmcr()
720 const struct sys_reg_desc *r) in access_pmselr()
736 const struct sys_reg_desc *r) in access_pmceid()
772 const struct sys_reg_desc *r) in access_pmu_evcntr()
824 const struct sys_reg_desc *r) in access_pmu_evtyper()
861 const struct sys_reg_desc *r) in access_pmcnten()
889 const struct sys_reg_desc *r) in access_pminten()
913 const struct sys_reg_desc *r) in access_pmovs()
935 const struct sys_reg_desc *r) in access_pmswinc()
951 const struct sys_reg_desc *r) in access_pmuserenr()
996 const struct sys_reg_desc *r) in undef_access()
1010 const struct sys_reg_desc *rd) in ptrauth_visibility()
1031 const struct sys_reg_desc *r) in access_arch_timer()
1066 static u64 read_id_reg(const struct kvm_vcpu *vcpu, struct sys_reg_desc const *r) in read_id_reg()
1133 const struct sys_reg_desc *r) in id_visibility()
1148 const struct sys_reg_desc *r) in aa32_id_visibility()
1162 const struct sys_reg_desc *r) in raz_visibility()
1171 const struct sys_reg_desc *r) in access_id_reg()
1182 const struct sys_reg_desc *rd) in sve_visibility()
1191 const struct sys_reg_desc *rd, in set_id_aa64pfr0_el1()
1232 static int get_id_reg(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in get_id_reg()
1239 static int set_id_reg(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in set_id_reg()
1249 static int get_raz_reg(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in get_raz_reg()
1256 static int set_wi_reg(struct kvm_vcpu *vcpu, const struct sys_reg_desc *rd, in set_wi_reg()
1263 const struct sys_reg_desc *r) in access_ctr()
1273 const struct sys_reg_desc *r) in access_clidr()
1283 const struct sys_reg_desc *r) in access_csselr()
1295 const struct sys_reg_desc *r) in access_ccsidr()
1323 const struct sys_reg_desc *rd) in mte_visibility()
1394 static const struct sys_reg_desc sys_reg_descs[] = {
1810 const struct sys_reg_desc *r) in trap_dbgdidr()
1854 static const struct sys_reg_desc cp14_regs[] = {
1939 static const struct sys_reg_desc cp14_64_regs[] = {
1968 static const struct sys_reg_desc cp15_regs[] = {
2112 static const struct sys_reg_desc cp15_64_regs[] = {
2122 static bool check_sysreg_table(const struct sys_reg_desc *table, unsigned int n, in check_sysreg_table()
2150 const struct sys_reg_desc *r) in perform_access()
2184 const struct sys_reg_desc *table, in emulate_cp()
2187 const struct sys_reg_desc *r; in emulate_cp()
2234 const struct sys_reg_desc *global, in kvm_handle_cp_64()
2402 const struct sys_reg_desc *global, in kvm_handle_cp_32()
2472 const struct sys_reg_desc *r; in emulate_sys_reg()
2564 const struct sys_reg_desc *get_reg_by_id(u64 id, in get_reg_by_id()
2565 const struct sys_reg_desc table[], in get_reg_by_id()
2577 static const struct sys_reg_desc *
2579 const struct sys_reg_desc table[], unsigned int num) in id_to_sys_reg_desc()
2582 const struct sys_reg_desc *r; in id_to_sys_reg_desc()
2607 const struct sys_reg_desc *r) \
2609 ((struct sys_reg_desc *)r)->val = read_sysreg(reg); \
2617 static void get_ctr_el0(struct kvm_vcpu *v, const struct sys_reg_desc *r) in FUNCTION_INVARIANT()
2619 ((struct sys_reg_desc *)r)->val = read_sanitised_ftr_reg(SYS_CTR_EL0); in FUNCTION_INVARIANT()
2623 static struct sys_reg_desc invariant_sys_regs[] = {
2633 const struct sys_reg_desc *r; in get_invariant_sys_reg()
2645 const struct sys_reg_desc *r; in set_invariant_sys_reg()
2746 const struct sys_reg_desc table[], unsigned int num) in kvm_sys_reg_get_user()
2749 const struct sys_reg_desc *r; in kvm_sys_reg_get_user()
2787 const struct sys_reg_desc table[], unsigned int num) in kvm_sys_reg_set_user()
2790 const struct sys_reg_desc *r; in kvm_sys_reg_set_user()
2857 static u64 sys_reg_to_index(const struct sys_reg_desc *reg) in sys_reg_to_index()
2868 static bool copy_reg_to_user(const struct sys_reg_desc *reg, u64 __user **uind) in copy_reg_to_user()
2881 const struct sys_reg_desc *rd, in walk_one_sys_reg()
2905 const struct sys_reg_desc *i2, *end2; in walk_sys_regs()
2951 struct sys_reg_desc clidr; in kvm_sys_reg_table_init()