Lines Matching full:sr
769 #define SR(r) \
776 SR(SYS_ICC_PMR_EL1),
777 SR(SYS_ICC_BPR0_EL1),
778 SR(SYS_ICC_AP0R0_EL1),
779 SR(SYS_ICC_AP0R1_EL1),
780 SR(SYS_ICC_AP0R2_EL1),
781 SR(SYS_ICC_AP0R3_EL1),
782 SR(SYS_ICC_AP1R0_EL1),
783 SR(SYS_ICC_AP1R1_EL1),
784 SR(SYS_ICC_AP1R2_EL1),
785 SR(SYS_ICC_AP1R3_EL1),
786 SR(SYS_ICC_BPR1_EL1),
787 SR(SYS_ICC_CTLR_EL1),
788 SR(SYS_ICC_SRE_EL1),
789 SR(SYS_ICC_IGRPEN0_EL1),
790 SR(SYS_ICC_IGRPEN1_EL1),
794 SR(SYS_ICH_AP0R0_EL2),
795 SR(SYS_ICH_AP0R1_EL2),
796 SR(SYS_ICH_AP0R2_EL2),
797 SR(SYS_ICH_AP0R3_EL2),
798 SR(SYS_ICH_AP1R0_EL2),
799 SR(SYS_ICH_AP1R1_EL2),
800 SR(SYS_ICH_AP1R2_EL2),
801 SR(SYS_ICH_AP1R3_EL2),
802 SR(SYS_ICH_HCR_EL2),
803 SR(SYS_ICC_SRE_EL2),
804 SR(SYS_ICH_VTR_EL2),
805 SR(SYS_ICH_VMCR_EL2),
806 SR(SYS_ICH_LR0_EL2),
807 SR(SYS_ICH_LR1_EL2),
808 SR(SYS_ICH_LR2_EL2),
809 SR(SYS_ICH_LR3_EL2),
810 SR(SYS_ICH_LR4_EL2),
811 SR(SYS_ICH_LR5_EL2),
812 SR(SYS_ICH_LR6_EL2),
813 SR(SYS_ICH_LR7_EL2),
814 SR(SYS_ICH_LR8_EL2),
815 SR(SYS_ICH_LR9_EL2),
816 SR(SYS_ICH_LR10_EL2),
817 SR(SYS_ICH_LR11_EL2),
818 SR(SYS_ICH_LR12_EL2),
819 SR(SYS_ICH_LR13_EL2),
820 SR(SYS_ICH_LR14_EL2),
821 SR(SYS_ICH_LR15_EL2),
824 static void test_sysreg_array(int gic, const struct sr_def *sr, int nr,
833 attr = PACK_SR(sr[i].encoding);
846 TEST_ASSERT(ret == 0, "%s unavailable", sr[i].name);
851 TEST_ASSERT(ret == 0 || !check(gic, &sr[i], "read"), "%s unreadable", sr[i].name);
854 TEST_ASSERT(ret == 0 || !check(gic, &sr[i], "write"), "%s unwritable", sr[i].name);
874 static int check_unaccessible_el1_regs(int gic, const struct sr_def *sr, const char *what)
876 switch (sr->encoding) {
893 pr_info("SKIP %s for %s\n", sr->name, what);
913 static int check_unaccessible_el2_regs(int gic, const struct sr_def *sr, const char *what)
915 switch (sr->encoding) {
932 pr_info("SKIP %s for %s\n", sr->name, what);