/drivers/infiniband/hw/hfi1/ |
D | sysfs.c | 105 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/ |
D | sysfs.c | 50 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/ufs/core/ |
D | ufs-sysfs.c | 40 struct device_attribute *attr, in ufs_sysfs_pm_lvl_store() argument 69 struct device_attribute *attr, char *buf) in rpm_lvl_show() argument 77 struct device_attribute *attr, const char *buf, size_t count) in rpm_lvl_store() argument 79 return ufs_sysfs_pm_lvl_store(dev, attr, buf, count, true); in rpm_lvl_store() 83 struct device_attribute *attr, char *buf) in rpm_target_dev_state_show() argument 92 struct device_attribute *attr, char *buf) in rpm_target_link_state_show() argument 101 struct device_attribute *attr, char *buf) in spm_lvl_show() argument 109 struct device_attribute *attr, const char *buf, size_t count) in spm_lvl_store() argument 111 return ufs_sysfs_pm_lvl_store(dev, attr, buf, count, false); in spm_lvl_store() 115 struct device_attribute *attr, char *buf) in spm_target_dev_state_show() argument [all …]
|
/drivers/scsi/ |
D | iscsi_boot_sysfs.c | 24 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 …]
|
D | scsi_transport_iscsi.c | 127 show_transport_handle(struct device *dev, struct device_attribute *attr, in show_transport_handle() argument 142 struct device_attribute *attr,char *buf) \ 152 &dev_attr_handle.attr, 153 &dev_attr_caps.attr, 188 show_ep_handle(struct device *dev, struct device_attribute *attr, char *buf) in show_ep_handle() argument 196 &dev_attr_ep_handle.attr, 321 show_##type##_##name(struct device *dev, struct device_attribute *attr, \ 442 struct attribute *attr, int i) in iscsi_iface_attr_is_visible() argument 449 if (attr == &dev_attr_iface_def_taskmgmt_tmo.attr) in iscsi_iface_attr_is_visible() 451 else if (attr == &dev_attr_iface_header_digest.attr) in iscsi_iface_attr_is_visible() [all …]
|
/drivers/memory/ |
D | dfl-emif.c | 52 struct device_attribute attr; member 58 container_of(dev_attr, struct emif_attr, attr) 61 struct device_attribute *attr, char *buf) in emif_state_show() argument 63 struct emif_attr *eattr = to_emif_attr(attr); in emif_state_show() 74 struct device_attribute *attr, in emif_clear_store() argument 77 struct emif_attr *eattr = to_emif_attr(attr); in emif_clear_store() 108 { .attr = __ATTR(inf##_index##_##_name, 0444, \ 114 { .attr = __ATTR(inf##_index##_clear, 0200, \ 148 &emif_attr_inf0_init_done.attr.attr, 149 &emif_attr_inf0_cal_fail.attr.attr, [all …]
|
/drivers/infiniband/hw/qib/ |
D | qib_sysfs.c | 53 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/ |
D | soc.c | 21 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/ |
D | ade7854.c | 25 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/ |
D | adt7462.c | 781 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 …]
|
D | nct7802.c | 83 struct device_attribute *attr, char *buf) in temp_type_show() argument 86 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in temp_type_show() 98 struct device_attribute *attr, const char *buf, in temp_type_store() argument 102 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in temp_type_store() 119 struct device_attribute *attr, char *buf) in pwm_mode_show() argument 121 struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); in pwm_mode_show() 139 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in pwm_show() local 144 if (!attr->index) in pwm_show() 147 ret = regmap_read(data->regmap, attr->index, &val); in pwm_show() 157 struct sensor_device_attribute *attr = to_sensor_dev_attr(devattr); in pwm_store() local [all …]
|
D | emc1403.c | 35 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 …]
|
D | max16065.c | 196 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 …]
|
D | adm1026.c | 467 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 …]
|
/drivers/hwmon/occ/ |
D | common.c | 230 struct device_attribute *attr, char *buf) in occ_show_temp_1() argument 237 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_temp_1() 266 struct device_attribute *attr, char *buf) in occ_show_temp_2() argument 273 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_temp_2() 317 struct device_attribute *attr, char *buf) in occ_show_temp_10() argument 324 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_temp_10() 364 struct device_attribute *attr, char *buf) in occ_show_freq_1() argument 371 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_freq_1() 394 struct device_attribute *attr, char *buf) in occ_show_freq_2() argument 401 struct sensor_device_attribute_2 *sattr = to_sensor_dev_attr_2(attr); in occ_show_freq_2() [all …]
|
/drivers/infiniband/sw/rxe/ |
D | rxe.c | 43 rxe->attr.vendor_id = RXE_VENDOR_ID; in rxe_init_device_param() 44 rxe->attr.max_mr_size = RXE_MAX_MR_SIZE; in rxe_init_device_param() 45 rxe->attr.page_size_cap = RXE_PAGE_SIZE_CAP; in rxe_init_device_param() 46 rxe->attr.max_qp = RXE_MAX_QP; in rxe_init_device_param() 47 rxe->attr.max_qp_wr = RXE_MAX_QP_WR; in rxe_init_device_param() 48 rxe->attr.device_cap_flags = RXE_DEVICE_CAP_FLAGS; in rxe_init_device_param() 49 rxe->attr.kernel_cap_flags = IBK_ALLOW_USER_UNREG; in rxe_init_device_param() 50 rxe->attr.max_send_sge = RXE_MAX_SGE; in rxe_init_device_param() 51 rxe->attr.max_recv_sge = RXE_MAX_SGE; in rxe_init_device_param() 52 rxe->attr.max_sge_rd = RXE_MAX_SGE_RD; in rxe_init_device_param() [all …]
|
D | rxe_srq.c | 13 struct ib_srq_attr *attr = &init->attr; in rxe_srq_chk_init() local 15 if (attr->max_wr > rxe->attr.max_srq_wr) { in rxe_srq_chk_init() 17 attr->max_wr, rxe->attr.max_srq_wr); in rxe_srq_chk_init() 21 if (attr->max_wr <= 0) { in rxe_srq_chk_init() 22 pr_warn("max_wr(%d) <= 0\n", attr->max_wr); in rxe_srq_chk_init() 26 if (attr->max_wr < RXE_MIN_SRQ_WR) in rxe_srq_chk_init() 27 attr->max_wr = RXE_MIN_SRQ_WR; in rxe_srq_chk_init() 29 if (attr->max_sge > rxe->attr.max_srq_sge) { in rxe_srq_chk_init() 31 attr->max_sge, rxe->attr.max_srq_sge); in rxe_srq_chk_init() 35 if (attr->max_sge < RXE_MIN_SRQ_SGE) in rxe_srq_chk_init() [all …]
|
D | rxe_qp.c | 21 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() 120 for (i = 0; i < qp->attr.max_dest_rd_atomic; i++) { in free_rd_atomic_resources() 141 for (i = 0; i < qp->attr.max_dest_rd_atomic; i++) { in cleanup_rd_atomic_resources() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun.c | 30 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() 108 struct mlx5e_tc_tun_route_attr *attr) in mlx5e_route_lookup_ipv4_get() argument 124 attr->fl.fl4.flowi4_oif = uplink_dev->ifindex; in mlx5e_route_lookup_ipv4_get() 129 attr->fl.fl4.flowi4_oif = tunnel->get_remote_ifindex(dev); in mlx5e_route_lookup_ipv4_get() 132 rt = ip_route_output_key(dev_net(dev), &attr->fl.fl4); in mlx5e_route_lookup_ipv4_get() 154 if (!attr->ttl) in mlx5e_route_lookup_ipv4_get() [all …]
|
/drivers/usb/typec/ |
D | pd.c | 38 dual_role_power_show(struct device *dev, struct device_attribute *attr, char *buf) in dual_role_power_show() argument 45 usb_suspend_supported_show(struct device *dev, struct device_attribute *attr, char *buf) in usb_suspend_supported_show() argument 52 unconstrained_power_show(struct device *dev, struct device_attribute *attr, char *buf) in unconstrained_power_show() argument 59 usb_communication_capable_show(struct device *dev, struct device_attribute *attr, char *buf) in usb_communication_capable_show() argument 66 dual_role_data_show(struct device *dev, struct device_attribute *attr, char *buf) in dual_role_data_show() argument 74 struct device_attribute *attr, char *buf) in unchunked_extended_messages_supported_show() argument 90 fast_role_swap_current_show(struct device *dev, struct device_attribute *attr, char *buf) in fast_role_swap_current_show() argument 96 static ssize_t voltage_show(struct device *dev, struct device_attribute *attr, char *buf) in voltage_show() argument 103 static ssize_t current_show(struct device *dev, struct device_attribute *attr, char *buf) in current_show() argument 110 .attr = { [all …]
|
/drivers/dma/idxd/ |
D | sysfs.c | 21 struct device_attribute *attr, char *buf) in engine_group_id_show() argument 32 struct device_attribute *attr, in engine_group_id_store() argument 74 &dev_attr_engine_group.attr, 116 struct device_attribute *attr, in group_read_buffers_reserved_show() argument 125 struct device_attribute *attr, in group_tokens_reserved_show() argument 129 return group_read_buffers_reserved_show(dev, attr, buf); in group_tokens_reserved_show() 133 struct device_attribute *attr, in group_read_buffers_reserved_store() argument 166 struct device_attribute *attr, in group_tokens_reserved_store() argument 170 return group_read_buffers_reserved_store(dev, attr, buf, count); in group_tokens_reserved_store() 182 struct device_attribute *attr, in group_read_buffers_allowed_show() argument [all …]
|
/drivers/fpga/ |
D | dfl-fme-perf.c | 179 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/ |
D | fm10k_tlv.c | 38 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/gpu/drm/amd/pm/ |
D | amdgpu_pm.c | 131 struct device_attribute *attr, in amdgpu_get_power_dpm_state() argument 161 struct device_attribute *attr, in amdgpu_set_power_dpm_state() argument 259 struct device_attribute *attr, in amdgpu_get_power_dpm_force_performance_level() argument 297 struct device_attribute *attr, in amdgpu_set_power_dpm_force_performance_level() argument 359 struct device_attribute *attr, in amdgpu_get_pp_num_states() argument 397 struct device_attribute *attr, in amdgpu_get_pp_cur_state() argument 439 struct device_attribute *attr, in amdgpu_get_pp_force_state() argument 451 return amdgpu_get_pp_cur_state(dev, attr, buf); in amdgpu_get_pp_force_state() 457 struct device_attribute *attr, in amdgpu_set_pp_force_state() argument 530 struct device_attribute *attr, in amdgpu_get_pp_table() argument [all …]
|
/drivers/gpu/drm/i915/gt/ |
D | intel_gt_sysfs_pm.c | 27 sysfs_gt_attribute_w_func(struct kobject *kobj, struct attribute *attr, in sysfs_gt_attribute_w_func() argument 44 gt = intel_gt_sysfs_get_drvdata(kobj, attr->name); in sysfs_gt_attribute_w_func() 52 sysfs_gt_attribute_r_func(struct kobject *kobj, struct attribute *attr, in sysfs_gt_attribute_r_func() argument 82 gt = intel_gt_sysfs_get_drvdata(kobj, attr->name); in sysfs_gt_attribute_r_func() 99 struct attribute *attr, char *buff) \ 101 u32 val = sysfs_gt_attribute_r_##_attr_type##_func(kobj, attr, \ 107 struct kobj_attribute *attr, char *buff) \ 109 return _name ##_show_common(kobj, &attr->attr, buff); \ 112 struct device_attribute *attr, char *buff) \ 114 return _name##_show_common(&dev->kobj, &attr->attr, buff); \ [all …]
|