| /linux/include/linux/ |
| H A D | cpu.h | 45 extern int cpu_add_dev_attr(struct device_attribute *attr); 46 extern void cpu_remove_dev_attr(struct device_attribute *attr); 52 struct device_attribute *attr, char *buf); 54 struct device_attribute *attr, char *buf); 56 struct device_attribute *attr, char *buf); 58 struct device_attribute *attr, char *buf); 60 struct device_attribute *attr, char *buf); 62 struct device_attribute *attr, char *buf); 64 struct device_attribute *attr, 67 struct device_attribute *attr, char *buf); [all …]
|
| /linux/net/bridge/ |
| H A D | br_sysfs_br.c | 67 struct device_attribute *attr, char *buf) in forward_delay_show() 80 struct device_attribute *attr, in forward_delay_store() 87 static ssize_t hello_time_show(struct device *d, struct device_attribute *attr, in hello_time_show() 101 struct device_attribute *attr, const char *buf, in hello_time_store() 108 static ssize_t max_age_show(struct device *d, struct device_attribute *attr, in max_age_show() 121 static ssize_t max_age_store(struct device *d, struct device_attribute *attr, in max_age_store() 129 struct device_attribute *attr, char *buf) in ageing_time_show() 142 struct device_attribute *attr, in ageing_time_store() 150 struct device_attribute *attr, char *buf) in stp_state_show() 164 struct device_attribute *attr, const char *buf, 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/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/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/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/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/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/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/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/drivers/video/fbdev/core/ |
| H A D | fbsysfs.c | 56 static ssize_t store_mode(struct device *device, struct device_attribute *attr, in store_mode() 85 static ssize_t show_mode(struct device *device, struct device_attribute *attr, in show_mode() 97 struct device_attribute *attr, in store_modes() 125 static ssize_t show_modes(struct device *device, struct device_attribute *attr, in show_modes() 141 static ssize_t store_bpp(struct device *device, struct device_attribute *attr, in store_bpp() 156 static ssize_t show_bpp(struct device *device, struct device_attribute *attr, in show_bpp() 164 struct device_attribute *attr, in store_rotate() 183 struct device_attribute *attr, char *buf) in show_rotate() 191 struct device_attribute *attr, in store_virtual() 212 struct device_attribute *attr, char *buf) in show_virtual() [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/media/pci/mgb4/ |
| H A D | mgb4_sysfs_out.c | 53 struct device_attribute *attr, char *buf) in output_id_show() 62 struct device_attribute *attr, char *buf) in video_source_show() 85 struct device_attribute *attr, in video_source_store() 147 struct device_attribute *attr, char *buf) in display_width_show() 158 struct device_attribute *attr, in display_width_store() 187 struct device_attribute *attr, char *buf) in display_height_show() 198 struct device_attribute *attr, in display_height_store() 227 struct device_attribute *attr, char *buf) in frame_rate_show() 242 struct device_attribute *attr, const char *buf, in frame_rate_store() 262 struct device_attribute *attr, char *buf) in hsync_width_show() [all …]
|
| /linux/drivers/ufs/core/ |
| H A D | ufs-sysfs.c | 133 struct device_attribute *attr, in ufs_sysfs_pm_lvl_store() 162 struct device_attribute *attr, char *buf) in rpm_lvl_show() 170 struct device_attribute *attr, const char *buf, size_t count) in rpm_lvl_store() 176 struct device_attribute *attr, char *buf) in rpm_target_dev_state_show() 185 struct device_attribute *attr, char *buf) in rpm_target_link_state_show() 194 struct device_attribute *attr, char *buf) in spm_lvl_show() 202 struct device_attribute *attr, const char *buf, size_t count) in spm_lvl_store() 208 struct device_attribute *attr, char *buf) in spm_target_dev_state_show() 217 struct device_attribute *attr, char *buf) in spm_target_link_state_show() 269 struct device_attribute *attr, char *buf) in auto_hibern8_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/staging/iio/addac/ |
| H A D | adt7316.c | 213 struct device_attribute *attr, in adt7316_show_enabled() 243 struct device_attribute *attr, in adt7316_store_enabled() 268 struct device_attribute *attr, in adt7316_show_select_ex_temp() 281 struct device_attribute *attr, in adt7316_store_select_ex_temp() 312 struct device_attribute *attr, in adt7316_show_mode() 325 struct device_attribute *attr, in adt7316_store_mode() 353 struct device_attribute *attr, in adt7316_show_all_modes() 362 struct device_attribute *attr, in adt7316_show_ad_channel() 400 struct device_attribute *attr, in adt7316_store_ad_channel() 446 struct device_attribute *attr, in adt7316_show_all_ad_channels() [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/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 …]
|