| /Linux-v4.19/include/linux/ |
| D | sysfs.h | 30 struct attribute { struct 87 struct attribute *, int); 90 struct attribute **attrs; 162 struct attribute attr; 215 ssize_t (*show)(struct kobject *, struct attribute *, char *); 216 ssize_t (*store)(struct kobject *, struct attribute *, const char *, size_t); 234 const struct attribute *attr, 237 const struct attribute **attr); 239 const struct attribute *attr, umode_t mode); 241 const struct attribute *attr); [all …]
|
| /Linux-v4.19/drivers/hid/ |
| D | hid-sensor-custom.c | 36 struct hid_sensor_hub_attribute_info attribute; member 39 struct attribute *attrs[HID_CUSTOM_TOTAL_ATTRS]; 70 static struct attribute hid_custom_attrs[] = { 194 sensor_inst->power_state->attribute.report_id, in set_power_report_state() 195 sensor_inst->power_state->attribute.index, in set_power_report_state() 199 sensor_inst->report_state->attribute.report_id, in set_power_report_state() 200 sensor_inst->report_state->attribute.index, in set_power_report_state() 205 sensor_inst->power_state->attribute.logical_minimum; in set_power_report_state() 207 sensor_inst->power_state->attribute.report_id, in set_power_report_state() 208 sensor_inst->power_state->attribute.index, in set_power_report_state() [all …]
|
| /Linux-v4.19/Documentation/ABI/testing/ |
| D | sysfs-devices-power | 13 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 …]
|
| 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
|
| 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 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 …]
|
| D | sysfs-driver-ppi | 22 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-v4.19/samples/kobject/ |
| 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-v4.19/drivers/staging/greybus/ |
| D | audio_manager_module.c | 19 struct attribute attr; 29 struct kobject *kobj, 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-v4.19/sound/pci/asihpi/ |
| D | hpicmn.c | 334 if (phm->u.c.attribute == HPI_METER_PEAK) { in hpi_check_control_cache_single() 337 } else if (phm->u.c.attribute == HPI_METER_RMS) { in hpi_check_control_cache_single() 354 if (phm->u.c.attribute == HPI_VOLUME_GAIN) { in hpi_check_control_cache_single() 357 } else if (phm->u.c.attribute == HPI_VOLUME_MUTE) { in hpi_check_control_cache_single() 374 if (phm->u.c.attribute == HPI_MULTIPLEXER_SOURCE) { in hpi_check_control_cache_single() 382 if (phm->u.c.attribute == HPI_CHANNEL_MODE_MODE) in hpi_check_control_cache_single() 388 if (phm->u.c.attribute == HPI_LEVEL_GAIN) { in hpi_check_control_cache_single() 395 if (phm->u.c.attribute == HPI_TUNER_FREQ) in hpi_check_control_cache_single() 397 else if (phm->u.c.attribute == HPI_TUNER_BAND) in hpi_check_control_cache_single() 399 else if (phm->u.c.attribute == HPI_TUNER_LEVEL_AVG) in hpi_check_control_cache_single() [all …]
|
| /Linux-v4.19/arch/powerpc/platforms/powernv/ |
| D | opal-elog.c | 35 struct attribute attr; 95 struct attribute *attr, in elog_attr_show() 98 struct elog_attribute *attribute; in elog_attr_show() local 101 attribute = to_elog_attr(attr); in elog_attr_show() 104 if (!attribute->show) in elog_attr_show() 107 return attribute->show(elog, attribute, buf); in elog_attr_show() 111 struct attribute *attr, in elog_attr_store() 114 struct elog_attribute *attribute; in elog_attr_store() local 117 attribute = to_elog_attr(attr); in elog_attr_store() 120 if (!attribute->store) in elog_attr_store() [all …]
|
| D | opal-dump.c | 35 struct attribute attr; 147 static struct attribute *initiate_attrs[] = { 159 struct attribute *attr, in dump_attr_show() 162 struct dump_attribute *attribute; in dump_attr_show() local 165 attribute = to_dump_attr(attr); in dump_attr_show() 168 if (!attribute->show) in dump_attr_show() 171 return attribute->show(dump, attribute, buf); in dump_attr_show() 175 struct attribute *attr, in dump_attr_store() 178 struct dump_attribute *attribute; in dump_attr_store() local 181 attribute = to_dump_attr(attr); in dump_attr_store() [all …]
|
| /Linux-v4.19/Documentation/hwmon/ |
| D | ibmpowernv | 17 'hwmon' populates the 'sysfs' tree having attribute files, each for a given 18 sensor type and its attribute data. 21 the DT maps to an attribute file in 'sysfs'. The node exports unique 'sensor-id' 42 sub-group. In POWER9, this attribute corresponds to 43 each OCC. Using this attribute each OCC can be asked to 54 sub-group. In POWER9, this attribute corresponds to 55 each OCC. Using this attribute each OCC can be asked to 64 sub-group. In POWER9, this attribute corresponds to 65 each OCC. Using this attribute each OCC can be asked to 74 sub-group. In POWER9, this attribute corresponds to [all …]
|
| D | hwmon-kernel-api.txt | 55 function wil create a name sysfs attribute pointing to this name. 60 a pointer to a list of sysfs attribute groups. The list must be NULL terminated. 61 hwmon_device_register_with_groups creates the hwmon device with name attribute 110 sysfs attribute groups. 141 attribute. This function is mandatory. 179 the update_interval attribute (HWMON_C_UPDATE_INTERVAL). The chip supports 221 A complete list of bit values indicating individual attribute support 247 attr: Attribute identifier associated with a specific attribute. 248 For example, the attribute value for HWMON_T_INPUT would be 250 attribute values please see include/linux/hwmon.h. [all …]
|
| /Linux-v4.19/arch/arm/kernel/ |
| D | efi.c | 20 if (md->attribute & EFI_MEMORY_RO) in set_permissions() 22 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-v4.19/drivers/gpu/drm/amd/amdkfd/ |
| D | kfd_topology.h | 98 struct attribute attr; 119 struct attribute attr; 137 struct attribute attr; 164 struct attribute attr_gpuid; 165 struct attribute attr_name; 166 struct attribute attr_props; 180 struct attribute attr_genid; 181 struct attribute attr_props;
|
| /Linux-v4.19/Documentation/filesystems/ext4/ondisk/ |
| 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 + 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 …]
|
| D | inlinedata.rst | 11 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-v4.19/Documentation/scsi/ |
| D | tcm_qla2xxx.txt | 1 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-v4.19/drivers/firmware/efi/ |
| D | fake_mem.c | 100 u64 start = 0, mem_size = 0, attribute = 0; in setup_fake_mem() local 114 attribute = simple_strtoull(p+1, &p, 0); in setup_fake_mem() 123 fake_mems[nr_fake_mem].attribute = attribute; in setup_fake_mem() 135 fake_mems[i].attribute, fake_mems[i].range.start, in setup_fake_mem()
|
| D | runtime-map.c | 25 struct attribute attr; 29 static inline struct map_attribute *to_map_attr(struct attribute *attr) in to_map_attr() 50 EFI_RUNTIME_U64_ATTR_SHOW(attribute); 57 static ssize_t map_attr_show(struct kobject *kobj, struct attribute *attr, in map_attr_show() 70 static struct map_attribute map_attribute_attr = __ATTR_RO_MODE(attribute, 0400); 75 static struct attribute *def_attrs[] = {
|
| /Linux-v4.19/Documentation/translations/zh_CN/filesystems/ |
| 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 结构体指针转换为适当的指针类型后 160 static ssize_t dev_attr_show(struct kobject *kobj, struct attribute *attr, 308 struct attribute attr; 330 struct attribute attr; [all …]
|
| /Linux-v4.19/drivers/edac/ |
| 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() 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-v4.19/kernel/ |
| D | params.c | 545 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_show() local 547 if (!attribute->param->ops->get) in param_attr_show() 551 count = attribute->param->ops->get(buf, attribute->param); in param_attr_show() 562 struct param_attribute *attribute = to_param_attr(mattr); in param_attr_store() local 564 if (!attribute->param->ops->set) in param_attr_store() 568 param_check_unsafe(attribute->param); in param_attr_store() 569 err = attribute->param->ops->set(buf, attribute->param); in param_attr_store() 612 struct attribute **new_attrs; in add_sysfs_param() 871 struct attribute *attr, in module_attr_show() 874 struct module_attribute *attribute; in module_attr_show() local [all …]
|
| /Linux-v4.19/net/batman-adv/ |
| D | sysfs.c | 151 struct attribute *attr, char *buff, \ 163 struct attribute *attr, char *buff) \ 183 struct attribute *attr, char *buff, \ 197 struct attribute *attr, char *buff) \ 215 struct attribute *attr, char *buff, \ 231 struct attribute *attr, char *buff) \ 253 struct attribute *attr, char *buff, \ 276 struct attribute *attr, char *buff) \ 346 struct attribute *attr, in __batadv_store_bool_attr() 406 const struct attribute *attr, in __batadv_store_uint_attr() [all …]
|
| /Linux-v4.19/drivers/pci/ |
| D | slot.c | 20 struct attribute *attr, char *buf) in pci_slot_attr_show() 23 struct pci_slot_attribute *attribute = to_pci_slot_attr(attr); in pci_slot_attr_show() local 24 return attribute->show ? attribute->show(slot, buf) : -EIO; in pci_slot_attr_show() 28 struct attribute *attr, const char *buf, size_t len) in pci_slot_attr_store() 31 struct pci_slot_attribute *attribute = to_pci_slot_attr(attr); in pci_slot_attr_store() local 32 return attribute->store ? attribute->store(slot, buf, len) : -EIO; in pci_slot_attr_store() 129 static struct attribute *pci_slot_default_attrs[] = {
|