Home
last modified time | relevance | path

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

12345678910>>...55

/linux-6.12.1/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.12.1/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.12.1/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.12.1/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.12.1/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.12.1/drivers/leds/
Dleds-lp55xx-common.h42 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-6.12.1/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()
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-6.12.1/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()
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-6.12.1/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.12.1/drivers/accel/habanalabs/common/
Dsysfs.c13 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()
116 static ssize_t uboot_ver_show(struct device *dev, struct device_attribute *attr, in uboot_ver_show()
125 struct device_attribute *attr, char *buf) in armcp_kernel_ver_show()
132 static ssize_t armcp_ver_show(struct device *dev, struct device_attribute *attr, in armcp_ver_show()
140 static ssize_t cpld_ver_show(struct device *dev, struct device_attribute *attr, in cpld_ver_show()
151 struct device_attribute *attr, char *buf) in cpucp_kernel_ver_show()
158 static ssize_t cpucp_ver_show(struct device *dev, struct device_attribute *attr, in cpucp_ver_show()
[all …]
/linux-6.12.1/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 …]
/linux-6.12.1/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.12.1/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.12.1/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.12.1/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.12.1/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.12.1/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.12.1/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.12.1/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()
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-6.12.1/drivers/media/pci/mgb4/
Dmgb4_sysfs_in.c20 struct device_attribute *attr, char *buf) in input_id_show()
29 struct device_attribute *attr, char *buf) in oldi_lane_width_show()
66 struct device_attribute *attr, in oldi_lane_width_store()
118 struct device_attribute *attr, char *buf) in color_mapping_show()
133 struct device_attribute *attr, in color_mapping_store()
164 struct device_attribute *attr, char *buf) in link_status_show()
175 struct device_attribute *attr, char *buf) in stream_status_show()
187 struct device_attribute *attr, char *buf) in video_width_show()
198 struct device_attribute *attr, char *buf) in video_height_show()
209 struct device_attribute *attr, char *buf) in hsync_status_show()
[all …]
/linux-6.12.1/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.12.1/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.12.1/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 …]

12345678910>>...55