Home
last modified time | relevance | path

Searched refs:feature (Results 1 – 25 of 911) sorted by relevance

12345678910>>...37

/Linux-v5.15/arch/powerpc/include/asm/
Dcpu_has_feature.h10 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 …]
Dmmu.h231 static __always_inline bool early_mmu_has_feature(unsigned long feature) in early_mmu_has_feature() argument
233 if (MMU_FTRS_ALWAYS & feature) in early_mmu_has_feature()
236 return !!(MMU_FTRS_POSSIBLE & cur_cpu_spec->mmu_features & feature); in early_mmu_has_feature()
248 static __always_inline bool mmu_has_feature(unsigned long feature) in mmu_has_feature() argument
253 BUILD_BUG_ON(!__builtin_constant_p(feature)); in mmu_has_feature()
260 return early_mmu_has_feature(feature); in mmu_has_feature()
264 if (MMU_FTRS_ALWAYS & feature) in mmu_has_feature()
267 if (!(MMU_FTRS_POSSIBLE & feature)) in mmu_has_feature()
270 i = __builtin_ctzl(feature); in mmu_has_feature()
274 static inline void mmu_clear_feature(unsigned long feature) in mmu_clear_feature() argument
[all …]
Dsecurity_features.h27 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()
/Linux-v5.15/drivers/mtd/nand/raw/
Dnand_macronix.c41 u8 feature[ONFI_SUBFEATURE_PARAM_LEN]; in macronix_nand_setup_read_retry() local
48 feature[0] = mode; in macronix_nand_setup_read_retry()
49 return nand_set_features(chip, ONFI_FEATURE_ADDR_READ_RETRY, feature); in macronix_nand_setup_read_retry()
54 u8 feature[ONFI_SUBFEATURE_PARAM_LEN]; in macronix_nand_randomizer_check_enable() local
58 feature); in macronix_nand_randomizer_check_enable()
62 if (feature[0]) in macronix_nand_randomizer_check_enable()
63 return feature[0]; in macronix_nand_randomizer_check_enable()
65 feature[0] = MACRONIX_RANDOMIZER_MODE_ENTER; in macronix_nand_randomizer_check_enable()
67 feature); in macronix_nand_randomizer_check_enable()
72 feature[0] = 0x0; in macronix_nand_randomizer_check_enable()
[all …]
/Linux-v5.15/arch/x86/kernel/cpu/
Dcpuid-deps.c8 unsigned int feature; member
81 static inline void clear_feature(struct cpuinfo_x86 *c, unsigned int feature) in clear_feature() argument
89 clear_cpu_cap(&boot_cpu_data, feature); in clear_feature()
90 set_bit(feature, (unsigned long *)cpu_caps_cleared); in clear_feature()
92 clear_bit(feature, (unsigned long *)c->x86_capability); in clear_feature()
99 static void do_clear_cpu_cap(struct cpuinfo_x86 *c, unsigned int feature) in do_clear_cpu_cap() argument
105 if (WARN_ON(feature >= MAX_FEATURE_BITS)) in do_clear_cpu_cap()
108 clear_feature(c, feature); in do_clear_cpu_cap()
112 __set_bit(feature, disable); in do_clear_cpu_cap()
117 for (d = cpuid_deps; d->feature; d++) { in do_clear_cpu_cap()
[all …]
/Linux-v5.15/arch/x86/include/asm/
Dalternative.h147 #define ALTINSTR_ENTRY(feature, num) \ argument
150 " .word " __stringify(feature) "\n" /* feature bit */ \
159 #define ALTERNATIVE(oldinstr, newinstr, feature) \ argument
162 ALTINSTR_ENTRY(feature, 1) \
180 #define ALTERNATIVE_TERNARY(oldinstr, feature, newinstr_yes, newinstr_no) \ argument
182 newinstr_yes, feature)
209 #define alternative(oldinstr, newinstr, feature) \ argument
210 asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature) : : : "memory")
215 #define alternative_ternary(oldinstr, feature, newinstr_yes, newinstr_no) \ argument
216 asm_inline volatile(ALTERNATIVE_TERNARY(oldinstr, feature, newinstr_yes, newinstr_no) ::: "memory")
[all …]
Dcpu_device_id.h48 .feature = _feature, \
66 #define X86_MATCH_VENDOR_FAM_MODEL_FEATURE(vendor, family, model, feature, data) \ argument
68 X86_STEPPING_ANY, feature, data)
83 #define X86_MATCH_VENDOR_FAM_FEATURE(vendor, family, feature, data) \ argument
85 X86_MODEL_ANY, feature, data)
99 #define X86_MATCH_VENDOR_FEATURE(vendor, feature, data) \ argument
100 X86_MATCH_VENDOR_FAM_FEATURE(vendor, X86_FAMILY_ANY, feature, data)
112 #define X86_MATCH_FEATURE(feature, data) \ argument
113 X86_MATCH_VENDOR_FEATURE(ANY, feature, data)
/Linux-v5.15/drivers/fpga/
Ddfl-fme-main.c162 struct dfl_feature *feature, in fme_hdr_ioctl() argument
216 const struct dfl_feature *feature = drvdata; in thermal_hwmon_attrs_visible() local
222 return fme_thermal_throttle_support(feature->ioaddr) ? 0444 : 0; in thermal_hwmon_attrs_visible()
228 struct dfl_feature *feature = dev_get_drvdata(dev); in thermal_hwmon_read() local
233 v = readq(feature->ioaddr + FME_THERM_RDSENSOR_FMT1); in thermal_hwmon_read()
237 v = readq(feature->ioaddr + FME_THERM_THRESHOLD); in thermal_hwmon_read()
241 v = readq(feature->ioaddr + FME_THERM_THRESHOLD); in thermal_hwmon_read()
245 v = readq(feature->ioaddr + FME_THERM_THRESHOLD); in thermal_hwmon_read()
249 v = readq(feature->ioaddr + FME_THERM_THRESHOLD); in thermal_hwmon_read()
253 v = readq(feature->ioaddr + FME_THERM_THRESHOLD); in thermal_hwmon_read()
[all …]
Ddfl.c352 struct dfl_feature *feature) in dfl_dev_add() argument
381 ddev->feature_id = feature->id; in dfl_dev_add()
382 ddev->revision = feature->revision; in dfl_dev_add()
386 parent_res = &pdev->resource[feature->resource_index]; in dfl_dev_add()
399 if (feature->nr_irqs) { in dfl_dev_add()
400 ddev->irqs = kcalloc(feature->nr_irqs, in dfl_dev_add()
407 for (i = 0; i < feature->nr_irqs; i++) in dfl_dev_add()
408 ddev->irqs[i] = feature->irq_ctx[i].irq; in dfl_dev_add()
410 ddev->num_irqs = feature->nr_irqs; in dfl_dev_add()
428 struct dfl_feature *feature; in dfl_devs_remove() local
[all …]
Ddfl.h338 int (*init)(struct platform_device *pdev, struct dfl_feature *feature);
340 struct dfl_feature *feature);
341 long (*ioctl)(struct platform_device *pdev, struct dfl_feature *feature,
367 #define dfl_fpga_dev_for_each_feature(pdata, feature) \ argument
368 for ((feature) = (pdata)->features; \
369 (feature) < (pdata)->features + (pdata)->num; (feature)++)
375 struct dfl_feature *feature; in dfl_get_feature_by_id() local
377 dfl_fpga_dev_for_each_feature(pdata, feature) in dfl_get_feature_by_id()
378 if (feature->id == id) in dfl_get_feature_by_id()
379 return feature; in dfl_get_feature_by_id()
[all …]
/Linux-v5.15/arch/arm64/include/asm/
Dalternative-macros.h14 #define ALTINSTR_ENTRY(feature) \ argument
17 " .hword " __stringify(feature) "\n" /* feature bit */ \
21 #define ALTINSTR_ENTRY_CB(feature, cb) \ argument
24 " .hword " __stringify(feature) "\n" /* feature bit */ \
44 #define __ALTERNATIVE_CFG(oldinstr, newinstr, feature, cfg_enabled) \ argument
50 ALTINSTR_ENTRY(feature) \
61 #define __ALTERNATIVE_CFG_CB(oldinstr, feature, cfg_enabled, cb) \ argument
67 ALTINSTR_ENTRY_CB(feature, cb) \
73 #define _ALTERNATIVE_CFG(oldinstr, newinstr, feature, cfg, ...) \ argument
74 __ALTERNATIVE_CFG(oldinstr, newinstr, feature, IS_ENABLED(cfg))
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/pm/swsmu/
Dsmu_cmn.c456 struct smu_feature *feature = &smu->smu_feature; in smu_cmn_feature_is_supported() local
466 WARN_ON(feature_id > feature->feature_num); in smu_cmn_feature_is_supported()
468 mutex_lock(&feature->mutex); in smu_cmn_feature_is_supported()
469 ret = test_bit(feature_id, feature->supported); in smu_cmn_feature_is_supported()
470 mutex_unlock(&feature->mutex); in smu_cmn_feature_is_supported()
478 struct smu_feature *feature = &smu->smu_feature; in smu_cmn_feature_is_enabled() local
492 WARN_ON(feature_id > feature->feature_num); in smu_cmn_feature_is_enabled()
494 mutex_lock(&feature->mutex); in smu_cmn_feature_is_enabled()
495 ret = test_bit(feature_id, feature->enabled); in smu_cmn_feature_is_enabled()
496 mutex_unlock(&feature->mutex); in smu_cmn_feature_is_enabled()
[all …]
/Linux-v5.15/drivers/iommu/intel/
Dcap_audit.h67 #define DO_CHECK_FEATURE_MISMATCH(a, b, cap, feature, MASK) \ argument
69 if (cap##_##feature(a) != cap##_##feature(b)) { \
71 pr_info("IOMMU feature %s inconsistent", #feature); \
75 #define CHECK_FEATURE_MISMATCH(a, b, cap, feature, MASK) \ argument
76 DO_CHECK_FEATURE_MISMATCH((a)->cap, (b)->cap, cap, feature, MASK)
78 #define CHECK_FEATURE_MISMATCH_HOTPLUG(b, cap, feature, MASK) \ argument
80 if (cap##_##feature(intel_iommu_##cap##_sanity)) \
82 (b)->cap, cap, feature, MASK); \
93 #define MINIMAL_FEATURE_HOTPLUG(iommu, cap, feature, MASK, mismatch) \ argument
96 (cap##_##feature((iommu)->cap))) \
/Linux-v5.15/Documentation/x86/
Dcpuinfo.rst11 in arch/x86/include/asm/cpufeatures.h. If the kernel cares about a feature
12 or KVM want to expose the feature to a KVM guest, it can and should have
16 If users want to know if a feature is available on a given system, they
19 If such flag represents a hardware feature, it also means that the
25 can explain missing flags: the expected feature failed to enable, the feature
26 is missing in hardware, platform firmware did not enable it, the feature is
28 not support the feature and thus has not enabled it. In general, /proc/cpuinfo
32 How are feature flags created?
37 These feature definitions are organized mirroring the layout of CPUID
40 If a feature is defined with a X86_FEATURE_<name> definition in
[all …]
/Linux-v5.15/tools/perf/
DMakefile.config310 include $(srctree)/tools/build/Makefile.feature
315 ifeq ($(feature-stackprotector-all), 1)
320 ifeq ($(feature-fortify-source), 1)
352 ifeq ($(feature-pthread-attr-setaffinity-np), 1)
356 ifeq ($(feature-pthread-barrier), 1)
362 ifeq ($(feature-bionic), 1)
371 ifeq ($(feature-eventfd), 1)
375 ifeq ($(feature-get_current_dir_name), 1)
379 ifeq ($(feature-gettid), 1)
383 ifeq ($(feature-file-handle), 1)
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/powerpc/
Dibm,powerpc-cpu-features.txt24 Description: Container of CPU feature nodes.
51 compatibility, less the individual feature nodes. For example, an ISA v3.0
66 /cpus/ibm,powerpc-cpu-features/example-feature node bindings
69 Each child node of cpu-features represents a CPU feature / capability.
71 Node: A string describing an architected CPU feature, e.g., "floating-point".
73 Description: A feature or capability supported by the CPUs.
79 Presence of the node indicates the feature is available.
88 First level of the Power ISA that the feature appears in.
105 that can use the feature.
119 feature to lesser privilege levels. If the property does not exist then no
[all …]
/Linux-v5.15/Documentation/hid/
Dhid-sensor.rst70 functions, which get and set each input/feature/output report.
126 This interface is used to set a value for a field in feature report. For example
177 │   │   ├── feature-0-200316
178 │   │   │   ├── feature-0-200316-maximum
179 │   │   │   ├── feature-0-200316-minimum
180 │   │   │   ├── feature-0-200316-name
181 │   │   │   ├── feature-0-200316-size
182 │   │   │   ├── feature-0-200316-unit-expo
183 │   │   │   ├── feature-0-200316-units
184 │   │   │   ├── feature-0-200316-value
[all …]
/Linux-v5.15/Documentation/features/
Darch-support.txt3 arch-support.txt file in each feature directory shows the arch
8 | ok | # feature supported by the architecture
9 |TODO| # feature not yet supported by the architecture
10 | .. | # feature cannot be supported by the hardware
11 | N/A| # feature doesn't apply to the architecture
/Linux-v5.15/include/linux/
Dkvm_para.h8 static inline bool kvm_para_has_feature(unsigned int feature) in kvm_para_has_feature() argument
10 return !!(kvm_arch_para_features() & (1UL << feature)); in kvm_para_has_feature()
13 static inline bool kvm_para_has_hint(unsigned int feature) in kvm_para_has_hint() argument
15 return !!(kvm_arch_para_hints() & (1UL << feature)); in kvm_para_has_hint()
/Linux-v5.15/Documentation/ABI/testing/
Dsysfs-block-device34 - If the device does not support the unload heads feature,
41 ATA standard, but support the unload feature nonetheless.
44 does support the unload feature, then you can tell the kernel
59 command queueing) priority support. By default this feature is
61 priority feature, writing "1" to this file results in an error
72 (HBA) implementing support for the SATA NCQ priority feature.
74 support for the SATA NCQ priority feature, regardless of the
75 device support for this feature (see sas_ncq_prio_supported).
84 command queueing) priority feature.
94 (HBA) implementing support for the SATA NCQ priority feature.
[all …]
Dsysfs-devices-mmc5 Enhanced area is a new feature defined in eMMC4.4 standard.
6 eMMC4.4 or later card can support such feature. This kind of
7 area can help to improve the card performance. If the feature
16 Enhanced area is a new feature defined in eMMC4.4 standard.
17 eMMC4.4 or later card can support such feature. This kind of
18 area can help to improve the card performance. If the feature
/Linux-v5.15/tools/objtool/
Dspecial.c25 unsigned char feature; /* ALTERNATIVE macro CPU feature */ member
38 .feature = ALT_FEATURE_OFFSET,
57 void __weak arch_handle_alternative(unsigned short feature, struct special_alt *alt) in arch_handle_alternative() argument
87 if (entry->feature) { in get_alt_entry()
88 unsigned short feature; in get_alt_entry() local
90 feature = bswap_if_needed(*(unsigned short *)(sec->data->d_buf + in get_alt_entry()
92 entry->feature)); in get_alt_entry()
93 arch_handle_alternative(feature, alt); in get_alt_entry()
/Linux-v5.15/arch/arm64/kvm/
Dhypercalls.c16 u32 feature; in kvm_ptp_get_time() local
37 feature = smccc_get_arg1(vcpu); in kvm_ptp_get_time()
38 switch (feature) { in kvm_ptp_get_time()
65 u32 feature; in kvm_hvc_call_handler() local
73 feature = smccc_get_arg1(vcpu); in kvm_hvc_call_handler()
74 switch (feature) { in kvm_hvc_call_handler()
/Linux-v5.15/tools/build/
DMakefile.feature2 feature_dir := $(srctree)/tools/build/feature
5 OUTPUT_FEATURES = $(OUTPUT)feature/
11feature-$(1) := $(shell $(MAKE) OUTPUT=$(OUTPUT_FEATURES) CC="$(CC)" CXX="$(CXX)" CFLAGS="$(EXTRA_…
16 feature-$(1) := 1
155 ifeq ($(feature-all), 1)
178 ifeq ($(feature-$(1)), 1)
194 feature_assign = feature-$(1)=$(feature-$(1))
230 ifneq ($(feature-$(1)), 1)
/Linux-v5.15/tools/bpf/bpftool/
DMakefile95 include $(srctree)/tools/build/Makefile.feature
101 ifeq ($(feature-disassembler-four-args), 1)
105 ifeq ($(feature-reallocarray), 0)
111 ifeq ($(feature-libcap), 1)
124 ifeq ($(feature-libbfd),1)
126 else ifeq ($(feature-libbfd-liberty),1)
128 else ifeq ($(feature-libbfd-liberty-z),1)
152 ifeq ($(feature-clang-bpf-co-re),1)
189 $(OUTPUT)feature.o: | zdep
204 feature-detect-clean:
[all …]

12345678910>>...37