Home
last modified time | relevance | path

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

12345678910>>...48

/linux/drivers/platform/x86/intel/pmt/
H A Ddiscovery.c97 struct feature { struct
111 struct feature feature[]; argument
117 #define to_pmt_feature(x) container_of(x, struct feature, kobj)
125 struct feature *feature = to_pmt_feature(kobj); in caps_show() local
127 u32 caps = feature->table.caps.caps; in caps_show()
130 switch (feature->id) { in caps_show()
180 static struct watcher *get_watcher(struct feature *feature) in get_watcher() argument
182 switch (feature_layout[feature->id]) { in get_watcher()
184 return &feature->table.rmid.watcher; in get_watcher()
186 return &feature->table.watcher; in get_watcher()
[all …]
/linux/arch/riscv/kvm/
H A Dvcpu_sbi_fwft.c75 static bool kvm_fwft_is_defined_feature(enum sbi_fwft_feature_t feature) in kvm_fwft_is_defined_feature() argument
80 if (kvm_fwft_defined_features[i] == feature) in kvm_fwft_is_defined_feature()
243 const struct kvm_sbi_fwft_feature *feature; in kvm_sbi_fwft_regnum_to_feature() local
247 feature = &features[i]; in kvm_sbi_fwft_regnum_to_feature()
248 if (feature->first_reg_num <= reg_num && reg_num < (feature->first_reg_num + 3)) in kvm_sbi_fwft_regnum_to_feature()
249 return feature; in kvm_sbi_fwft_regnum_to_feature()
256 kvm_sbi_fwft_get_config(struct kvm_vcpu *vcpu, enum sbi_fwft_feature_t feature) in kvm_sbi_fwft_get_config() argument
262 if (fwft->configs[i].feature->id == feature) in kvm_sbi_fwft_get_config()
269 static int kvm_fwft_get_feature(struct kvm_vcpu *vcpu, u32 feature, in kvm_fwft_get_feature() argument
274 tconf = kvm_sbi_fwft_get_config(vcpu, feature); in kvm_fwft_get_feature()
[all …]
/linux/arch/x86/kernel/cpu/
H A Dcpuid-deps.c8 unsigned int feature; member
95 static inline void clear_feature(struct cpuinfo_x86 *c, unsigned int feature) in clear_feature() argument
103 clear_cpu_cap(&boot_cpu_data, feature); in clear_feature()
104 set_bit(feature, (unsigned long *)cpu_caps_cleared); in clear_feature()
106 clear_bit(feature, (unsigned long *)c->x86_capability); in clear_feature()
113 static void do_clear_cpu_cap(struct cpuinfo_x86 *c, unsigned int feature) in do_clear_cpu_cap() argument
119 if (WARN_ON(feature >= MAX_FEATURE_BITS)) in do_clear_cpu_cap()
122 if (boot_cpu_has(feature)) in do_clear_cpu_cap()
125 clear_feature(c, feature); in do_clear_cpu_cap()
129 __set_bit(feature, disable); in do_clear_cpu_cap()
[all …]
/linux/arch/powerpc/include/asm/
H A 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
27 BUILD_BUG_ON(!__builtin_constant_p(feature)); in cpu_has_feature()
28 BUILD_BUG_ON(__builtin_popcountl(feature) > 1); in cpu_has_feature()
34 return early_cpu_has_feature(feature); in cpu_has_feature()
38 if (CPU_FTRS_ALWAYS & feature) in cpu_has_feature()
41 if (!(CPU_FTRS_POSSIBLE & feature)) in cpu_has_feature()
44 i = __builtin_ctzl(feature); in cpu_has_feature()
[all …]
H A Dmmu.h221 static __always_inline bool early_mmu_has_feature(unsigned long feature) in early_mmu_has_feature() argument
223 if (MMU_FTRS_ALWAYS & feature) in early_mmu_has_feature()
226 return !!(MMU_FTRS_POSSIBLE & cur_cpu_spec->mmu_features & feature); in early_mmu_has_feature()
238 static __always_inline bool mmu_has_feature(unsigned long feature) in mmu_has_feature() argument
242 BUILD_BUG_ON(!__builtin_constant_p(feature)); in mmu_has_feature()
243 BUILD_BUG_ON(__builtin_popcountl(feature) > 1); in mmu_has_feature()
249 return early_mmu_has_feature(feature); in mmu_has_feature()
253 if (MMU_FTRS_ALWAYS & feature) in mmu_has_feature()
256 if (!(MMU_FTRS_POSSIBLE & feature)) in mmu_has_feature()
259 i = __builtin_ctzl(feature); in mmu_has_feature()
[all …]
H A 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/arch/s390/include/asm/
H A Dalternative.h46 #define ALT_FEATURE(feature) (ALT_CTX_EARLY << ALT_CTX_SHIFT | \ argument
48 (feature) << ALT_DATA_SHIFT)
64 u32 feature; /* feature required for replacement */ member
118 #define ALTINSTR_ENTRY(feature, num) \ argument
121 "\t.long " __stringify(feature) "\n" /* feature */ \
131 #define ALTERNATIVE(oldinstr, altinstr, feature) \ argument
137 ALTINSTR_ENTRY(feature, 1) \
163 #define alternative(oldinstr, altinstr, feature) \ argument
164 asm_inline volatile(ALTERNATIVE(oldinstr, altinstr, feature) : : : "memory")
171 #define alternative_input(oldinstr, newinstr, feature, input...) \ argument
[all …]
/linux/tools/perf/Documentation/
H A Dperf-check.txt12 'perf check' {feature <feature_list>} [<options>]
19 If the subcommand 'feature' is used, then status of feature is printed
22 Also, 'perf check feature' returns with exit status 0 if the feature
28 feature::
30 Print whether feature(s) is compiled-in or not, and also returns with an
31 exit status of 0, if passed feature(s) are compiled-in, else 1.
33 It expects a feature list as an argument. There can be a single feature
38 The feature names/macros are case-insensitive.
41 perf check feature libtraceevent
42 perf check feature HAVE_LIBTRACEEVENT
[all …]
/linux/rust/kernel/
H A Dlib.rs20 #![feature(generic_nonzero)]
21 #![feature(inline_const)]
22 #![feature(pointer_is_aligned)]
25 #![feature(lint_reasons)]
28 #![feature(raw_ref_op)]
31 #![feature(const_maybe_uninit_as_mut_ptr)]
32 #![feature(const_mut_refs)]
33 #![feature(const_option)]
34 #![feature(const_ptr_write)]
35 #![feature(const_refs_to_cell)]
[all …]
/linux/drivers/fpga/
H A Ddfl.c343 struct dfl_feature *feature) in dfl_dev_add() argument
372 ddev->feature_id = feature->id; in dfl_dev_add()
373 ddev->revision = feature->revision; in dfl_dev_add()
374 ddev->dfh_version = feature->dfh_version; in dfl_dev_add()
376 if (feature->param_size) { in dfl_dev_add()
377 ddev->params = kmemdup(feature->params, feature->param_size, GFP_KERNEL); in dfl_dev_add()
382 ddev->param_size = feature->param_size; 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()
[all …]
H A Ddfl-fme-main.c169 struct dfl_feature *feature, in fme_hdr_ioctl() argument
223 const struct dfl_feature *feature = drvdata; in thermal_hwmon_attrs_visible() local
229 return fme_thermal_throttle_support(feature->ioaddr) ? 0444 : 0; in thermal_hwmon_attrs_visible()
235 struct dfl_feature *feature = dev_get_drvdata(dev); in thermal_hwmon_read() local
240 v = readq(feature->ioaddr + FME_THERM_RDSENSOR_FMT1); in thermal_hwmon_read()
244 v = readq(feature->ioaddr + FME_THERM_THRESHOLD); in thermal_hwmon_read()
248 v = readq(feature->ioaddr + FME_THERM_THRESHOLD); in thermal_hwmon_read()
252 v = readq(feature->ioaddr + FME_THERM_THRESHOLD); in thermal_hwmon_read()
256 v = readq(feature->ioaddr + FME_THERM_THRESHOLD); in thermal_hwmon_read()
260 v = readq(feature->ioaddr + FME_THERM_THRESHOLD); in thermal_hwmon_read()
[all …]
H A Ddfl.h404 int (*init)(struct platform_device *pdev, struct dfl_feature *feature);
406 struct dfl_feature *feature);
407 long (*ioctl)(struct platform_device *pdev, struct dfl_feature *feature,
433 #define dfl_fpga_dev_for_each_feature(fdata, feature) \ argument
434 for ((feature) = (fdata)->features; \
435 (feature) < (fdata)->features + (fdata)->num; (feature)++)
440 struct dfl_feature *feature; in dfl_get_feature_by_id() local
442 dfl_fpga_dev_for_each_feature(fdata, feature) in dfl_get_feature_by_id()
443 if (feature->id == id) in dfl_get_feature_by_id()
444 return feature; in dfl_get_feature_by_id()
[all …]
/linux/drivers/mtd/nand/raw/
H A Dnand_macronix.c52 u8 feature[ONFI_SUBFEATURE_PARAM_LEN]; in macronix_nand_setup_read_retry() local
59 feature[0] = mode; in macronix_nand_setup_read_retry()
60 return nand_set_features(chip, ONFI_FEATURE_ADDR_READ_RETRY, feature); in macronix_nand_setup_read_retry()
65 u8 feature[ONFI_SUBFEATURE_PARAM_LEN]; in macronix_nand_randomizer_check_enable() local
69 feature); in macronix_nand_randomizer_check_enable()
73 if (feature[0]) in macronix_nand_randomizer_check_enable()
74 return feature[0]; in macronix_nand_randomizer_check_enable()
76 feature[0] = MACRONIX_RANDOMIZER_MODE_ENTER; in macronix_nand_randomizer_check_enable()
78 feature); in macronix_nand_randomizer_check_enable()
83 feature[0] = 0x0; in macronix_nand_randomizer_check_enable()
[all …]
/linux/tools/perf/
H A Dbuiltin-check.c82 void feature_status__printf(const struct feature_status *feature) in feature_status__printf() argument
84 const char *name = feature->name, *macro = feature->macro, in feature_status__printf()
85 *status = feature->is_builtin ? "on" : "OFF"; in feature_status__printf()
91 if (!feature->is_builtin && feature->tip) in feature_status__printf()
92 printf(" ( tip: %s )", feature->tip); in feature_status__printf()
104 static int has_support(const char *feature) in has_support() argument
107 if ((strcasecmp(feature, supported_features[i].name) == 0) || in has_support()
108 (strcasecmp(feature, supported_features[i].macro) == 0)) { in has_support()
116 …ture '%s', please use 'perf version --build-options' to see which ones are available.\n", feature); in has_support()
/linux/tools/testing/selftests/net/
H A Dnetdevice.sh135 feature="${FEATURE%:*}"
137 ethtool --offload "$netdev" "$feature" off
139 echo "PASS: $netdev: Turned off feature: $feature"
142 "$feature"
145 ethtool --offload "$netdev" "$feature" on
147 echo "PASS: $netdev: Turned on feature: $feature"
150 "$feature"
154 ethtool --offload "$netdev" "$feature" "$VALUE"
156 echo "PASS: $netdev: Restore feature $feature" \
160 "$feature to initial state $VALUE"
/linux/Documentation/arch/x86/
H A Dcpuinfo.rst10 The list of feature flags in /proc/cpuinfo is not complete and
11 represents an ill-fated attempt from long time ago to put feature flags
14 However, the number of feature flags is growing with each CPU generation,
17 What is more, those feature flags do not even need to be in that file
21 And even if it doesn't show a particular feature flag - although the CPU
24 feature and figure out if it is supported or not, regardless of whether
32 kernel has *enabled* and *supports*. As in: the CPUID feature flag is
38 So, if users want to know if a feature is available on a given system,
42 * the kernel knows about the feature enough to have an X86_FEATURE bit
47 * if the flag represents a hardware feature the hardware supports it.
[all …]
/linux/arch/loongarch/include/asm/
H A Dalternative.h15 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"))
/linux/Documentation/ABI/testing/
H A 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 …]
H A Dsysfs-class-intel_pmt-features10 Each directory corresponds to a PMT feature and contains
27 Common Files (Present in all feature directories):
31 - Lists available capabilities for this feature.
35 - Lists GUIDs associated with this feature.
41 - Present if the feature supports out-of-band MCTP access.
46 - Present if the feature supports out-of-band MCTP access.
51 - Present if the feature supports the watcher API.
59 - Present if the feature supports RMID (Resource Monitoring ID) telemetry.
107 - Some attributes are only present if the corresponding feature supports
112 of the feature.
[all …]
/linux/Documentation/devicetree/bindings/powerpc/
H A 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/arch/x86/include/asm/
H A Dcpu_device_id.h82 .feature = _feature, \
98 #define X86_MATCH_VENDOR_FAM_FEATURE(vendor, family, feature, data) \ argument
100 X86_STEPPING_ANY, feature, X86_CPU_TYPE_ANY, data)
111 #define X86_MATCH_VENDOR_FEATURE(vendor, feature, data) \ argument
113 X86_STEPPING_ANY, feature, X86_CPU_TYPE_ANY, data)
122 #define X86_MATCH_FEATURE(feature, data) \ argument
124 X86_STEPPING_ANY, feature, X86_CPU_TYPE_ANY, data)
188 #define X86_MATCH_VFM_FEATURE(vfm, feature, data) \ argument
190 X86_STEPPING_ANY, feature, X86_CPU_TYPE_ANY, data)
/linux/arch/s390/kernel/
H A Dcpufeature.c35 struct s390_cpu_feature *feature; in cpu_have_feature() local
39 feature = &s390_cpu_features[num]; in cpu_have_feature()
40 switch (feature->type) { in cpu_have_feature()
42 return !!(elf_hwcap & BIT(feature->num)); in cpu_have_feature()
44 return test_facility(feature->num); in cpu_have_feature()
46 return test_machine_feature(feature->num); in cpu_have_feature()
/linux/Documentation/hid/
H A 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/rust/pin-init/examples/
H A Dmutex.rs4 #![cfg_attr(feature = "alloc", feature(allocator_api))]
5 #![cfg_attr(not(RUSTC_LINT_REASONS_IS_STABLE), feature(lint_reasons))]
15 #[cfg(feature = "std")]
40 #[cfg(feature = "std")] in acquire()
99 #[cfg(feature = "std")] in lock()
138 #[cfg(feature = "std")] in drop()
168 #[cfg(feature = "std")]
175 #[cfg(feature = "std")] in insert_new()
182 #[cfg(not(feature = "std"))] in insert_new()
194 #[cfg(feature = "std")] in main()
/linux/tools/testing/selftests/bpf/
H A Dxdp_features.c34 } feature; member
90 env.feature.action = XDP_PASS; in get_xdp_feature()
91 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC; in get_xdp_feature()
93 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC; in get_xdp_feature()
94 env.feature.action = XDP_DROP; in get_xdp_feature()
96 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC; in get_xdp_feature()
97 env.feature.action = XDP_ABORTED; in get_xdp_feature()
99 env.feature.drv_feature = NETDEV_XDP_ACT_BASIC; in get_xdp_feature()
100 env.feature.action = XDP_TX; in get_xdp_feature()
102 env.feature.drv_feature = NETDEV_XDP_ACT_REDIRECT; in get_xdp_feature()
[all …]

12345678910>>...48