Home
last modified time | relevance | path

Searched refs:attr (Results 1 – 25 of 1740) sorted by relevance

12345678910>>...70

/drivers/infiniband/hw/hfi1/
Dsysfs.c105 struct ib_port_attribute *attr, char *buf) in cc_prescan_show() argument
114 struct ib_port_attribute *attr, const char *buf, in cc_prescan_store() argument
130 &ib_port_attr_cc_prescan.attr,
142 struct ib_port_attribute attr; member
147 struct ib_port_attribute *attr, char *buf) in sc2vl_attr_show() argument
150 container_of(attr, struct hfi1_sc2vl_attr, attr); in sc2vl_attr_show()
158 .attr = __ATTR(N, 0444, sc2vl_attr_show, NULL), \
196 &hfi1_sc2vl_attr_0.attr.attr,
197 &hfi1_sc2vl_attr_1.attr.attr,
198 &hfi1_sc2vl_attr_2.attr.attr,
[all …]
/drivers/infiniband/core/
Dsysfs.c50 struct ib_port_attribute attr; member
77 struct device_attribute attr; member
86 struct ib_port_attribute attr; member
106 struct attribute *attr, char *buf) in port_attr_show() argument
109 container_of(attr, struct ib_port_attribute, attr); in port_attr_show()
119 struct attribute *attr, in port_attr_store() argument
123 container_of(attr, struct ib_port_attribute, attr); in port_attr_store()
147 struct device_attribute *attr, char *buf) in hw_stat_device_show() argument
150 container_of(attr, struct hw_stats_device_attribute, attr); in hw_stat_device_show()
158 struct device_attribute *attr, in hw_stat_device_store() argument
[all …]
/drivers/scsi/
Discsi_boot_sysfs.c24 struct attribute attr; member
33 struct attribute *attr, char *buf) in iscsi_boot_show_attribute() argument
38 container_of(attr, struct iscsi_boot_attr, attr); in iscsi_boot_show_attribute()
71 .attr = { .name = __stringify(sysfs_name), .mode = 0444 }, \
92 &iscsi_boot_attr_tgt_index.attr,
93 &iscsi_boot_attr_tgt_flags.attr,
94 &iscsi_boot_attr_tgt_ip.attr,
95 &iscsi_boot_attr_tgt_port.attr,
96 &iscsi_boot_attr_tgt_lun.attr,
97 &iscsi_boot_attr_tgt_chap.attr,
[all …]
Dscsi_transport_iscsi.c128 show_transport_handle(struct device *dev, struct device_attribute *attr, in show_transport_handle() argument
143 struct device_attribute *attr,char *buf) \
153 &dev_attr_handle.attr,
154 &dev_attr_caps.attr,
189 show_ep_handle(struct device *dev, struct device_attribute *attr, char *buf) in show_ep_handle() argument
197 &dev_attr_ep_handle.attr,
322 show_##type##_##name(struct device *dev, struct device_attribute *attr, \
443 struct attribute *attr, int i) in iscsi_iface_attr_is_visible() argument
450 if (attr == &dev_attr_iface_def_taskmgmt_tmo.attr) in iscsi_iface_attr_is_visible()
452 else if (attr == &dev_attr_iface_header_digest.attr) in iscsi_iface_attr_is_visible()
[all …]
/drivers/scsi/ufs/
Dufs-sysfs.c39 struct device_attribute *attr, in ufs_sysfs_pm_lvl_store() argument
68 struct device_attribute *attr, char *buf) in rpm_lvl_show() argument
76 struct device_attribute *attr, const char *buf, size_t count) in rpm_lvl_store() argument
78 return ufs_sysfs_pm_lvl_store(dev, attr, buf, count, true); in rpm_lvl_store()
82 struct device_attribute *attr, char *buf) in rpm_target_dev_state_show() argument
91 struct device_attribute *attr, char *buf) in rpm_target_link_state_show() argument
100 struct device_attribute *attr, char *buf) in spm_lvl_show() argument
108 struct device_attribute *attr, const char *buf, size_t count) in spm_lvl_store() argument
110 return ufs_sysfs_pm_lvl_store(dev, attr, buf, count, false); in spm_lvl_store()
114 struct device_attribute *attr, char *buf) in spm_target_dev_state_show() argument
[all …]
/drivers/infiniband/hw/qib/
Dqib_sysfs.c53 struct ib_port_attribute *attr, char *buf) in hrtbt_enable_show() argument
62 struct ib_port_attribute *attr, in hrtbt_enable_store() argument
89 struct ib_port_attribute *attr, const char *buf, in loopback_store() argument
105 struct ib_port_attribute *attr, in led_override_store() argument
125 struct ib_port_attribute *attr, char *buf) in status_show() argument
156 struct ib_port_attribute *attr, char *buf) in status_str_show() argument
196 &ib_port_attr_loopback.attr,
197 &ib_port_attr_led_override.attr,
198 &ib_port_attr_hrtbt_enable.attr,
199 &ib_port_attr_status.attr,
[all …]
/drivers/base/
Dsoc.c21 static ssize_t soc_info_show(struct device *dev, struct device_attribute *attr,
26 struct soc_device_attribute *attr; member
46 struct attribute *attr, in soc_attribute_mode() argument
52 if ((attr == &dev_attr_machine.attr) && soc_dev->attr->machine) in soc_attribute_mode()
53 return attr->mode; in soc_attribute_mode()
54 if ((attr == &dev_attr_family.attr) && soc_dev->attr->family) in soc_attribute_mode()
55 return attr->mode; in soc_attribute_mode()
56 if ((attr == &dev_attr_revision.attr) && soc_dev->attr->revision) in soc_attribute_mode()
57 return attr->mode; in soc_attribute_mode()
58 if ((attr == &dev_attr_serial_number.attr) && soc_dev->attr->serial_number) in soc_attribute_mode()
[all …]
/drivers/staging/iio/meter/
Dade7854.c25 struct device_attribute *attr, in ade7854_read_8bit() argument
32 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_8bit()
42 struct device_attribute *attr, in ade7854_read_16bit() argument
49 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_16bit()
59 struct device_attribute *attr, in ade7854_read_24bit() argument
66 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_24bit()
76 struct device_attribute *attr, in ade7854_read_32bit() argument
81 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_read_32bit()
93 struct device_attribute *attr, in ade7854_write_8bit() argument
97 struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); in ade7854_write_8bit()
[all …]
/drivers/hwmon/occ/
Dcommon.c229 struct device_attribute *attr, char *buf) in occ_show_temp_1() argument
236 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_temp_1()
265 struct device_attribute *attr, char *buf) in occ_show_temp_2() argument
272 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_temp_2()
316 struct device_attribute *attr, char *buf) in occ_show_temp_10() argument
323 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_temp_10()
363 struct device_attribute *attr, char *buf) in occ_show_freq_1() argument
370 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_freq_1()
393 struct device_attribute *attr, char *buf) in occ_show_freq_2() argument
400 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_freq_2()
[all …]
/drivers/hwmon/
Dadt7462.c781 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_min_show() local
784 if (!temp_enabled(data, attr->index)) in temp_min_show()
787 return sprintf(buf, "%d\n", 1000 * (data->temp_min[attr->index] - 64)); in temp_min_show()
794 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_min_store() local
799 if (kstrtol(buf, 10, &temp) || !temp_enabled(data, attr->index)) in temp_min_store()
806 data->temp_min[attr->index] = temp; in temp_min_store()
807 i2c_smbus_write_byte_data(client, ADT7462_TEMP_MIN_REG(attr->index), in temp_min_store()
817 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in temp_max_show() local
820 if (!temp_enabled(data, attr->index)) in temp_max_show()
823 return sprintf(buf, "%d\n", 1000 * (data->temp_max[attr->index] - 64)); in temp_max_show()
[all …]
Dnct7802.c66 struct device_attribute *attr, char *buf) in temp_type_show() argument
69 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in temp_type_show()
81 struct device_attribute *attr, const char *buf, in temp_type_store() argument
85 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in temp_type_store()
102 struct device_attribute *attr, char *buf) in pwm_mode_show() argument
104 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in pwm_mode_show()
122 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in pwm_show() local
127 if (!attr->index) in pwm_show()
130 ret = regmap_read(data->regmap, attr->index, &val); in pwm_show()
140 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in pwm_store() local
[all …]
Demc1403.c35 static ssize_t temp_show(struct device *dev, struct device_attribute *attr, in temp_show() argument
38 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in temp_show()
49 static ssize_t bit_show(struct device *dev, struct device_attribute *attr, in bit_show() argument
52 struct sensor_device_attribute_2 *sda = to_sensor_dev_attr_2(attr); in bit_show()
63 static ssize_t temp_store(struct device *dev, struct device_attribute *attr, in temp_store() argument
66 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in temp_store()
80 static ssize_t bit_store(struct device *dev, struct device_attribute *attr, in bit_store() argument
83 struct sensor_device_attribute_2 *sda = to_sensor_dev_attr_2(attr); in bit_store()
99 struct device_attribute *attr, char *buf, in show_hyst_common() argument
102 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in show_hyst_common()
[all …]
Dmax16065.c196 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in max16065_input_show() local
198 int adc = data->adc[attr->index]; in max16065_input_show()
204 ADC_TO_MV(adc, data->range[attr->index])); in max16065_input_show()
352 &sensor_dev_attr_in0_input.dev_attr.attr,
353 &sensor_dev_attr_in0_lcrit.dev_attr.attr,
354 &sensor_dev_attr_in0_crit.dev_attr.attr,
355 &sensor_dev_attr_in0_alarm.dev_attr.attr,
357 &sensor_dev_attr_in1_input.dev_attr.attr,
358 &sensor_dev_attr_in1_lcrit.dev_attr.attr,
359 &sensor_dev_attr_in1_crit.dev_attr.attr,
[all …]
Dpowr1220.c175 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); in powr1220_voltage_show() local
176 int adc_val = powr1220_read_adc(dev, attr->index); in powr1220_voltage_show()
188 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); in powr1220_max_show() local
191 return sprintf(buf, "%d\n", data->adc_maxes[attr->index]); in powr1220_max_show()
199 struct sensor_device_attribute *attr = to_sensor_dev_attr(dev_attr); in powr1220_label_show() local
201 return sprintf(buf, "%s\n", input_names[attr->index]); in powr1220_label_show()
250 &sensor_dev_attr_in0_input.dev_attr.attr,
251 &sensor_dev_attr_in1_input.dev_attr.attr,
252 &sensor_dev_attr_in2_input.dev_attr.attr,
253 &sensor_dev_attr_in3_input.dev_attr.attr,
[all …]
Dadm1026.c467 static ssize_t in_show(struct device *dev, struct device_attribute *attr, in in_show() argument
470 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in in_show()
475 static ssize_t in_min_show(struct device *dev, struct device_attribute *attr, in in_min_show() argument
478 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in in_min_show()
483 static ssize_t in_min_store(struct device *dev, struct device_attribute *attr, in in_min_store() argument
486 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in in_min_store()
503 static ssize_t in_max_show(struct device *dev, struct device_attribute *attr, in in_max_show() argument
506 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in in_max_show()
511 static ssize_t in_max_store(struct device *dev, struct device_attribute *attr, in in_max_store() argument
514 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in in_max_store()
[all …]
Dsmsc47m192.c169 static ssize_t in_show(struct device *dev, struct device_attribute *attr, in in_show() argument
172 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in in_show()
178 static ssize_t in_min_show(struct device *dev, struct device_attribute *attr, in in_min_show() argument
181 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in in_min_show()
187 static ssize_t in_max_show(struct device *dev, struct device_attribute *attr, in in_max_show() argument
190 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in in_max_show()
196 static ssize_t in_min_store(struct device *dev, struct device_attribute *attr, in in_min_store() argument
199 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in in_min_store()
218 static ssize_t in_max_store(struct device *dev, struct device_attribute *attr, in in_max_store() argument
221 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); in in_max_store()
[all …]
Dsmm665.c344 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in smm665_show_crit_alarm() local
351 if (data->faults & (1 << attr->index)) in smm665_show_crit_alarm()
360 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in smm665_show_input() local
362 int adc = attr->index; in smm665_show_input()
376 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); \
377 const int val = smm665_get_##what(dev, attr->index); \
483 &sensor_dev_attr_in1_input.dev_attr.attr,
484 &sensor_dev_attr_in1_min.dev_attr.attr,
485 &sensor_dev_attr_in1_max.dev_attr.attr,
486 &sensor_dev_attr_in1_lcrit.dev_attr.attr,
[all …]
/drivers/infiniband/sw/rxe/
Drxe.c45 rxe->attr.vendor_id = RXE_VENDOR_ID; in rxe_init_device_param()
46 rxe->attr.max_mr_size = RXE_MAX_MR_SIZE; in rxe_init_device_param()
47 rxe->attr.page_size_cap = RXE_PAGE_SIZE_CAP; in rxe_init_device_param()
48 rxe->attr.max_qp = RXE_MAX_QP; in rxe_init_device_param()
49 rxe->attr.max_qp_wr = RXE_MAX_QP_WR; in rxe_init_device_param()
50 rxe->attr.device_cap_flags = RXE_DEVICE_CAP_FLAGS; in rxe_init_device_param()
51 rxe->attr.max_send_sge = RXE_MAX_SGE; in rxe_init_device_param()
52 rxe->attr.max_recv_sge = RXE_MAX_SGE; in rxe_init_device_param()
53 rxe->attr.max_sge_rd = RXE_MAX_SGE_RD; in rxe_init_device_param()
54 rxe->attr.max_cq = RXE_MAX_CQ; in rxe_init_device_param()
[all …]
Drxe_qp.c21 if (cap->max_send_wr > rxe->attr.max_qp_wr) { in rxe_qp_chk_cap()
23 cap->max_send_wr, rxe->attr.max_qp_wr); in rxe_qp_chk_cap()
27 if (cap->max_send_sge > rxe->attr.max_send_sge) { in rxe_qp_chk_cap()
29 cap->max_send_sge, rxe->attr.max_send_sge); in rxe_qp_chk_cap()
34 if (cap->max_recv_wr > rxe->attr.max_qp_wr) { in rxe_qp_chk_cap()
36 cap->max_recv_wr, rxe->attr.max_qp_wr); in rxe_qp_chk_cap()
40 if (cap->max_recv_sge > rxe->attr.max_recv_sge) { in rxe_qp_chk_cap()
42 cap->max_recv_sge, rxe->attr.max_recv_sge); in rxe_qp_chk_cap()
126 for (i = 0; i < qp->attr.max_dest_rd_atomic; i++) { in free_rd_atomic_resources()
153 for (i = 0; i < qp->attr.max_dest_rd_atomic; i++) { in cleanup_rd_atomic_resources()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c30 static void mlx5e_tc_tun_route_attr_cleanup(struct mlx5e_tc_tun_route_attr *attr) in mlx5e_tc_tun_route_attr_cleanup() argument
32 if (attr->n) in mlx5e_tc_tun_route_attr_cleanup()
33 neigh_release(attr->n); in mlx5e_tc_tun_route_attr_cleanup()
34 if (attr->route_dev) in mlx5e_tc_tun_route_attr_cleanup()
35 dev_put(attr->route_dev); in mlx5e_tc_tun_route_attr_cleanup()
107 struct mlx5e_tc_tun_route_attr *attr) in mlx5e_route_lookup_ipv4_get() argument
123 attr->fl.fl4.flowi4_oif = uplink_dev->ifindex; in mlx5e_route_lookup_ipv4_get()
126 rt = ip_route_output_key(dev_net(mirred_dev), &attr->fl.fl4); in mlx5e_route_lookup_ipv4_get()
148 if (!attr->ttl) in mlx5e_route_lookup_ipv4_get()
149 attr->ttl = ip4_dst_hoplimit(&rt->dst); in mlx5e_route_lookup_ipv4_get()
[all …]
/drivers/memory/
Ddfl-emif.c39 struct device_attribute attr; member
45 container_of(dev_attr, struct emif_attr, attr)
48 struct device_attribute *attr, char *buf) in emif_state_show() argument
50 struct emif_attr *eattr = to_emif_attr(attr); in emif_state_show()
61 struct device_attribute *attr, in emif_clear_store() argument
64 struct emif_attr *eattr = to_emif_attr(attr); in emif_clear_store()
95 { .attr = __ATTR(inf##_index##_##_name, 0444, \
101 { .attr = __ATTR(inf##_index##_clear, 0200, \
121 &emif_attr_inf0_init_done.attr.attr,
122 &emif_attr_inf0_cal_fail.attr.attr,
[all …]
/drivers/fpga/
Ddfl-fme-perf.c179 struct device_attribute *attr, char *buf) in cpumask_show() argument
191 &dev_attr_cpumask.attr,
222 &format_attr_event.attr,
223 &format_attr_evtype.attr,
224 &format_attr_portid.attr,
523 struct device_attribute *attr, char *buf) in fme_perf_event_show() argument
529 eattr = container_of(attr, struct dev_ext_attribute, attr); in fme_perf_event_show()
558 .attr = FME_EVENT_ATTR(_name), \
565 &fme_perf_event_clock.attr.attr,
577 .attr = FME_EVENT_ATTR(cache_##_name), \
[all …]
/drivers/net/ethernet/intel/fm10k/
Dfm10k_tlv.c38 u32 *attr; in fm10k_tlv_attr_put_null_string() local
44 attr = &msg[FM10K_TLV_DWORD_LEN(*msg)]; in fm10k_tlv_attr_put_null_string()
50 attr[len / 4] = attr_data; in fm10k_tlv_attr_put_null_string()
62 attr[(len + 3) / 4] = attr_data; in fm10k_tlv_attr_put_null_string()
66 attr[0] = len | attr_id; in fm10k_tlv_attr_put_null_string()
84 static s32 fm10k_tlv_attr_get_null_string(u32 *attr, unsigned char *string) in fm10k_tlv_attr_get_null_string() argument
89 if (!string || !attr) in fm10k_tlv_attr_get_null_string()
92 len = *attr >> FM10K_TLV_LEN_SHIFT; in fm10k_tlv_attr_get_null_string()
93 attr++; in fm10k_tlv_attr_get_null_string()
96 string[len] = (u8)(attr[len / 4] >> (8 * (len % 4))); in fm10k_tlv_attr_get_null_string()
[all …]
/drivers/net/bonding/
Dbond_sysfs.c35 struct class_attribute *attr, in bonding_show_bonds() argument
39 container_of(attr, struct bond_net, class_attr_bonding_masters); in bonding_show_bonds()
79 struct class_attribute *attr, in bonding_store_bonds() argument
83 container_of(attr, struct bond_net, class_attr_bonding_masters); in bonding_store_bonds()
132 .attr = {
142 struct device_attribute *attr, in bonding_sysfs_store_option() argument
150 opt = bond_opt_get_by_name(attr->attr.name); in bonding_sysfs_store_option()
166 struct device_attribute *attr, char *buf) in bonding_show_slaves() argument
199 struct device_attribute *attr, char *buf) in bonding_show_mode() argument
212 struct device_attribute *attr, in bonding_show_xmit_hash() argument
[all …]
/drivers/gpu/drm/amd/pm/
Damdgpu_pm.c120 struct device_attribute *attr, in amdgpu_get_power_dpm_state() argument
155 struct device_attribute *attr, in amdgpu_set_power_dpm_state() argument
264 struct device_attribute *attr, in amdgpu_get_power_dpm_force_performance_level() argument
305 struct device_attribute *attr, in amdgpu_set_power_dpm_force_performance_level() argument
407 struct device_attribute *attr, in amdgpu_get_pp_num_states() argument
449 struct device_attribute *attr, in amdgpu_get_pp_cur_state() argument
491 struct device_attribute *attr, in amdgpu_get_pp_force_state() argument
503 return amdgpu_get_pp_cur_state(dev, attr, buf); in amdgpu_get_pp_force_state()
509 struct device_attribute *attr, in amdgpu_set_pp_force_state() argument
573 struct device_attribute *attr, in amdgpu_get_pp_table() argument
[all …]

12345678910>>...70