| /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 *attr, const char *buf, in stp_state_store() [all …]
|
| /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/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/net/bonding/ |
| H A D | bond_sysfs.c | 142 struct device_attribute *attr, in bonding_sysfs_store_option() 166 struct device_attribute *attr, char *buf) in bonding_show_slaves() 198 struct device_attribute *attr, char *buf) in bonding_show_mode() 211 struct device_attribute *attr, in bonding_show_xmit_hash() 226 struct device_attribute *attr, in bonding_show_arp_validate() 242 struct device_attribute *attr, in bonding_show_arp_all_targets() 258 struct device_attribute *attr, in bonding_show_fail_over_mac() 274 struct device_attribute *attr, in bonding_show_arp_interval() 286 struct device_attribute *attr, in bonding_show_arp_targets() 307 struct device_attribute *attr, in bonding_show_missed_max() [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 …]
|
| H A D | coresight-etm4x-sysfs.c | 60 struct device_attribute *attr, in nr_pe_cmp_show() 72 struct device_attribute *attr, in nr_addr_cmp_show() 84 struct device_attribute *attr, in nr_cntr_show() 96 struct device_attribute *attr, in nr_ext_inp_show() 108 struct device_attribute *attr, in numcidc_show() 120 struct device_attribute *attr, in numvmidc_show() 132 struct device_attribute *attr, in nrseqstate_show() 144 struct device_attribute *attr, in nr_resource_show() 156 struct device_attribute *attr, in nr_ss_cmp_show() 168 struct device_attribute *attr, in reset_store() [all …]
|
| H A D | coresight-cti-sysfs.c | 56 typedef ssize_t (*p_show_fn)(struct device *dev, struct device_attribute *attr, 80 struct device_attribute *attr, in enable_show() 100 struct device_attribute *attr, in enable_store() 131 struct device_attribute *attr, in powered_show() 146 struct device_attribute *attr, char *buf) in ctmid_show() 155 struct device_attribute *attr, in nr_trigger_cons_show() 177 struct device_attribute *attr, char *buf) in coresight_cti_reg_show() 194 struct device_attribute *attr, in coresight_cti_reg_store() 311 struct device_attribute *attr, \ 320 struct device_attribute *attr, \ [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/accel/habanalabs/common/ |
| H A D | sysfs.c | 13 static ssize_t clk_max_freq_mhz_show(struct device *dev, struct device_attribute *attr, char *buf) in clk_max_freq_mhz_show() 30 static ssize_t clk_max_freq_mhz_store(struct device *dev, struct device_attribute *attr, in clk_max_freq_mhz_store() 56 static ssize_t clk_cur_freq_mhz_show(struct device *dev, struct device_attribute *attr, char *buf) in clk_cur_freq_mhz_show() 80 static ssize_t vrm_ver_show(struct device *dev, struct device_attribute *attr, char *buf) in vrm_ver_show() 123 static ssize_t uboot_ver_show(struct device *dev, struct device_attribute *attr, in uboot_ver_show() 132 struct device_attribute *attr, char *buf) in armcp_kernel_ver_show() 139 static ssize_t armcp_ver_show(struct device *dev, struct device_attribute *attr, in armcp_ver_show() 147 static ssize_t cpld_ver_show(struct device *dev, struct device_attribute *attr, in cpld_ver_show() 158 struct device_attribute *attr, char *buf) in cpucp_kernel_ver_show() 165 static ssize_t cpucp_ver_show(struct device *dev, struct device_attribute *attr, in cpucp_ver_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/video/fbdev/core/ |
| H A D | fbsysfs.c | 54 static ssize_t store_mode(struct device *device, struct device_attribute *attr, in store_mode() 83 static ssize_t show_mode(struct device *device, struct device_attribute *attr, in show_mode() 95 struct device_attribute *attr, in store_modes() 123 static ssize_t show_modes(struct device *device, struct device_attribute *attr, in show_modes() 139 static ssize_t store_bpp(struct device *device, struct device_attribute *attr, in store_bpp() 154 static ssize_t show_bpp(struct device *device, struct device_attribute *attr, in show_bpp() 162 struct device_attribute *attr, in store_rotate() 181 struct device_attribute *attr, char *buf) in show_rotate() 189 struct device_attribute *attr, in store_virtual() 210 struct device_attribute *attr, char *buf) in show_virtual() [all …]
|
| /linux/drivers/s390/net/ |
| H A D | qeth_core_sys.c | 19 struct device_attribute *attr, char *buf) in qeth_dev_state_show() 40 struct device_attribute *attr, char *buf) in qeth_dev_chpid_show() 50 struct device_attribute *attr, char *buf) in qeth_dev_if_name_show() 60 struct device_attribute *attr, char *buf) in qeth_dev_card_type_show() 84 struct device_attribute *attr, char *buf) in qeth_dev_inbuf_size_show() 94 struct device_attribute *attr, char *buf) in qeth_dev_portno_show() 102 struct device_attribute *attr, const char *buf, size_t count) in qeth_dev_portno_store() 134 struct device_attribute *attr, char *buf) in qeth_dev_portname_show() 140 struct device_attribute *attr, const char *buf, size_t count) in qeth_dev_portname_store() 153 struct device_attribute *attr, char *buf) in qeth_dev_prioqing_show() [all …]
|
| 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/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/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/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/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 …]
|