| /linux/net/bridge/ |
| H A D | br_sysfs_br.c | 68 struct device_attribute *attr, char *buf) in forward_delay_show() 81 struct device_attribute *attr, in forward_delay_store() 88 static ssize_t hello_time_show(struct device *d, struct device_attribute *attr, in hello_time_show() 102 struct device_attribute *attr, const char *buf, in hello_time_store() 109 static ssize_t max_age_show(struct device *d, struct device_attribute *attr, in max_age_show() 122 static ssize_t max_age_store(struct device *d, struct device_attribute *attr, in max_age_store() 130 struct device_attribute *attr, char *buf) in ageing_time_show() 143 struct device_attribute *attr, in ageing_time_store() 151 struct device_attribute *attr, char *buf) in stp_state_show() 165 struct device_attribute *att in stp_state_store() [all...] |
| /linux/drivers/scsi/ |
| H A D | scsi_sas_internal.h | 17 struct device_attribute private_host_attrs[SAS_HOST_ATTRS]; 18 struct device_attribute private_phy_attrs[SAS_PHY_ATTRS]; 19 struct device_attribute private_port_attrs[SAS_PORT_ATTRS]; 20 struct device_attribute private_rphy_attrs[SAS_RPORT_ATTRS]; 21 struct device_attribute private_end_dev_attrs[SAS_END_DEV_ATTRS]; 22 struct device_attribute private_expander_attrs[SAS_EXPANDER_ATTRS]; 34 struct device_attribute *host_attrs[SAS_HOST_ATTRS + 1]; 35 struct device_attribute *phy_attrs[SAS_PHY_ATTRS + 1]; 36 struct device_attribute *port_attrs[SAS_PORT_ATTRS + 1]; 37 struct device_attribute *rphy_attrs[SAS_RPORT_ATTRS + 1]; [all …]
|
| /linux/drivers/dma/idxd/ |
| H A D | sysfs.c | 21 struct device_attribute *attr, char *buf) in engine_group_id_show() 32 struct device_attribute *attr, in engine_group_id_store() 69 static struct device_attribute dev_attr_engine_group = 116 struct device_attribute *attr, in group_read_buffers_reserved_show() 125 struct device_attribute *attr, in group_tokens_reserved_show() 133 struct device_attribute *attr, in group_read_buffers_reserved_store() 166 struct device_attribute *attr, in group_tokens_reserved_store() 173 static struct device_attribute dev_attr_group_tokens_reserved = 177 static struct device_attribute dev_attr_group_read_buffers_reserved = 182 struct device_attribute *attr, in group_read_buffers_allowed_show() [all …]
|
| /linux/drivers/usb/typec/ |
| H A D | pd.c | 37 dual_role_power_show(struct device *dev, struct device_attribute *attr, char *buf) in dual_role_power_show() 44 usb_suspend_supported_show(struct device *dev, struct device_attribute *attr, char *buf) in usb_suspend_supported_show() 51 higher_capability_show(struct device *dev, struct device_attribute *attr, char *buf) in higher_capability_show() 58 unconstrained_power_show(struct device *dev, struct device_attribute *attr, char *buf) in unconstrained_power_show() 65 usb_communication_capable_show(struct device *dev, struct device_attribute *attr, char *buf) in usb_communication_capable_show() 72 dual_role_data_show(struct device *dev, struct device_attribute *attr, char *buf) in dual_role_data_show() 80 struct device_attribute *attr, char *buf) in unchunked_extended_messages_supported_show() 87 peak_current_show(struct device *dev, struct device_attribute *attr, char *buf) in peak_current_show() 94 fast_role_swap_current_show(struct device *dev, struct device_attribute *attr, char *buf) in fast_role_swap_current_show() 100 static ssize_t voltage_show(struct device *dev, struct device_attribute *attr, char *buf) in voltage_show() [all …]
|
| /linux/drivers/hwtracing/coresight/ |
| H A D | coresight-etm3x-sysfs.c | 14 struct device_attribute *attr, char *buf) in nr_addr_cmp_show() 25 struct device_attribute *attr, char *buf) in nr_cntr_show() 35 struct device_attribute *attr, char *buf) in nr_ctxid_cmp_show() 46 struct device_attribute *attr, char *buf) in etmsr_show() 66 struct device_attribute *attr, in reset_store() 97 struct device_attribute *attr, char *buf) in mode_show() 108 struct device_attribute *attr, in mode_store() 182 struct device_attribute *attr, char *buf) in trigger_event_show() 193 struct device_attribute *attr, in trigger_event_store() 212 struct device_attribute *attr, char *buf) in enable_event_show() [all …]
|
| /linux/drivers/leds/ |
| H A D | leds-lp55xx-common.h | 42 struct device_attribute *attr, \ 48 struct device_attribute *attr, \ 58 struct device_attribute *attr, \ 64 struct device_attribute *attr, \ 74 struct device_attribute *attr, \ 83 struct device_attribute *attr, \ 89 struct device_attribute *attr, \ 254 struct device_attribute *attr, 257 struct device_attribute *attr, 260 struct device_attribute *attr, [all …]
|
| /linux/drivers/nvme/host/ |
| H A D | sysfs.c | 14 struct device_attribute *attr, const char *buf, in nvme_sysfs_reset() 28 struct device_attribute *attr, const char *buf, in nvme_sysfs_rescan() 39 struct device_attribute *attr, char *buf) in nvme_adm_passthru_err_log_enabled_show() 48 struct device_attribute *attr, const char *buf, size_t count) in nvme_adm_passthru_err_log_enabled_store() 73 struct device_attribute *attr, char *buf) in nvme_io_passthru_err_log_enabled_show() 81 struct device_attribute *attr, const char *buf, size_t count) in nvme_io_passthru_err_log_enabled_store() 95 static struct device_attribute dev_attr_adm_passthru_err_log_enabled = \ 99 static struct device_attribute dev_attr_io_passthru_err_log_enabled = \ 103 static ssize_t wwid_show(struct device *dev, struct device_attribute *attr, in wwid_show() 134 static ssize_t nguid_show(struct device *dev, struct device_attribute *attr, in nguid_show() [all …]
|
| /linux/drivers/usb/core/ |
| H A D | sysfs.c | 27 struct device_attribute *attr, char *buf) \ 53 struct device_attribute *attr, char *buf) in bMaxPower_show() 72 struct device_attribute *attr, char *buf) in configuration_show() 94 struct device_attribute *attr, in bConfigurationValue_store() 113 static ssize_t devspec_show(struct device *dev, struct device_attribute *attr, in devspec_show() 126 struct device_attribute *attr, char *buf) \ 145 static ssize_t speed_show(struct device *dev, struct device_attribute *attr, in speed_show() 180 static ssize_t rx_lanes_show(struct device *dev, struct device_attribute *attr, in rx_lanes_show() 190 static ssize_t tx_lanes_show(struct device *dev, struct device_attribute *attr, in tx_lanes_show() 200 static ssize_t busnum_show(struct device *dev, struct device_attribute *attr, in busnum_show() [all …]
|
| /linux/drivers/base/power/ |
| H A D | sysfs.c | 100 static ssize_t control_show(struct device *dev, struct device_attribute *attr, in control_show() 107 static ssize_t control_store(struct device * dev, struct device_attribute *attr, in control_store() 124 struct device_attribute *attr, in runtime_active_time_show() 137 struct device_attribute *attr, in runtime_suspended_time_show() 150 struct device_attribute *attr, char *buf) in runtime_status_show() 182 struct device_attribute *attr, in autosuspend_delay_ms_show() 192 struct device_attribute *attr, const char *buf, size_t n) in autosuspend_delay_ms_store() 211 struct device_attribute *attr, in pm_qos_resume_latency_us_show() 225 struct device_attribute *attr, in pm_qos_resume_latency_us_store() 255 struct device_attribute *attr, in pm_qos_latency_tolerance_us_show() [all …]
|
| /linux/drivers/media/usb/pvrusb2/ |
| H A D | pvrusb2-sysfs.c | 26 struct device_attribute attr_v4l_minor_number; 27 struct device_attribute attr_v4l_radio_minor_number; 28 struct device_attribute attr_unit_number; 29 struct device_attribute attr_bus_info; 30 struct device_attribute attr_hdw_name; 31 struct device_attribute attr_hdw_desc; 42 struct device_attribute attr_debugcmd; 43 struct device_attribute attr_debuginfo; 50 struct device_attribute attr_name; 51 struct device_attribute attr_type; [all …]
|
| /linux/Documentation/translations/zh_TW/filesystems/ |
| H A D | sysfs.txt | 104 例如:驅動程序模型定義的 device_attribute 結構體如下: 106 struct device_attribute { 108 ssize_t (*show)(struct device *dev, struct device_attribute *attr, 110 ssize_t (*store)(struct device *dev, struct device_attribute *attr, 114 int device_create_file(struct device *, const struct device_attribute *); 115 void device_remove_file(struct device *, const struct device_attribute *); 120 struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) 128 static struct device_attribute dev_attr_foo = { 160 #define to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr) 165 struct device_attribute *dev_attr = to_dev_attr(attr); [all …]
|
| /linux/Documentation/translations/zh_CN/filesystems/ |
| H A D | sysfs.txt | 101 例如:驱动程序模型定义的 device_attribute 结构体如下: 103 struct device_attribute { 105 ssize_t (*show)(struct device *dev, struct device_attribute *attr, 107 ssize_t (*store)(struct device *dev, struct device_attribute *attr, 111 int device_create_file(struct device *, const struct device_attribute *); 112 void device_remove_file(struct device *, const struct device_attribute *); 117 struct device_attribute dev_attr_##_name = __ATTR(_name, _mode, _show, _store) 125 static struct device_attribute dev_attr_foo = { 157 #define to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr) 162 struct device_attribute *dev_attr = to_dev_attr(attr); [all …]
|
| /linux/drivers/s390/net/ |
| H A D | qeth_l3_sys.c | 17 struct device_attribute dev_attr_##_id = __ATTR(_name, _mode, _show, _store) 59 struct device_attribute *attr, char *buf) in qeth_l3_dev_route4_show() 105 struct device_attribute *attr, const char *buf, size_t count) in qeth_l3_dev_route4_store() 117 struct device_attribute *attr, char *buf) in qeth_l3_dev_route6_show() 125 struct device_attribute *attr, const char *buf, size_t count) in qeth_l3_dev_route6_store() 137 struct device_attribute *attr, char *buf) in qeth_l3_dev_sniffer_show() 145 struct device_attribute *attr, const char *buf, size_t count) in qeth_l3_dev_sniffer_store() 193 struct device_attribute *attr, char *buf) in qeth_l3_dev_hsuid_show() 207 struct device_attribute *attr, const char *buf, size_t count) in qeth_l3_dev_hsuid_store() 284 struct device_attribute *attr, char *buf) in qeth_l3_dev_ipato_enable_show() [all …]
|
| /linux/drivers/misc/genwqe/ |
| H A D | card_sysfs.c | 39 static ssize_t status_show(struct device *dev, struct device_attribute *attr, in status_show() 49 static ssize_t appid_show(struct device *dev, struct device_attribute *attr, in appid_show() 60 static ssize_t version_show(struct device *dev, struct device_attribute *attr, in version_show() 73 static ssize_t type_show(struct device *dev, struct device_attribute *attr, in type_show() 85 static ssize_t tempsens_show(struct device *dev, struct device_attribute *attr, in tempsens_show() 97 struct device_attribute *attr, in freerunning_timer_show() 109 struct device_attribute *attr, in queue_working_time_show() 121 struct device_attribute *attr, in base_clock_show() 149 struct device_attribute *attr, char *buf) in curr_bitstream_show() 165 struct device_attribute *attr, char *buf) in next_bitstream_show() [all …]
|
| /linux/drivers/pcmcia/ |
| H A D | socket_sysfs.c | 34 static ssize_t pccard_show_type(struct device *dev, struct device_attribute *attr, in pccard_show_type() 47 static ssize_t pccard_show_voltage(struct device *dev, struct device_attribute *attr, in pccard_show_voltage() 61 static ssize_t pccard_show_vpp(struct device *dev, struct device_attribute *attr, in pccard_show_vpp() 71 static ssize_t pccard_show_vcc(struct device *dev, struct device_attribute *attr, in pccard_show_vcc() 82 static ssize_t pccard_store_insert(struct device *dev, struct device_attribute *attr, in pccard_store_insert() 98 struct device_attribute *attr, in pccard_show_card_pm_state() 106 struct device_attribute *attr, in pccard_store_card_pm_state() 129 struct device_attribute *attr, in pccard_store_eject() 145 struct device_attribute *attr, in pccard_show_irq_mask() 153 struct device_attribute *attr, in pccard_store_irq_mask() [all …]
|
| /linux/drivers/s390/crypto/ |
| H A D | ap_card.c | 22 struct device_attribute *attr, char *buf) in hwtype_show() 32 struct device_attribute *attr, char *buf) in raw_hwtype_show() 41 static ssize_t depth_show(struct device *dev, struct device_attribute *attr, in depth_show() 52 struct device_attribute *attr, char *buf) in ap_functions_show() 62 struct device_attribute *attr, in request_count_show() 76 struct device_attribute *attr, in request_count_store() 96 struct device_attribute *attr, char *buf) in requestq_count_show() 115 struct device_attribute *attr, char *buf) in pendingq_count_show() 134 struct device_attribute *attr, char *buf) in modalias_show() 142 struct device_attribute *attr, char *buf) in config_show() [all …]
|
| /linux/drivers/thermal/ |
| H A D | thermal_sysfs.c | 28 type_show(struct device *dev, struct device_attribute *attr, char *buf) in type_show() 36 temp_show(struct device *dev, struct device_attribute *attr, char *buf) in temp_show() 53 mode_show(struct device *dev, struct device_attribute *attr, char *buf) in mode_show() 66 mode_store(struct device *dev, struct device_attribute *attr, in mode_store() 95 trip_point_type_show(struct device *dev, struct device_attribute *attr, in trip_point_type_show() 104 trip_point_temp_store(struct device *dev, struct device_attribute *attr, in trip_point_temp_store() 140 trip_point_temp_show(struct device *dev, struct device_attribute *attr, in trip_point_temp_show() 149 trip_point_hyst_store(struct device *dev, struct device_attribute *attr, in trip_point_hyst_store() 186 trip_point_hyst_show(struct device *dev, struct device_attribute *attr, in trip_point_hyst_show() 195 policy_store(struct device *dev, struct device_attribute *attr, in policy_store() [all …]
|
| /linux/drivers/accel/habanalabs/goya/ |
| H A D | goya_hwmgr.c | 38 static ssize_t mme_clk_show(struct device *dev, struct device_attribute *attr, in mme_clk_show() 55 static ssize_t mme_clk_store(struct device *dev, struct device_attribute *attr, in mme_clk_store() 87 static ssize_t tpc_clk_show(struct device *dev, struct device_attribute *attr, in tpc_clk_show() 104 static ssize_t tpc_clk_store(struct device *dev, struct device_attribute *attr, in tpc_clk_store() 136 static ssize_t ic_clk_show(struct device *dev, struct device_attribute *attr, in ic_clk_show() 153 static ssize_t ic_clk_store(struct device *dev, struct device_attribute *attr, in ic_clk_store() 186 struct device_attribute *attr, char *buf) in mme_clk_curr_show() 203 struct device_attribute *attr, char *buf) in tpc_clk_curr_show() 220 struct device_attribute *attr, char *buf) in ic_clk_curr_show() 237 struct device_attribute *attr, char *buf) in pm_mng_profile_show() [all …]
|
| /linux/drivers/platform/mellanox/ |
| H A D | mlxbf-bootctl.c | 173 struct device_attribute *attr, char *buf) in post_reset_wdog_show() 185 struct device_attribute *attr, in post_reset_wdog_store() 229 struct device_attribute *attr, char *buf) in reset_action_show() 235 struct device_attribute *attr, in reset_action_store() 242 struct device_attribute *attr, in second_reset_action_show() 249 struct device_attribute *attr, in second_reset_action_store() 257 struct device_attribute *attr, char *buf) in lifecycle_state_show() 289 struct device_attribute *attr, in secure_boot_fuse_state_show() 344 struct device_attribute *attr, in fw_reset_store() 380 struct device_attribute *attr, in rsh_log_store() [all …]
|
| /linux/drivers/edac/ |
| H A D | edac_mc_sysfs.c | 126 struct device_attribute *mattr, char *data) in dimmdev_location_show() 138 struct device_attribute *mattr, char *data) in dimmdev_label_show() 150 struct device_attribute *mattr, in dimmdev_label_store() 173 struct device_attribute *mattr, char *data) in dimmdev_size_show() 181 struct device_attribute *mattr, char *data) in dimmdev_mem_type_show() 189 struct device_attribute *mattr, char *data) in dimmdev_dev_type_show() 197 struct device_attribute *mattr, in dimmdev_edac_mode_show() 206 struct device_attribute *mattr, in dimmdev_ce_count_show() 215 struct device_attribute *mattr, in dimmdev_ue_count_show() 312 struct device_attribute *mattr, in mci_reset_counters_store() [all …]
|
| /linux/drivers/rtc/ |
| H A D | sysfs.c | 25 name_show(struct device *dev, struct device_attribute *attr, char *buf) in name_show() 33 date_show(struct device *dev, struct device_attribute *attr, char *buf) in date_show() 47 time_show(struct device *dev, struct device_attribute *attr, char *buf) in time_show() 61 since_epoch_show(struct device *dev, struct device_attribute *attr, char *buf) in since_epoch_show() 75 max_user_freq_show(struct device *dev, struct device_attribute *attr, char *buf) in max_user_freq_show() 81 max_user_freq_store(struct device *dev, struct device_attribute *attr, in max_user_freq_store() 111 hctosys_show(struct device *dev, struct device_attribute *attr, char *buf) in hctosys_show() 124 wakealarm_show(struct device *dev, struct device_attribute *attr, char *buf) in wakealarm_show() 148 wakealarm_store(struct device *dev, struct device_attribute *attr, in wakealarm_store() 215 offset_show(struct device *dev, struct device_attribute *attr, char *buf) in offset_show() [all …]
|
| /linux/drivers/scsi/qla4xxx/ |
| H A D | ql4_attr.c | 154 struct device_attribute *attr, char *buf) in qla4xxx_fw_version_show() 169 qla4xxx_serial_num_show(struct device *dev, struct device_attribute *attr, in qla4xxx_serial_num_show() 177 qla4xxx_iscsi_version_show(struct device *dev, struct device_attribute *attr, in qla4xxx_iscsi_version_show() 186 qla4xxx_optrom_version_show(struct device *dev, struct device_attribute *attr, in qla4xxx_optrom_version_show() 196 qla4xxx_board_id_show(struct device *dev, struct device_attribute *attr, in qla4xxx_board_id_show() 204 qla4xxx_fw_state_show(struct device *dev, struct device_attribute *attr, in qla4xxx_fw_state_show() 215 qla4xxx_phy_port_cnt_show(struct device *dev, struct device_attribute *attr, in qla4xxx_phy_port_cnt_show() 227 qla4xxx_phy_port_num_show(struct device *dev, struct device_attribute *attr, in qla4xxx_phy_port_num_show() 239 qla4xxx_iscsi_func_cnt_show(struct device *dev, struct device_attribute *attr, in qla4xxx_iscsi_func_cnt_show() 251 qla4xxx_hba_model_show(struct device *dev, struct device_attribute *attr, in qla4xxx_hba_model_show() [all …]
|
| /linux/drivers/gpu/drm/amd/pm/ |
| H A D | amdgpu_pm.c | 215 struct device_attribute *attr, in amdgpu_get_power_dpm_state() 237 struct device_attribute *attr, in amdgpu_set_power_dpm_state() 327 struct device_attribute *attr, in amdgpu_get_power_dpm_force_performance_level() 357 struct device_attribute *attr, in amdgpu_set_power_dpm_force_performance_level() 409 struct device_attribute *attr, in amdgpu_get_pp_num_states() 439 struct device_attribute *attr, in amdgpu_get_pp_cur_state() 473 struct device_attribute *attr, in amdgpu_get_pp_force_state() 486 struct device_attribute *attr, in amdgpu_set_pp_force_state() 551 struct device_attribute *attr, in amdgpu_get_pp_table() 579 struct device_attribute *attr, in amdgpu_set_pp_table() [all …]
|
| /linux/drivers/pci/ |
| H A D | pci-sysfs.c | 45 field##_show(struct device *dev, struct device_attribute *attr, char *buf) \ 62 struct device_attribute *attr, in irq_show() 81 struct device_attribute *attr, in broken_parity_status_show() 89 struct device_attribute *attr, in broken_parity_status_store() 105 struct device_attribute *attr, char *buf) in pci_dev_show_local_cpu() 121 struct device_attribute *attr, char *buf) in local_cpus_show() 128 struct device_attribute *attr, char *buf) in local_cpulist_show() 138 struct device_attribute *attr, char *buf) in cpuaffinity_show() 147 struct device_attribute *attr, char *buf) in cpulistaffinity_show() 156 struct device_attribute *attr, char *buf) in power_state_show() [all …]
|
| /linux/include/linux/ |
| H A D | device.h | 105 struct device_attribute { struct 107 ssize_t (*show)(struct device *dev, struct device_attribute *attr, argument 109 ssize_t (*store)(struct device *dev, struct device_attribute *attr, argument 119 struct device_attribute attr; 123 ssize_t device_show_ulong(struct device *dev, struct device_attribute *attr, 125 ssize_t device_store_ulong(struct device *dev, struct device_attribute *attr, 127 ssize_t device_show_int(struct device *dev, struct device_attribute *attr, 129 ssize_t device_store_int(struct device *dev, struct device_attribute *attr, 131 ssize_t device_show_bool(struct device *dev, struct device_attribute *attr, 133 ssize_t device_store_bool(struct device *dev, struct device_attribute *attr, [all …]
|