Home
last modified time | relevance | path

Searched refs:attr (Results 1326 - 1350 of 8540) sorted by relevance

1...<<51525354555657585960>>...342

/kernel/linux/linux-5.10/drivers/leds/trigger/
H A Dledtrig-gpio.c49 struct device_attribute *attr, char *buf) in gpio_trig_brightness_show()
57 struct device_attribute *attr, const char *buf, size_t n) in gpio_trig_brightness_store()
77 struct device_attribute *attr, char *buf) in gpio_trig_inverted_show()
85 struct device_attribute *attr, const char *buf, size_t n) in gpio_trig_inverted_store()
111 struct device_attribute *attr, char *buf) in gpio_trig_gpio_show()
119 struct device_attribute *attr, const char *buf, size_t n) in gpio_trig_gpio_store()
160 &dev_attr_desired_brightness.attr,
161 &dev_attr_inverted.attr,
162 &dev_attr_gpio.attr,
48 gpio_trig_brightness_show(struct device *dev, struct device_attribute *attr, char *buf) gpio_trig_brightness_show() argument
56 gpio_trig_brightness_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) gpio_trig_brightness_store() argument
76 gpio_trig_inverted_show(struct device *dev, struct device_attribute *attr, char *buf) gpio_trig_inverted_show() argument
84 gpio_trig_inverted_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) gpio_trig_inverted_store() argument
110 gpio_trig_gpio_show(struct device *dev, struct device_attribute *attr, char *buf) gpio_trig_gpio_show() argument
118 gpio_trig_gpio_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) gpio_trig_gpio_store() argument
H A Dledtrig-transient.c43 struct device_attribute *attr, char *buf) in transient_activate_show()
52 struct device_attribute *attr, const char *buf, size_t size) in transient_activate_store()
96 struct device_attribute *attr, char *buf) in transient_duration_show()
104 struct device_attribute *attr, const char *buf, size_t size) in transient_duration_store()
120 struct device_attribute *attr, char *buf) in transient_state_show()
131 struct device_attribute *attr, const char *buf, size_t size) in transient_state_store()
156 &dev_attr_activate.attr,
157 &dev_attr_duration.attr,
158 &dev_attr_state.attr,
42 transient_activate_show(struct device *dev, struct device_attribute *attr, char *buf) transient_activate_show() argument
51 transient_activate_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) transient_activate_store() argument
95 transient_duration_show(struct device *dev, struct device_attribute *attr, char *buf) transient_duration_show() argument
103 transient_duration_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) transient_duration_store() argument
119 transient_state_show(struct device *dev, struct device_attribute *attr, char *buf) transient_state_show() argument
130 transient_state_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) transient_state_store() argument
/kernel/linux/linux-5.10/fs/ocfs2/cluster/
H A Dmasklog.c88 struct attribute attr; member
92 #define to_mlog_attr(_attr) container_of(_attr, struct mlog_attribute, attr)
95 .attr = { \
127 static ssize_t mlog_show(struct kobject *obj, struct attribute *attr, in mlog_show() argument
130 struct mlog_attribute *mlog_attr = to_mlog_attr(attr); in mlog_show()
135 static ssize_t mlog_store(struct kobject *obj, struct attribute *attr, in mlog_store() argument
138 struct mlog_attribute *mlog_attr = to_mlog_attr(attr); in mlog_store()
161 while (mlog_attrs[i].attr.mode) { in mlog_sys_init()
162 mlog_attr_ptrs[i] = &mlog_attrs[i].attr; in mlog_sys_init()
/kernel/linux/linux-6.6/fs/coda/
H A Dcnode.c26 static void coda_fill_inode(struct inode *inode, struct coda_vattr *attr) in coda_fill_inode() argument
28 coda_vattr_to_iattr(inode, attr); in coda_fill_inode()
42 init_special_inode(inode, inode->i_mode, huge_decode_dev(attr->va_rdev)); in coda_fill_inode()
61 struct coda_vattr * attr) in coda_iget()
66 umode_t inode_type = coda_inode_type(attr); in coda_iget()
79 coda_fill_inode(inode, attr); in coda_iget()
99 struct coda_vattr attr; in coda_cnode_make() local
104 error = venus_getattr(sb, fid, &attr); in coda_cnode_make()
108 inode = coda_iget(sb, fid, &attr); in coda_cnode_make()
60 coda_iget(struct super_block * sb, struct CodaFid * fid, struct coda_vattr * attr) coda_iget() argument
/kernel/linux/linux-6.6/fs/ocfs2/cluster/
H A Dmasklog.c86 struct attribute attr; member
90 #define to_mlog_attr(_attr) container_of(_attr, struct mlog_attribute, attr)
93 .attr = { \
126 static ssize_t mlog_show(struct kobject *obj, struct attribute *attr, in mlog_show() argument
129 struct mlog_attribute *mlog_attr = to_mlog_attr(attr); in mlog_show()
134 static ssize_t mlog_store(struct kobject *obj, struct attribute *attr, in mlog_store() argument
137 struct mlog_attribute *mlog_attr = to_mlog_attr(attr); in mlog_store()
160 while (mlog_attrs[i].attr.mode) { in mlog_sys_init()
161 mlog_default_attrs[i] = &mlog_attrs[i].attr; in mlog_sys_init()
/kernel/linux/linux-6.6/drivers/firmware/efi/
H A Dvars.c177 u32 *attr, unsigned long *size, void *data) in efivar_get_variable()
179 return __efivars->ops->get_variable(name, vendor, attr, size, data); in efivar_get_variable()
202 u32 attr, unsigned long data_size, in efivar_set_variable_locked()
209 status = check_var_size(nonblocking, attr, in efivar_set_variable_locked()
223 return setvar(name, vendor, attr, data_size, data); in efivar_set_variable_locked()
235 u32 attr, unsigned long data_size, void *data) in efivar_set_variable()
242 status = efivar_set_variable_locked(name, vendor, attr, data_size, in efivar_set_variable()
249 efi_status_t efivar_query_variable_info(u32 attr, in efivar_query_variable_info() argument
256 return __efivars->ops->query_variable_info(attr, storage_space, in efivar_query_variable_info()
176 efivar_get_variable(efi_char16_t *name, efi_guid_t *vendor, u32 *attr, unsigned long *size, void *data) efivar_get_variable() argument
201 efivar_set_variable_locked(efi_char16_t *name, efi_guid_t *vendor, u32 attr, unsigned long data_size, void *data, bool nonblocking) efivar_set_variable_locked() argument
234 efivar_set_variable(efi_char16_t *name, efi_guid_t *vendor, u32 attr, unsigned long data_size, void *data) efivar_set_variable() argument
/kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_common/
H A Dadf_sysfs.c16 static ssize_t state_show(struct device *dev, struct device_attribute *attr, in state_show() argument
30 static ssize_t state_store(struct device *dev, struct device_attribute *attr, in state_store() argument
88 static ssize_t cfg_services_show(struct device *dev, struct device_attribute *attr, in cfg_services_show() argument
115 static ssize_t cfg_services_store(struct device *dev, struct device_attribute *attr, in cfg_services_store() argument
153 static ssize_t pm_idle_enabled_show(struct device *dev, struct device_attribute *attr, in pm_idle_enabled_show() argument
172 static ssize_t pm_idle_enabled_store(struct device *dev, struct device_attribute *attr, in pm_idle_enabled_store() argument
209 &dev_attr_state.attr,
210 &dev_attr_cfg_services.attr,
211 &dev_attr_pm_idle_enabled.attr,
/kernel/linux/linux-6.6/drivers/leds/trigger/
H A Dledtrig-transient.c43 struct device_attribute *attr, char *buf) in transient_activate_show()
52 struct device_attribute *attr, const char *buf, size_t size) in transient_activate_store()
96 struct device_attribute *attr, char *buf) in transient_duration_show()
104 struct device_attribute *attr, const char *buf, size_t size) in transient_duration_store()
120 struct device_attribute *attr, char *buf) in transient_state_show()
131 struct device_attribute *attr, const char *buf, size_t size) in transient_state_store()
156 &dev_attr_activate.attr,
157 &dev_attr_duration.attr,
158 &dev_attr_state.attr,
42 transient_activate_show(struct device *dev, struct device_attribute *attr, char *buf) transient_activate_show() argument
51 transient_activate_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) transient_activate_store() argument
95 transient_duration_show(struct device *dev, struct device_attribute *attr, char *buf) transient_duration_show() argument
103 transient_duration_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) transient_duration_store() argument
119 transient_state_show(struct device *dev, struct device_attribute *attr, char *buf) transient_state_show() argument
130 transient_state_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) transient_state_store() argument
H A Dledtrig-gpio.c49 struct device_attribute *attr, char *buf) in gpio_trig_brightness_show()
57 struct device_attribute *attr, const char *buf, size_t n) in gpio_trig_brightness_store()
77 struct device_attribute *attr, char *buf) in gpio_trig_inverted_show()
85 struct device_attribute *attr, const char *buf, size_t n) in gpio_trig_inverted_store()
111 struct device_attribute *attr, char *buf) in gpio_trig_gpio_show()
119 struct device_attribute *attr, const char *buf, size_t n) in gpio_trig_gpio_store()
160 &dev_attr_desired_brightness.attr,
161 &dev_attr_inverted.attr,
162 &dev_attr_gpio.attr,
48 gpio_trig_brightness_show(struct device *dev, struct device_attribute *attr, char *buf) gpio_trig_brightness_show() argument
56 gpio_trig_brightness_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) gpio_trig_brightness_store() argument
76 gpio_trig_inverted_show(struct device *dev, struct device_attribute *attr, char *buf) gpio_trig_inverted_show() argument
84 gpio_trig_inverted_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) gpio_trig_inverted_store() argument
110 gpio_trig_gpio_show(struct device *dev, struct device_attribute *attr, char *buf) gpio_trig_gpio_show() argument
118 gpio_trig_gpio_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t n) gpio_trig_gpio_store() argument
/kernel/linux/linux-6.6/tools/net/ynl/generated/
H A Dnetdev-user.c78 const struct nlattr *attr; in netdev_dev_get_rsp_parse() local
82 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in netdev_dev_get_rsp_parse()
83 unsigned int type = mnl_attr_get_type(attr); in netdev_dev_get_rsp_parse()
86 if (ynl_attr_validate(yarg, attr)) in netdev_dev_get_rsp_parse()
89 dst->ifindex = mnl_attr_get_u32(attr); in netdev_dev_get_rsp_parse()
91 if (ynl_attr_validate(yarg, attr)) in netdev_dev_get_rsp_parse()
94 dst->xdp_features = mnl_attr_get_u64(attr); in netdev_dev_get_rsp_parse()
96 if (ynl_attr_validate(yarg, attr)) in netdev_dev_get_rsp_parse()
99 dst->xdp_zc_max_segs = mnl_attr_get_u32(attr); in netdev_dev_get_rsp_parse()
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dattr.c59 perror("test attr - failed to write event file"); \
66 #define WRITE_ASS(field, fmt) __WRITE_ASS(field, fmt, attr->field)
68 static int store_event(struct perf_event_attr *attr, pid_t pid, struct perf_cpu cpu, in store_event() argument
78 attr->type, attr->config, fd); in store_event()
82 perror("test attr - failed to open event file"); in store_event()
87 attr->type, attr->config, fd) < 0) { in store_event()
88 perror("test attr - failed to write event file"); in store_event()
147 void test_attr__open(struct perf_event_attr *attr, pid_ argument
[all...]
/kernel/linux/linux-5.10/ipc/
H A Dmqueue.c142 struct mq_attr attr; member
229 info->attr.mq_curmsgs++; in msg_insert()
264 if (info->attr.mq_curmsgs) { in msg_get()
268 info->attr.mq_curmsgs = 0; in msg_get()
287 info->attr.mq_curmsgs--; in msg_get()
294 struct mq_attr *attr) in mqueue_get_inode()
329 memset(&info->attr, 0, sizeof(info->attr)); in mqueue_get_inode()
330 info->attr.mq_maxmsg = min(ipc_ns->mq_msg_max, in mqueue_get_inode()
332 info->attr in mqueue_get_inode()
292 mqueue_get_inode(struct super_block *sb, struct ipc_namespace *ipc_ns, umode_t mode, struct mq_attr *attr) mqueue_get_inode() argument
570 struct mq_attr *attr = arg; mqueue_create_attr() local
866 prepare_open(struct dentry *dentry, int oflag, int ro, umode_t mode, struct filename *name, struct mq_attr *attr) prepare_open() argument
893 do_mq_open(const char __user *u_name, int oflag, umode_t mode, struct mq_attr *attr) do_mq_open() argument
945 struct mq_attr attr; SYSCALL_DEFINE4() local
1531 get_compat_mq_attr(struct mq_attr *attr, const struct compat_mq_attr __user *uattr) get_compat_mq_attr() argument
1547 put_compat_mq_attr(const struct mq_attr *attr, struct compat_mq_attr __user *uattr) put_compat_mq_attr() argument
1566 struct mq_attr attr, *p = NULL; COMPAT_SYSCALL_DEFINE4() local
[all...]
/kernel/linux/linux-6.6/fs/f2fs/
H A Dsysfs.c55 struct attribute attr; member
292 if (!strcmp(a->attr.name, "extension_list")) { in f2fs_sbi_show()
313 if (!strcmp(a->attr.name, "ckpt_thread_ioprio")) { in f2fs_sbi_show()
326 if (!strcmp(a->attr.name, "compr_written_block")) in f2fs_sbi_show()
329 if (!strcmp(a->attr.name, "compr_saved_block")) in f2fs_sbi_show()
332 if (!strcmp(a->attr.name, "compr_new_inode")) in f2fs_sbi_show()
336 if (!strcmp(a->attr.name, "gc_segment_mode")) in f2fs_sbi_show()
339 if (!strcmp(a->attr.name, "gc_reclaimed_segments")) { in f2fs_sbi_show()
344 if (!strcmp(a->attr.name, "current_atomic_write")) { in f2fs_sbi_show()
350 if (!strcmp(a->attr in f2fs_sbi_show()
761 f2fs_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) f2fs_attr_show() argument
771 f2fs_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t len) f2fs_attr_store() argument
1269 f2fs_stat_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) f2fs_stat_attr_show() argument
1279 f2fs_stat_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t len) f2fs_stat_attr_store() argument
1307 f2fs_sb_feat_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) f2fs_sb_feat_attr_show() argument
[all...]
/kernel/linux/linux-6.6/ipc/
H A Dmqueue.c142 struct mq_attr attr; member
227 info->attr.mq_curmsgs++; in msg_insert()
262 if (info->attr.mq_curmsgs) { in msg_get()
266 info->attr.mq_curmsgs = 0; in msg_get()
285 info->attr.mq_curmsgs--; in msg_get()
292 struct mq_attr *attr) in mqueue_get_inode()
326 memset(&info->attr, 0, sizeof(info->attr)); in mqueue_get_inode()
327 info->attr.mq_maxmsg = min(ipc_ns->mq_msg_max, in mqueue_get_inode()
329 info->attr in mqueue_get_inode()
290 mqueue_get_inode(struct super_block *sb, struct ipc_namespace *ipc_ns, umode_t mode, struct mq_attr *attr) mqueue_get_inode() argument
570 struct mq_attr *attr = arg; mqueue_create_attr() local
867 prepare_open(struct dentry *dentry, int oflag, int ro, umode_t mode, struct filename *name, struct mq_attr *attr) prepare_open() argument
894 do_mq_open(const char __user *u_name, int oflag, umode_t mode, struct mq_attr *attr) do_mq_open() argument
946 struct mq_attr attr; SYSCALL_DEFINE4() local
1530 get_compat_mq_attr(struct mq_attr *attr, const struct compat_mq_attr __user *uattr) get_compat_mq_attr() argument
1546 put_compat_mq_attr(const struct mq_attr *attr, struct compat_mq_attr __user *uattr) put_compat_mq_attr() argument
1565 struct mq_attr attr, *p = NULL; COMPAT_SYSCALL_DEFINE4() local
[all...]
/kernel/linux/linux-5.10/drivers/siox/
H A Dsiox-core.c385 struct device_attribute *attr, char *buf) in type_show()
395 struct device_attribute *attr, char *buf) in inbytes_show()
405 struct device_attribute *attr, char *buf) in outbytes_show()
415 struct device_attribute *attr, char *buf) in status_errors_show()
432 struct device_attribute *attr, char *buf) in connected_show()
449 struct device_attribute *attr, char *buf) in watchdog_show()
466 struct device_attribute *attr, char *buf) in watchdog_errors_show()
483 &dev_attr_type.attr,
484 &dev_attr_inbytes.attr,
485 &dev_attr_outbytes.attr,
384 type_show(struct device *dev, struct device_attribute *attr, char *buf) type_show() argument
394 inbytes_show(struct device *dev, struct device_attribute *attr, char *buf) inbytes_show() argument
404 outbytes_show(struct device *dev, struct device_attribute *attr, char *buf) outbytes_show() argument
414 status_errors_show(struct device *dev, struct device_attribute *attr, char *buf) status_errors_show() argument
431 connected_show(struct device *dev, struct device_attribute *attr, char *buf) connected_show() argument
448 watchdog_show(struct device *dev, struct device_attribute *attr, char *buf) watchdog_show() argument
465 watchdog_errors_show(struct device *dev, struct device_attribute *attr, char *buf) watchdog_errors_show() argument
550 active_show(struct device *dev, struct device_attribute *attr, char *buf) active_show() argument
558 active_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) active_store() argument
587 device_add_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) device_add_store() argument
614 device_remove_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) device_remove_store() argument
628 poll_interval_ns_show(struct device *dev, struct device_attribute *attr, char *buf) poll_interval_ns_show() argument
636 poll_interval_ns_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) poll_interval_ns_store() argument
[all...]
/kernel/linux/linux-5.10/net/ethtool/
H A Dbitset.c237 struct nlattr *attr; in ethnl_put_bitset32() local
252 attr = nla_reserve(skb, ETHTOOL_A_BITSET_VALUE, nbytes); in ethnl_put_bitset32()
253 if (!attr) in ethnl_put_bitset32()
255 dst = nla_data(attr); in ethnl_put_bitset32()
261 attr = nla_reserve(skb, ETHTOOL_A_BITSET_MASK, nbytes); in ethnl_put_bitset32()
262 if (!attr) in ethnl_put_bitset32()
264 dst = nla_data(attr); in ethnl_put_bitset32()
281 attr = nla_nest_start(skb, ETHTOOL_A_BITSET_BITS_BIT); in ethnl_put_bitset32()
282 if (!attr) in ethnl_put_bitset32()
292 nla_nest_end(skb, attr); in ethnl_put_bitset32()
429 ethnl_update_bitset32_verbose(u32 *bitmap, unsigned int nbits, const struct nlattr *attr, struct nlattr **tb, ethnl_string_array_t names, struct netlink_ext_ack *extack, bool *mod) ethnl_update_bitset32_verbose() argument
552 ethnl_update_bitset32(u32 *bitmap, unsigned int nbits, const struct nlattr *attr, ethnl_string_array_t names, struct netlink_ext_ack *extack, bool *mod) ethnl_update_bitset32() argument
604 ethnl_parse_bitset(unsigned long *val, unsigned long *mask, unsigned int nbits, const struct nlattr *attr, ethnl_string_array_t names, struct netlink_ext_ack *extack) ethnl_parse_bitset() argument
771 ethnl_update_bitset(unsigned long *bitmap, unsigned int nbits, const struct nlattr *attr, ethnl_string_array_t names, struct netlink_ext_ack *extack, bool *mod) ethnl_update_bitset() argument
825 ethnl_update_bitset(unsigned long *bitmap, unsigned int nbits, const struct nlattr *attr, ethnl_string_array_t names, struct netlink_ext_ack *extack, bool *mod) ethnl_update_bitset() argument
[all...]
/kernel/linux/linux-5.10/drivers/perf/
H A Dfsl_imx8_ddr_perf.c112 struct device_attribute *attr, in ddr_perf_filter_cap_show()
117 container_of(attr, struct dev_ext_attribute, attr); in ddr_perf_filter_cap_show()
127 }).attr.attr)
144 struct device_attribute *attr, char *buf) in ddr_perf_cpumask_show()
155 &ddr_perf_cpumask_attr.attr,
164 ddr_pmu_event_show(struct device *dev, struct device_attribute *attr, in ddr_pmu_event_show() argument
169 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in ddr_pmu_event_show()
111 ddr_perf_filter_cap_show(struct device *dev, struct device_attribute *attr, char *buf) ddr_perf_filter_cap_show() argument
143 ddr_perf_cpumask_show(struct device *dev, struct device_attribute *attr, char *buf) ddr_perf_cpumask_show() argument
[all...]
/kernel/linux/linux-6.6/drivers/siox/
H A Dsiox-core.c385 struct device_attribute *attr, char *buf) in type_show()
395 struct device_attribute *attr, char *buf) in inbytes_show()
405 struct device_attribute *attr, char *buf) in outbytes_show()
415 struct device_attribute *attr, char *buf) in status_errors_show()
432 struct device_attribute *attr, char *buf) in connected_show()
449 struct device_attribute *attr, char *buf) in watchdog_show()
466 struct device_attribute *attr, char *buf) in watchdog_errors_show()
483 &dev_attr_type.attr,
484 &dev_attr_inbytes.attr,
485 &dev_attr_outbytes.attr,
384 type_show(struct device *dev, struct device_attribute *attr, char *buf) type_show() argument
394 inbytes_show(struct device *dev, struct device_attribute *attr, char *buf) inbytes_show() argument
404 outbytes_show(struct device *dev, struct device_attribute *attr, char *buf) outbytes_show() argument
414 status_errors_show(struct device *dev, struct device_attribute *attr, char *buf) status_errors_show() argument
431 connected_show(struct device *dev, struct device_attribute *attr, char *buf) connected_show() argument
448 watchdog_show(struct device *dev, struct device_attribute *attr, char *buf) watchdog_show() argument
465 watchdog_errors_show(struct device *dev, struct device_attribute *attr, char *buf) watchdog_errors_show() argument
554 active_show(struct device *dev, struct device_attribute *attr, char *buf) active_show() argument
562 active_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) active_store() argument
591 device_add_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) device_add_store() argument
618 device_remove_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) device_remove_store() argument
632 poll_interval_ns_show(struct device *dev, struct device_attribute *attr, char *buf) poll_interval_ns_show() argument
640 poll_interval_ns_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) poll_interval_ns_store() argument
[all...]
/kernel/linux/linux-6.6/net/ethtool/
H A Dbitset.c237 struct nlattr *attr; in ethnl_put_bitset32() local
252 attr = nla_reserve(skb, ETHTOOL_A_BITSET_VALUE, nbytes); in ethnl_put_bitset32()
253 if (!attr) in ethnl_put_bitset32()
255 dst = nla_data(attr); in ethnl_put_bitset32()
261 attr = nla_reserve(skb, ETHTOOL_A_BITSET_MASK, nbytes); in ethnl_put_bitset32()
262 if (!attr) in ethnl_put_bitset32()
264 dst = nla_data(attr); in ethnl_put_bitset32()
281 attr = nla_nest_start(skb, ETHTOOL_A_BITSET_BITS_BIT); in ethnl_put_bitset32()
282 if (!attr) in ethnl_put_bitset32()
292 nla_nest_end(skb, attr); in ethnl_put_bitset32()
429 ethnl_update_bitset32_verbose(u32 *bitmap, unsigned int nbits, const struct nlattr *attr, struct nlattr **tb, ethnl_string_array_t names, struct netlink_ext_ack *extack, bool *mod) ethnl_update_bitset32_verbose() argument
552 ethnl_update_bitset32(u32 *bitmap, unsigned int nbits, const struct nlattr *attr, ethnl_string_array_t names, struct netlink_ext_ack *extack, bool *mod) ethnl_update_bitset32() argument
604 ethnl_parse_bitset(unsigned long *val, unsigned long *mask, unsigned int nbits, const struct nlattr *attr, ethnl_string_array_t names, struct netlink_ext_ack *extack) ethnl_parse_bitset() argument
771 ethnl_update_bitset(unsigned long *bitmap, unsigned int nbits, const struct nlattr *attr, ethnl_string_array_t names, struct netlink_ext_ack *extack, bool *mod) ethnl_update_bitset() argument
825 ethnl_update_bitset(unsigned long *bitmap, unsigned int nbits, const struct nlattr *attr, ethnl_string_array_t names, struct netlink_ext_ack *extack, bool *mod) ethnl_update_bitset() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_ste_v1.c627 struct mlx5dr_ste_actions_attr *attr, in dr_ste_v1_set_actions_tx()
638 attr->gvmi); in dr_ste_v1_set_actions_tx()
643 dr_ste_v1_set_pop_vlan(last_ste, action, attr->vlans.count); in dr_ste_v1_set_actions_tx()
655 attr->gvmi); in dr_ste_v1_set_actions_tx()
661 attr->modify_actions, in dr_ste_v1_set_actions_tx()
662 attr->modify_pat_idx, in dr_ste_v1_set_actions_tx()
663 attr->modify_index, in dr_ste_v1_set_actions_tx()
664 attr->single_modify_action); in dr_ste_v1_set_actions_tx()
673 for (i = 0; i < attr->vlans.count; i++) { in dr_ste_v1_set_actions_tx()
675 dr_ste_v1_arr_init_next_match(&last_ste, added_stes, attr in dr_ste_v1_set_actions_tx()
623 dr_ste_v1_set_actions_tx(struct mlx5dr_domain *dmn, u8 *action_type_set, u32 actions_caps, u8 *last_ste, struct mlx5dr_ste_actions_attr *attr, u32 *added_stes) dr_ste_v1_set_actions_tx() argument
779 dr_ste_v1_set_actions_rx(struct mlx5dr_domain *dmn, u8 *action_type_set, u32 actions_caps, u8 *last_ste, struct mlx5dr_ste_actions_attr *attr, u32 *added_stes) dr_ste_v1_set_actions_rx() argument
[all...]
/kernel/linux/linux-5.10/drivers/counter/
H A Dcounter.c227 ssize_t (*show)(struct device *dev, struct device_attribute *attr,
229 ssize_t (*store)(struct device *dev, struct device_attribute *attr,
253 sysfs_attr_init(&dev_attr->attr); in counter_attribute_create()
256 dev_attr->attr.name = kasprintf(GFP_KERNEL, "%s%s", parm->prefix, in counter_attribute_create()
258 if (!dev_attr->attr.name) { in counter_attribute_create()
263 dev_attr->attr.mode |= 0444; in counter_attribute_create()
267 dev_attr->attr.mode |= 0200; in counter_attribute_create()
298 struct device_attribute *attr, char *buf) in counter_signal_show()
301 const struct counter_device_attr *const devattr = to_counter_attr(attr); in counter_signal_show()
319 struct device_attribute *attr, in counter_device_attr_name_show()
297 counter_signal_show(struct device *dev, struct device_attribute *attr, char *buf) counter_signal_show() argument
318 counter_device_attr_name_show(struct device *dev, struct device_attribute *attr, char *buf) counter_device_attr_name_show() argument
368 counter_signal_ext_show(struct device *dev, struct device_attribute *attr, char *buf) counter_signal_ext_show() argument
378 counter_signal_ext_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) counter_signal_ext_store() argument
544 counter_action_show(struct device *dev, struct device_attribute *attr, char *buf) counter_action_show() argument
566 counter_action_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) counter_action_store() argument
604 counter_synapse_action_available_show(struct device *dev, struct device_attribute *attr, char *buf) counter_synapse_action_available_show() argument
707 counter_count_show(struct device *dev, struct device_attribute *attr, char *buf) counter_count_show() argument
725 counter_count_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) counter_count_store() argument
758 counter_function_show(struct device *dev, struct device_attribute *attr, char *buf) counter_function_show() argument
779 counter_function_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) counter_function_store() argument
816 counter_count_ext_show(struct device *dev, struct device_attribute *attr, char *buf) counter_count_ext_show() argument
826 counter_count_ext_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) counter_count_ext_store() argument
887 counter_count_function_available_show(struct device *dev, struct device_attribute *attr, char *buf) counter_count_function_available_show() argument
1045 counter_device_attr_size_show(struct device *dev, struct device_attribute *attr, char *buf) counter_device_attr_size_show() argument
1089 counter_device_ext_show(struct device *dev, struct device_attribute *attr, char *buf) counter_device_ext_show() argument
1099 counter_device_ext_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) counter_device_ext_store() argument
[all...]
/third_party/python/Lib/xml/dom/
H A Dminidom.py365 # Add the single child node that represents the value of the attr
717 for attr in list(self._attrs.values()):
718 attr.unlink()
748 attr = self.getAttributeNode(attname)
749 if attr is None:
750 attr = Attr(attname)
751 attr.value = value # also sets nodeValue
752 attr.ownerDocument = self.ownerDocument
753 self.setAttributeNode(attr)
754 elif value != attr
[all...]
/kernel/linux/linux-5.10/drivers/greybus/
H A Dinterface.c49 u16 attr, u32 *val) in gb_interface_dme_attr_get()
52 attr, DME_SELECTOR_INDEX_NULL, val); in gb_interface_dme_attr_get()
368 u16 attr; in gb_interface_read_and_clear_init_status() local
377 attr = DME_T_TST_SRC_INCREMENT; in gb_interface_read_and_clear_init_status()
379 attr = DME_TOSHIBA_GMP_INIT_STATUS; in gb_interface_read_and_clear_init_status()
381 ret = gb_svc_dme_peer_get(hd->svc, intf->interface_id, attr, in gb_interface_read_and_clear_init_status()
435 return gb_svc_dme_peer_set(hd->svc, intf->interface_id, attr, in gb_interface_read_and_clear_init_status()
442 struct device_attribute *attr, \
458 struct device_attribute *attr, char *buf) in voltage_now_show()
477 struct device_attribute *attr, cha in current_now_show()
48 gb_interface_dme_attr_get(struct gb_interface *intf, u16 attr, u32 *val) gb_interface_dme_attr_get() argument
457 voltage_now_show(struct device *dev, struct device_attribute *attr, char *buf) voltage_now_show() argument
476 current_now_show(struct device *dev, struct device_attribute *attr, char *buf) current_now_show() argument
495 power_now_show(struct device *dev, struct device_attribute *attr, char *buf) power_now_show() argument
514 power_state_show(struct device *dev, struct device_attribute *attr, char *buf) power_state_show() argument
525 power_state_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) power_state_store() argument
584 interface_type_show(struct device *dev, struct device_attribute *attr, char *buf) interface_type_show() argument
620 interface_unipro_is_visible(struct kobject *kobj, struct attribute *attr, int n) interface_unipro_is_visible() argument
635 interface_greybus_is_visible(struct kobject *kobj, struct attribute *attr, int n) interface_greybus_is_visible() argument
649 interface_power_is_visible(struct kobject *kobj, struct attribute *attr, int n) interface_power_is_visible() argument
[all...]
/kernel/linux/linux-6.6/drivers/greybus/
H A Dinterface.c49 u16 attr, u32 *val) in gb_interface_dme_attr_get()
52 attr, DME_SELECTOR_INDEX_NULL, val); in gb_interface_dme_attr_get()
368 u16 attr; in gb_interface_read_and_clear_init_status() local
377 attr = DME_T_TST_SRC_INCREMENT; in gb_interface_read_and_clear_init_status()
379 attr = DME_TOSHIBA_GMP_INIT_STATUS; in gb_interface_read_and_clear_init_status()
381 ret = gb_svc_dme_peer_get(hd->svc, intf->interface_id, attr, in gb_interface_read_and_clear_init_status()
435 return gb_svc_dme_peer_set(hd->svc, intf->interface_id, attr, in gb_interface_read_and_clear_init_status()
442 struct device_attribute *attr, \
458 struct device_attribute *attr, char *buf) in voltage_now_show()
477 struct device_attribute *attr, cha in current_now_show()
48 gb_interface_dme_attr_get(struct gb_interface *intf, u16 attr, u32 *val) gb_interface_dme_attr_get() argument
457 voltage_now_show(struct device *dev, struct device_attribute *attr, char *buf) voltage_now_show() argument
476 current_now_show(struct device *dev, struct device_attribute *attr, char *buf) current_now_show() argument
495 power_now_show(struct device *dev, struct device_attribute *attr, char *buf) power_now_show() argument
514 power_state_show(struct device *dev, struct device_attribute *attr, char *buf) power_state_show() argument
525 power_state_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) power_state_store() argument
584 interface_type_show(struct device *dev, struct device_attribute *attr, char *buf) interface_type_show() argument
620 interface_unipro_is_visible(struct kobject *kobj, struct attribute *attr, int n) interface_unipro_is_visible() argument
635 interface_greybus_is_visible(struct kobject *kobj, struct attribute *attr, int n) interface_greybus_is_visible() argument
649 interface_power_is_visible(struct kobject *kobj, struct attribute *attr, int n) interface_power_is_visible() argument
[all...]
/kernel/linux/linux-6.6/tools/net/ynl/lib/
H A Dynl.c81 const struct nlattr *attr; in ynl_err_walk() local
96 astart_off = (char *)attr - (char *)start; in ynl_err_walk()
97 aend_off = astart_off + mnl_attr_get_payload_len(attr); in ynl_err_walk()
109 type = mnl_attr_get_type(attr); in ynl_err_walk()
127 start = mnl_attr_get_payload(attr); in ynl_err_walk()
128 end = start + mnl_attr_get_payload_len(attr); in ynl_err_walk()
145 const struct nlattr *attr; in ynl_ext_ack_check() local
151 mnl_attr_for_each(attr, nlh, hlen) { in ynl_ext_ack_check()
154 len = mnl_attr_get_payload_len(attr); in ynl_ext_ack_check()
155 type = mnl_attr_get_type(attr); in ynl_ext_ack_check()
307 ynl_attr_validate(struct ynl_parse_arg *yarg, const struct nlattr *attr) ynl_attr_validate() argument
484 const struct nlattr *entry, *attr; ynl_get_family_info_mcast() local
520 const struct nlattr *attr; ynl_get_family_info_cb() local
[all...]

Completed in 23 milliseconds

1...<<51525354555657585960>>...342