Home
last modified time | relevance | path

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

12345678910>>...51

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
133 struct device_attribute *attr, const char *buf, in stp_state_store()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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);
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/dma/idxd/
Dsysfs.c392 struct device_attribute *attr, char *buf) in engine_group_id_show()
404 struct device_attribute *attr, in engine_group_id_store()
442 static struct device_attribute dev_attr_engine_group =
476 struct device_attribute *attr, in group_tokens_reserved_show()
486 struct device_attribute *attr, in group_tokens_reserved_store()
516 static struct device_attribute dev_attr_group_tokens_reserved =
521 struct device_attribute *attr, in group_tokens_allowed_show()
531 struct device_attribute *attr, in group_tokens_allowed_store()
558 static struct device_attribute dev_attr_group_tokens_allowed =
563 struct device_attribute *attr, in group_use_token_limit_show()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
Dcoresight-cti-sysfs.c56 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()
122 struct device_attribute *attr, in powered_show()
137 struct device_attribute *attr, char *buf) in ctmid_show()
146 struct device_attribute *attr, in nr_trigger_cons_show()
169 struct device_attribute *attr, char *buf) \
268 struct device_attribute *attr, \
277 struct device_attribute *attr, \
287 struct device_attribute *attr, in inout_sel_show()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 = {
157 #define to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr)
162 struct device_attribute *dev_attr = to_dev_attr(attr);
[all …]
/kernel/linux/linux-5.10/drivers/base/power/
Dsysfs.c101 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, in runtime_active_time_show()
138 struct device_attribute *attr, in runtime_suspended_time_show()
151 struct device_attribute *attr, char *buf) in runtime_status_show()
183 struct device_attribute *attr, in autosuspend_delay_ms_show()
193 struct device_attribute *attr, const char *buf, size_t n) in autosuspend_delay_ms_store()
212 struct device_attribute *attr, in pm_qos_resume_latency_us_show()
226 struct device_attribute *attr, in pm_qos_resume_latency_us_store()
256 struct device_attribute *attr, in pm_qos_latency_tolerance_us_show()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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[] = {
/kernel/linux/linux-5.10/drivers/s390/net/
Dqeth_core_sys.c20 struct device_attribute *attr, char *buf) in qeth_dev_state_show()
41 struct device_attribute *attr, char *buf) in qeth_dev_chpid_show()
51 struct device_attribute *attr, char *buf) in qeth_dev_if_name_show()
61 struct device_attribute *attr, char *buf) in qeth_dev_card_type_show()
85 struct device_attribute *attr, char *buf) in qeth_dev_inbuf_size_show()
95 struct device_attribute *attr, char *buf) in qeth_dev_portno_show()
103 struct device_attribute *attr, const char *buf, size_t count) in qeth_dev_portno_store()
135 struct device_attribute *attr, char *buf) in qeth_dev_portname_show()
141 struct device_attribute *attr, const char *buf, size_t count) in qeth_dev_portname_store()
154 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()
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 …]
/kernel/linux/linux-5.10/drivers/base/
Dcpu.c88 struct device_attribute *attr, in cpu_probe_store()
106 struct device_attribute *attr, in cpu_release_store()
143 struct device_attribute *attr, in crash_notes_show()
165 struct device_attribute *attr, in crash_notes_size_show()
185 struct device_attribute *attr, char *buf) in isolate_show()
234 struct device_attribute attr;
239 struct device_attribute *attr, in show_cpus_attr()
264 struct device_attribute *attr, char *buf) in print_cpus_kernel_max()
274 struct device_attribute *attr, char *buf) in print_cpus_offline()
304 struct device_attribute *attr, char *buf) in print_cpus_isolated()
[all …]
/kernel/linux/linux-5.10/drivers/misc/habanalabs/common/
Dsysfs.c102 static ssize_t uboot_ver_show(struct device *dev, struct device_attribute *attr, in uboot_ver_show()
111 struct device_attribute *attr, char *buf) in armcp_kernel_ver_show()
118 static ssize_t armcp_ver_show(struct device *dev, struct device_attribute *attr, in armcp_ver_show()
126 static ssize_t cpld_ver_show(struct device *dev, struct device_attribute *attr, in cpld_ver_show()
136 struct device_attribute *attr, char *buf) in cpucp_kernel_ver_show()
143 static ssize_t cpucp_ver_show(struct device *dev, struct device_attribute *attr, in cpucp_ver_show()
152 struct device_attribute *attr, char *buf) in infineon_ver_show()
160 static ssize_t fuse_ver_show(struct device *dev, struct device_attribute *attr, in fuse_ver_show()
169 struct device_attribute *attr, char *buf) in thermal_ver_show()
177 struct device_attribute *attr, char *buf) in preboot_btl_ver_show()
[all …]
/kernel/linux/linux-5.10/drivers/s390/crypto/
Dap_card.c23 struct device_attribute *attr, char *buf) in hwtype_show()
33 struct device_attribute *attr, char *buf) in raw_hwtype_show()
42 static ssize_t depth_show(struct device *dev, struct device_attribute *attr, in depth_show()
53 struct device_attribute *attr, char *buf) in ap_functions_show()
63 struct device_attribute *attr, in request_count_show()
77 struct device_attribute *attr, in request_count_store()
97 struct device_attribute *attr, char *buf) in requestq_count_show()
116 struct device_attribute *attr, char *buf) in pendingq_count_show()
135 struct device_attribute *attr, char *buf) in modalias_show()
144 struct device_attribute *attr, char *buf) in config_show()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/qla4xxx/
Dql4_attr.c154 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 …]
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dsysfs.c50 struct device_attribute *attr, in store_smt_snooze_delay()
60 struct device_attribute *attr, in show_smt_snooze_delay()
96 struct device_attribute *attr, \
105 store_##NAME(struct device *dev, struct device_attribute *attr, \
169 static void add_write_permission_dev_attr(struct device_attribute *attr) in add_write_permission_dev_attr()
183 struct device_attribute *attr, char *buf) in show_dscr_default()
198 struct device_attribute *attr, const char *buf, in store_dscr_default()
260 struct device_attribute *attr, char *buf) in show_pw20_state()
288 struct device_attribute *attr, in store_pw20_state()
306 struct device_attribute *attr, char *buf) in show_pw20_wait_time()
[all …]

12345678910>>...51