| /linux/drivers/hid/ |
| A D | hid-sensor-custom.c | 302 attribute = &sensor_inst->fields[field_index].attribute; in show_value() 303 report_id = attribute->report_id; in show_value() 318 if (i + attribute->size > ret) { in show_value() 324 switch (attribute->size) { in show_value() 327 i += attribute->size; in show_value() 331 i += attribute->size; in show_value() 335 i += attribute->size; in show_value() 497 sensor_field->attribute.index = index; in hid_sensor_custom_add_field() 508 sensor_field->attribute.index, in hid_sensor_custom_add_field() 509 sensor_field->attribute.attrib_id); in hid_sensor_custom_add_field() [all …]
|
| /linux/Documentation/ABI/testing/ |
| A D | sysfs-devices-power | 13 The /sys/devices/.../power/wakeup attribute allows the user 39 The /sys/devices/.../power/control attribute allows the user 89 states, this attribute is empty. 101 states, this attribute is empty. 113 up the system from sleep states, this attribute is empty. 123 from sleep states, this attribute is not present. If the 125 this attribute is empty. 172 up the system from sleep states, this attribute is empty. 184 from sleep states, this attribute is empty. 190 The /sys/devices/.../power/autosuspend_delay_ms attribute [all …]
|
| A D | sysfs-class-firmware-attributes | 17 This attribute is mandatory. 34 This attribute is mandatory. 92 [ReadOnlyIf:<attribute>=<value>] 93 [ReadOnlyIfNot:<attribute>=<value>] 94 [SuppressIf:<attribute>=<value>] 95 [SuppressIfNot:<attribute>=<value>] 116 <value>[ForceIf:<attribute>=<value>] 152 This attribute is mandatory. 156 This attribute is mandatory. 233 attribute changes applied [all …]
|
| A D | sysfs-devices-lpss_ltr | 14 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
|
| A D | sysfs-devices-edac | 15 Description: This attribute file displays how many seconds have elapsed 22 Description: This attribute file displays the type of memory controller 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. 90 Description: This attribute file will display the size of dimm or rank. [all …]
|
| A D | sysfs-bus-thunderbolt | 22 boot attribute is set to 1. 28 Description: This attribute tells whether the system supports 31 attribute under each device. 52 appropriate value to the authorized attribute 79 deauthorization attribute under domain contains 1) 88 deauthorization attribute under domain contains 1) 118 have this attribute. Writing 32 byte hex string changes 162 Description: This attribute reports the TX speed per lane. 309 connected to the port (link attribute returns "none"). 315 This attribute is only visible if the platform supports [all …]
|
| /linux/sound/pci/asihpi/ |
| A D | hpicmn.c | 325 if (phm->u.c.attribute == HPI_METER_PEAK) { in hpi_check_control_cache_single() 345 if (phm->u.c.attribute == HPI_VOLUME_GAIN) { 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() 411 if (phm->u.c.attribute == HPI_AESEBUTX_FORMAT) in hpi_check_control_cache_single() 456 attribute)))) { in hpi_check_control_cache_single() 469 attribute) - 1; in hpi_check_control_cache_single() 517 phm->u.c.attribute); in hpi_check_control_cache_single() 560 if (phm->u.c.attribute == HPI_VOLUME_GAIN) { in hpi_cmn_control_cache_sync_to_msg_single() [all …]
|
| /linux/samples/kobject/ |
| A D | kset-example.c | 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 79 attribute = to_foo_attr(attr); in foo_attr_store() 82 if (!attribute->store) in foo_attr_store() [all …]
|
| /linux/include/linux/ |
| A D | sysfs.h | 30 struct attribute { struct 87 struct attribute *, int); 90 struct attribute **attrs; 176 struct attribute attr; 258 const struct attribute *attr, 265 const struct attribute *attr); 401 const struct attribute *attr) in sysfs_break_active_protection() 411 const struct attribute *attr, in sysfs_remove_file_ns() 417 const struct attribute *attr) in sysfs_remove_file_self() 605 const struct attribute *attr) in sysfs_create_file() [all …]
|
| /linux/drivers/staging/greybus/ |
| A D | audio_manager_module.c | 19 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/arch/powerpc/platforms/powernv/ |
| A D | opal-elog.c | 31 struct attribute attr; 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 118 attribute = to_elog_attr(attr); in elog_attr_store() 121 if (!attribute->store) in elog_attr_store() [all …]
|
| A D | opal-dump.c | 31 struct attribute attr; 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, buf); in dump_attr_show() 176 struct attribute *attr, in dump_attr_store() 179 struct dump_attribute *attribute; in dump_attr_store() local 182 attribute = to_dump_attr(attr); in dump_attr_store() 185 if (!attribute->store) in dump_attr_store() [all …]
|
| /linux/Documentation/hwmon/ |
| A D | ibmpowernv.rst | 18 '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 …]
|
| A D | hwmon-kernel-api.rst | 110 sysfs attribute groups. 145 attribute. This function is mandatory. 277 Attribute identifier associated with a specific attribute. 278 For example, the attribute value for HWMON_T_INPUT would be 280 attribute values please see include/linux/hwmon.h. 299 Attribute identifier associated with a specific attribute. 306 Pointer to attribute value. 322 Attribute identifier associated with a specific attribute. 351 to the sysfs attribute handling function. 374 attribute is attached. [all …]
|
| /linux/drivers/dma-buf/ |
| A D | dma-buf-sysfs-stats.c | 54 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[] = {
|
| /linux/arch/arm/kernel/ |
| A D | efi.c | 16 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/drivers/gpu/drm/amd/amdkfd/ |
| A D | kfd_topology.h | 116 struct attribute attr; 138 struct attribute attr; 157 struct attribute attr; 184 struct attribute attr_gpuid; 185 struct attribute attr_name; 186 struct attribute attr_props; 200 struct attribute attr_genid; 201 struct attribute attr_props;
|
| /linux/Documentation/filesystems/ext4/ |
| A D | attributes.rst | 11 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 + 126 - Length of attribute value. 130 - Hash value of attribute name and attribute value. The kernel doesn't 155 is matched against the attribute name index. If a match is found, the [all …]
|
| /linux/Documentation/arm64/ |
| A D | perf.rst | 15 This attribute excludes userspace. 17 Userspace always runs at EL0 and thus this attribute will exclude EL0. 23 This attribute excludes the kernel. 28 For the host this attribute will exclude EL1 and additionally EL2 on a VHE 31 For the guest this attribute will exclude EL1. Please note that EL2 is 38 This attribute excludes the hypervisor. 40 For a VHE host this attribute is ignored as we consider the host kernel to 43 For a non-VHE host this attribute will exclude EL2 as we consider the 47 For the guest this attribute has no effect. Please note that EL2 is
|
| /linux/kernel/ |
| A D | params.c | 563 if (!attribute->param->ops->get) in param_attr_show() 567 count = attribute->param->ops->get(buf, attribute->param); in param_attr_show() 580 if (!attribute->param->ops->set) in param_attr_store() 585 err = attribute->param->ops->set(buf, attribute->param); in param_attr_store() 630 struct attribute **new_attrs; in add_sysfs_param() 887 struct attribute *attr, in module_attr_show() 897 if (!attribute->show) in module_attr_show() 900 ret = attribute->show(attribute, mk, buf); in module_attr_show() 906 struct attribute *attr, in module_attr_store() 916 if (!attribute->store) in module_attr_store() [all …]
|
| /linux/drivers/edac/ |
| A D | edac_device_sysfs.c | 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() 340 struct attribute attr; 347 struct attribute *attr, char *buffer) in edac_dev_instance_show() 359 struct attribute *attr, in edac_dev_instance_store() 415 struct attribute *attr, char *data) in block_ue_count_show() 423 struct attribute *attr, char *data) in block_ce_count_show() 461 struct attribute *attr, in edac_dev_block_store() 593 (struct attribute *) sysfs_attrib); in edac_device_delete_block() [all …]
|
| /linux/Documentation/translations/zh_CN/filesystems/ |
| A D | sysfs.txt | 87 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/Documentation/translations/zh_TW/filesystems/ |
| A D | sysfs.txt | 90 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/drivers/pci/ |
| A D | pci-label.c | 59 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()
|
| /linux/Documentation/scsi/ |
| A D | tcm_qla2xxx.rst | 7 tcm_qla2xxx jam_host attribute 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
|