Home
last modified time | relevance | path

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

12345678910>>...51

/linux/samples/kobject/
H A Dkset-example.c39 struct attribute attr;
54 struct attribute *attr, in foo_attr_show()
57 const struct foo_attribute *attribute; in foo_attr_show() local
60 attribute = to_foo_attr(attr); in foo_attr_show()
63 if (!attribute->show) in foo_attr_show()
66 return attribute->show(foo, attribute, buf); in foo_attr_show()
74 struct attribute *attr, in foo_attr_store()
77 const struct foo_attribute *attribute; in foo_attr_store() local
80 attribute = to_foo_attr(attr); in foo_attr_store()
83 if (!attribute->store) in foo_attr_store()
[all …]
/linux/include/linux/
H A Dsysfs.h30 struct attribute { struct
109 struct attribute *, int);
111 const struct attribute *, int);
119 struct attribute **attrs;
120 const struct attribute *const *attrs_const;
170 struct kobject *kobj, struct attribute *attr, int n) \
202 struct kobject *kobj, struct attribute *a, int n) \
293 struct attribute **: \
295 const struct attribute *const *: \
312 struct attribute attr;
[all …]
/linux/sound/pci/asihpi/
H A Dhpicmn.c331 if (phm->u.c.attribute == HPI_METER_PEAK) { in hpi_check_control_cache_single()
334 } else if (phm->u.c.attribute == HPI_METER_RMS) { in hpi_check_control_cache_single()
351 if (phm->u.c.attribute == HPI_VOLUME_GAIN) { in hpi_check_control_cache_single()
354 } else if (phm->u.c.attribute == HPI_VOLUME_MUTE) { in hpi_check_control_cache_single()
371 if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) { in hpi_check_control_cache_single()
379 if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE) in hpi_check_control_cache_single()
385 if (phm->u.c.attribute == HPI_LEVEL_GAIN) { in hpi_check_control_cache_single()
392 if (phm->u.c.attribute == HPI_TUNER_FREQ) in hpi_check_control_cache_single()
394 else if (phm->u.c.attribute == HPI_TUNER_BAND) in hpi_check_control_cache_single()
396 else if (phm->u.c.attribute in hpi_check_control_cache_single()
[all...]
/linux/Documentation/ABI/testing/
H A 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
H A 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 …]
H A Dsysfs-bus-thunderbolt22 boot attribute is set to 1.
28 Description: This attribute tells whether the system supports
31 attribute under each device.
37 Description: This attribute tells whether the system uses IOMMU
46 Description: This attribute holds current Thunderbolt security level
52 appropriate value to the authorized attribute
68 Description: This attribute is used to authorize Thunderbolt devices
72 Contents of this attribute will be 0 when the device is not
79 deauthorization attribute under domain contains 1)
83 When key attribute contains 32 byte hex string the possible
[all …]
H A 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
H A Dsysfs-bus-spi-devices-spi-nor8 The attribute is not present if the flash doesn't support
18 The attribute is not present if the flash device isn't
28 The attribute is optional. User space should not rely on
30 should read the jedec_id attribute.
36 Description: (RO) This attribute is only present if the SPI NOR flash
H A Dsysfs-devices-platform-ACPI-TAD36 If the AC alarm timer is set through this attribute and it
39 is explicitly cleared via the ac_status attribute.
83 cleared through this attribute.
91 This attribute is only present if the TAD supports a separate
94 It is analogous to the ac_alarm attribute.
102 This attribute is only present if the TAD supports a separate
105 It is analogous to the ac_policy attribute.
114 This attribute is only present if the TAD supports a separate
117 It is analogous to the ac_status attribute.
H A Dsysfs-bus-pci-drivers-xhci_hcd17 Writing "enable" to this attribute will enable the DbC
19 to the DbC device. Writing "disable" to this attribute
23 Reading this attribute gives the state of the DbC. It
31 This dbc_idVendor attribute lets us change the idVendor field
44 This dbc_idProduct attribute lets us change the idProduct field
56 This dbc_bcdDevice attribute lets us change the bcdDevice field
69 This attribute lets us change the bInterfaceProtocol field
83 This attribute adjust the polling interval used to check for
93 The dbc_serial attribute allows to change the serial number
108 The dbc_product attribute allows to change the product string
[all …]
/linux/Documentation/hwmon/
H A 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 …]
H A Dhwmon-kernel-api.rst99 type, the attribute identifier associated with the event (such as
102 udev event with the attribute name passed in the NAME environment property
120 sysfs attribute groups.
155 attribute. This function is mandatory.
202 the update_interval attribute (HWMON_C_UPDATE_INTERVAL). The chip supports
257 A complete list of bit values indicating individual attribute support
288 Attribute identifier associated with a specific attribute.
289 For example, the attribute value for HWMON_T_INPUT would be
291 attribute values please see include/linux/hwmon.h.
296 The file mode for this attribute. Typically, this will be 0 (the
[all …]
/linux/Documentation/scsi/
H A Dtcm_qla2xxx.rst7 tcm_qla2xxx jam_host attribute
9 There is now a new module endpoint attribute called jam_host
10 attribute::
14 This attribute and accompanying code is only included if the
19 Use this attribute to control the discarding of SCSI commands to a
25 Setting a boolean of 1 for the jam_host attribute for a particular host
/linux/Documentation/filesystems/ext4/
H A 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 …]
H A 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/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()
/linux/drivers/pci/
H A Dpci-label.c59 enum smbios_attr_enum attribute) in find_smbios_instance_string() argument
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()
H A Dslot.c18 struct attribute *attr, char *buf) in pci_slot_attr_show()
21 struct pci_slot_attribute *attribute = to_pci_slot_attr(attr); in pci_slot_attr_show() local
22 return attribute->show ? attribute->show(slot, buf) : -EIO; in pci_slot_attr_show()
26 struct attribute *attr, const char *buf, size_t len) in pci_slot_attr_store()
29 struct pci_slot_attribute *attribute = to_pci_slot_attr(attr); in pci_slot_attr_store() local
30 return attribute->store ? attribute->store(slot, buf, len) : -EIO; in pci_slot_attr_store()
119 static struct attribute *pci_slot_default_attrs[] = {
/linux/Documentation/translations/zh_TW/filesystems/
H A Dsysfs.txt90 struct attribute {
97 int sysfs_create_file(struct kobject * kobj, const struct attribute * attr);
98 void sysfs_remove_file(struct kobject * kobj, const struct attribute * attr);
107 struct attribute attr;
145 ssize_t (*show)(struct kobject *, struct attribute *, char *);
146 ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t);
154 將一般的kobject 和 attribute 結構體指針轉換爲適當的指針類型後
162 static ssize_t dev_attr_show(struct kobject *kobj, struct attribute *attr,
312 struct attribute attr;
334 struct attribute attr;
[all …]
/linux/Documentation/translations/zh_CN/filesystems/
H A 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 结构体指针转换为适当的指针类型后
159 static ssize_t dev_attr_show(struct kobject *kobj, struct attribute *attr,
309 struct attribute attr;
331 struct attribute attr;
[all …]
/linux/net/core/
H A Dnet-sysfs.c69 static int sysfs_rtnl_lock(struct kobject *kobj, struct attribute *attr, in sysfs_rtnl_lock()
694 static struct attribute *netdev_phys_attrs[] __ro_after_init = {
702 struct attribute *attr, int index) in netdev_phys_is_visible()
767 static struct attribute *net_class_attrs[] __ro_after_init = {
858 static struct attribute *netstat_attrs[] __ro_after_init = {
891 static struct attribute *wireless_attrs[] = {
923 static ssize_t rx_queue_attr_show(struct kobject *kobj, struct attribute *attr, in rx_queue_attr_show()
926 const struct rx_queue_attribute *attribute = to_rx_queue_attr(attr); in rx_queue_attr_show() local
929 if (!attribute->show) in rx_queue_attr_show()
932 return attribute->show(queue, buf); in rx_queue_attr_show()
[all …]
/linux/arch/x86/platform/efi/
H A 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/fs/orangefs/
H A Dorangefs-sysfs.c166 struct attribute attr;
177 struct attribute *attr, in orangefs_attr_show()
180 struct orangefs_attribute *attribute; in orangefs_attr_show() local
182 attribute = container_of(attr, struct orangefs_attribute, attr); in orangefs_attr_show()
183 if (!attribute->show) in orangefs_attr_show()
185 return attribute->show(kobj, attribute, buf); in orangefs_attr_show()
189 struct attribute *attr, in orangefs_attr_store()
193 struct orangefs_attribute *attribute; in orangefs_attr_store() local
199 attribute = container_of(attr, struct orangefs_attribute, attr); in orangefs_attr_store()
200 if (!attribute->store) in orangefs_attr_store()
[all …]
/linux/Documentation/core-api/
H A Ddma-attributes.rst15 those that do not will simply ignore the attribute and exhibit default
25 those that do not will simply ignore the attribute and exhibit default
35 Buffers allocated with this attribute can be only passed to user space
39 dma_free_attrs(). Make sure that both of these also get this attribute
44 attribute and exhibit default behavior.
65 transferred to 'device' domain. This attribute can be also used for
67 device domain after releasing a mapping for it. Use this attribute with
76 specifying this attribute the allocated buffer is forced to be contiguous
129 "user" modes. This attribute is used to indicate to the DMA-mapping
137 This attribute indicates the physical address is not normal system
[all …]
/linux/drivers/edac/
H A Dedac_device_sysfs.c111 struct attribute attr;
121 struct attribute *attr, char *buffer) in edac_dev_ctl_info_show()
133 struct attribute *attr, in edac_dev_ctl_info_store()
169 static const struct attribute *const device_ctrl_attrs[] = {
343 struct attribute attr;
350 struct attribute *attr, char *buffer) in edac_dev_instance_show()
362 struct attribute *attr, in edac_dev_instance_store()
395 static struct attribute *device_instance_attrs[] = {
419 struct attribute *attr, char *data) in block_ue_count_show()
427 struct attribute *attr, char *data) in block_ce_count_show()
[all …]

12345678910>>...51