/arch/powerpc/include/asm/ |
D | cpu_has_feature.h | 10 static __always_inline bool early_cpu_has_feature(unsigned long feature) in early_cpu_has_feature() argument 12 return !!((CPU_FTRS_ALWAYS & feature) || in early_cpu_has_feature() 13 (CPU_FTRS_POSSIBLE & cur_cpu_spec->cpu_features & feature)); in early_cpu_has_feature() 23 static __always_inline bool cpu_has_feature(unsigned long feature) in cpu_has_feature() argument 28 BUILD_BUG_ON(!__builtin_constant_p(feature)); in cpu_has_feature() 35 return early_cpu_has_feature(feature); in cpu_has_feature() 39 if (CPU_FTRS_ALWAYS & feature) in cpu_has_feature() 42 if (!(CPU_FTRS_POSSIBLE & feature)) in cpu_has_feature() 45 i = __builtin_ctzl(feature); in cpu_has_feature() 49 static __always_inline bool cpu_has_feature(unsigned long feature) in cpu_has_feature() argument [all …]
|
D | mmu.h | 227 static __always_inline bool early_mmu_has_feature(unsigned long feature) in early_mmu_has_feature() argument 229 if (MMU_FTRS_ALWAYS & feature) in early_mmu_has_feature() 232 return !!(MMU_FTRS_POSSIBLE & cur_cpu_spec->mmu_features & feature); in early_mmu_has_feature() 244 static __always_inline bool mmu_has_feature(unsigned long feature) in mmu_has_feature() argument 249 BUILD_BUG_ON(!__builtin_constant_p(feature)); in mmu_has_feature() 256 return early_mmu_has_feature(feature); in mmu_has_feature() 260 if (MMU_FTRS_ALWAYS & feature) in mmu_has_feature() 263 if (!(MMU_FTRS_POSSIBLE & feature)) in mmu_has_feature() 266 i = __builtin_ctzl(feature); in mmu_has_feature() 270 static inline void mmu_clear_feature(unsigned long feature) in mmu_clear_feature() argument [all …]
|
D | security_features.h | 27 static inline void security_ftr_set(u64 feature) in security_ftr_set() argument 29 powerpc_security_features |= feature; in security_ftr_set() 32 static inline void security_ftr_clear(u64 feature) in security_ftr_clear() argument 34 powerpc_security_features &= ~feature; in security_ftr_clear() 37 static inline bool security_ftr_enabled(u64 feature) in security_ftr_enabled() argument 39 return !!(powerpc_security_features & feature); in security_ftr_enabled()
|
D | firmware.h | 130 #define firmware_has_feature(feature) \ argument 131 ((FW_FEATURE_ALWAYS & (feature)) || \ 132 (FW_FEATURE_POSSIBLE & powerpc_firmware_features & (feature)))
|
/arch/x86/kernel/cpu/ |
D | cpuid-deps.c | 8 unsigned int feature; member 88 static inline void clear_feature(struct cpuinfo_x86 *c, unsigned int feature) in clear_feature() argument 96 clear_cpu_cap(&boot_cpu_data, feature); in clear_feature() 97 set_bit(feature, (unsigned long *)cpu_caps_cleared); in clear_feature() 99 clear_bit(feature, (unsigned long *)c->x86_capability); in clear_feature() 106 static void do_clear_cpu_cap(struct cpuinfo_x86 *c, unsigned int feature) in do_clear_cpu_cap() argument 112 if (WARN_ON(feature >= MAX_FEATURE_BITS)) in do_clear_cpu_cap() 115 clear_feature(c, feature); in do_clear_cpu_cap() 119 __set_bit(feature, disable); in do_clear_cpu_cap() 124 for (d = cpuid_deps; d->feature; d++) { in do_clear_cpu_cap() [all …]
|
D | scattered.c | 14 u16 feature; member 63 for (cb = cpuid_bits; cb->feature; cb++) { in init_scattered_cpuid_features() 76 set_cpu_cap(c, cb->feature); in init_scattered_cpuid_features()
|
D | match.c | 52 if (m->feature != X86_FEATURE_ANY && !cpu_has(c, m->feature)) in x86_match_cpu()
|
/arch/x86/include/asm/ |
D | cpu_device_id.h | 84 .feature = _feature, \ 95 .feature = _feature, \ 114 #define X86_MATCH_VENDOR_FAM_MODEL_FEATURE(vendor, family, model, feature, data) \ argument 116 X86_STEPPING_ANY, feature, data) 131 #define X86_MATCH_VENDOR_FAM_FEATURE(vendor, family, feature, data) \ argument 133 X86_MODEL_ANY, feature, data) 147 #define X86_MATCH_VENDOR_FEATURE(vendor, feature, data) \ argument 148 X86_MATCH_VENDOR_FAM_FEATURE(vendor, X86_FAMILY_ANY, feature, data) 160 #define X86_MATCH_FEATURE(feature, data) \ argument 161 X86_MATCH_VENDOR_FEATURE(ANY, feature, data) [all …]
|
D | nospec-branch.h | 529 void alternative_msr_write(unsigned int msr, u64 val, unsigned int feature) in alternative_msr_write() argument 531 asm volatile(ALTERNATIVE("", "wrmsr", %c[feature]) in alternative_msr_write() 535 [feature] "i" (feature) in alternative_msr_write()
|
/arch/loongarch/include/asm/ |
D | alternative.h | 15 u16 feature; /* feature bit set for replacement */ member 60 #define ALTINSTR_ENTRY(feature, num) \ argument 63 " .short " __stringify(feature) "\n" /* feature bit */ \ 67 #define ALTINSTR_REPLACEMENT(newinstr, feature, num) /* replacement */ \ argument 71 #define ALTERNATIVE(oldinstr, newinstr, feature) \ argument 74 ALTINSTR_ENTRY(feature, 1) \ 77 ALTINSTR_REPLACEMENT(newinstr, feature, 1) \ 103 #define alternative(oldinstr, newinstr, feature) \ argument 104 (asm volatile (ALTERNATIVE(oldinstr, newinstr, feature) : : : "memory"))
|
D | alternative-asm.h | 15 .macro altinstruction_entry orig alt feature orig_len alt_len 18 .short \feature 29 .macro ALTERNATIVE oldinstr, newinstr, feature 37 altinstruction_entry 140b, 143f, \feature, 142b-140b, 144f-143f
|
/arch/s390/kernel/ |
D | cpufeature.c | 31 struct s390_cpu_feature *feature; in cpu_have_feature() local 35 feature = &s390_cpu_features[num]; in cpu_have_feature() 36 switch (feature->type) { in cpu_have_feature() 38 return !!(elf_hwcap & BIT(feature->num)); in cpu_have_feature() 40 return test_facility(feature->num); in cpu_have_feature()
|
/arch/s390/include/asm/ |
D | alternative-asm.h | 13 .macro alt_entry orig_start, orig_end, alt_start, alt_end, feature 16 .word \feature 27 .macro ALTERNATIVE oldinstr, newinstr, feature 33 alt_entry 772b, 773b, 770b, 771b, \feature
|
D | cpufeature.h | 19 #define cpu_feature(feature) (feature) argument
|
D | alternative.h | 103 #define alternative_input(oldinstr, newinstr, feature, input...) \ argument 104 asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) \
|
/arch/arm/include/asm/ |
D | cputype.h | 334 int feature = (features >> field) & 15; in cpuid_feature_extract_field() local 337 if (feature > 7) in cpuid_feature_extract_field() 338 feature -= 16; in cpuid_feature_extract_field() 340 return feature; in cpuid_feature_extract_field()
|
/arch/powerpc/platforms/pseries/ |
D | firmware.c | 120 unsigned int feature; member 140 index = OV5_INDX(vec5_fw_features_table[i].feature); in fw_vec5_feature_init() 141 feat = OV5_FEAT(vec5_fw_features_table[i].feature); in fw_vec5_feature_init()
|
/arch/powerpc/kernel/ |
D | vdso.c | 260 VDSO_DO_FIXUPS(feature, cur_cpu_spec->cpu_features, 64, ftr_fixup); in vdso_fixup_features() 261 VDSO_DO_FIXUPS(feature, cur_cpu_spec->mmu_features, 64, mmu_ftr_fixup); in vdso_fixup_features() 262 VDSO_DO_FIXUPS(feature, powerpc_firmware_features, 64, fw_ftr_fixup); in vdso_fixup_features() 267 VDSO_DO_FIXUPS(feature, cur_cpu_spec->cpu_features, 32, ftr_fixup); in vdso_fixup_features() 268 VDSO_DO_FIXUPS(feature, cur_cpu_spec->mmu_features, 32, mmu_ftr_fixup); in vdso_fixup_features() 270 VDSO_DO_FIXUPS(feature, powerpc_firmware_features, 32, fw_ftr_fixup); in vdso_fixup_features()
|
/arch/mips/include/asm/octeon/ |
D | octeon-feature.h | 117 static inline bool octeon_has_feature(enum octeon_feature feature) in octeon_has_feature() argument 119 switch (feature) { in octeon_has_feature()
|
/arch/arm64/kvm/ |
D | hypercalls.c | 32 u32 feature; in kvm_ptp_get_time() local 53 feature = smccc_get_arg1(vcpu); in kvm_ptp_get_time() 54 switch (feature) { in kvm_ptp_get_time() 272 u32 feature; in kvm_smccc_call_handler() local 295 feature = smccc_get_arg1(vcpu); in kvm_smccc_call_handler() 296 switch (feature) { in kvm_smccc_call_handler()
|
D | pvtime.c | 37 u32 feature = smccc_get_arg1(vcpu); in kvm_hypercall_pv_features() local 40 switch (feature) { in kvm_hypercall_pv_features()
|
/arch/powerpc/sysdev/ |
D | fsl_msi.c | 167 if (msi_data->feature & MSI_HW_ERRATA_ENDIAN) in fsl_compose_msi_msg() 195 if (msi_data->feature & MSI_HW_ERRATA_ENDIAN) in fsl_setup_msi_irqs() 282 switch (msi_data->feature & FSL_PIC_IP_MASK) { in fsl_msi_cascade() 341 if ((msi->feature & FSL_PIC_IP_MASK) != FSL_PIC_IP_VMPIC) in fsl_of_msi_remove() 461 msi->feature = features->fsl_pic_ip; in fsl_of_msi_probe() 466 msi->feature |= MSI_HW_ERRATA_ENDIAN; in fsl_of_msi_probe()
|
D | fsl_msi.h | 38 u32 feature; member
|
/arch/powerpc/lib/ |
D | Makefile | 30 obj-y += code-patching.o feature-fixups.o pmem.o 76 obj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o
|
/arch/loongarch/kernel/ |
D | alternative.c | 213 if (!cpu_has(a->feature)) { in apply_alternatives() 215 a->feature, instr, a->instrlen, in apply_alternatives() 222 a->feature, instr, a->instrlen, in apply_alternatives()
|