Home
last modified time | relevance | path

Searched refs:hwcap (Results 1 – 25 of 37) sorted by relevance

12

/openbmc/linux/tools/testing/selftests/arm64/abi/
H A Dhwcap.c654 if (!hwcap->SIG##_fn) { \
663 hwcap->SIG##_fn(); \
668 #SIG"_%s\n", hwcap->name); \
672 #SIG"_%s\n", hwcap->name); \
677 hwcap->name); \
679 hwcap->name); \
692 const struct hwcap_data *hwcap; in main() local
699 hwcap = &hwcaps[i]; in main()
701 have_hwcap = getauxval(hwcap->at_hwcap) & hwcap->hwcap_bit; in main()
708 "cpuinfo_match_%s\n", hwcap->name); in main()
[all …]
H A D.gitignore1 hwcap
H A DMakefile4 TEST_GEN_PROGS := hwcap ptrace syscall-abi tpidr2
/openbmc/openbmc/poky/meta/recipes-graphics/xorg-lib/pixman/
H A D0001-ARM-qemu-related-workarounds-in-cpu-features-detecti.patch57 + uint32_t hwcap = 0;
67 - uint32_t hwcap = aux.a_un.a_val;
70 - * versions of the hwcap header, e.g. HWCAP_NEON
72 - if ((hwcap & 64) != 0)
74 - if ((hwcap & 512) != 0)
77 - if ((hwcap & 4096) != 0)
79 + hwcap = aux.a_un.a_val;
100 + hwcap = 0; /* clear hwcap, because it is bogus */
131 + if ((hwcap & ARM_HWCAP_VFP) != 0)
133 + if ((hwcap & ARM_HWCAP_IWMMXT) != 0)
[all …]
/openbmc/qemu/util/
H A Dcpuinfo-loongarch.c22 unsigned long hwcap; in cpuinfo_init() local
28 hwcap = qemu_getauxval(AT_HWCAP); in cpuinfo_init()
31 info |= (hwcap & HWCAP_LOONGARCH_LSX ? CPUINFO_LSX : 0); in cpuinfo_init()
32 info |= (hwcap & HWCAP_LOONGARCH_LASX ? CPUINFO_LASX : 0); in cpuinfo_init()
H A Dcpuinfo-aarch64.c68 unsigned long hwcap = qemu_getauxval(AT_HWCAP); in cpuinfo_init() local
69 info |= (hwcap & HWCAP_ATOMICS ? CPUINFO_LSE : 0); in cpuinfo_init()
70 info |= (hwcap & HWCAP_USCAT ? CPUINFO_LSE2 : 0); in cpuinfo_init()
71 info |= (hwcap & HWCAP_AES ? CPUINFO_AES : 0); in cpuinfo_init()
72 info |= (hwcap & HWCAP_PMULL ? CPUINFO_PMULL : 0); in cpuinfo_init()
H A Dcpuinfo-ppc.c40 unsigned long hwcap = qemu_getauxval(AT_HWCAP); in cpuinfo_init() local
50 } else if (hwcap & PPC_FEATURE_ARCH_2_06) { in cpuinfo_init()
57 if (hwcap & PPC_FEATURE_HAS_ALTIVEC) { in cpuinfo_init()
60 if (hwcap & PPC_FEATURE_HAS_VSX) { in cpuinfo_init()
/openbmc/qemu/bsd-user/arm/
H A Dtarget_arch_elf.h37 #define GET_FEATURE(feat, hwcap) \ argument
38 do { if (arm_feature(&cpu->env, feat)) { hwcaps |= hwcap; } } while (0)
40 #define GET_FEATURE_ID(feat, hwcap) \ argument
41 do { if (cpu_isar_feature(feat, cpu)) { hwcaps |= hwcap; } } while (0)
/openbmc/linux/tools/testing/selftests/arm64/bti/
H A Dtest.c161 unsigned long hwcap = 0, hwcap2 = 0; in start() local
176 hwcap = auxv->val; in start()
186 if (hwcap & HWCAP_PACA) in start()
193 if (!(hwcap & HWCAP_PACA)) in start()
/openbmc/linux/Documentation/devicetree/bindings/powerpc/
H A Dibm,powerpc-cpu-features.txt107 If bit 0 is set, then the hwcap-bit-nr property will exist.
174 - hwcap-bit-nr
189 advertised to userspace without a one-to-one hwcap bit number may not specify
191 features usable by userspace will have a hwcap-bit-nr property.
214 hwcap-bit-nr = <xx>;
221 hwcap-bit-nr = <xx>;
236 hwcap-bit-nr = <xx>;
244 hwcap-bit-nr = <xx>;
/openbmc/linux/Documentation/translations/zh_TW/arch/arm64/
H A Delf_hwcaps.rst36 如果軟體依賴於 hwcap 描述的功能,在嘗試使用該功能前則應檢查相關的 hwcap
47 描述的功能的存在。這些 hwcap 通過 ID 寄存器欄位定義,並且應根據 ARM 體系
/openbmc/linux/Documentation/translations/zh_CN/arch/arm64/
H A Delf_hwcaps.rst33 如果软件依赖于 hwcap 描述的功能,在尝试使用该功能前则应检查相关的 hwcap
44 描述的功能的存在。这些 hwcap 通过 ID 寄存器字段定义,并且应根据 ARM 体系
/openbmc/qemu/bsd-user/aarch64/
H A Dtarget_arch_elf.h93 #define GET_FEATURE_ID(feat, hwcap) \ argument
94 do { if (cpu_isar_feature(feat, cpu)) { hwcaps |= hwcap; } } while (0)
/openbmc/linux/tools/testing/selftests/arm64/fp/
H A Dsve-ptrace.c46 unsigned long hwcap; member
55 .hwcap = HWCAP_SVE,
62 .hwcap = HWCAP2_SME,
682 if (getauxval(vec_types[i].hwcap_type) & vec_types[i].hwcap) { in do_parent()
692 if (getauxval(vec_types[i].hwcap_type) & vec_types[i].hwcap) { in do_parent()
707 vec_types[i].hwcap) { in do_parent()
H A Dvec-syscfg.c30 unsigned long hwcap; member
50 .hwcap = HWCAP_SVE,
60 .hwcap = HWCAP2_SME,
597 if (!(getauxval(vec_data[i].hwcap_type) & vec_data[i].hwcap)) in prctl_set_all_vqs()
768 supported = getauxval(data->hwcap_type) & data->hwcap; in main()
/openbmc/linux/arch/riscv/kernel/
H A Dcpufeature.c568 unsigned long hwcap; in riscv_get_elf_hwcap() local
570 hwcap = (elf_hwcap & ((1UL << RISCV_ISA_EXT_BASE) - 1)); in riscv_get_elf_hwcap()
573 hwcap &= ~COMPAT_HWCAP_ISA_V; in riscv_get_elf_hwcap()
575 return hwcap; in riscv_get_elf_hwcap()
/openbmc/linux/arch/powerpc/boot/dts/
H A Dmicrowatt.dts50 hwcap-bit-nr = <1>;
69 hwcap-bit-nr = <27>;
/openbmc/openbmc/poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/
H A Dendian-ness_handling.patch418 if (opt_format != 2 && entry->hwcap == 0)
434 - file_entries_new->libs[idx_new].hwcap = entry->hwcap;
438 + file_entries_new->libs[idx_new].hwcap = write64(entry->hwcap, be);
446 if (opt_format != 2 && entry->hwcap == 0)
H A Dldconfig.patch282 - /* Only accept hwcap if it's for the right platform. */
284 - if (lib->hwcap & hwcap_exclude) \
289 - && (lib->hwcap & _DL_HWCAP_PLATFORM) != 0 \
290 - && (lib->hwcap & _DL_HWCAP_PLATFORM) != platform) \
/openbmc/qemu/linux-user/
H A Delfload.c521 #define GET_FEATURE(feat, hwcap) \ in get_elf_hwcap() argument
524 #define GET_FEATURE_ID(feat, hwcap) \ in get_elf_hwcap() argument
525 do { if (cpu_isar_feature(feat, cpu)) { hwcaps |= hwcap; } } while (0) in get_elf_hwcap()
802 #define GET_FEATURE_ID(feat, hwcap) \ argument
1654 uint32_t hwcap = 0; in get_elf_hwcap() local
1656 hwcap |= SH_CPU_HAS_FPU; in get_elf_hwcap()
1659 hwcap |= SH_CPU_HAS_LLSC; in get_elf_hwcap()
1662 return hwcap; in get_elf_hwcap()
1759 do { if (s390_has_feat(_feat)) { hwcap |= _hwcap; } } while (0)
1775 hwcap |= HWCAP_S390_ETF3EH; in get_elf_hwcap()
[all …]
/openbmc/linux/Documentation/arch/arm64/
H A Delf_hwcaps.rst32 Where software relies on a feature described by a hwcap, it should check
33 the relevant hwcap flag to verify that the feature is present before
/openbmc/openbmc/poky/meta/recipes-kernel/linux-libc-headers/
H A Dlinux-libc-headers.inc102 …oe_multilib_header asm/auxvec.h asm/bitsperlong.h asm/byteorder.h asm/fcntl.h asm/hwcap.h asm/ioct…
/openbmc/linux/arch/arm64/kernel/
H A Dcpufeature.c2744 .hwcap = cap, \
2932 cpu_set_feature(cap->hwcap); in cap_set_elf_hwcap()
2936 compat_elf_hwcap |= (u32)cap->hwcap; in cap_set_elf_hwcap()
2939 compat_elf_hwcap2 |= (u32)cap->hwcap; in cap_set_elf_hwcap()
2955 rc = cpu_have_feature(cap->hwcap); in cpus_have_elf_hwcap()
2959 rc = (compat_elf_hwcap & (u32)cap->hwcap) != 0; in cpus_have_elf_hwcap()
2962 rc = (compat_elf_hwcap2 & (u32)cap->hwcap) != 0; in cpus_have_elf_hwcap()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npc_hash.c202 struct hw_cap *hwcap = &rvu->hw->cap; in npc_config_secret_key() local
206 if (!hwcap->npc_hash_extract) in npc_config_secret_key()
222 struct hw_cap *hwcap = &rvu->hw->cap; in npc_program_mkex_hash() local
228 if (!hwcap->npc_hash_extract) in npc_program_mkex_hash()
/openbmc/linux/arch/arm64/include/asm/
H A Dcpufeature.h367 unsigned long hwcap; member

12