Home
last modified time | relevance | path

Searched refs:attr (Results 2501 - 2525 of 7937) sorted by relevance

1...<<101102103104105106107108109110>>...318

/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/pmu/ebb/
H A Dcycles_test.c24 event.attr.exclude_kernel = 1; in cycles()
25 event.attr.exclude_hv = 1; in cycles()
26 event.attr.exclude_idle = 1; in cycles()
H A Dno_handler_test.c27 event.attr.exclude_kernel = 1; in no_handler_test()
28 event.attr.exclude_hv = 1; in no_handler_test()
29 event.attr.exclude_idle = 1; in no_handler_test()
/kernel/linux/linux-6.6/arch/alpha/kernel/
H A Dbugs.c20 struct device_attribute *attr, char *buf) in cpu_show_meltdown()
29 struct device_attribute *attr, char *buf) in cpu_show_spectre_v1()
38 struct device_attribute *attr, char *buf) in cpu_show_spectre_v2()
19 cpu_show_meltdown(struct device *dev, struct device_attribute *attr, char *buf) cpu_show_meltdown() argument
28 cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr, char *buf) cpu_show_spectre_v1() argument
37 cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr, char *buf) cpu_show_spectre_v2() argument
/kernel/linux/linux-6.6/include/rdma/
H A Dib_sysfs.h13 struct attribute attr; member
15 struct ib_port_attribute *attr, char *buf);
17 struct ib_port_attribute *attr, const char *buf,
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dtun.c12 struct mlx5_flow_attr *attr) in tc_act_can_offload_tun_encap()
27 struct mlx5_flow_attr *attr) in tc_act_parse_tun_encap()
39 struct mlx5_flow_attr *attr) in tc_act_parse_tun_decap()
9 tc_act_can_offload_tun_encap(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, int act_index, struct mlx5_flow_attr *attr) tc_act_can_offload_tun_encap() argument
24 tc_act_parse_tun_encap(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) tc_act_parse_tun_encap() argument
36 tc_act_parse_tun_decap(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) tc_act_parse_tun_decap() argument
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/pmu/ebb/
H A Dno_handler_test.c27 event.attr.exclude_kernel = 1; in no_handler_test()
28 event.attr.exclude_hv = 1; in no_handler_test()
29 event.attr.exclude_idle = 1; in no_handler_test()
H A Dcycles_test.c24 event.attr.exclude_kernel = 1; in cycles()
25 event.attr.exclude_hv = 1; in cycles()
26 event.attr.exclude_idle = 1; in cycles()
/kernel/liteos_a/fs/vfs/operation/
H A Dvfs_chattr.c58 int chattr(const char *pathname, struct IATTR *attr) in chattr() argument
63 if (pathname == NULL || attr == NULL) { in chattr()
84 ret = vnode->vop->Chattr(vnode, attr); in chattr()
/third_party/ltp/testcases/kernel/crypto/
H A Daf_alg06.c26 struct rtattr attr; in run() member
30 .attr.rta_len = sizeof(key), in run()
31 .attr.rta_type = 1 /* CRYPTO_AUTHENC_KEYA_PARAM */, in run()
/third_party/python/Lib/idlelib/
H A Ddelegator.py10 attr = getattr(self.delegate, name) # May raise AttributeError
11 setattr(self, name, attr)
13 return attr
/third_party/skia/modules/svg/src/
H A DSkSVGTransformableNode.cpp27 void SkSVGTransformableNode::onSetAttribute(SkSVGAttribute attr, const SkSVGValue& v) { in onSetAttribute() argument
28 switch (attr) { in onSetAttribute()
35 this->INHERITED::onSetAttribute(attr, v); in onSetAttribute()
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/
H A Dibmebus.c330 &bus_attr_probe.attr,
331 &bus_attr_remove.attr,
391 struct device_attribute *attr, char *buf) in devspec_show()
401 struct device_attribute *attr, char *buf) in name_show()
411 struct device_attribute *attr, char *buf) in modalias_show()
418 &dev_attr_devspec.attr,
419 &dev_attr_name.attr,
420 &dev_attr_modalias.attr,
390 devspec_show(struct device *dev, struct device_attribute *attr, char *buf) devspec_show() argument
400 name_show(struct device *dev, struct device_attribute *attr, char *buf) name_show() argument
410 modalias_show(struct device *dev, struct device_attribute *attr, char *buf) modalias_show() argument
/kernel/linux/linux-5.10/arch/x86/include/asm/
H A Defi.h221 #define efi_mixed_mode_cast(attr) \
223 __builtin_types_compatible_p(u32, __typeof__(attr)), \
224 (unsigned long)(attr), (attr))
226 #define efi_table_attr(inst, attr) \
228 ? inst->attr \
229 : (__typeof__(inst->attr)) \
230 efi_mixed_mode_cast(inst->mixed_mode.attr))
/kernel/linux/linux-5.10/arch/sh/kernel/
H A Dperf_event.c120 struct perf_event_attr *attr = &event->attr; in __hw_perf_event_init() local
151 switch (attr->type) { in __hw_perf_event_init()
153 config = attr->config & sh_pmu->raw_event_mask; in __hw_perf_event_init()
156 err = hw_perf_cache_event(attr->config, &config); in __hw_perf_event_init()
161 if (attr->config >= sh_pmu->max_events) in __hw_perf_event_init()
164 config = sh_pmu->event_map(attr->config); in __hw_perf_event_init()
306 switch (event->attr.type) { in sh_pmu_event_init()
/kernel/linux/linux-5.10/drivers/bus/
H A Dbt1-apb.c265 static ssize_t count_show(struct device *dev, struct device_attribute *attr, in count_show() argument
274 static ssize_t timeout_show(struct device *dev, struct device_attribute *attr, in timeout_show() argument
292 struct device_attribute *attr, in timeout_store()
313 struct device_attribute *attr, char *buf) in inject_error_show()
319 struct device_attribute *attr, in inject_error_store()
341 &dev_attr_count.attr,
342 &dev_attr_timeout.attr,
343 &dev_attr_inject_error.attr,
291 timeout_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) timeout_store() argument
312 inject_error_show(struct device *dev, struct device_attribute *attr, char *buf) inject_error_show() argument
318 inject_error_store(struct device *dev, struct device_attribute *attr, const char *data, size_t count) inject_error_store() argument
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/
H A Dsteal_time.c119 uint32_t attr; member
141 GUEST_ASSERT(READ_ONCE(st->attr) == 0); in check_status()
176 .attr = KVM_ARM_VCPU_PVTIME_IPA, in steal_time_init()
216 pr_info(" attr: %d\n", st->attr); in steal_time_dump()
276 pthread_attr_t attr; in main() local
290 pthread_attr_init(&attr); in main()
291 pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); in main()
323 pthread_create(&thread, &attr, do_steal_time, NULL); in main()
/kernel/linux/linux-6.6/arch/sh/kernel/
H A Dperf_event.c102 struct perf_event_attr *attr = &event->attr; in __hw_perf_event_init() local
133 switch (attr->type) { in __hw_perf_event_init()
135 config = attr->config & sh_pmu->raw_event_mask; in __hw_perf_event_init()
138 err = hw_perf_cache_event(attr->config, &config); in __hw_perf_event_init()
143 if (attr->config >= sh_pmu->max_events) in __hw_perf_event_init()
146 config = sh_pmu->event_map(attr->config); in __hw_perf_event_init()
288 switch (event->attr.type) { in sh_pmu_event_init()
/kernel/linux/linux-5.10/drivers/misc/
H A Dtsl2550.c176 struct device_attribute *attr, char *buf) in tsl2550_show_power_state()
184 struct device_attribute *attr, const char *buf, size_t count) in tsl2550_store_power_state()
208 struct device_attribute *attr, char *buf) in tsl2550_show_operating_mode()
216 struct device_attribute *attr, const char *buf, size_t count) in tsl2550_store_operating_mode()
269 struct device_attribute *attr, char *buf) in tsl2550_show_lux1_input()
290 &dev_attr_power_state.attr,
291 &dev_attr_operating_mode.attr,
292 &dev_attr_lux1_input.attr,
175 tsl2550_show_power_state(struct device *dev, struct device_attribute *attr, char *buf) tsl2550_show_power_state() argument
183 tsl2550_store_power_state(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) tsl2550_store_power_state() argument
207 tsl2550_show_operating_mode(struct device *dev, struct device_attribute *attr, char *buf) tsl2550_show_operating_mode() argument
215 tsl2550_store_operating_mode(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) tsl2550_store_operating_mode() argument
268 tsl2550_show_lux1_input(struct device *dev, struct device_attribute *attr, char *buf) tsl2550_show_lux1_input() argument
/kernel/linux/linux-5.10/drivers/hwmon/
H A Dmax6621.c139 max6621_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, in max6621_is_visible() argument
148 switch (attr) { in max6621_is_visible()
201 max6621_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, in max6621_read() argument
212 switch (attr) { in max6621_read()
310 max6621_write(struct device *dev, enum hwmon_sensor_types type, u32 attr, in max6621_write() argument
318 switch (attr) { in max6621_write()
349 max6621_read_string(struct device *dev, enum hwmon_sensor_types type, u32 attr, in max6621_read_string() argument
354 switch (attr) { in max6621_read_string()
/kernel/linux/linux-5.10/drivers/soc/qcom/
H A Drmtfs_mem.c37 struct device_attribute *attr,
45 struct device_attribute *attr, in qcom_rmtfs_mem_show()
52 if (attr == &dev_attr_phys_addr) in qcom_rmtfs_mem_show()
54 if (attr == &dev_attr_size) in qcom_rmtfs_mem_show()
56 if (attr == &dev_attr_client_id) in qcom_rmtfs_mem_show()
63 &dev_attr_phys_addr.attr,
64 &dev_attr_size.attr,
65 &dev_attr_client_id.attr,
44 qcom_rmtfs_mem_show(struct device *dev, struct device_attribute *attr, char *buf) qcom_rmtfs_mem_show() argument
/kernel/linux/linux-5.10/drivers/soundwire/
H A Dsysfs_slave_dpn.c40 sysfs_attr_init(&dpn_attr->dev_attr.attr); \
42 dpn_attr->dev_attr.attr.name = __stringify(field); \
43 dpn_attr->dev_attr.attr.mode = 0444; \
46 *res = &dpn_attr->dev_attr.attr; \
84 struct device_attribute *attr, \
89 container_of(attr, struct dpn_attribute, dev_attr); \
149 struct device_attribute *attr, \
154 container_of(attr, struct dpn_attribute, dev_attr); \
/kernel/linux/linux-5.10/drivers/tee/optee/
H A Dsupp.c206 if (params[n].attr && in supp_check_recv_params()
207 params[n].attr != TEE_IOCTL_PARAM_ATTR_META) in supp_check_recv_params()
211 if (params->attr == TEE_IOCTL_PARAM_ATTR_META) in supp_check_recv_params()
272 param->attr = TEE_IOCTL_PARAM_ATTR_TYPE_VALUE_INOUT | in optee_supp_recv()
299 const u32 attr = TEE_IOCTL_PARAM_ATTR_TYPE_VALUE_INOUT | in supp_pop_req() local
306 if (param->attr != attr) in supp_pop_req()
361 switch (p->attr & TEE_IOCTL_PARAM_ATTR_TYPE_MASK) { in optee_supp_send()
/kernel/linux/linux-5.10/drivers/video/backlight/
H A Dlcd.c73 static ssize_t lcd_power_show(struct device *dev, struct device_attribute *attr, in lcd_power_show() argument
90 struct device_attribute *attr, const char *buf, size_t count) in lcd_power_store()
115 struct device_attribute *attr, char *buf) in contrast_show()
129 struct device_attribute *attr, const char *buf, size_t count) in contrast_store()
154 struct device_attribute *attr, char *buf) in max_contrast_show()
171 &dev_attr_lcd_power.attr,
172 &dev_attr_contrast.attr,
173 &dev_attr_max_contrast.attr,
89 lcd_power_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) lcd_power_store() argument
114 contrast_show(struct device *dev, struct device_attribute *attr, char *buf) contrast_show() argument
128 contrast_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) contrast_store() argument
153 max_contrast_show(struct device *dev, struct device_attribute *attr, char *buf) max_contrast_show() argument
/kernel/linux/linux-5.10/net/xdp/
H A Dxskmap.c74 static struct bpf_map *xsk_map_alloc(union bpf_attr *attr) in xsk_map_alloc() argument
84 if (attr->max_entries == 0 || attr->key_size != 4 || in xsk_map_alloc()
85 attr->value_size != 4 || in xsk_map_alloc()
86 attr->map_flags & ~(BPF_F_NUMA_NODE | BPF_F_RDONLY | BPF_F_WRONLY)) in xsk_map_alloc()
89 numa_node = bpf_map_attr_numa_node(attr); in xsk_map_alloc()
90 size = struct_size(m, xsk_map, attr->max_entries); in xsk_map_alloc()
102 bpf_map_init_from_attr(&m->map, attr); in xsk_map_alloc()
/kernel/linux/linux-5.10/include/linux/
H A Dnetlink.h100 #define NL_SET_BAD_ATTR_POLICY(extack, attr, pol) do { \
102 (extack)->bad_attr = (attr); \
107 #define NL_SET_BAD_ATTR(extack, attr) NL_SET_BAD_ATTR_POLICY(extack, attr, NULL)
109 #define NL_SET_ERR_MSG_ATTR_POL(extack, attr, pol, msg) do { \
115 __extack->bad_attr = (attr); \
120 #define NL_SET_ERR_MSG_ATTR(extack, attr, msg) \
121 NL_SET_ERR_MSG_ATTR_POL(extack, attr, NULL, msg)

Completed in 13 milliseconds

1...<<101102103104105106107108109110>>...318