Home
last modified time | relevance | path

Searched refs:hwcaps (Results 1 – 25 of 28) sorted by relevance

12

/openbmc/qemu/bsd-user/arm/
H A Dtarget_arch_elf.h38 do { if (arm_feature(&cpu->env, feat)) { hwcaps |= hwcap; } } while (0)
41 do { if (cpu_isar_feature(feat, cpu)) { hwcaps |= hwcap; } } while (0)
79 uint32_t hwcaps = 0; in get_elf_hwcap() local
81 hwcaps |= ARM_HWCAP_ARM_SWP; in get_elf_hwcap()
82 hwcaps |= ARM_HWCAP_ARM_HALF; in get_elf_hwcap()
83 hwcaps |= ARM_HWCAP_ARM_THUMB; in get_elf_hwcap()
84 hwcaps |= ARM_HWCAP_ARM_FAST_MULT; in get_elf_hwcap()
100 hwcaps |= ARM_HWCAP_ARM_VFPv3; in get_elf_hwcap()
102 hwcaps |= ARM_HWCAP_ARM_VFPD32; in get_elf_hwcap()
104 hwcaps |= ARM_HWCAP_ARM_VFPv3D16; in get_elf_hwcap()
[all …]
/openbmc/linux/Documentation/translations/zh_CN/arch/arm64/
H A Delf_hwcaps.rst8 ARM64 ELF hwcaps
11 这篇文档描述了 arm64 ELF hwcaps 的用法和语义。
19 公开一组称为 hwcaps 的标志而把这些功能暴露给用户空间。
26 unsigned long hwcaps = getauxval(AT_HWCAP);
27 if (hwcaps & HWCAP_FP)
43 大多数 hwcaps 旨在说明通过架构 ID 寄存器(处于 EL0 的用户空间代码无法访问)
47 这些 hwcaps 以下面的形式描述::
51 当 idreg.field 中有 val 时,hwcaps 表示 ARM ARM 定义的功能是有效的,但是
54 其他 hwcaps 可能表明无法仅由 ID 寄存器描述的功能的存在。这些 hwcaps 可能
58 3. AT_HWCAP 中揭示的 hwcaps
/openbmc/linux/Documentation/translations/zh_TW/arch/arm64/
H A Delf_hwcaps.rst11 ARM64 ELF hwcaps
14 這篇文檔描述了 arm64 ELF hwcaps 的用法和語義。
22 公開一組稱爲 hwcaps 的標誌而把這些功能暴露給用戶空間。
29 unsigned long hwcaps = getauxval(AT_HWCAP);
30 if (hwcaps & HWCAP_FP)
46 大多數 hwcaps 旨在說明通過架構 ID 寄存器(處於 EL0 的用戶空間代碼無法訪問)
50 這些 hwcaps 以下面的形式描述::
54 當 idreg.field 中有 val 時,hwcaps 表示 ARM ARM 定義的功能是有效的,但是
57 其他 hwcaps 可能表明無法僅由 ID 寄存器描述的功能的存在。這些 hwcaps 可能
61 3. AT_HWCAP 中揭示的 hwcaps
/openbmc/qemu/bsd-user/aarch64/
H A Dtarget_arch_elf.h94 do { if (cpu_isar_feature(feat, cpu)) { hwcaps |= hwcap; } } while (0)
99 uint32_t hwcaps = 0; in get_elf_hwcap() local
101 hwcaps |= ARM_HWCAP_A64_FP; in get_elf_hwcap()
102 hwcaps |= ARM_HWCAP_A64_ASIMD; in get_elf_hwcap()
103 hwcaps |= ARM_HWCAP_A64_CPUID; in get_elf_hwcap()
131 return hwcaps; in get_elf_hwcap()
137 uint32_t hwcaps = 0; in get_elf_hwcap2() local
158 return hwcaps; in get_elf_hwcap2()
/openbmc/linux/drivers/mtd/spi-nor/
H A Ddebugfs.c188 u32 hwcaps = params->hwcaps.mask; in spi_nor_capabilities_show() local
192 for (i = 0; i < sizeof(hwcaps) * BITS_PER_BYTE; i++) { in spi_nor_capabilities_show()
193 if (!(hwcaps & BIT(i))) in spi_nor_capabilities_show()
201 hwcaps &= ~BIT(i); in spi_nor_capabilities_show()
205 for (i = 0; i < sizeof(hwcaps) * BITS_PER_BYTE; i++) { in spi_nor_capabilities_show()
206 if (!(hwcaps & BIT(i))) in spi_nor_capabilities_show()
214 hwcaps &= ~BIT(i); in spi_nor_capabilities_show()
217 if (hwcaps) in spi_nor_capabilities_show()
218 seq_printf(s, "\nunknown hwcaps 0x%x\n", hwcaps); in spi_nor_capabilities_show()
H A Dsfdp.c51 u32 hwcaps; member
131 u32 hwcaps; member
508 params->hwcaps.mask &= ~rd->hwcaps; in spi_nor_parse_bfpt()
512 params->hwcaps.mask |= rd->hwcaps; in spi_nor_parse_bfpt()
513 cmd = spi_nor_hwcaps_read2cmd(rd->hwcaps); in spi_nor_parse_bfpt()
1021 discard_hwcaps |= read->hwcaps; in spi_nor_parse_4bait()
1022 if ((params->hwcaps.mask & read->hwcaps) && in spi_nor_parse_4bait()
1024 read_hwcaps |= read->hwcaps; in spi_nor_parse_4bait()
1041 discard_hwcaps |= program->hwcaps; in spi_nor_parse_4bait()
1043 pp_hwcaps |= program->hwcaps; in spi_nor_parse_4bait()
[all …]
H A Dcore.c2237 static int spi_nor_hwcaps2cmd(u32 hwcaps, const int table[][2], size_t size) in spi_nor_hwcaps2cmd() argument
2242 if (table[i][0] == (int)hwcaps) in spi_nor_hwcaps2cmd()
2248 int spi_nor_hwcaps_read2cmd(u32 hwcaps) in spi_nor_hwcaps_read2cmd() argument
2269 return spi_nor_hwcaps2cmd(hwcaps, hwcaps_read2cmd, in spi_nor_hwcaps_read2cmd()
2273 int spi_nor_hwcaps_pp2cmd(u32 hwcaps) in spi_nor_hwcaps_pp2cmd() argument
2286 return spi_nor_hwcaps2cmd(hwcaps, hwcaps_pp2cmd, in spi_nor_hwcaps_pp2cmd()
2371 spi_nor_spimem_adjust_hwcaps(struct spi_nor *nor, u32 *hwcaps) in spi_nor_spimem_adjust_hwcaps() argument
2377 *hwcaps &= ~SNOR_HWCAPS_X_X_X; in spi_nor_spimem_adjust_hwcaps()
2384 *hwcaps &= ~(SNOR_HWCAPS_X_X_X | SNOR_HWCAPS_X_X_X_DTR); in spi_nor_spimem_adjust_hwcaps()
2386 for (cap = 0; cap < sizeof(*hwcaps) * BITS_PER_BYTE; cap++) { in spi_nor_spimem_adjust_hwcaps()
[all …]
H A Dcore.h395 struct spi_nor_hwcaps hwcaps; member
406 int (*setup)(struct spi_nor *nor, const struct spi_nor_hwcaps *hwcaps);
696 int spi_nor_hwcaps_read2cmd(u32 hwcaps);
697 int spi_nor_hwcaps_pp2cmd(u32 hwcaps);
H A Dxilinx.c117 const struct spi_nor_hwcaps *hwcaps) in xilinx_nor_setup() argument
/openbmc/linux/tools/testing/selftests/arm64/pauth/
H A Dexec_target.c13 unsigned long hwcaps; in main() local
21 hwcaps = getauxval(AT_HWCAP); in main()
23 if (hwcaps & HWCAP_PACA) { in main()
29 signed_vals.keyg = (hwcaps & HWCAP_PACG) ? keyg_sign(val) : 0; in main()
H A Dpac.c26 unsigned long hwcaps = getauxval(AT_HWCAP); \
28 if (!(hwcaps & HWCAP_PACA)) \
33 unsigned long hwcaps = getauxval(AT_HWCAP); \
35 if (!(hwcaps & HWCAP_PACG)) \
261 unsigned long hwcaps = getauxval(AT_HWCAP); in TEST() local
265 if (!(hwcaps & HWCAP_PACG)) { in TEST()
304 unsigned long hwcaps = getauxval(AT_HWCAP); in TEST() local
308 if (!(hwcaps & HWCAP_PACG)) { in TEST()
/openbmc/linux/arch/sparc/kernel/
H A Dsetup_64.c393 static const char *hwcaps[] = { variable
417 for (i = 0; i < ARRAY_SIZE(hwcaps); i++) { in cpucap_info()
419 if (hwcaps[i] && (caps & bit)) { in cpucap_info()
421 printed ? "," : "", hwcaps[i]); in cpucap_info()
471 for (i = 0; i < ARRAY_SIZE(hwcaps); i++) { in report_hwcaps()
473 if (hwcaps[i] && (caps & bit)) in report_hwcaps()
474 report_one_hwcap(&printed, hwcaps[i]); in report_hwcaps()
505 for (i = 0; i < ARRAY_SIZE(hwcaps); i++) { in mdesc_cpu_hwcap_list()
508 if (hwcaps[i] && !strcmp(prop, hwcaps[i])) { in mdesc_cpu_hwcap_list()
/openbmc/linux/Documentation/arch/arm64/
H A Delf_hwcaps.rst4 ARM64 ELF hwcaps
7 This document describes the usage and semantics of the arm64 ELF hwcaps.
17 of flags called hwcaps, exposed in the auxiliary vector.
25 unsigned long hwcaps = getauxval(AT_HWCAP);
26 if (hwcaps & HWCAP_FP)
42 2. Interpretation of hwcaps
45 The majority of hwcaps are intended to indicate the presence of features
47 userspace code at EL0. These hwcaps are defined in terms of ID register
51 Such hwcaps are described below in the form::
55 Such hwcaps indicate the availability of functionality that the ARM ARM
[all …]
/openbmc/u-boot/drivers/mtd/spi/
H A Dspi-nor-tiny.c563 struct spi_nor_hwcaps hwcaps; member
585 params->hwcaps.mask = SNOR_HWCAPS_READ; in spi_nor_init_params()
591 params->hwcaps.mask |= SNOR_HWCAPS_READ_FAST; in spi_nor_init_params()
598 params->hwcaps.mask |= SNOR_HWCAPS_READ_1_1_4; in spi_nor_init_params()
645 const struct spi_nor_hwcaps *hwcaps) in spi_nor_setup() argument
654 shared_mask = hwcaps->mask & params->hwcaps.mask; in spi_nor_setup()
717 struct spi_nor_hwcaps hwcaps = { in spi_nor_scan() local
730 hwcaps.mask |= SNOR_HWCAPS_READ_1_1_4; in spi_nor_scan()
758 params.hwcaps.mask &= ~SNOR_HWCAPS_READ_FAST; in spi_nor_scan()
767 ret = spi_nor_setup(nor, info, &params, &hwcaps); in spi_nor_scan()
H A Dspi-nor-core.c1756 struct spi_nor_hwcaps hwcaps; member
2023 u32 hwcaps; member
2117 static int spi_nor_hwcaps_read2cmd(u32 hwcaps);
2216 params->hwcaps.mask &= ~rd->hwcaps; in spi_nor_parse_bfpt()
2220 params->hwcaps.mask |= rd->hwcaps; in spi_nor_parse_bfpt()
2221 cmd = spi_nor_hwcaps_read2cmd(rd->hwcaps); in spi_nor_parse_bfpt()
2425 params->hwcaps.mask |= SNOR_HWCAPS_READ; in spi_nor_init_params()
2431 params->hwcaps.mask |= SNOR_HWCAPS_READ_FAST; in spi_nor_init_params()
2442 params->hwcaps.mask |= SNOR_HWCAPS_READ_1_1_2; in spi_nor_init_params()
2449 params->hwcaps.mask |= SNOR_HWCAPS_READ_1_1_4; in spi_nor_init_params()
[all …]
/openbmc/linux/arch/arm/mm/
H A Dproc-v7m.S182 .macro __v7m_proc name, initfunc, cache_fns = nop_cache_fns, hwcaps = 0, proc_fns = v7m_processor_…
188 .long HWCAP_HALF | HWCAP_THUMB | HWCAP_FAST_MULT | \hwcaps
203 …__v7m_proc __v7m_cm55_proc_info, __v7m_cm7_setup, hwcaps = HWCAP_EDSP, cache_fns = v7m_cache_fns, …
213 __v7m_proc __v7m_cm33_proc_info, __v7m_setup, hwcaps = HWCAP_EDSP
223 …__v7m_proc __v7m_cm7_proc_info, __v7m_cm7_setup, hwcaps = HWCAP_EDSP, cache_fns = v7m_cache_fns, p…
233 __v7m_proc __v7m_cm4_proc_info, __v7m_setup, hwcaps = HWCAP_EDSP
H A Dproc-v7.S651 .macro __v7_proc name, initfunc, mm_mmuflags = 0, io_mmuflags = 0, hwcaps = 0, proc_fns = v7_proces…
662 HWCAP_EDSP | HWCAP_TLS | \hwcaps
814 __v7_proc __krait_proc_info, __v7_setup, hwcaps = HWCAP_IDIV | HWCAP_VFPv4
/openbmc/linux/drivers/net/hyperv/
H A Drndis_filter.c671 struct ndis_offload *hwcaps; in rndis_filter_query_device() local
689 hwcaps = (struct ndis_offload *) in rndis_filter_query_device()
692 hwcaps->header.type = NDIS_OBJECT_TYPE_OFFLOAD; in rndis_filter_query_device()
693 hwcaps->header.revision = ndis_rev; in rndis_filter_query_device()
694 hwcaps->header.size = size; in rndis_filter_query_device()
1353 struct ndis_offload hwcaps; in rndis_netdev_set_hwcaps() local
1359 ret = rndis_query_hwcaps(rndis_device, nvdev, &hwcaps); in rndis_netdev_set_hwcaps()
1378 if ((hwcaps.csum.ip4_txcsum & NDIS_TXCSUM_ALL_TCP4) == NDIS_TXCSUM_ALL_TCP4) { in rndis_netdev_set_hwcaps()
1385 if (hwcaps.lsov2.ip4_encap & NDIS_OFFLOAD_ENCAP_8023) { in rndis_netdev_set_hwcaps()
1389 if (hwcaps.lsov2.ip4_maxsz < gso_max_size) in rndis_netdev_set_hwcaps()
[all …]
/openbmc/linux/tools/testing/selftests/arm64/abi/
H A Dhwcap.c301 } hwcaps[] = { variable
696 ksft_set_plan(ARRAY_SIZE(hwcaps) * TESTS_PER_HWCAP); in main()
698 for (i = 0; i < ARRAY_SIZE(hwcaps); i++) { in main()
699 hwcap = &hwcaps[i]; in main()
/openbmc/qemu/linux-user/
H A Delfload.c513 uint32_t hwcaps = 0; in get_elf_hwcap() local
515 hwcaps |= ARM_HWCAP_ARM_SWP; in get_elf_hwcap()
516 hwcaps |= ARM_HWCAP_ARM_HALF; in get_elf_hwcap()
517 hwcaps |= ARM_HWCAP_ARM_THUMB; in get_elf_hwcap()
518 hwcaps |= ARM_HWCAP_ARM_FAST_MULT; in get_elf_hwcap()
522 do { if (arm_feature(&cpu->env, feat)) { hwcaps |= hwcap; } } while (0) in get_elf_hwcap()
525 do { if (cpu_isar_feature(feat, cpu)) { hwcaps |= hwcap; } } while (0) in get_elf_hwcap()
540 hwcaps |= ARM_HWCAP_ARM_VFPv3; in get_elf_hwcap()
542 hwcaps |= ARM_HWCAP_ARM_VFPD32; in get_elf_hwcap()
544 hwcaps |= ARM_HWCAP_ARM_VFPv3D16; in get_elf_hwcap()
[all …]
/openbmc/linux/drivers/mtd/spi-nor/controllers/
H A Dnxp-spifi.c282 struct spi_nor_hwcaps hwcaps = { in nxp_spifi_setup_flash() local
320 hwcaps.mask |= SNOR_HWCAPS_READ_1_1_2; in nxp_spifi_setup_flash()
323 hwcaps.mask |= SNOR_HWCAPS_READ_1_1_4; in nxp_spifi_setup_flash()
358 ret = spi_nor_scan(&spifi->nor, NULL, &hwcaps); in nxp_spifi_setup_flash()
H A Dhisi-sfc.c329 const struct spi_nor_hwcaps hwcaps = { in hisi_spi_nor_register() local
371 ret = spi_nor_scan(nor, NULL, &hwcaps); in hisi_spi_nor_register()
/openbmc/openbmc/poky/meta/recipes-core/glibc/glibc/
H A D0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch64 #include <dl-hwcaps.h>
79 --glibc-hwcaps-prepend LIST\n\
/openbmc/linux/include/linux/mtd/
H A Dspi-nor.h451 const struct spi_nor_hwcaps *hwcaps);
/openbmc/linux/arch/arm64/kernel/
H A Dcpufeature.c2987 static void setup_elf_hwcaps(const struct arm64_cpu_capabilities *hwcaps) in setup_elf_hwcaps() argument
2991 for (; hwcaps->matches; hwcaps++) in setup_elf_hwcaps()
2992 if (hwcaps->matches(hwcaps, cpucap_default_scope(hwcaps))) in setup_elf_hwcaps()
2993 cap_set_elf_hwcap(hwcaps); in setup_elf_hwcaps()

12