/Linux-v4.19/drivers/scsi/ |
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-v4.19/net/bridge/ |
D | br_sysfs_br.c | 60 struct device_attribute *attr, char *buf) in forward_delay_show() 67 struct device_attribute *attr, in forward_delay_store() 74 static ssize_t hello_time_show(struct device *d, struct device_attribute *attr, in hello_time_show() 82 struct device_attribute *attr, const char *buf, in hello_time_store() 89 static ssize_t max_age_show(struct device *d, struct device_attribute *attr, in max_age_show() 96 static ssize_t max_age_store(struct device *d, struct device_attribute *attr, in max_age_store() 104 struct device_attribute *attr, char *buf) in ageing_time_show() 116 struct device_attribute *attr, in ageing_time_store() 124 struct device_attribute *attr, char *buf) in stp_state_show() 139 struct device_attribute *attr, const char *buf, in stp_state_store() [all …]
|
/Linux-v4.19/arch/powerpc/platforms/cell/ |
D | cbe_thermal.c | 64 struct device_attribute attr_ ## _prefix ## _ ## _name = { \ 101 static ssize_t spu_show_temp(struct device *dev, struct device_attribute *attr, in spu_show_temp() 152 struct device_attribute *attr, char *buf) in spu_show_throttle_end() 158 struct device_attribute *attr, char *buf) in spu_show_throttle_begin() 164 struct device_attribute *attr, char *buf) in spu_show_throttle_full_stop() 170 struct device_attribute *attr, const char *buf, size_t size) in spu_store_throttle_end() 176 struct device_attribute *attr, const char *buf, size_t size) in spu_store_throttle_begin() 182 struct device_attribute *attr, const char *buf, size_t size) in spu_store_throttle_full_stop() 204 struct device_attribute *attr, char *buf) in ppe_show_temp0() 211 struct device_attribute *attr, char *buf) in ppe_show_temp1() [all …]
|
/Linux-v4.19/drivers/net/bonding/ |
D | bond_sysfs.c | 158 struct device_attribute *attr, in bonding_sysfs_store_option() 182 struct device_attribute *attr, char *buf) in bonding_show_slaves() 215 struct device_attribute *attr, char *buf) in bonding_show_mode() 228 struct device_attribute *attr, in bonding_show_xmit_hash() 243 struct device_attribute *attr, in bonding_show_arp_validate() 259 struct device_attribute *attr, in bonding_show_arp_all_targets() 275 struct device_attribute *attr, in bonding_show_fail_over_mac() 291 struct device_attribute *attr, in bonding_show_arp_interval() 303 struct device_attribute *attr, in bonding_show_arp_targets() 324 struct device_attribute *attr, in bonding_show_downdelay() [all …]
|
/Linux-v4.19/drivers/misc/cxl/ |
D | sysfs.c | 22 struct device_attribute *attr, in caia_version_show() 32 struct device_attribute *attr, in psl_revision_show() 41 struct device_attribute *attr, in base_image_show() 50 struct device_attribute *attr, in image_loaded_show() 61 struct device_attribute *attr, in psl_timebase_synced_show() 82 struct device_attribute *attr, in tunneled_ops_supported_show() 91 struct device_attribute *attr, in reset_adapter_store() 127 struct device_attribute *attr, in load_image_on_perst_show() 141 struct device_attribute *attr, in load_image_on_perst_store() 165 struct device_attribute *attr, in perst_reloads_same_image_show() [all …]
|
/Linux-v4.19/drivers/hwtracing/coresight/ |
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() 96 struct device_attribute *attr, char *buf) in mode_show() 107 struct device_attribute *attr, in mode_store() 181 struct device_attribute *attr, char *buf) in trigger_event_show() 192 struct device_attribute *attr, in trigger_event_store() 211 struct device_attribute *attr, char *buf) in enable_event_show() [all …]
|
D | coresight-etm4x-sysfs.c | 57 struct device_attribute *attr, in nr_pe_cmp_show() 69 struct device_attribute *attr, in nr_addr_cmp_show() 81 struct device_attribute *attr, in nr_cntr_show() 93 struct device_attribute *attr, in nr_ext_inp_show() 105 struct device_attribute *attr, in numcidc_show() 117 struct device_attribute *attr, in numvmidc_show() 129 struct device_attribute *attr, in nrseqstate_show() 141 struct device_attribute *attr, in nr_resource_show() 153 struct device_attribute *attr, in nr_ss_cmp_show() 165 struct device_attribute *attr, in reset_store() [all …]
|
/Linux-v4.19/drivers/base/power/ |
D | sysfs.c | 101 static ssize_t control_show(struct device *dev, struct device_attribute *attr, in control_show() 108 static ssize_t control_store(struct device * dev, struct device_attribute *attr, in control_store() 125 struct device_attribute *attr, char *buf) in runtime_active_time_show() 138 struct device_attribute *attr, char *buf) in runtime_suspended_time_show() 152 struct device_attribute *attr, char *buf) in runtime_status_show() 184 struct device_attribute *attr, char *buf) 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-v4.19/drivers/usb/core/ |
D | sysfs.c | 25 struct device_attribute *attr, char *buf) \ 51 struct device_attribute *attr, char *buf) in bMaxPower_show() 70 struct device_attribute *attr, char *buf) in configuration_show() 92 struct device_attribute *attr, in bConfigurationValue_store() 111 static ssize_t devspec_show(struct device *dev, struct device_attribute *attr, in devspec_show() 124 struct device_attribute *attr, char *buf) \ 143 static ssize_t speed_show(struct device *dev, struct device_attribute *attr, in speed_show() 178 static ssize_t rx_lanes_show(struct device *dev, struct device_attribute *attr, in rx_lanes_show() 188 static ssize_t tx_lanes_show(struct device *dev, struct device_attribute *attr, in tx_lanes_show() 198 static ssize_t busnum_show(struct device *dev, struct device_attribute *attr, in busnum_show() [all …]
|
/Linux-v4.19/Documentation/translations/zh_CN/filesystems/ |
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 = { 158 #define to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr) 163 struct device_attribute *dev_attr = to_dev_attr(attr); [all …]
|
/Linux-v4.19/drivers/media/usb/pvrusb2/ |
D | pvrusb2-sysfs.c | 36 struct device_attribute attr_v4l_minor_number; 37 struct device_attribute attr_v4l_radio_minor_number; 38 struct device_attribute attr_unit_number; 39 struct device_attribute attr_bus_info; 40 struct device_attribute attr_hdw_name; 41 struct device_attribute attr_hdw_desc; 52 struct device_attribute attr_debugcmd; 53 struct device_attribute attr_debuginfo; 60 struct device_attribute attr_name; 61 struct device_attribute attr_type; [all …]
|
/Linux-v4.19/drivers/video/fbdev/core/ |
D | fbsysfs.c | 128 static ssize_t store_mode(struct device *device, struct device_attribute *attr, in store_mode() 159 static ssize_t show_mode(struct device *device, struct device_attribute *attr, in show_mode() 171 struct device_attribute *attr, in store_modes() 202 static ssize_t show_modes(struct device *device, struct device_attribute *attr, in show_modes() 220 static ssize_t store_bpp(struct device *device, struct device_attribute *attr, in store_bpp() 235 static ssize_t show_bpp(struct device *device, struct device_attribute *attr, in show_bpp() 243 struct device_attribute *attr, in store_rotate() 262 struct device_attribute *attr, char *buf) in show_rotate() 270 struct device_attribute *attr, in store_virtual() 291 struct device_attribute *attr, char *buf) in show_virtual() [all …]
|
/Linux-v4.19/drivers/misc/mic/cosm/ |
D | cosm_sysfs.c | 67 family_show(struct device *dev, struct device_attribute *attr, char *buf) in family_show() 79 stepping_show(struct device *dev, struct device_attribute *attr, char *buf) in stepping_show() 91 state_show(struct device *dev, struct device_attribute *attr, char *buf) in state_show() 103 state_store(struct device *dev, struct device_attribute *attr, in state_store() 134 struct device_attribute *attr, char *buf) in shutdown_status_show() 148 struct device_attribute *attr, char *buf) in heartbeat_enable_show() 160 struct device_attribute *attr, in heartbeat_enable_store() 187 cmdline_show(struct device *dev, struct device_attribute *attr, char *buf) in cmdline_show() 203 cmdline_store(struct device *dev, struct device_attribute *attr, in cmdline_store() 233 firmware_show(struct device *dev, struct device_attribute *attr, char *buf) in firmware_show() [all …]
|
/Linux-v4.19/drivers/pcmcia/ |
D | socket_sysfs.c | 36 static ssize_t pccard_show_type(struct device *dev, struct device_attribute *attr, in pccard_show_type() 49 static ssize_t pccard_show_voltage(struct device *dev, struct device_attribute *attr, in pccard_show_voltage() 63 static ssize_t pccard_show_vpp(struct device *dev, struct device_attribute *attr, in pccard_show_vpp() 73 static ssize_t pccard_show_vcc(struct device *dev, struct device_attribute *attr, in pccard_show_vcc() 84 static ssize_t pccard_store_insert(struct device *dev, struct device_attribute *attr, in pccard_store_insert() 100 struct device_attribute *attr, in pccard_show_card_pm_state() 108 struct device_attribute *attr, in pccard_store_card_pm_state() 131 struct device_attribute *attr, in pccard_store_eject() 147 struct device_attribute *attr, in pccard_show_irq_mask() 155 struct device_attribute *attr, in pccard_store_irq_mask() [all …]
|
/Linux-v4.19/drivers/misc/genwqe/ |
D | card_sysfs.c | 47 static ssize_t status_show(struct device *dev, struct device_attribute *attr, in status_show() 57 static ssize_t appid_show(struct device *dev, struct device_attribute *attr, in appid_show() 68 static ssize_t version_show(struct device *dev, struct device_attribute *attr, in version_show() 81 static ssize_t type_show(struct device *dev, struct device_attribute *attr, in type_show() 93 static ssize_t tempsens_show(struct device *dev, struct device_attribute *attr, in tempsens_show() 105 struct device_attribute *attr, in freerunning_timer_show() 117 struct device_attribute *attr, in queue_working_time_show() 129 struct device_attribute *attr, in base_clock_show() 157 struct device_attribute *attr, char *buf) in curr_bitstream_show() 173 struct device_attribute *attr, char *buf) in next_bitstream_show() [all …]
|
/Linux-v4.19/drivers/soc/versatile/ |
D | soc-integrator.c | 64 struct device_attribute *attr, in integrator_get_manf() 70 static struct device_attribute integrator_manf_attr = 74 struct device_attribute *attr, in integrator_get_arch() 80 static struct device_attribute integrator_arch_attr = 84 struct device_attribute *attr, in integrator_get_fpga() 90 static struct device_attribute integrator_fpga_attr = 94 struct device_attribute *attr, in integrator_get_build() 100 static struct device_attribute integrator_build_attr =
|
D | soc-realview.c | 47 struct device_attribute *attr, in realview_get_manf() 53 static struct device_attribute realview_manf_attr = 57 struct device_attribute *attr, in realview_get_board() 63 static struct device_attribute realview_board_attr = 67 struct device_attribute *attr, in realview_get_arch() 73 static struct device_attribute realview_arch_attr = 77 struct device_attribute *attr, in realview_get_build() 83 static struct device_attribute realview_build_attr =
|
/Linux-v4.19/drivers/ide/ |
D | ide-sysfs.c | 23 static ssize_t media_show(struct device *dev, struct device_attribute *attr, in media_show() 31 static ssize_t drivename_show(struct device *dev, struct device_attribute *attr, in drivename_show() 39 static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, in modalias_show() 47 static ssize_t model_show(struct device *dev, struct device_attribute *attr, in model_show() 55 static ssize_t firmware_show(struct device *dev, struct device_attribute *attr, in firmware_show() 63 static ssize_t serial_show(struct device *dev, struct device_attribute *attr, in serial_show() 94 struct device_attribute *attr, in store_delete_devices() 110 struct device_attribute *attr, in store_scan() 126 static struct device_attribute *ide_port_attrs[] = {
|
/Linux-v4.19/drivers/scsi/qla4xxx/ |
D | ql4_attr.c | 155 struct device_attribute *attr, char *buf) in qla4xxx_fw_version_show() 170 qla4xxx_serial_num_show(struct device *dev, struct device_attribute *attr, in qla4xxx_serial_num_show() 178 qla4xxx_iscsi_version_show(struct device *dev, struct device_attribute *attr, in qla4xxx_iscsi_version_show() 187 qla4xxx_optrom_version_show(struct device *dev, struct device_attribute *attr, in qla4xxx_optrom_version_show() 197 qla4xxx_board_id_show(struct device *dev, struct device_attribute *attr, in qla4xxx_board_id_show() 205 qla4xxx_fw_state_show(struct device *dev, struct device_attribute *attr, in qla4xxx_fw_state_show() 216 qla4xxx_phy_port_cnt_show(struct device *dev, struct device_attribute *attr, in qla4xxx_phy_port_cnt_show() 228 qla4xxx_phy_port_num_show(struct device *dev, struct device_attribute *attr, in qla4xxx_phy_port_num_show() 240 qla4xxx_iscsi_func_cnt_show(struct device *dev, struct device_attribute *attr, in qla4xxx_iscsi_func_cnt_show() 252 qla4xxx_hba_model_show(struct device *dev, struct device_attribute *attr, in qla4xxx_hba_model_show() [all …]
|
/Linux-v4.19/drivers/staging/iio/addac/ |
D | adt7316.c | 220 struct device_attribute *attr, in adt7316_show_enabled() 250 struct device_attribute *attr, in adt7316_store_enabled() 275 struct device_attribute *attr, in adt7316_show_select_ex_temp() 288 struct device_attribute *attr, in adt7316_store_select_ex_temp() 319 struct device_attribute *attr, in adt7316_show_mode() 332 struct device_attribute *attr, in adt7316_store_mode() 360 struct device_attribute *attr, in adt7316_show_all_modes() 369 struct device_attribute *attr, in adt7316_show_ad_channel() 407 struct device_attribute *attr, in adt7316_store_ad_channel() 453 struct device_attribute *attr, in adt7316_show_all_ad_channels() [all …]
|
/Linux-v4.19/drivers/s390/net/ |
D | qeth_core_sys.c | 20 struct device_attribute *attr, char *buf) in qeth_dev_state_show() 48 struct device_attribute *attr, char *buf) in qeth_dev_chpid_show() 60 struct device_attribute *attr, char *buf) in qeth_dev_if_name_show() 71 struct device_attribute *attr, char *buf) in qeth_dev_card_type_show() 97 struct device_attribute *attr, char *buf) in qeth_dev_inbuf_size_show() 109 struct device_attribute *attr, char *buf) in qeth_dev_portno_show() 119 struct device_attribute *attr, const char *buf, size_t count) in qeth_dev_portno_store() 155 struct device_attribute *attr, char *buf) in qeth_dev_portname_show() 161 struct device_attribute *attr, const char *buf, size_t count) in qeth_dev_portname_store() 174 struct device_attribute *attr, char *buf) in qeth_dev_prioqing_show() [all …]
|
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() 108 struct device_attribute *attr, const char *buf, size_t count) in qeth_l3_dev_route4_store() 123 struct device_attribute *attr, char *buf) in qeth_l3_dev_route6_show() 134 struct device_attribute *attr, const char *buf, size_t count) in qeth_l3_dev_route6_store() 149 struct device_attribute *attr, char *buf) in qeth_l3_dev_fake_broadcast_show() 160 struct device_attribute *attr, const char *buf, size_t count) in qeth_l3_dev_fake_broadcast_store() 190 struct device_attribute *attr, char *buf) in qeth_l3_dev_sniffer_show() 201 struct device_attribute *attr, const char *buf, size_t count) in qeth_l3_dev_sniffer_store() 255 struct device_attribute *attr, char *buf) in qeth_l3_dev_hsuid_show() [all …]
|
/Linux-v4.19/drivers/pci/ |
D | pci-sysfs.c | 37 field##_show(struct device *dev, struct device_attribute *attr, char *buf) \ 55 struct device_attribute *attr, in broken_parity_status_show() 63 struct device_attribute *attr, in broken_parity_status_store() 79 struct device_attribute *attr, char *buf) in pci_dev_show_local_cpu() 93 struct device_attribute *attr, char *buf) in local_cpus_show() 100 struct device_attribute *attr, char *buf) in local_cpulist_show() 110 struct device_attribute *attr, char *buf) in cpuaffinity_show() 119 struct device_attribute *attr, char *buf) in cpulistaffinity_show() 128 static ssize_t resource_show(struct device *dev, struct device_attribute *attr, in resource_show() 155 struct device_attribute *attr, char *buf) in max_link_speed_show() [all …]
|
/Linux-v4.19/drivers/s390/crypto/ |
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() 94 struct device_attribute *attr, char *buf) in requestq_count_show() 111 struct device_attribute *attr, char *buf) in pendingq_count_show() 128 struct device_attribute *attr, char *buf) in modalias_show()
|
/Linux-v4.19/arch/powerpc/kernel/ |
D | sysfs.c | 42 struct device_attribute *attr, in store_smt_snooze_delay() 59 struct device_attribute *attr, in show_smt_snooze_delay() 117 struct device_attribute *attr, char *buf) in show_pw20_state() 145 struct device_attribute *attr, in store_pw20_state() 163 struct device_attribute *attr, char *buf) in show_pw20_wait_time() 212 struct device_attribute *attr, in store_pw20_wait_time() 239 struct device_attribute *attr, char *buf) in show_altivec_idle() 267 struct device_attribute *attr, in store_altivec_idle() 285 struct device_attribute *attr, char *buf) in show_altivec_idle_wait_time() 334 struct device_attribute *attr, in store_altivec_idle_wait_time() [all …]
|