Searched refs:attr (Results 226 - 250 of 3244) sorted by relevance

1234567891011>>

/linux-master/include/linux/
H A Draid_class.h54 #define DEFINE_RAID_ATTRIBUTE(type, attr) \
56 raid_set_##attr(struct raid_template *r, struct device *dev, type value) { \
62 rd->attr = value; \
65 raid_get_##attr(struct raid_template *r, struct device *dev) { \
71 return rd->attr; \
H A Dsysfs.h42 * @attr: struct attribute to initialize
51 #define sysfs_attr_init(attr) \
55 (attr)->key = &__key; \
58 #define sysfs_attr_init(attr) do {} while (0)
118 * struct attribute *attr, int n)
149 struct kobject *kobj, struct attribute *attr, int n) \
153 return name##_attr_visible(kobj, attr, n); \
196 struct kobject *kobj, struct bin_attribute *attr, int n) \
200 return name##_attr_visible(kobj, attr, n); \
220 .attr
294 struct attribute attr; member in struct:bin_attribute
516 sysfs_create_file_ns(struct kobject *kobj, const struct attribute *attr, const void *ns) argument
523 sysfs_create_files(struct kobject *kobj, const struct attribute * const *attr) argument
529 sysfs_chmod_file(struct kobject *kobj, const struct attribute *attr, umode_t mode) argument
536 sysfs_break_active_protection(struct kobject *kobj, const struct attribute *attr) argument
546 sysfs_remove_file_ns(struct kobject *kobj, const struct attribute *attr, const void *ns) argument
552 sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr) argument
558 sysfs_remove_files(struct kobject *kobj, const struct attribute * const *attr) argument
563 sysfs_create_bin_file(struct kobject *kobj, const struct bin_attribute *attr) argument
569 sysfs_remove_bin_file(struct kobject *kobj, const struct bin_attribute *attr) argument
637 sysfs_add_file_to_group(struct kobject *kobj, const struct attribute *attr, const char *group) argument
643 sysfs_remove_file_from_group(struct kobject *kobj, const struct attribute *attr, const char *group) argument
679 sysfs_notify(struct kobject *kobj, const char *dir, const char *attr) argument
740 sysfs_create_file(struct kobject *kobj, const struct attribute *attr) argument
746 sysfs_remove_file(struct kobject *kobj, const struct attribute *attr) argument
[all...]
/linux-master/drivers/edac/
H A Dedac_mc_sysfs.c133 struct device_attribute attr; member in struct:dev_ch_attribute
141 #define to_channel(k) (container_of(k, struct dev_ch_attribute, attr)->channel)
259 &dev_attr_legacy_dev_type.attr,
260 &dev_attr_legacy_mem_type.attr,
261 &dev_attr_legacy_edac_mode.attr,
262 &dev_attr_legacy_size_mb.attr,
263 &dev_attr_legacy_ue_count.attr,
264 &dev_attr_legacy_ce_count.attr,
312 &dev_attr_legacy_ch0_dimm_label.attr.attr,
370 csrow_dev_is_visible(struct kobject *kobj, struct attribute *attr, int idx) argument
895 mci_attr_is_visible(struct kobject *kobj, struct attribute *attr, int idx) argument
[all...]
/linux-master/drivers/firewire/
H A Ddevice-attribute-test.c118 KUNIT_EXPECT_GT(test, show_immediate(node_dev, &config_rom_attributes[0].attr, buf), 0);
122 KUNIT_EXPECT_GT(test, show_immediate(node_dev, &config_rom_attributes[4].attr, buf), 0);
126 KUNIT_EXPECT_GT(test, show_text_leaf(node_dev, &config_rom_attributes[5].attr, buf), 0);
130 KUNIT_EXPECT_GT(test, show_text_leaf(node_dev, &config_rom_attributes[6].attr, buf), 0);
136 KUNIT_EXPECT_LT(test, show_immediate(unit0_dev, &config_rom_attributes[0].attr, buf), 0);
139 KUNIT_EXPECT_GT(test, show_immediate(unit0_dev, &config_rom_attributes[4].attr, buf), 0);
143 KUNIT_EXPECT_LT(test, show_text_leaf(unit0_dev, &config_rom_attributes[5].attr, buf), 0);
146 KUNIT_EXPECT_GT(test, show_text_leaf(unit0_dev, &config_rom_attributes[6].attr, buf), 0);
150 KUNIT_EXPECT_GT(test, show_immediate(unit0_dev, &config_rom_attributes[2].attr, buf), 0);
154 KUNIT_EXPECT_GT(test, show_immediate(unit0_dev, &config_rom_attributes[3].attr, bu
[all...]
/linux-master/drivers/ufs/core/
H A Dufs-fault-injection.c45 struct fault_attr *attr = NULL; local
48 attr = &ufs_trigger_eh_attr;
50 attr = &ufs_timeout_attr;
52 if (WARN_ON_ONCE(!attr))
55 if (!setup_fault_attr(attr, (char *)val))
/linux-master/drivers/xen/
H A Dxen-balloon.c138 struct device_attribute *attr, \
155 static ssize_t target_kb_show(struct device *dev, struct device_attribute *attr, argument
162 struct device_attribute *attr,
180 static ssize_t target_show(struct device *dev, struct device_attribute *attr, argument
189 struct device_attribute *attr,
208 &dev_attr_target_kb.attr,
209 &dev_attr_target.attr,
210 &dev_attr_schedule_delay.attr.attr,
211 &dev_attr_max_schedule_delay.attr
161 target_kb_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
188 target_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
[all...]
/linux-master/tools/testing/selftests/lsm/
H A Dlsm_get_self_attr_test.c147 char *attr = calloc(page_size, 1); local
192 ASSERT_EQ(0, read_proc_attr("current", attr, page_size));
193 ASSERT_EQ(0, strcmp((char *)tctx->ctx, attr));
196 ASSERT_NE(0, strcmp((char *)tctx->ctx, attr));
205 if (read_proc_attr("exec", attr, page_size) == 0)
206 ASSERT_EQ(0, strcmp((char *)tctx->ctx, attr));
210 ASSERT_NE(0, strcmp((char *)tctx->ctx, attr));
219 if (read_proc_attr("fscreate", attr, page_size) == 0)
220 ASSERT_EQ(0, strcmp((char *)tctx->ctx, attr));
224 ASSERT_NE(0, strcmp((char *)tctx->ctx, attr));
[all...]
/linux-master/drivers/ptp/
H A Dptp_sysfs.c14 struct device_attribute *attr, char *page)
22 struct device_attribute *attr,
33 struct device_attribute *attr, char *page) \
48 struct device_attribute *attr,
74 struct device_attribute *attr, char *page)
112 struct device_attribute *attr,
140 struct device_attribute *attr,
188 struct device_attribute *attr, char *page)
204 struct device_attribute *attr,
267 struct device_attribute *attr, cha
13 clock_name_show(struct device *dev, struct device_attribute *attr, char *page) argument
21 max_phase_adjustment_show(struct device *dev, struct device_attribute *attr, char *page) argument
47 extts_enable_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
73 extts_fifo_show(struct device *dev, struct device_attribute *attr, char *page) argument
111 period_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
139 pps_enable_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
187 n_vclocks_show(struct device *dev, struct device_attribute *attr, char *page) argument
203 n_vclocks_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
266 max_vclocks_show(struct device *dev, struct device_attribute *attr, char *page) argument
277 max_vclocks_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
342 ptp_is_attribute_visible(struct kobject *kobj, struct attribute *attr, int n) argument
392 ptp_pin_show(struct device *dev, struct device_attribute *attr, char *page) argument
414 ptp_pin_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
[all...]
/linux-master/tools/lib/thermal/
H A Dcommands.c40 struct nlattr *attr; local
45 nla_for_each_nested(attr, info->attrs[THERMAL_GENL_ATTR_TZ], rem) {
47 if (nla_type(attr) == THERMAL_GENL_ATTR_TZ_ID) {
55 __tz[size - 1].id = nla_get_u32(attr);
59 if (nla_type(attr) == THERMAL_GENL_ATTR_TZ_NAME)
60 nla_strlcpy(__tz[size - 1].name, attr,
74 struct nlattr *attr; local
79 nla_for_each_nested(attr, info->attrs[THERMAL_GENL_ATTR_CDEV], rem) {
81 if (nla_type(attr) == THERMAL_GENL_ATTR_CDEV_ID) {
89 __cdev[size - 1].id = nla_get_u32(attr);
114 struct nlattr *attr; local
[all...]
/linux-master/drivers/hwmon/
H A Dadm1031.c321 struct device_attribute *attr, char *buf)
323 int nr = to_sensor_dev_attr(attr)->index;
329 fan_auto_channel_store(struct device *dev, struct device_attribute *attr, argument
334 int nr = to_sensor_dev_attr(attr)->index;
386 struct device_attribute *attr, char *buf)
388 int nr = to_sensor_dev_attr(attr)->index;
394 struct device_attribute *attr, char *buf)
396 int nr = to_sensor_dev_attr(attr)->index;
402 auto_temp_min_store(struct device *dev, struct device_attribute *attr, argument
407 int nr = to_sensor_dev_attr(attr)
320 fan_auto_channel_show(struct device *dev, struct device_attribute *attr, char *buf) argument
385 auto_temp_off_show(struct device *dev, struct device_attribute *attr, char *buf) argument
393 auto_temp_min_show(struct device *dev, struct device_attribute *attr, char *buf) argument
423 auto_temp_max_show(struct device *dev, struct device_attribute *attr, char *buf) argument
432 auto_temp_max_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
466 pwm_show(struct device *dev, struct device_attribute *attr, char *buf) argument
473 pwm_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
555 fan_show(struct device *dev, struct device_attribute *attr, char *buf) argument
567 fan_div_show(struct device *dev, struct device_attribute *attr, char *buf) argument
574 fan_min_show(struct device *dev, struct device_attribute *attr, char *buf) argument
583 fan_min_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
608 fan_div_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
665 temp_show(struct device *dev, struct device_attribute *attr, char *buf) argument
676 temp_offset_show(struct device *dev, struct device_attribute *attr, char *buf) argument
684 temp_min_show(struct device *dev, struct device_attribute *attr, char *buf) argument
691 temp_max_show(struct device *dev, struct device_attribute *attr, char *buf) argument
698 temp_crit_show(struct device *dev, struct device_attribute *attr, char *buf) argument
705 temp_offset_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
727 temp_min_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
749 temp_max_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
771 temp_crit_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
811 alarms_show(struct device *dev, struct device_attribute *attr, char *buf) argument
820 alarm_show(struct device *dev, struct device_attribute *attr, char *buf) argument
849 update_interval_show(struct device *dev, struct device_attribute *attr, char *buf) argument
857 update_interval_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
[all...]
H A Dadc128d818.c148 struct device_attribute *attr, char *buf)
151 int index = to_sensor_dev_attr_2(attr)->index;
152 int nr = to_sensor_dev_attr_2(attr)->nr;
163 struct device_attribute *attr, const char *buf,
167 int index = to_sensor_dev_attr_2(attr)->index;
168 int nr = to_sensor_dev_attr_2(attr)->nr;
189 struct device_attribute *attr, char *buf)
192 int index = to_sensor_dev_attr(attr)->index;
203 struct device_attribute *attr,
207 int index = to_sensor_dev_attr(attr)
147 adc128_in_show(struct device *dev, struct device_attribute *attr, char *buf) argument
162 adc128_in_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
188 adc128_temp_show(struct device *dev, struct device_attribute *attr, char *buf) argument
202 adc128_temp_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
228 adc128_alarm_show(struct device *dev, struct device_attribute *attr, char *buf) argument
248 adc128_is_visible(struct kobject *kobj, struct attribute *attr, int index) argument
[all...]
/linux-master/net/ethtool/
H A Dnetlink.h51 struct nlattr *attr; local
53 attr = nla_reserve(skb, attrtype, len + 1);
54 if (!attr)
57 memcpy(nla_data(attr), s, len);
58 ((char *)nla_data(attr))[len] = '\0';
65 * @attr: netlink attribute with new value or null
68 * Copy the u32 value from NLA_U32 netlink attribute @attr into variable
69 * pointed to by @dst; do nothing if @attr is null. Bool pointed to by @mod
73 static inline void ethnl_update_u32(u32 *dst, const struct nlattr *attr, argument
78 if (!attr)
99 ethnl_update_u8(u8 *dst, const struct nlattr *attr, bool *mod) argument
125 ethnl_update_bool32(u32 *dst, const struct nlattr *attr, bool *mod) argument
151 ethnl_update_bool(bool *dst, const struct nlattr *attr, bool *mod) argument
178 ethnl_update_binary(void *dst, unsigned int len, const struct nlattr *attr, bool *mod) argument
202 ethnl_update_bitfield32(u32 *dst, const struct nlattr *attr, bool *mod) argument
[all...]
/linux-master/kernel/bpf/
H A Dtcx.c10 int tcx_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) argument
12 bool created, ingress = attr->attach_type == BPF_TCX_INGRESS;
20 dev = __dev_get_by_index(net, attr->target_ifindex);
25 if (attr->attach_flags & BPF_F_REPLACE) {
26 replace_prog = bpf_prog_get_type(attr->replace_bpf_fd,
40 attr->attach_flags, attr->relative_fd,
41 attr->expected_revision);
59 int tcx_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog) argument
61 bool ingress = attr
122 tcx_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr) argument
298 tcx_link_init(struct tcx_link *tcx, struct bpf_link_primer *link_primer, const union bpf_attr *attr, struct net_device *dev, struct bpf_prog *prog) argument
310 tcx_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) argument
[all...]
/linux-master/drivers/crypto/caam/
H A Ddpseci.c158 * @attr: Returned object's attributes
163 struct dpseci_attr *attr)
177 attr->id = le32_to_cpu(rsp_params->id);
178 attr->num_tx_queues = rsp_params->num_tx_queues;
179 attr->num_rx_queues = rsp_params->num_rx_queues;
180 attr->options = le32_to_cpu(rsp_params->options);
227 * @attr: Returned Rx queue attributes
232 u8 queue, struct dpseci_rx_queue_attr *attr)
247 attr->dest_cfg.dest_id = le32_to_cpu(cmd_params->dest_id);
248 attr
162 dpseci_get_attributes(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, struct dpseci_attr *attr) argument
231 dpseci_get_rx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u8 queue, struct dpseci_rx_queue_attr *attr) argument
271 dpseci_get_tx_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u8 queue, struct dpseci_tx_queue_attr *attr) argument
304 dpseci_get_sec_attr(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, struct dpseci_sec_attr *attr) argument
[all...]
/linux-master/drivers/infiniband/hw/mlx4/
H A Dsysfs.c47 struct device_attribute *attr, char *buf)
50 container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry);
69 struct device_attribute *attr,
75 container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry);
112 struct device_attribute *attr,
116 container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry);
141 struct device_attribute *attr,
145 container_of(attr, struct mlx4_ib_iov_sysfs_attr, dentry);
161 sysfs_remove_file((_dentry)->kobj, &(_dentry)->dentry.attr); \
167 struct device_attribute *attr,
46 show_admin_alias_guid(struct device *dev, struct device_attribute *attr, char *buf) argument
68 store_admin_alias_guid(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
111 show_port_gid(struct device *dev, struct device_attribute *attr, char *buf) argument
140 show_phys_port_pkey(struct device *dev, struct device_attribute *attr, char *buf) argument
164 create_sysfs_entry(void *_ctx, struct mlx4_ib_iov_sysfs_attr *_dentry, char *_name, struct kobject *_kobj, ssize_t (*show)(struct device *dev, struct device_attribute *attr, char *buf), ssize_t (*store)(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) ) argument
202 add_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num, struct attribute *attr) argument
215 del_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num, struct attribute *attr) argument
229 struct ib_port_attr attr; local
394 struct attribute attr; member in struct:port_attribute
400 port_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
412 port_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t size) argument
436 struct port_attribute attr; member in struct:port_table_attribute
441 show_port_pkey(struct mlx4_port *p, struct port_attribute *attr, char *buf) argument
454 store_port_pkey(struct mlx4_port *p, struct port_attribute *attr, const char *buf, size_t count) argument
486 show_port_gid_idx(struct mlx4_port *p, struct port_attribute *attr, char *buf) argument
538 sysfs_show_smi_enabled(struct device *dev, struct device_attribute *attr, char *buf) argument
549 sysfs_show_enable_smi_admin(struct device *dev, struct device_attribute *attr, char *buf) argument
561 sysfs_store_enable_smi_admin(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
[all...]
/linux-master/tools/perf/util/
H A Devsel.c220 evsel->id_pos = __perf_evsel__calc_id_pos(evsel->core.attr.sample_type);
221 evsel->is_pos = __perf_evsel__calc_is_pos(evsel->core.attr.sample_type);
227 if (!(evsel->core.attr.sample_type & bit)) {
228 evsel->core.attr.sample_type |= bit;
237 if (evsel->core.attr.sample_type & bit) {
238 evsel->core.attr.sample_type &= ~bit;
253 evsel->core.attr.read_format |= PERF_FORMAT_ID;
275 struct perf_event_attr *attr, int idx)
277 perf_evsel__init(&evsel->core, attr, idx);
289 evsel->sample_size = __evsel__sample_size(attr
274 evsel__init(struct evsel *evsel, struct perf_event_attr *attr, int idx) argument
300 evsel__new_idx(struct perf_event_attr *attr, int idx) argument
463 struct perf_event_attr attr = { local
540 struct perf_event_attr *attr = &evsel->core.attr; local
635 struct perf_event_attr *attr = &evsel->core.attr; local
848 struct perf_event_attr *attr = &evsel->core.attr; local
914 struct perf_event_attr *attr = &evsel->core.attr; local
934 struct perf_event_attr *attr = &evsel->core.attr; local
1084 evsel__set_default_freq_period(struct record_opts *opts, struct perf_event_attr *attr) argument
1132 struct perf_event_attr *attr = &evsel->core.attr; local
1756 display_attr(struct perf_event_attr *attr) argument
[all...]
/linux-master/drivers/s390/scsi/
H A Dzfcp_sysfs.c92 struct device_attribute *attr,
104 struct device_attribute *attr,
124 struct device_attribute *attr,
142 struct device_attribute *attr,
168 struct device_attribute *attr,
188 struct device_attribute *attr,
214 struct device_attribute *attr,
299 struct device_attribute *attr,
343 struct device_attribute *attr, char *buf)
360 struct device_attribute *attr,
91 zfcp_sysfs_port_failed_show(struct device *dev, struct device_attribute *attr, char *buf) argument
103 zfcp_sysfs_port_failed_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
123 zfcp_sysfs_unit_failed_show(struct device *dev, struct device_attribute *attr, char *buf) argument
141 zfcp_sysfs_unit_failed_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
167 zfcp_sysfs_adapter_failed_show(struct device *dev, struct device_attribute *attr, char *buf) argument
187 zfcp_sysfs_adapter_failed_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
213 zfcp_sysfs_port_rescan_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
298 zfcp_sysfs_port_remove_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
342 zfcp_sysfs_adapter_diag_max_age_show(struct device *dev, struct device_attribute *attr, char *buf) argument
359 zfcp_sysfs_adapter_diag_max_age_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
385 zfcp_sysfs_adapter_fc_security_show( struct device *dev, struct device_attribute *attr, char *buf) argument
442 zfcp_sysfs_unit_add_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
461 zfcp_sysfs_unit_remove_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
478 zfcp_sysfs_port_fc_security_show(struct device *dev, struct device_attribute *attr, char *buf) argument
622 zfcp_sysfs_scsi_fcp_lun_show(struct device *dev, struct device_attribute *attr, char *buf) argument
636 zfcp_sysfs_scsi_zfcp_failed_show(struct device *dev, struct device_attribute *attr, char *buf) argument
647 zfcp_sysfs_scsi_zfcp_failed_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
698 zfcp_sysfs_adapter_util_show(struct device *dev, struct device_attribute *attr, char *buf) argument
777 zfcp_sysfs_adapter_q_full_show(struct device *dev, struct device_attribute *attr, char *buf) argument
813 zfcp_sysfs_adapter_diag_b2b_credit_show( struct device *dev, struct device_attribute *attr, char *buf) argument
[all...]
/linux-master/drivers/infiniband/core/
H A Dcache.c88 struct ib_gid_attr attr; member in struct:ib_gid_table_entry
92 * and attr might be already freed. So keep a copy of it.
239 struct ib_device *device = entry->attr.device;
240 u32 port_num = entry->attr.port_num;
244 port_num, entry->attr.index, entry->attr.gid.raw);
254 if (entry == table->data_vec[entry->attr.index])
255 table->data_vec[entry->attr.index] = NULL;
284 struct ib_device *device = entry->attr.device;
285 u32 port_num = entry->attr
294 alloc_gid_entry(const struct ib_gid_attr *attr) argument
353 const struct ib_gid_attr *attr = &entry->attr; local
426 add_modify_gid(struct ib_gid_table *table, const struct ib_gid_attr *attr) argument
476 struct ib_gid_attr *attr; local
546 __ib_cache_gid_add(struct ib_device *ib_dev, u32 port, union ib_gid *gid, struct ib_gid_attr *attr, unsigned long mask, bool default_gid) argument
590 ib_cache_gid_add(struct ib_device *ib_dev, u32 port, union ib_gid *gid, struct ib_gid_attr *attr) argument
601 _ib_cache_gid_del(struct ib_device *ib_dev, u32 port, union ib_gid *gid, struct ib_gid_attr *attr, unsigned long mask, bool default_gid) argument
630 ib_cache_gid_del(struct ib_device *ib_dev, u32 port, union ib_gid *gid, struct ib_gid_attr *attr) argument
693 const struct ib_gid_attr *attr; local
996 rdma_read_gid_hw_context(const struct ib_gid_attr *attr) argument
1037 const struct ib_gid_attr *attr; local
1221 const struct ib_gid_attr *attr = ERR_PTR(-ENODATA); local
1312 rdma_put_gid_attr(const struct ib_gid_attr *attr) argument
1331 rdma_hold_gid_attr(const struct ib_gid_attr *attr) argument
1352 rdma_read_gid_attr_ndev_rcu(const struct ib_gid_attr *attr) argument
1403 rdma_read_gid_l2_fields(const struct ib_gid_attr *attr, u16 *vlan_id, u8 *smac) argument
[all...]
/linux-master/drivers/scsi/qla4xxx/
H A Dql4_attr.c108 .attr = {
119 struct bin_attribute *attr; member in struct:sysfs_entry
133 iter->attr);
148 iter->attr);
154 struct device_attribute *attr, char *buf)
169 qla4xxx_serial_num_show(struct device *dev, struct device_attribute *attr, argument
177 qla4xxx_iscsi_version_show(struct device *dev, struct device_attribute *attr, argument
186 qla4xxx_optrom_version_show(struct device *dev, struct device_attribute *attr, argument
196 qla4xxx_board_id_show(struct device *dev, struct device_attribute *attr, argument
204 qla4xxx_fw_state_show(struct device *dev, struct device_attribute *attr, argument
153 qla4xxx_fw_version_show(struct device *dev, struct device_attribute *attr, char *buf) argument
215 qla4xxx_phy_port_cnt_show(struct device *dev, struct device_attribute *attr, char *buf) argument
227 qla4xxx_phy_port_num_show(struct device *dev, struct device_attribute *attr, char *buf) argument
239 qla4xxx_iscsi_func_cnt_show(struct device *dev, struct device_attribute *attr, char *buf) argument
251 qla4xxx_hba_model_show(struct device *dev, struct device_attribute *attr, char *buf) argument
260 qla4xxx_fw_timestamp_show(struct device *dev, struct device_attribute *attr, char *buf) argument
269 qla4xxx_fw_build_user_show(struct device *dev, struct device_attribute *attr, char *buf) argument
277 qla4xxx_fw_ext_timestamp_show(struct device *dev, struct device_attribute *attr, char *buf) argument
285 qla4xxx_fw_load_src_show(struct device *dev, struct device_attribute *attr, char *buf) argument
307 qla4xxx_fw_uptime_show(struct device *dev, struct device_attribute *attr, char *buf) argument
[all...]
/linux-master/drivers/input/mouse/
H A Dtrackpoint.c108 struct trackpoint_attr_data *attr = data; local
109 u8 value = *(u8 *)((void *)tp + attr->field_offset);
111 if (attr->inverted)
121 struct trackpoint_attr_data *attr = data; local
122 u8 *field = (void *)tp + attr->field_offset;
131 err = trackpoint_write(&psmouse->ps2dev, attr->command, value);
150 struct trackpoint_attr_data *attr = data; local
151 bool *field = (void *)tp + attr->field_offset;
159 if (attr->inverted)
165 attr
204 trackpoint_is_attr_available(struct psmouse *psmouse, struct attribute *attr) argument
214 trackpoint_is_attr_visible(struct kobject *kobj, struct attribute *attr, int n) argument
[all...]
/linux-master/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_tlv.h84 const struct fm10k_tlv_attr *attr; member in struct:fm10k_msg_data
89 #define FM10K_MSG_HANDLER(id, attr, func) { id, attr, func }
113 #define fm10k_tlv_attr_get_u8(attr, ptr) \
114 fm10k_tlv_attr_get_value(attr, ptr, sizeof(u8))
115 #define fm10k_tlv_attr_get_u16(attr, ptr) \
116 fm10k_tlv_attr_get_value(attr, ptr, sizeof(u16))
117 #define fm10k_tlv_attr_get_u32(attr, ptr) \
118 fm10k_tlv_attr_get_value(attr, ptr, sizeof(u32))
119 #define fm10k_tlv_attr_get_u64(attr, pt
[all...]
/linux-master/arch/powerpc/kernel/ptrace/
H A Dptrace-noadv.c84 struct perf_event_attr attr; local
130 attr = bp->attr;
131 attr.bp_addr = hw_brk.address;
132 attr.bp_len = DABR_MAX_LEN;
133 arch_bp_generic_fields(hw_brk.type, &attr.bp_type);
136 attr.disabled = false;
138 ret = modify_user_hw_breakpoint(bp, &attr);
148 hw_breakpoint_init(&attr);
149 attr
200 struct perf_event_attr attr; local
[all...]
/linux-master/samples/kobject/
H A Dkset-example.c39 struct attribute attr; member in struct:foo_attribute
40 ssize_t (*show)(struct foo_obj *foo, struct foo_attribute *attr, char *buf);
41 ssize_t (*store)(struct foo_obj *foo, struct foo_attribute *attr, const char *buf, size_t count);
43 #define to_foo_attr(x) container_of(x, struct foo_attribute, attr)
53 struct attribute *attr,
59 attribute = to_foo_attr(attr);
73 struct attribute *attr,
79 attribute = to_foo_attr(attr);
112 static ssize_t foo_show(struct foo_obj *foo_obj, struct foo_attribute *attr, argument
118 static ssize_t foo_store(struct foo_obj *foo_obj, struct foo_attribute *attr, argument
52 foo_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) argument
72 foo_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t len) argument
138 b_show(struct foo_obj *foo_obj, struct foo_attribute *attr, char *buf) argument
150 b_store(struct foo_obj *foo_obj, struct foo_attribute *attr, const char *buf, size_t count) argument
[all...]
/linux-master/arch/alpha/kernel/
H A Dbugs.c20 struct device_attribute *attr, char *buf)
29 struct device_attribute *attr, char *buf)
38 struct device_attribute *attr, char *buf)
19 cpu_show_meltdown(struct device *dev, struct device_attribute *attr, char *buf) argument
28 cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr, char *buf) argument
37 cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr, char *buf) argument
/linux-master/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_sysfs.c18 struct device_attribute *attr,
21 struct hwmon_attr *ixgbe_attr = container_of(attr, struct hwmon_attr,
28 struct device_attribute *attr,
31 struct hwmon_attr *ixgbe_attr = container_of(attr, struct hwmon_attr,
47 struct device_attribute *attr,
50 struct hwmon_attr *ixgbe_attr = container_of(attr, struct hwmon_attr,
61 struct device_attribute *attr,
64 struct hwmon_attr *ixgbe_attr = container_of(attr, struct hwmon_attr,
75 * ixgbe_add_hwmon_attr - Create hwmon attr table for a hwmon sysfs file.
124 ixgbe_attr->dev_attr.attr
17 ixgbe_hwmon_show_location(struct device *dev, struct device_attribute *attr, char *buf) argument
27 ixgbe_hwmon_show_temp(struct device *dev, struct device_attribute *attr, char *buf) argument
46 ixgbe_hwmon_show_cautionthresh(struct device *dev, struct device_attribute *attr, char *buf) argument
60 ixgbe_hwmon_show_maxopthresh(struct device *dev, struct device_attribute *attr, char *buf) argument
[all...]

Completed in 280 milliseconds

1234567891011>>