/kernel/linux/linux-5.10/tools/testing/selftests/arm64/pauth/ |
H A D | exec_target.c | 13 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 D | pac.c | 26 unsigned long hwcaps = getauxval(AT_HWCAP); \ 28 if (!(hwcaps & HWCAP_PACA)) \ 33 unsigned long hwcaps = getauxval(AT_HWCAP); \ 35 if (!(hwcaps & HWCAP_PACG)) \ 258 unsigned long hwcaps = getauxval(AT_HWCAP); in TEST() local 262 if (!(hwcaps & HWCAP_PACG)) { in TEST() 301 unsigned long hwcaps = getauxval(AT_HWCAP); in TEST() local 305 if (!(hwcaps & HWCAP_PACG)) { in TEST()
|
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/pauth/ |
H A D | exec_target.c | 13 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 D | pac.c | 26 unsigned long hwcaps = getauxval(AT_HWCAP); \ 28 if (!(hwcaps & HWCAP_PACA)) \ 33 unsigned long hwcaps = getauxval(AT_HWCAP); \ 35 if (!(hwcaps & HWCAP_PACG)) \ 258 unsigned long hwcaps = getauxval(AT_HWCAP); in TEST() local 262 if (!(hwcaps & HWCAP_PACG)) { in TEST() 301 unsigned long hwcaps = getauxval(AT_HWCAP); in TEST() local 305 if (!(hwcaps & HWCAP_PACG)) { in TEST()
|
/kernel/linux/linux-6.6/drivers/mtd/spi-nor/ |
H A D | debugfs.c | 188 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 in spi_nor_capabilities_show() [all...] |
H A D | core.c | 2237 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() 2367 * @hwcaps: pointer to resulting capabilities after adjusting 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 in spi_nor_spimem_adjust_hwcaps() 2629 spi_nor_default_setup(struct spi_nor *nor, const struct spi_nor_hwcaps *hwcaps) spi_nor_default_setup() argument 2733 spi_nor_setup(struct spi_nor *nor, const struct spi_nor_hwcaps *hwcaps) spi_nor_setup() argument 3465 spi_nor_scan(struct spi_nor *nor, const char *name, const struct spi_nor_hwcaps *hwcaps) spi_nor_scan() argument 3628 const struct spi_nor_hwcaps hwcaps = { .mask = SNOR_HWCAPS_ALL }; spi_nor_probe() local [all...] |
H A D | sfdp.c | 50 /* The Fast Read x-y-z hardware capability in params->hwcaps.mask. */ 51 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 in spi_nor_parse_4bait() [all...] |
H A D | core.h | 358 * @hwcaps: describes the read and page program hardware 395 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 D | xilinx.c | 117 const struct spi_nor_hwcaps *hwcaps) in xilinx_nor_setup() 116 xilinx_nor_setup(struct spi_nor *nor, const struct spi_nor_hwcaps *hwcaps) xilinx_nor_setup() argument
|
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
H A D | setup_64.c | 395 static const char *hwcaps[] = { variable 419 for (i = 0; i < ARRAY_SIZE(hwcaps); i++) { in cpucap_info() 421 if (hwcaps[i] && (caps & bit)) { in cpucap_info() 423 printed ? "," : "", hwcaps[i]); in cpucap_info() 473 for (i = 0; i < ARRAY_SIZE(hwcaps); i++) { in report_hwcaps() 475 if (hwcaps[i] && (caps & bit)) in report_hwcaps() 476 report_one_hwcap(&printed, hwcaps[i]); in report_hwcaps() 507 for (i = 0; i < ARRAY_SIZE(hwcaps); i++) { in mdesc_cpu_hwcap_list() 510 if (hwcaps[i] && !strcmp(prop, hwcaps[ in mdesc_cpu_hwcap_list() [all...] |
/kernel/linux/linux-6.6/arch/sparc/kernel/ |
H A D | setup_64.c | 393 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[ in mdesc_cpu_hwcap_list() [all...] |
/kernel/linux/linux-5.10/drivers/mtd/spi-nor/ |
H A D | sfdp.c | 38 /* The Fast Read x-y-z hardware capability in params->hwcaps.mask. */ 39 u32 hwcaps; member 119 u32 hwcaps; member 496 params->hwcaps.mask &= ~rd->hwcaps; in spi_nor_parse_bfpt() 500 params->hwcaps.mask |= rd->hwcaps; in spi_nor_parse_bfpt() 501 cmd = spi_nor_hwcaps_read2cmd(rd->hwcaps); in spi_nor_parse_bfpt() 986 discard_hwcaps |= read->hwcaps; in spi_nor_parse_4bait() 987 if ((params->hwcaps in spi_nor_parse_4bait() [all...] |
H A D | core.c | 2241 static int spi_nor_hwcaps2cmd(u32 hwcaps, const int table[][2], size_t size) in spi_nor_hwcaps2cmd() argument 2246 if (table[i][0] == (int)hwcaps) in spi_nor_hwcaps2cmd() 2252 int spi_nor_hwcaps_read2cmd(u32 hwcaps) in spi_nor_hwcaps_read2cmd() argument 2272 return spi_nor_hwcaps2cmd(hwcaps, hwcaps_read2cmd, in spi_nor_hwcaps_read2cmd() 2276 static int spi_nor_hwcaps_pp2cmd(u32 hwcaps) in spi_nor_hwcaps_pp2cmd() argument 2288 return spi_nor_hwcaps2cmd(hwcaps, hwcaps_pp2cmd, in spi_nor_hwcaps_pp2cmd() 2376 * @hwcaps: pointer to resulting capabilities after adjusting 2380 spi_nor_spimem_adjust_hwcaps(struct spi_nor *nor, u32 *hwcaps) in spi_nor_spimem_adjust_hwcaps() argument 2386 *hwcaps &= ~SNOR_HWCAPS_DTR; in spi_nor_spimem_adjust_hwcaps() 2389 *hwcaps in spi_nor_spimem_adjust_hwcaps() 2628 spi_nor_default_setup(struct spi_nor *nor, const struct spi_nor_hwcaps *hwcaps) spi_nor_default_setup() argument 2689 spi_nor_setup(struct spi_nor *nor, const struct spi_nor_hwcaps *hwcaps) spi_nor_setup() argument 3141 spi_nor_scan(struct spi_nor *nor, const char *name, const struct spi_nor_hwcaps *hwcaps) spi_nor_scan() argument 3356 const struct spi_nor_hwcaps hwcaps = { .mask = SNOR_HWCAPS_ALL }; spi_nor_probe() local [all...] |
H A D | core.h | 193 * @hwcaps: describes the read and page program hardware 216 struct spi_nor_hwcaps hwcaps; member 225 int (*setup)(struct spi_nor *nor, const struct spi_nor_hwcaps *hwcaps); 420 int spi_nor_hwcaps_read2cmd(u32 hwcaps);
|
H A D | xilinx.c | 41 const struct spi_nor_hwcaps *hwcaps) in xilinx_nor_setup() 40 xilinx_nor_setup(struct spi_nor *nor, const struct spi_nor_hwcaps *hwcaps) xilinx_nor_setup() argument
|
/kernel/linux/linux-5.10/drivers/net/hyperv/ |
H A D | rndis_filter.c | 588 struct ndis_offload *hwcaps; in rndis_filter_query_device() local 606 hwcaps = (struct ndis_offload *) in rndis_filter_query_device() 609 hwcaps->header.type = NDIS_OBJECT_TYPE_OFFLOAD; in rndis_filter_query_device() 610 hwcaps->header.revision = ndis_rev; in rndis_filter_query_device() 611 hwcaps->header.size = size; in rndis_filter_query_device() 1251 struct ndis_offload hwcaps; in rndis_netdev_set_hwcaps() local 1257 ret = rndis_query_hwcaps(rndis_device, nvdev, &hwcaps); in rndis_netdev_set_hwcaps() 1276 if ((hwcaps.csum.ip4_txcsum & NDIS_TXCSUM_ALL_TCP4) == NDIS_TXCSUM_ALL_TCP4) { in rndis_netdev_set_hwcaps() 1283 if (hwcaps.lsov2.ip4_encap & NDIS_OFFLOAD_ENCAP_8023) { in rndis_netdev_set_hwcaps() 1287 if (hwcaps in rndis_netdev_set_hwcaps() [all...] |
/kernel/linux/linux-6.6/arch/arm/mm/ |
H A D | proc-v7m.S | 182 .macro __v7m_proc name, initfunc, cache_fns = nop_cache_fns, hwcaps = 0, proc_fns = v7m_processor_functions 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, proc_fns = cm7_processor_functions 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, proc_fns = cm7_processor_functions 233 __v7m_proc __v7m_cm4_proc_info, __v7m_setup, hwcaps = HWCAP_EDSP
|
/kernel/linux/linux-6.6/drivers/net/hyperv/ |
H A D | rndis_filter.c | 671 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 in rndis_netdev_set_hwcaps() [all...] |
/kernel/linux/linux-5.10/arch/arm/mm/ |
H A D | proc-v7m.S | 182 .macro __v7m_proc name, initfunc, cache_fns = nop_cache_fns, hwcaps = 0, proc_fns = v7m_processor_functions 188 .long HWCAP_HALF | HWCAP_THUMB | HWCAP_FAST_MULT | \hwcaps 203 __v7m_proc __v7m_cm7_proc_info, __v7m_cm7_setup, hwcaps = HWCAP_EDSP, cache_fns = v7m_cache_fns, proc_fns = cm7_processor_functions 213 __v7m_proc __v7m_cm4_proc_info, __v7m_setup, hwcaps = HWCAP_EDSP
|
/kernel/linux/linux-6.6/tools/testing/selftests/arm64/abi/ |
H A D | hwcap.c | 301 } 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()
|
/kernel/linux/linux-5.10/drivers/mtd/spi-nor/controllers/ |
H A D | nxp-spifi.c | 283 struct spi_nor_hwcaps hwcaps = { in nxp_spifi_setup_flash() local 321 hwcaps.mask |= SNOR_HWCAPS_READ_1_1_2; in nxp_spifi_setup_flash() 324 hwcaps.mask |= SNOR_HWCAPS_READ_1_1_4; in nxp_spifi_setup_flash() 359 ret = spi_nor_scan(&spifi->nor, NULL, &hwcaps); in nxp_spifi_setup_flash()
|
H A D | hisi-sfc.c | 329 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()
|
/kernel/linux/linux-6.6/drivers/mtd/spi-nor/controllers/ |
H A D | nxp-spifi.c | 282 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 D | hisi-sfc.c | 329 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()
|
/kernel/linux/linux-5.10/arch/arm64/kernel/ |
H A D | cpufeature.c | 23 * have in the system. These may be in the form of traditional "hwcaps" 885 * Initialize the indirect array of CPU hwcaps capabilities pointers in init_cpu_features() 2379 static void __init setup_elf_hwcaps(const struct arm64_cpu_capabilities *hwcaps) in setup_elf_hwcaps() argument 2383 for (; hwcaps->matches; hwcaps++) in setup_elf_hwcaps() 2384 if (hwcaps->matches(hwcaps, cpucap_default_scope(hwcaps))) in setup_elf_hwcaps() 2385 cap_set_elf_hwcap(hwcaps); in setup_elf_hwcaps()
|