Home
last modified time | relevance | path

Searched refs:attribute (Results 1 - 25 of 2654) sorted by relevance

12345678910>>...107

/kernel/linux/linux-5.10/samples/kobject/
H A Dkset-example.c37 /* a custom attribute that works just for a struct foo_obj. */
39 struct attribute attr;
53 struct attribute *attr, in foo_attr_show()
56 struct foo_attribute *attribute; in foo_attr_show() local
59 attribute = to_foo_attr(attr); in foo_attr_show()
62 if (!attribute->show) in foo_attr_show()
65 return attribute->show(foo, attribute, buf); in foo_attr_show()
73 struct attribute *attr, in foo_attr_store()
76 struct foo_attribute *attribute; in foo_attr_store() local
[all...]
/kernel/linux/linux-6.6/samples/kobject/
H A Dkset-example.c37 /* a custom attribute that works just for a struct foo_obj. */
39 struct attribute attr;
53 struct attribute *attr, in foo_attr_show()
56 struct foo_attribute *attribute; in foo_attr_show() local
59 attribute = to_foo_attr(attr); in foo_attr_show()
62 if (!attribute->show) in foo_attr_show()
65 return attribute->show(foo, attribute, buf); in foo_attr_show()
73 struct attribute *attr, in foo_attr_store()
76 struct foo_attribute *attribute; in foo_attr_store() local
[all...]
/kernel/linux/linux-5.10/sound/pci/asihpi/
H A Dhpicmn.c325 if (phm->u.c.attribute == HPI_METER_PEAK) { in hpi_check_control_cache_single()
328 } else if (phm->u.c.attribute == HPI_METER_RMS) { in hpi_check_control_cache_single()
345 if (phm->u.c.attribute == HPI_VOLUME_GAIN) { in hpi_check_control_cache_single()
348 } else if (phm->u.c.attribute == HPI_VOLUME_MUTE) { in hpi_check_control_cache_single()
365 if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) { in hpi_check_control_cache_single()
373 if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE) in hpi_check_control_cache_single()
379 if (phm->u.c.attribute == HPI_LEVEL_GAIN) { in hpi_check_control_cache_single()
386 if (phm->u.c.attribute == HPI_TUNER_FREQ) in hpi_check_control_cache_single()
388 else if (phm->u.c.attribute == HPI_TUNER_BAND) in hpi_check_control_cache_single()
390 else if (phm->u.c.attribute in hpi_check_control_cache_single()
[all...]
/kernel/linux/linux-6.6/sound/pci/asihpi/
H A Dhpicmn.c325 if (phm->u.c.attribute == HPI_METER_PEAK) { in hpi_check_control_cache_single()
328 } else if (phm->u.c.attribute == HPI_METER_RMS) { in hpi_check_control_cache_single()
345 if (phm->u.c.attribute == HPI_VOLUME_GAIN) { in hpi_check_control_cache_single()
348 } else if (phm->u.c.attribute == HPI_VOLUME_MUTE) { in hpi_check_control_cache_single()
365 if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) { in hpi_check_control_cache_single()
373 if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE) in hpi_check_control_cache_single()
379 if (phm->u.c.attribute == HPI_LEVEL_GAIN) { in hpi_check_control_cache_single()
386 if (phm->u.c.attribute == HPI_TUNER_FREQ) in hpi_check_control_cache_single()
388 else if (phm->u.c.attribute == HPI_TUNER_BAND) in hpi_check_control_cache_single()
390 else if (phm->u.c.attribute in hpi_check_control_cache_single()
[all...]
/kernel/linux/linux-5.10/drivers/hid/
H A Dhid-sensor-custom.c28 struct hid_sensor_hub_attribute_info attribute; member
31 struct attribute *attrs[HID_CUSTOM_TOTAL_ATTRS];
62 static struct attribute hid_custom_attrs[HID_CUSTOM_TOTAL_ATTRS] = {
185 sensor_inst->power_state->attribute.report_id, in set_power_report_state()
186 sensor_inst->power_state->attribute.index, in set_power_report_state()
190 sensor_inst->report_state->attribute.report_id, in set_power_report_state()
191 sensor_inst->report_state->attribute.index, in set_power_report_state()
196 sensor_inst->power_state->attribute.logical_minimum; in set_power_report_state()
198 sensor_inst->power_state->attribute.report_id, in set_power_report_state()
199 sensor_inst->power_state->attribute in set_power_report_state()
277 struct hid_sensor_hub_attribute_info *attribute; show_value() local
[all...]
/kernel/linux/linux-6.6/drivers/hid/
H A Dhid-sensor-custom.c31 struct hid_sensor_hub_attribute_info attribute; member
34 struct attribute *attrs[HID_CUSTOM_TOTAL_ATTRS];
66 static struct attribute hid_custom_attrs[HID_CUSTOM_TOTAL_ATTRS] = {
189 sensor_inst->power_state->attribute.report_id, in set_power_report_state()
190 sensor_inst->power_state->attribute.index, in set_power_report_state()
194 sensor_inst->report_state->attribute.report_id, in set_power_report_state()
195 sensor_inst->report_state->attribute.index, in set_power_report_state()
200 sensor_inst->power_state->attribute.logical_minimum; in set_power_report_state()
202 sensor_inst->power_state->attribute.report_id, in set_power_report_state()
203 sensor_inst->power_state->attribute in set_power_report_state()
281 struct hid_sensor_hub_attribute_info *attribute; show_value() local
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dsysfs.h30 struct attribute { struct
41 * sysfs_attr_init - initialize a dynamically allocated sysfs attribute
42 * @attr: struct attribute to initialize
44 * Initialize a dynamically allocated struct attribute so we can
47 * Lockdep gives a nice error when your attribute is added to
62 * struct attribute_group - data structure used to declare an attribute group.
64 * If specified, the attribute group will be created in
67 * attribute of the group. Will be called repeatedly for each
68 * non-binary attribute in the group. Only read/write
70 * return 0 if an attribute i
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dsysfs.h30 struct attribute { struct
41 * sysfs_attr_init - initialize a dynamically allocated sysfs attribute
42 * @attr: struct attribute to initialize
44 * Initialize a dynamically allocated struct attribute so we can
47 * Lockdep gives a nice error when your attribute is added to
62 * struct attribute_group - data structure used to declare an attribute group.
64 * If specified, the attribute group will be created in
67 * attribute of the group. Will be called repeatedly for each
68 * non-binary attribute in the group. Only read/write
70 * return 0 if an attribute i
[all...]
/kernel/linux/linux-5.10/drivers/staging/greybus/
H A Daudio_manager_module.c19 struct attribute attr;
29 struct attribute *attr, char *buf) in gb_audio_module_attr_show()
31 struct gb_audio_manager_module_attribute *attribute; in gb_audio_module_attr_show() local
34 attribute = to_gb_audio_module_attr(attr); in gb_audio_module_attr_show()
37 if (!attribute->show) in gb_audio_module_attr_show()
40 return attribute->show(module, attribute, buf); in gb_audio_module_attr_show()
44 struct attribute *attr, in gb_audio_module_attr_store()
47 struct gb_audio_manager_module_attribute *attribute; in gb_audio_module_attr_store() local
50 attribute in gb_audio_module_attr_store()
[all...]
/kernel/linux/linux-6.6/drivers/staging/greybus/
H A Daudio_manager_module.c22 struct attribute attr;
32 struct attribute *attr, char *buf) in gb_audio_module_attr_show()
34 struct gb_audio_manager_module_attribute *attribute; in gb_audio_module_attr_show() local
37 attribute = to_gb_audio_module_attr(attr); in gb_audio_module_attr_show()
40 if (!attribute->show) in gb_audio_module_attr_show()
43 return attribute->show(module, attribute, buf); in gb_audio_module_attr_show()
47 struct attribute *attr, in gb_audio_module_attr_store()
50 struct gb_audio_manager_module_attribute *attribute; in gb_audio_module_attr_store() local
53 attribute in gb_audio_module_attr_store()
[all...]
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
H A Dopal-dump.c31 struct attribute attr;
92 * Try to self remove this attribute. If we are successful, in dump_ack_store()
103 * The binary attribute of the dump itself is dynamic
148 static struct attribute *initiate_attrs[] = {
160 struct attribute *attr, in dump_attr_show()
163 struct dump_attribute *attribute; in dump_attr_show() local
166 attribute = to_dump_attr(attr); in dump_attr_show()
169 if (!attribute->show) in dump_attr_show()
172 return attribute->show(dump, attribute, bu in dump_attr_show()
179 struct dump_attribute *attribute; dump_attr_store() local
[all...]
H A Dopal-elog.c31 struct attribute attr;
76 * Try to self remove this attribute. If we are successful, in elog_ack_store()
96 struct attribute *attr, in elog_attr_show()
99 struct elog_attribute *attribute; in elog_attr_show() local
102 attribute = to_elog_attr(attr); in elog_attr_show()
105 if (!attribute->show) in elog_attr_show()
108 return attribute->show(elog, attribute, buf); in elog_attr_show()
112 struct attribute *attr, in elog_attr_store()
115 struct elog_attribute *attribute; in elog_attr_store() local
[all...]
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/
H A Dopal-dump.c31 struct attribute attr;
92 * Try to self remove this attribute. If we are successful, in dump_ack_store()
103 * The binary attribute of the dump itself is dynamic
148 static struct attribute *initiate_attrs[] = {
160 struct attribute *attr, in dump_attr_show()
163 struct dump_attribute *attribute; in dump_attr_show() local
166 attribute = to_dump_attr(attr); in dump_attr_show()
169 if (!attribute->show) in dump_attr_show()
172 return attribute->show(dump, attribute, bu in dump_attr_show()
179 struct dump_attribute *attribute; dump_attr_store() local
[all...]
H A Dopal-elog.c31 struct attribute attr;
76 * Try to self remove this attribute. If we are successful, in elog_ack_store()
96 struct attribute *attr, in elog_attr_show()
99 struct elog_attribute *attribute; in elog_attr_show() local
102 attribute = to_elog_attr(attr); in elog_attr_show()
105 if (!attribute->show) in elog_attr_show()
108 return attribute->show(elog, attribute, buf); in elog_attr_show()
112 struct attribute *attr, in elog_attr_store()
115 struct elog_attribute *attribute; in elog_attr_store() local
[all...]
/kernel/linux/linux-5.10/drivers/dma-buf/
H A Ddma-buf-sysfs-stats.c54 struct attribute attr;
61 struct attribute *attr, in dma_buf_stats_attribute_show()
64 struct dma_buf_stats_attribute *attribute; in dma_buf_stats_attribute_show() local
68 attribute = to_dma_buf_stats_attr(attr); in dma_buf_stats_attribute_show()
72 if (!dmabuf || !attribute->show) in dma_buf_stats_attribute_show()
75 return attribute->show(dmabuf, attribute, buf); in dma_buf_stats_attribute_show()
100 static struct attribute *dma_buf_stats_default_attrs[] = {
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_topology.h89 struct attribute attr;
107 struct attribute attr;
127 struct attribute attr;
154 struct attribute attr_gpuid;
155 struct attribute attr_name;
156 struct attribute attr_props;
170 struct attribute attr_genid;
171 struct attribute attr_props;
/kernel/linux/linux-6.6/drivers/dma-buf/
H A Ddma-buf-sysfs-stats.c54 struct attribute attr;
61 struct attribute *attr, in dma_buf_stats_attribute_show()
64 struct dma_buf_stats_attribute *attribute; in dma_buf_stats_attribute_show() local
68 attribute = to_dma_buf_stats_attr(attr); in dma_buf_stats_attribute_show()
72 if (!dmabuf || !attribute->show) in dma_buf_stats_attribute_show()
75 return attribute->show(dmabuf, attribute, buf); in dma_buf_stats_attribute_show()
100 static struct attribute *dma_buf_stats_default_attrs[] = {
/kernel/linux/linux-5.10/arch/arm/kernel/
H A Defi.c16 if (md->attribute & EFI_MEMORY_RO) in set_permissions()
18 if (md->attribute & EFI_MEMORY_XP) in set_permissions()
58 if (md->attribute & EFI_MEMORY_WB) in efi_create_mapping()
60 else if (md->attribute & EFI_MEMORY_WT) in efi_create_mapping()
62 else if (md->attribute & EFI_MEMORY_WC) in efi_create_mapping()
72 if (md->attribute & (EFI_MEMORY_RO | EFI_MEMORY_XP)) in efi_create_mapping()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_topology.h114 struct attribute attr;
136 struct attribute attr;
155 struct attribute attr;
182 struct attribute attr_gpuid;
183 struct attribute attr_name;
184 struct attribute attr_props;
198 struct attribute attr_genid;
199 struct attribute attr_props;
/kernel/linux/linux-5.10/drivers/edac/
H A Dedac_device_sysfs.c28 * Set of edac_device_ctl_info attribute store/show functions
106 /* edac_device_ctl_info specific attribute structure */
108 struct attribute attr;
118 struct attribute *attr, char *buffer) in edac_dev_ctl_info_show()
130 struct attribute *attr, in edac_dev_ctl_info_store()
220 .default_attrs = (struct attribute **)device_ctrl_attr,
307 * Set of low-level instance attribute show functions
338 /* instance specific attribute structure */
340 struct attribute attr;
347 struct attribute *att in edac_dev_instance_show()
[all...]
/kernel/linux/linux-6.6/drivers/edac/
H A Dedac_device_sysfs.c28 * Set of edac_device_ctl_info attribute store/show functions
106 /* edac_device_ctl_info specific attribute structure */
108 struct attribute attr;
118 struct attribute *attr, char *buffer) in edac_dev_ctl_info_show()
130 struct attribute *attr, in edac_dev_ctl_info_store()
166 static struct attribute *device_ctrl_attrs[] = {
307 * Set of low-level instance attribute show functions
338 /* instance specific attribute structure */
340 struct attribute attr;
347 struct attribute *att in edac_dev_instance_show()
[all...]
/kernel/linux/linux-5.10/fs/hmdfs/comm/
H A Ddevice_node.h59 struct attribute attr;
67 struct attribute attr;
75 struct attribute attr;
89 static inline struct sbi_attribute *to_sbi_attr(struct attribute *x) in to_sbi_attr()
99 static inline struct peer_attribute *to_peer_attr(struct attribute *x) in to_peer_attr()
/kernel/linux/linux-6.6/fs/hmdfs/comm/
H A Ddevice_node.h59 struct attribute attr;
67 struct attribute attr;
75 struct attribute attr;
89 static inline struct sbi_attribute *to_sbi_attr(struct attribute *x) in to_sbi_attr()
99 static inline struct peer_attribute *to_peer_attr(struct attribute *x) in to_peer_attr()
/kernel/linux/linux-6.6/drivers/pci/
H A Dpci-label.c59 enum smbios_attr_enum attribute) in find_smbios_instance_string()
75 if (attribute == SMBIOS_ATTR_INSTANCE_SHOW) in find_smbios_instance_string()
78 else if (attribute == SMBIOS_ATTR_LABEL_SHOW) in find_smbios_instance_string()
109 static struct attribute *smbios_attrs[] = {
115 static umode_t smbios_attr_is_visible(struct kobject *kobj, struct attribute *a, in smbios_attr_is_visible()
210 static struct attribute *acpi_attrs[] = {
216 static umode_t acpi_attr_is_visible(struct kobject *kobj, struct attribute *a, in acpi_attr_is_visible()
58 find_smbios_instance_string(struct pci_dev *pdev, char *buf, enum smbios_attr_enum attribute) find_smbios_instance_string() argument
/kernel/linux/linux-6.6/arch/arm/kernel/
H A Defi.c19 if (md->attribute & EFI_MEMORY_RO) in set_permissions()
21 if (md->attribute & EFI_MEMORY_XP) in set_permissions()
62 if (md->attribute & EFI_MEMORY_WB) in efi_create_mapping()
64 else if (md->attribute & EFI_MEMORY_WT) in efi_create_mapping()
66 else if (md->attribute & EFI_MEMORY_WC) in efi_create_mapping()
76 if (md->attribute & (EFI_MEMORY_RO | EFI_MEMORY_XP)) in efi_create_mapping()

Completed in 14 milliseconds

12345678910>>...107