/openbmc/linux/arch/s390/kernel/ |
H A D | processor.c | 29 unsigned long __read_mostly elf_hwcap; variable 146 if (hwcap_str[i] && (elf_hwcap & (1UL << i))) in show_cpu_summary() 165 elf_hwcap |= HWCAP_ESAN3; in setup_hwcaps() 168 elf_hwcap |= HWCAP_ZARCH; in setup_hwcaps() 172 elf_hwcap |= HWCAP_STFLE; in setup_hwcaps() 176 elf_hwcap |= HWCAP_MSA; in setup_hwcaps() 180 elf_hwcap |= HWCAP_LDISP; in setup_hwcaps() 183 elf_hwcap |= HWCAP_EIMM; in setup_hwcaps() 187 elf_hwcap |= HWCAP_ETF3EH; in setup_hwcaps() 191 elf_hwcap |= HWCAP_DFP; in setup_hwcaps() [all …]
|
H A D | cpufeature.c | 38 return !!(elf_hwcap & BIT(feature->num)); in cpu_have_feature()
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | cpu-probe.c | 24 unsigned int elf_hwcap __read_mostly; 25 EXPORT_SYMBOL_GPL(elf_hwcap); 97 elf_hwcap = HWCAP_LOONGARCH_CPUCFG; in cpu_probe_common() 102 elf_hwcap |= HWCAP_LOONGARCH_UAL; in cpu_probe_common() 106 elf_hwcap |= HWCAP_LOONGARCH_CRC32; in cpu_probe_common() 113 elf_hwcap |= HWCAP_LOONGARCH_LAM; in cpu_probe_common() 117 elf_hwcap |= HWCAP_LOONGARCH_FPU; in cpu_probe_common() 122 elf_hwcap |= HWCAP_LOONGARCH_LSX; in cpu_probe_common() 128 elf_hwcap |= HWCAP_LOONGARCH_LASX; in cpu_probe_common() 133 elf_hwcap |= HWCAP_LOONGARCH_COMPLEX; in cpu_probe_common() [all …]
|
/openbmc/linux/arch/riscv/kernel/ |
H A D | cpufeature.c | 35 unsigned long elf_hwcap __read_mostly; 423 if (elf_hwcap) in riscv_fill_hwcap_from_isa_string() 424 elf_hwcap &= this_hwcap; in riscv_fill_hwcap_from_isa_string() 426 elf_hwcap = this_hwcap; in riscv_fill_hwcap_from_isa_string() 479 if (elf_hwcap) in riscv_fill_hwcap_from_ext_list() 480 elf_hwcap &= this_hwcap; in riscv_fill_hwcap_from_ext_list() 482 elf_hwcap = this_hwcap; in riscv_fill_hwcap_from_ext_list() 537 if ((elf_hwcap & COMPAT_HWCAP_ISA_F) && !(elf_hwcap & COMPAT_HWCAP_ISA_D)) { in riscv_fill_hwcap() 539 elf_hwcap &= ~COMPAT_HWCAP_ISA_F; in riscv_fill_hwcap() 542 if (elf_hwcap & COMPAT_HWCAP_ISA_V) { in riscv_fill_hwcap() [all …]
|
/openbmc/linux/arch/arm/kernel/ |
H A D | elf.c | 20 if (!(elf_hwcap & HWCAP_THUMB)) in elf_check_arch() 30 if ((eflags & EF_ARM_APCS_26) && !(elf_hwcap & HWCAP_26BIT)) in elf_check_arch() 36 if (flt_fmt == EF_ARM_VFP_FLOAT && !(elf_hwcap & HWCAP_VFP)) in elf_check_arch() 71 if (elf_hwcap & HWCAP_IWMMXT && in elf_set_personality()
|
H A D | setup.c | 100 unsigned int elf_hwcap __read_mostly; 101 EXPORT_SYMBOL(elf_hwcap); 420 if (!(elf_hwcap & mask)) in patch_aeabi_idiv() 454 elf_hwcap |= HWCAP_IDIVA; in cpuid_init_hwcaps() 456 elf_hwcap |= HWCAP_IDIVT; in cpuid_init_hwcaps() 461 elf_hwcap |= HWCAP_LPAE; in cpuid_init_hwcaps() 507 elf_hwcap &= ~HWCAP_TLS; in elf_hwcap_fixup() 523 elf_hwcap &= ~HWCAP_SWP; in elf_hwcap_fixup() 727 elf_hwcap = list->elf_hwcap; in setup_processor() 733 elf_hwcap &= ~(HWCAP_THUMB | HWCAP_IDIVT); in setup_processor() [all …]
|
/openbmc/linux/arch/arm/vfp/ |
H A D | vfpmodule.c | 917 elf_hwcap |= HWCAP_NEON; in vfp_init() 926 elf_hwcap |= HWCAP_VFPv3; in vfp_init() 934 elf_hwcap |= HWCAP_VFPv3D16; in vfp_init() 936 elf_hwcap |= HWCAP_VFPD32; in vfp_init() 940 elf_hwcap |= HWCAP_VFPv4; in vfp_init() 942 elf_hwcap |= HWCAP_ASIMDHP; in vfp_init() 944 elf_hwcap |= HWCAP_FPHP; in vfp_init() 953 elf_hwcap |= HWCAP_ASIMDDP; in vfp_init() 959 elf_hwcap |= HWCAP_ASIMDFHM; in vfp_init() 965 elf_hwcap |= HWCAP_ASIMDBF16; in vfp_init() [all …]
|
/openbmc/linux/arch/arm/include/asm/ |
H A D | hwcap.h | 12 #define ELF_HWCAP (elf_hwcap) 14 extern unsigned int elf_hwcap, elf_hwcap2;
|
H A D | arch_timer.h | 137 elf_hwcap |= HWCAP_EVTSTRM; in arch_timer_set_evtstrm_feature() 142 return elf_hwcap & HWCAP_EVTSTRM; in arch_timer_have_evtstrm_feature()
|
H A D | tls.h | 27 ldr_va \tmp1, elf_hwcap 56 #define has_tls_reg (elf_hwcap & HWCAP_TLS)
|
H A D | ptrace.h | 69 if (elf_hwcap & HWCAP_26BIT && mode == USR26_MODE) in valid_user_regs() 77 if (!(elf_hwcap & HWCAP_26BIT)) in valid_user_regs()
|
H A D | vfpmacros.h | 41 ldr \tmp, =elf_hwcap @ may not have MVFR regs 66 ldr \tmp, =elf_hwcap @ may not have MVFR regs
|
H A D | neon.h | 10 #define cpu_has_neon() (!!(elf_hwcap & HWCAP_NEON))
|
H A D | procinfo.h | 34 unsigned int elf_hwcap; member
|
H A D | cpufeature.h | 32 return num < 32 ? elf_hwcap & BIT(num) : elf_hwcap2 & BIT(num - 32); in cpu_have_feature()
|
/openbmc/linux/arch/loongarch/include/asm/ |
H A D | cpufeature.h | 15 #define MAX_CPU_FEATURES (8 * sizeof(elf_hwcap)) 21 return elf_hwcap & (1UL << num); in cpu_have_feature()
|
H A D | elf.h | 277 #define ELF_HWCAP (elf_hwcap) 278 extern unsigned int elf_hwcap;
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | cpufeature.h | 13 #define MAX_CPU_FEATURES (8 * sizeof(elf_hwcap)) 19 return elf_hwcap & (1UL << num); in cpu_have_feature()
|
/openbmc/qemu/linux-user/s390x/ |
H A D | target_proc.h | 51 uint32_t elf_hwcap = get_elf_hwcap(); in show_cpu_summary() local 61 for (i = 0; i < sizeof(elf_hwcap) * 8; i++) { in show_cpu_summary() 62 if (!(elf_hwcap & (1 << i))) { in show_cpu_summary()
|
/openbmc/linux/arch/arm/mach-imx/ |
H A D | cpu-imx5.c | 78 (elf_hwcap & HWCAP_NEON)) { in mx51_neon_fixup() 79 elf_hwcap &= ~HWCAP_NEON; in mx51_neon_fixup()
|
/openbmc/linux/arch/mips/kernel/ |
H A D | cpu-probe.c | 37 unsigned int elf_hwcap __read_mostly; 38 EXPORT_SYMBOL_GPL(elf_hwcap); 671 elf_hwcap |= HWCAP_MIPS_CRC32; in decode_config5() 1945 elf_hwcap |= HWCAP_MIPS_R6; in cpu_probe() 1951 elf_hwcap |= HWCAP_MIPS_MSA; in cpu_probe() 1955 elf_hwcap |= HWCAP_MIPS_MIPS16; in cpu_probe() 1958 elf_hwcap |= HWCAP_MIPS_MDMX; in cpu_probe() 1961 elf_hwcap |= HWCAP_MIPS_MIPS3D; in cpu_probe() 1964 elf_hwcap |= HWCAP_MIPS_SMARTMIPS; in cpu_probe() 1967 elf_hwcap |= HWCAP_MIPS_DSP; in cpu_probe() [all …]
|
H A D | cpu-r3k-probe.c | 29 unsigned int elf_hwcap __read_mostly; 30 EXPORT_SYMBOL_GPL(elf_hwcap);
|
/openbmc/qemu/linux-user/arm/ |
H A D | target_proc.h | 13 target_ulong elf_hwcap = get_elf_hwcap(); in open_cpuinfo() local 73 for (target_ulong j = elf_hwcap; j ; j &= j - 1) { in open_cpuinfo()
|
/openbmc/linux/arch/arm/crypto/ |
H A D | curve25519-glue.c | 117 if (elf_hwcap & HWCAP_NEON) { in arm_curve25519_init() 127 if (IS_REACHABLE(CONFIG_CRYPTO_KPP) && elf_hwcap & HWCAP_NEON) in arm_curve25519_exit()
|
/openbmc/linux/arch/s390/include/asm/ |
H A D | elf.h | 237 extern unsigned long elf_hwcap; 238 #define ELF_HWCAP (elf_hwcap)
|