Home
last modified time | relevance | path

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

12345678910>>...54

/linux-6.6.21/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-6.6.21/net/bridge/
Dbr_sysfs_br.c67 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-6.6.21/drivers/dma/idxd/
Dsysfs.c21 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-6.6.21/include/linux/
Dcpu.h45 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-6.6.21/arch/powerpc/platforms/cell/
Dcbe_thermal.c50 struct device_attribute attr_ ## _prefix ## _ ## _name = { \
87 static ssize_t spu_show_temp(struct device *dev, struct device_attribute *attr, in spu_show_temp()
138 struct device_attribute *attr, char *buf) in spu_show_throttle_end()
144 struct device_attribute *attr, char *buf) in spu_show_throttle_begin()
150 struct device_attribute *attr, char *buf) in spu_show_throttle_full_stop()
156 struct device_attribute *attr, const char *buf, size_t size) in spu_store_throttle_end()
162 struct device_attribute *attr, const char *buf, size_t size) in spu_store_throttle_begin()
168 struct device_attribute *attr, const char *buf, size_t size) in spu_store_throttle_full_stop()
190 struct device_attribute *attr, char *buf) in ppe_show_temp0()
197 struct device_attribute *attr, char *buf) in ppe_show_temp1()
[all …]
/linux-6.6.21/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_missed_max()
[all …]
/linux-6.6.21/drivers/usb/core/
Dsysfs.c27 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-6.6.21/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-6.6.21/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()
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 …]
Dcoresight-etm4x-sysfs.c58 struct device_attribute *attr, in nr_pe_cmp_show()
70 struct device_attribute *attr, in nr_addr_cmp_show()
82 struct device_attribute *attr, in nr_cntr_show()
94 struct device_attribute *attr, in nr_ext_inp_show()
106 struct device_attribute *attr, in numcidc_show()
118 struct device_attribute *attr, in numvmidc_show()
130 struct device_attribute *attr, in nrseqstate_show()
142 struct device_attribute *attr, in nr_resource_show()
154 struct device_attribute *attr, in nr_ss_cmp_show()
166 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()
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-6.6.21/drivers/accel/habanalabs/common/
Dsysfs.c12 static ssize_t clk_max_freq_mhz_show(struct device *dev, struct device_attribute *attr, char *buf) in clk_max_freq_mhz_show()
29 static ssize_t clk_max_freq_mhz_store(struct device *dev, struct device_attribute *attr, in clk_max_freq_mhz_store()
55 static ssize_t clk_cur_freq_mhz_show(struct device *dev, struct device_attribute *attr, char *buf) in clk_cur_freq_mhz_show()
79 static ssize_t vrm_ver_show(struct device *dev, struct device_attribute *attr, char *buf) in vrm_ver_show()
100 static ssize_t uboot_ver_show(struct device *dev, struct device_attribute *attr, in uboot_ver_show()
109 struct device_attribute *attr, char *buf) in armcp_kernel_ver_show()
116 static ssize_t armcp_ver_show(struct device *dev, struct device_attribute *attr, in armcp_ver_show()
124 static ssize_t cpld_ver_show(struct device *dev, struct device_attribute *attr, in cpld_ver_show()
134 struct device_attribute *attr, char *buf) in cpucp_kernel_ver_show()
141 static ssize_t cpucp_ver_show(struct device *dev, struct device_attribute *attr, in cpucp_ver_show()
[all …]
/linux-6.6.21/drivers/video/fbdev/core/
Dfbsysfs.c56 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-6.6.21/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 …]
/linux-6.6.21/Documentation/translations/zh_TW/filesystems/
Dsysfs.txt104 例如:驅動程序模型定義的 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-6.6.21/drivers/nvme/host/
Dsysfs.c14 struct device_attribute *attr, const char *buf, in nvme_sysfs_reset()
28 struct device_attribute *attr, const char *buf, in nvme_sysfs_rescan()
48 static ssize_t wwid_show(struct device *dev, struct device_attribute *attr, in wwid_show()
79 static ssize_t nguid_show(struct device *dev, struct device_attribute *attr, in nguid_show()
86 static ssize_t uuid_show(struct device *dev, struct device_attribute *attr, in uuid_show()
103 static ssize_t eui_show(struct device *dev, struct device_attribute *attr, in eui_show()
110 static ssize_t nsid_show(struct device *dev, struct device_attribute *attr, in nsid_show()
172 struct device_attribute *attr, char *buf) \
186 struct device_attribute *attr, char *buf) \
200 struct device_attribute *attr, const char *buf, in nvme_sysfs_delete()
[all …]
/linux-6.6.21/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 …]
/linux-6.6.21/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 …]
/linux-6.6.21/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-6.6.21/drivers/usb/typec/
Dpd.c37 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()
96 fast_role_swap_current_show(struct device *dev, struct device_attribute *attr, char *buf) in fast_role_swap_current_show()
102 static ssize_t voltage_show(struct device *dev, struct device_attribute *attr, char *buf) in voltage_show()
109 static ssize_t current_show(struct device *dev, struct device_attribute *attr, char *buf) in current_show()
[all …]
/linux-6.6.21/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-6.6.21/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-6.6.21/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()
143 struct device_attribute *attr, char *buf) in config_show()
[all …]
/linux-6.6.21/drivers/accel/habanalabs/goya/
Dgoya_hwmgr.c38 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 …]

12345678910>>...54