Lines Matching refs:scope
1587 has_always(const struct arm64_cpu_capabilities *entry, int scope) in has_always() argument
1620 read_scoped_sysreg(const struct arm64_cpu_capabilities *entry, int scope) in read_scoped_sysreg() argument
1622 WARN_ON(scope == SCOPE_LOCAL_CPU && preemptible()); in read_scoped_sysreg()
1623 if (scope == SCOPE_SYSTEM) in read_scoped_sysreg()
1630 has_user_cpuid_feature(const struct arm64_cpu_capabilities *entry, int scope) in has_user_cpuid_feature() argument
1634 u64 val = read_scoped_sysreg(entry, scope); in has_user_cpuid_feature()
1650 has_cpuid_feature(const struct arm64_cpu_capabilities *entry, int scope) in has_cpuid_feature() argument
1652 u64 val = read_scoped_sysreg(entry, scope); in has_cpuid_feature()
1705 static bool has_32bit_el0(const struct arm64_cpu_capabilities *entry, int scope) in has_32bit_el0() argument
1707 if (!has_cpuid_feature(entry, scope)) in has_32bit_el0()
1710 if (scope == SCOPE_SYSTEM) in has_32bit_el0()
1716 static bool has_useable_gicv3_cpuif(const struct arm64_cpu_capabilities *entry, int scope) in has_useable_gicv3_cpuif() argument
1720 if (!has_cpuid_feature(entry, scope)) in has_useable_gicv3_cpuif()
1732 int scope) in has_cache_idc() argument
1736 if (scope == SCOPE_SYSTEM) in has_cache_idc()
1757 int scope) in has_cache_dic() argument
1761 if (scope == SCOPE_SYSTEM) in has_cache_dic()
1770 has_useable_cnp(const struct arm64_cpu_capabilities *entry, int scope) in has_useable_cnp() argument
1783 return has_cpuid_feature(entry, scope); in has_useable_cnp()
1790 int scope) in unmap_kernel_at_el0() argument
1817 if (has_cpuid_feature(entry, scope)) in unmap_kernel_at_el0()
1865 static bool has_nv1(const struct arm64_cpu_capabilities *entry, int scope) in has_nv1() argument
1883 !(has_cpuid_feature(entry, scope) || in has_nv1()
1906 static bool has_lpa2(const struct arm64_cpu_capabilities *entry, int scope) in has_lpa2() argument
1914 static bool has_lpa2(const struct arm64_cpu_capabilities *entry, int scope) in has_lpa2() argument
1921 static bool has_pmuv3(const struct arm64_cpu_capabilities *entry, int scope) in has_pmuv3() argument
2201 int scope) in has_nested_virt_support() argument
2206 if (!cpucap_multi_entry_cap_matches(cap, scope)) { in has_nested_virt_support()
2220 static bool has_bbml2_noabort(const struct arm64_cpu_capabilities *caps, int scope) in has_bbml2_noabort() argument
2275 static bool has_address_auth_cpucap(const struct arm64_cpu_capabilities *entry, int scope) in has_address_auth_cpucap() argument
2280 WARN_ON(scope == SCOPE_SYSTEM); in has_address_auth_cpucap()
2293 if (scope & SCOPE_BOOT_CPU) in has_address_auth_cpucap()
2302 int scope) in has_address_auth_metacap() argument
2304 bool api = has_address_auth_cpucap(cpucap_ptrs[ARM64_HAS_ADDRESS_AUTH_IMP_DEF], scope); in has_address_auth_metacap()
2305 bool apa = has_address_auth_cpucap(cpucap_ptrs[ARM64_HAS_ADDRESS_AUTH_ARCH_QARMA5], scope); in has_address_auth_metacap()
2306 bool apa3 = has_address_auth_cpucap(cpucap_ptrs[ARM64_HAS_ADDRESS_AUTH_ARCH_QARMA3], scope); in has_address_auth_metacap()
2332 int scope) in can_use_gic_priorities() argument
2346 int scope) in has_gic_prio_relaxed_sync() argument
2494 test_has_mpam(const struct arm64_cpu_capabilities *entry, int scope) in test_has_mpam() argument
2496 if (!has_cpuid_feature(entry, scope)) in test_has_mpam()
2516 test_has_mpam_hcr(const struct arm64_cpu_capabilities *entry, int scope) in test_has_mpam_hcr() argument
3202 static bool has_sve_feature(const struct arm64_cpu_capabilities *cap, int scope) in has_sve_feature() argument
3204 return system_supports_sve() && has_user_cpuid_feature(cap, scope); in has_sve_feature()
3209 static bool has_sme_feature(const struct arm64_cpu_capabilities *cap, int scope) in has_sme_feature() argument
3211 return system_supports_sme() && has_user_cpuid_feature(cap, scope); in has_sme_feature()
3346 static bool compat_has_neon(const struct arm64_cpu_capabilities *cap, int scope) in compat_has_neon() argument
3355 WARN_ON(scope == SCOPE_LOCAL_CPU && preemptible()); in compat_has_neon()
3356 if (scope == SCOPE_SYSTEM) in compat_has_neon()