Home
last modified time | relevance | path

Searched refs:device_attribute (Results 1 – 25 of 1217) sorted by relevance

12345678910>>...49

/Linux-v5.4/drivers/scsi/
Dscsi_sas_internal.h17 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-v5.4/net/bridge/
Dbr_sysfs_br.c56 struct device_attribute *attr, char *buf) in forward_delay_show()
63 struct device_attribute *attr, in forward_delay_store()
70 static ssize_t hello_time_show(struct device *d, struct device_attribute *attr, in hello_time_show()
78 struct device_attribute *attr, const char *buf, in hello_time_store()
85 static ssize_t max_age_show(struct device *d, struct device_attribute *attr, in max_age_show()
92 static ssize_t max_age_store(struct device *d, struct device_attribute *attr, in max_age_store()
100 struct device_attribute *attr, char *buf) in ageing_time_show()
112 struct device_attribute *attr, in ageing_time_store()
120 struct device_attribute *attr, char *buf) in stp_state_show()
135 struct device_attribute *attr, const char *buf, in stp_state_store()
[all …]
/Linux-v5.4/arch/powerpc/platforms/cell/
Dcbe_thermal.c51 struct device_attribute attr_ ## _prefix ## _ ## _name = { \
88 static ssize_t spu_show_temp(struct device *dev, struct device_attribute *attr, in spu_show_temp()
139 struct device_attribute *attr, char *buf) in spu_show_throttle_end()
145 struct device_attribute *attr, char *buf) in spu_show_throttle_begin()
151 struct device_attribute *attr, char *buf) in spu_show_throttle_full_stop()
157 struct device_attribute *attr, const char *buf, size_t size) in spu_store_throttle_end()
163 struct device_attribute *attr, const char *buf, size_t size) in spu_store_throttle_begin()
169 struct device_attribute *attr, const char *buf, size_t size) in spu_store_throttle_full_stop()
191 struct device_attribute *attr, char *buf) in ppe_show_temp0()
198 struct device_attribute *attr, char *buf) in ppe_show_temp1()
[all …]
/Linux-v5.4/drivers/net/bonding/
Dbond_sysfs.c142 struct device_attribute *attr, in bonding_sysfs_store_option()
166 struct device_attribute *attr, char *buf) in bonding_show_slaves()
199 struct device_attribute *attr, char *buf) in bonding_show_mode()
212 struct device_attribute *attr, in bonding_show_xmit_hash()
227 struct device_attribute *attr, in bonding_show_arp_validate()
243 struct device_attribute *attr, in bonding_show_arp_all_targets()
259 struct device_attribute *attr, in bonding_show_fail_over_mac()
275 struct device_attribute *attr, in bonding_show_arp_interval()
287 struct device_attribute *attr, in bonding_show_arp_targets()
308 struct device_attribute *attr, in bonding_show_downdelay()
[all …]
/Linux-v5.4/drivers/usb/core/
Dsysfs.c26 struct device_attribute *attr, char *buf) \
52 struct device_attribute *attr, char *buf) in bMaxPower_show()
71 struct device_attribute *attr, char *buf) in configuration_show()
93 struct device_attribute *attr, in bConfigurationValue_store()
112 static ssize_t devspec_show(struct device *dev, struct device_attribute *attr, in devspec_show()
125 struct device_attribute *attr, char *buf) \
144 static ssize_t speed_show(struct device *dev, struct device_attribute *attr, in speed_show()
179 static ssize_t rx_lanes_show(struct device *dev, struct device_attribute *attr, in rx_lanes_show()
189 static ssize_t tx_lanes_show(struct device *dev, struct device_attribute *attr, in tx_lanes_show()
199 static ssize_t busnum_show(struct device *dev, struct device_attribute *attr, in busnum_show()
[all …]
/Linux-v5.4/drivers/hwtracing/coresight/
Dcoresight-etm3x-sysfs.c14 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 …]
Dcoresight-etm4x-sysfs.c57 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-v5.4/drivers/misc/cxl/
Dsysfs.c18 struct device_attribute *attr, in caia_version_show()
28 struct device_attribute *attr, in psl_revision_show()
37 struct device_attribute *attr, in base_image_show()
46 struct device_attribute *attr, in image_loaded_show()
57 struct device_attribute *attr, in psl_timebase_synced_show()
78 struct device_attribute *attr, in tunneled_ops_supported_show()
87 struct device_attribute *attr, in reset_adapter_store()
123 struct device_attribute *attr, in load_image_on_perst_show()
137 struct device_attribute *attr, in load_image_on_perst_store()
161 struct device_attribute *attr, in perst_reloads_same_image_show()
[all …]
/Linux-v5.4/drivers/base/power/
Dsysfs.c100 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, char *buf) in runtime_active_time_show()
136 struct device_attribute *attr, char *buf) in runtime_suspended_time_show()
148 struct device_attribute *attr, char *buf) in runtime_status_show()
180 struct device_attribute *attr, char *buf) in autosuspend_delay_ms_show()
188 struct device_attribute *attr, const char *buf, size_t n) in autosuspend_delay_ms_store()
207 struct device_attribute *attr, in pm_qos_resume_latency_us_show()
221 struct device_attribute *attr, in pm_qos_resume_latency_us_store()
251 struct device_attribute *attr, in pm_qos_latency_tolerance_us_show()
[all …]
/Linux-v5.4/Documentation/translations/zh_CN/filesystems/
Dsysfs.txt101 例如:驱动程序模型定义的 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-v5.4/drivers/media/usb/pvrusb2/
Dpvrusb2-sysfs.c26 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-v5.4/include/linux/
Dcpu.h44 extern int cpu_add_dev_attr(struct device_attribute *attr);
45 extern void cpu_remove_dev_attr(struct device_attribute *attr);
51 struct device_attribute *attr, char *buf);
53 struct device_attribute *attr, char *buf);
55 struct device_attribute *attr, char *buf);
57 struct device_attribute *attr, char *buf);
59 struct device_attribute *attr, char *buf);
61 struct device_attribute *attr, char *buf);
63 struct device_attribute *attr,
66 struct device_attribute *attr, char *buf);
/Linux-v5.4/drivers/video/fbdev/core/
Dfbsysfs.c125 static ssize_t store_mode(struct device *device, struct device_attribute *attr, in store_mode()
156 static ssize_t show_mode(struct device *device, struct device_attribute *attr, in show_mode()
168 struct device_attribute *attr, in store_modes()
196 static ssize_t show_modes(struct device *device, struct device_attribute *attr, in show_modes()
214 static ssize_t store_bpp(struct device *device, struct device_attribute *attr, in store_bpp()
229 static ssize_t show_bpp(struct device *device, struct device_attribute *attr, in show_bpp()
237 struct device_attribute *attr, in store_rotate()
256 struct device_attribute *attr, char *buf) in show_rotate()
264 struct device_attribute *attr, in store_virtual()
285 struct device_attribute *attr, char *buf) in show_virtual()
[all …]
/Linux-v5.4/drivers/misc/mic/cosm/
Dcosm_sysfs.c55 family_show(struct device *dev, struct device_attribute *attr, char *buf) in family_show()
67 stepping_show(struct device *dev, struct device_attribute *attr, char *buf) in stepping_show()
79 state_show(struct device *dev, struct device_attribute *attr, char *buf) in state_show()
91 state_store(struct device *dev, struct device_attribute *attr, in state_store()
122 struct device_attribute *attr, char *buf) in shutdown_status_show()
136 struct device_attribute *attr, char *buf) in heartbeat_enable_show()
148 struct device_attribute *attr, in heartbeat_enable_store()
175 cmdline_show(struct device *dev, struct device_attribute *attr, char *buf) in cmdline_show()
191 cmdline_store(struct device *dev, struct device_attribute *attr, in cmdline_store()
221 firmware_show(struct device *dev, struct device_attribute *attr, char *buf) in firmware_show()
[all …]
/Linux-v5.4/drivers/pcmcia/
Dsocket_sysfs.c33 static ssize_t pccard_show_type(struct device *dev, struct device_attribute *attr, in pccard_show_type()
46 static ssize_t pccard_show_voltage(struct device *dev, struct device_attribute *attr, in pccard_show_voltage()
60 static ssize_t pccard_show_vpp(struct device *dev, struct device_attribute *attr, in pccard_show_vpp()
70 static ssize_t pccard_show_vcc(struct device *dev, struct device_attribute *attr, in pccard_show_vcc()
81 static ssize_t pccard_store_insert(struct device *dev, struct device_attribute *attr, in pccard_store_insert()
97 struct device_attribute *attr, in pccard_show_card_pm_state()
105 struct device_attribute *attr, in pccard_store_card_pm_state()
128 struct device_attribute *attr, in pccard_store_eject()
144 struct device_attribute *attr, in pccard_show_irq_mask()
152 struct device_attribute *attr, in pccard_store_irq_mask()
[all …]
/Linux-v5.4/drivers/misc/genwqe/
Dcard_sysfs.c39 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-v5.4/drivers/soc/versatile/
Dsoc-integrator.c60 struct device_attribute *attr, in integrator_get_manf()
66 static struct device_attribute integrator_manf_attr =
70 struct device_attribute *attr, in integrator_get_arch()
76 static struct device_attribute integrator_arch_attr =
80 struct device_attribute *attr, in integrator_get_fpga()
86 static struct device_attribute integrator_fpga_attr =
90 struct device_attribute *attr, in integrator_get_build()
96 static struct device_attribute integrator_build_attr =
Dsoc-realview.c43 struct device_attribute *attr, in realview_get_manf()
49 static struct device_attribute realview_manf_attr =
53 struct device_attribute *attr, in realview_get_board()
59 static struct device_attribute realview_board_attr =
63 struct device_attribute *attr, in realview_get_arch()
69 static struct device_attribute realview_arch_attr =
73 struct device_attribute *attr, in realview_get_build()
79 static struct device_attribute realview_build_attr =
/Linux-v5.4/drivers/ide/
Dide-sysfs.c23 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-v5.4/drivers/s390/net/
Dqeth_core_sys.c20 struct device_attribute *attr, char *buf) in qeth_dev_state_show()
45 struct device_attribute *attr, char *buf) in qeth_dev_chpid_show()
57 struct device_attribute *attr, char *buf) in qeth_dev_if_name_show()
68 struct device_attribute *attr, char *buf) in qeth_dev_card_type_show()
94 struct device_attribute *attr, char *buf) in qeth_dev_inbuf_size_show()
106 struct device_attribute *attr, char *buf) in qeth_dev_portno_show()
116 struct device_attribute *attr, const char *buf, size_t count) in qeth_dev_portno_store()
151 struct device_attribute *attr, char *buf) in qeth_dev_portname_show()
157 struct device_attribute *attr, const char *buf, size_t count) in qeth_dev_portname_store()
170 struct device_attribute *attr, char *buf) in qeth_dev_prioqing_show()
[all …]
Dqeth_l3_sys.c17 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()
189 struct device_attribute *attr, char *buf) in qeth_l3_dev_sniffer_show()
200 struct device_attribute *attr, const char *buf, size_t count) in qeth_l3_dev_sniffer_store()
253 struct device_attribute *attr, char *buf) in qeth_l3_dev_hsuid_show()
[all …]
/Linux-v5.4/drivers/scsi/qla4xxx/
Dql4_attr.c155 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-v5.4/drivers/misc/habanalabs/
Dsysfs.c105 static ssize_t uboot_ver_show(struct device *dev, struct device_attribute *attr, in uboot_ver_show()
114 struct device_attribute *attr, char *buf) in armcp_kernel_ver_show()
121 static ssize_t armcp_ver_show(struct device *dev, struct device_attribute *attr, in armcp_ver_show()
129 static ssize_t cpld_ver_show(struct device *dev, struct device_attribute *attr, in cpld_ver_show()
139 struct device_attribute *attr, char *buf) in infineon_ver_show()
147 static ssize_t fuse_ver_show(struct device *dev, struct device_attribute *attr, in fuse_ver_show()
156 struct device_attribute *attr, char *buf) in thermal_ver_show()
164 struct device_attribute *attr, char *buf) in preboot_btl_ver_show()
172 struct device_attribute *attr, const char *buf, in soft_reset_store()
193 struct device_attribute *attr, in hard_reset_store()
[all …]
/Linux-v5.4/drivers/staging/iio/addac/
Dadt7316.c222 struct device_attribute *attr, in adt7316_show_enabled()
252 struct device_attribute *attr, in adt7316_store_enabled()
277 struct device_attribute *attr, in adt7316_show_select_ex_temp()
290 struct device_attribute *attr, in adt7316_store_select_ex_temp()
321 struct device_attribute *attr, in adt7316_show_mode()
334 struct device_attribute *attr, in adt7316_store_mode()
362 struct device_attribute *attr, in adt7316_show_all_modes()
371 struct device_attribute *attr, in adt7316_show_ad_channel()
409 struct device_attribute *attr, in adt7316_store_ad_channel()
455 struct device_attribute *attr, in adt7316_show_all_ad_channels()
[all …]
/Linux-v5.4/drivers/s390/crypto/
Dap_card.c22 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()

12345678910>>...49