Home
last modified time | relevance | path

Searched refs:attribute (Results 1 – 25 of 1479) sorted by relevance

12345678910>>...60

/Linux-v5.4/drivers/hid/
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[] = {
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.index, in set_power_report_state()
[all …]
/Linux-v5.4/Documentation/ABI/testing/
Dsysfs-devices-power13 The /sys/devices/.../power/wakeup attribute allows the user
39 The /sys/devices/.../power/control attribute allows the user
50 drivers. Changing this attribute to "on" prevents the driver
58 The /sys/devices/.../async attribute allows the user space to
70 The value of this attribute may be changed by writing either
76 devices this attribute is set to "enabled" by bus type code or
84 The /sys/devices/.../wakeup_count attribute contains the number
86 attribute is read-only. If the device is not capable to wake up
87 the system from sleep states, this attribute is not present.
89 states, this attribute is empty.
[all …]
Dsysfs-devices-lpss_ltr14 The /sys/devices/.../lpss_ltr/ltr_mode attribute contains an
18 This attribute is read-only. If the device's runtime PM status
19 is not "active", attempts to read from this attribute cause
26 The /sys/devices/.../lpss_ltr/auto_ltr attribute contains the
30 This attribute is read-only. If the device's runtime PM status
31 is not "active", attempts to read from this attribute cause
38 The /sys/devices/.../lpss_ltr/auto_ltr attribute contains the
42 This attribute is read-only. If the device's runtime PM status
43 is not "active", attempts to read from this attribute cause
Dsysfs-devices-edac15 Description: This attribute file displays how many seconds have elapsed
22 Description: This attribute file displays the type of memory controller
28 Description: This attribute file displays, in count of megabytes, of memory
34 Description: This attribute file displays the total count of uncorrectable
42 Description: This attribute file displays the number of UEs that have
49 Description: This attribute file displays the total count of correctable
59 Description: This attribute file displays the number of CEs that
69 Description: Read/Write attribute file that controls memory scrubbing.
71 writing a minimum bandwidth in bytes/sec to the attribute file.
76 the value of the attribute file will be -1.
[all …]
Dsysfs-driver-ppi22 This attribute shows the version of the PPI supported by the
30 This attribute shows the request for an operation to be
40 This attribute shows the response to the most recent operation
49 This attribute shows the platform-specific action that should
59 This attribute shows whether it is allowed to request an
63 This attribute is only supported by PPI version 1.2+.
70 This attribute shows whether it is allowed to request an
73 255. The format is same with tcg_operations. This attribute
/Linux-v5.4/include/linux/
Dsysfs.h30 struct attribute { struct
87 struct attribute *, int);
90 struct attribute **attrs;
162 struct attribute attr;
224 ssize_t (*show)(struct kobject *, struct attribute *, char *);
225 ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
243 const struct attribute *attr,
246 const struct attribute * const *attr);
248 const struct attribute *attr, umode_t mode);
250 const struct attribute *attr);
[all …]
/Linux-v5.4/samples/kobject/
Dkset-example.c39 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
79 attribute = to_foo_attr(attr); in foo_attr_store()
82 if (!attribute->store) in foo_attr_store()
[all …]
/Linux-v5.4/sound/pci/asihpi/
Dhpicmn.c323 if (phm->u.c.attribute == HPI_METER_PEAK) { in hpi_check_control_cache_single()
326 } else if (phm->u.c.attribute == HPI_METER_RMS) { in hpi_check_control_cache_single()
343 if (phm->u.c.attribute == HPI_VOLUME_GAIN) { in hpi_check_control_cache_single()
346 } else if (phm->u.c.attribute == HPI_VOLUME_MUTE) { in hpi_check_control_cache_single()
363 if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) { in hpi_check_control_cache_single()
371 if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE) in hpi_check_control_cache_single()
377 if (phm->u.c.attribute == HPI_LEVEL_GAIN) { in hpi_check_control_cache_single()
384 if (phm->u.c.attribute == HPI_TUNER_FREQ) in hpi_check_control_cache_single()
386 else if (phm->u.c.attribute == HPI_TUNER_BAND) in hpi_check_control_cache_single()
388 else if (phm->u.c.attribute == HPI_TUNER_LEVEL_AVG) in hpi_check_control_cache_single()
[all …]
/Linux-v5.4/drivers/staging/greybus/
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 = to_gb_audio_module_attr(attr); in gb_audio_module_attr_store()
53 if (!attribute->store) in gb_audio_module_attr_store()
[all …]
/Linux-v5.4/arch/powerpc/platforms/powernv/
Dopal-elog.c31 struct attribute attr;
91 struct attribute *attr, in elog_attr_show()
94 struct elog_attribute *attribute; in elog_attr_show() local
97 attribute = to_elog_attr(attr); in elog_attr_show()
100 if (!attribute->show) in elog_attr_show()
103 return attribute->show(elog, attribute, buf); in elog_attr_show()
107 struct attribute *attr, in elog_attr_store()
110 struct elog_attribute *attribute; in elog_attr_store() local
113 attribute = to_elog_attr(attr); in elog_attr_store()
116 if (!attribute->store) in elog_attr_store()
[all …]
Dopal-dump.c31 struct attribute attr;
143 static struct attribute *initiate_attrs[] = {
155 struct attribute *attr, in dump_attr_show()
158 struct dump_attribute *attribute; in dump_attr_show() local
161 attribute = to_dump_attr(attr); in dump_attr_show()
164 if (!attribute->show) in dump_attr_show()
167 return attribute->show(dump, attribute, buf); in dump_attr_show()
171 struct attribute *attr, in dump_attr_store()
174 struct dump_attribute *attribute; in dump_attr_store() local
177 attribute = to_dump_attr(attr); in dump_attr_store()
[all …]
/Linux-v5.4/arch/arm/kernel/
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()
/Linux-v5.4/Documentation/hwmon/
Dibmpowernv.rst18 'hwmon' populates the 'sysfs' tree having attribute files, each for a given
19 sensor type and its attribute data.
22 the DT maps to an attribute file in 'sysfs'. The node exports unique 'sensor-id'
44 sub-group. In POWER9, this attribute corresponds to
45 each OCC. Using this attribute each OCC can be asked to
57 sub-group. In POWER9, this attribute corresponds to
58 each OCC. Using this attribute each OCC can be asked to
68 sub-group. In POWER9, this attribute corresponds to
69 each OCC. Using this attribute each OCC can be asked to
79 sub-group. In POWER9, this attribute corresponds to
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.h106 struct attribute attr;
127 struct attribute attr;
145 struct attribute attr;
172 struct attribute attr_gpuid;
173 struct attribute attr_name;
174 struct attribute attr_props;
188 struct attribute attr_genid;
189 struct attribute attr_props;
/Linux-v5.4/Documentation/filesystems/ext4/
Dattributes.rst11 all attribute names begin with “user”; this restriction seems to have
18 available for in-inode extended attribute storage. The second place
21 block to contain a pointer to a second extended attribute block (or even
23 attribute's value to be stored in a separate data block, though as of
46 The beginning of an extended attribute block is in
76 - Checksum of the extended attribute block.
83 of the extended attribute block, and the entire block (header +
113 - Location of this attribute's value on the disk block where it is stored.
114 Multiple attributes can share the same value. For an inode attribute
126 - Length of attribute value.
[all …]
Dinlinedata.rst11 attribute space, then it might be found as an extended attribute
17 Pending a change to compact the extended attribute key used to store
22 The inline data feature requires the presence of an extended attribute
23 for “system.data”, even if the attribute value is zero length.
31 attribute in the inode body, the EA value is an array of
/Linux-v5.4/Documentation/scsi/
Dtcm_qla2xxx.txt1 tcm_qla2xxx jam_host attribute
4 attribute: jam_host: boolean=0/1
5 This attribute and accompanying code is only included if the
9 Use this attribute to control the discarding of SCSI commands to a
14 Setting a boolean of 1 for the jam_host attribute for a particular host
/Linux-v5.4/Documentation/arm64/
Dperf.txt10 This attribute excludes userspace.
12 Userspace always runs at EL0 and thus this attribute will exclude EL0.
18 This attribute excludes the kernel.
23 For the host this attribute will exclude EL1 and additionally EL2 on a VHE
26 For the guest this attribute will exclude EL1. Please note that EL2 is
33 This attribute excludes the hypervisor.
35 For a VHE host this attribute is ignored as we consider the host kernel to
38 For a non-VHE host this attribute will exclude EL2 as we consider the
42 For the guest this attribute has no effect. Please note that EL2 is
/Linux-v5.4/drivers/firmware/efi/
Dfake_mem.c86 u64 start = 0, mem_size = 0, attribute = 0; in setup_fake_mem() local
100 attribute = simple_strtoull(p+1, &p, 0); in setup_fake_mem()
109 fake_mems[nr_fake_mem].attribute = attribute; in setup_fake_mem()
121 fake_mems[i].attribute, fake_mems[i].range.start, in setup_fake_mem()
Druntime-map.c24 struct attribute attr;
28 static inline struct map_attribute *to_map_attr(struct attribute *attr) in to_map_attr()
49 EFI_RUNTIME_U64_ATTR_SHOW(attribute);
56 static ssize_t map_attr_show(struct kobject *kobj, struct attribute *attr, in map_attr_show()
69 static struct map_attribute map_attribute_attr = __ATTR_RO_MODE(attribute, 0400);
74 static struct attribute *def_attrs[] = {
/Linux-v5.4/Documentation/translations/zh_CN/filesystems/
Dsysfs.txt87 struct attribute {
94 int sysfs_create_file(struct kobject * kobj, const struct attribute * attr);
95 void sysfs_remove_file(struct kobject * kobj, const struct attribute * attr);
104 struct attribute attr;
142 ssize_t (*show)(struct kobject *, struct attribute *, char *);
143 ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
151 将一般的kobject 和 attribute 结构体指针转换为适当的指针类型后
160 static ssize_t dev_attr_show(struct kobject *kobj, struct attribute *attr,
308 struct attribute attr;
330 struct attribute attr;
[all …]
/Linux-v5.4/kernel/
Dparams.c542 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_show() local
544 if (!attribute->param->ops->get) in param_attr_show()
548 count = attribute->param->ops->get(buf, attribute->param); in param_attr_show()
559 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_store() local
561 if (!attribute->param->ops->set) in param_attr_store()
565 if (param_check_unsafe(attribute->param)) in param_attr_store()
566 err = attribute->param->ops->set(buf, attribute->param); in param_attr_store()
611 struct attribute **new_attrs; in add_sysfs_param()
870 struct attribute *attr, in module_attr_show()
873 struct module_attribute *attribute; in module_attr_show() local
[all …]
/Linux-v5.4/drivers/edac/
Dedac_device_sysfs.c108 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,
339 struct attribute attr;
346 struct attribute *attr, char *buffer) in edac_dev_instance_show()
358 struct attribute *attr, in edac_dev_instance_store()
401 .default_attrs = (struct attribute **)device_instance_attr,
414 struct attribute *attr, char *data) in block_ue_count_show()
422 struct attribute *attr, char *data) in block_ce_count_show()
[all …]
/Linux-v5.4/net/batman-adv/
Dsysfs.c50 static void batadv_sysfs_deprecated(struct attribute *attr) in batadv_sysfs_deprecated()
138 struct attribute *attr, char *buff, \
156 struct attribute *attr, char *buff) \
177 struct attribute *attr, char *buff, \
197 struct attribute *attr, char *buff) \
216 struct attribute *attr, char *buff, \
238 struct attribute *attr, char *buff) \
261 struct attribute *attr, char *buff, \
291 struct attribute *attr, char *buff) \
362 struct attribute *attr, in __batadv_store_bool_attr()
[all …]
/Linux-v5.4/drivers/pci/
Dslot.c19 struct attribute *attr, char *buf) in pci_slot_attr_show()
22 struct pci_slot_attribute *attribute = to_pci_slot_attr(attr); in pci_slot_attr_show() local
23 return attribute->show ? attribute->show(slot, buf) : -EIO; in pci_slot_attr_show()
27 struct attribute *attr, const char *buf, size_t len) in pci_slot_attr_store()
30 struct pci_slot_attribute *attribute = to_pci_slot_attr(attr); in pci_slot_attr_store() local
31 return attribute->store ? attribute->store(slot, buf, len) : -EIO; in pci_slot_attr_store()
129 static struct attribute *pci_slot_default_attrs[] = {

12345678910>>...60