Home
last modified time | relevance | path

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

12345678910>>...43

/drivers/hid/
Dhid-sensor-custom.c30 struct hid_sensor_hub_attribute_info attribute; member
33 struct attribute *attrs[HID_CUSTOM_TOTAL_ATTRS];
65 static struct attribute hid_custom_attrs[HID_CUSTOM_TOTAL_ATTRS] = {
188 sensor_inst->power_state->attribute.report_id, in set_power_report_state()
189 sensor_inst->power_state->attribute.index, in set_power_report_state()
193 sensor_inst->report_state->attribute.report_id, in set_power_report_state()
194 sensor_inst->report_state->attribute.index, in set_power_report_state()
199 sensor_inst->power_state->attribute.logical_minimum; in set_power_report_state()
201 sensor_inst->power_state->attribute.report_id, in set_power_report_state()
202 sensor_inst->power_state->attribute.index, in set_power_report_state()
[all …]
/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 …]
/drivers/dma-buf/
Ddma-buf-sysfs-stats.c55 struct attribute attr;
62 struct attribute *attr, in dma_buf_stats_attribute_show()
65 struct dma_buf_stats_attribute *attribute; in dma_buf_stats_attribute_show() local
69 attribute = to_dma_buf_stats_attr(attr); in dma_buf_stats_attribute_show()
73 if (!dmabuf || !attribute->show) in dma_buf_stats_attribute_show()
76 return attribute->show(dmabuf, attribute, buf); in dma_buf_stats_attribute_show()
101 static struct attribute *dma_buf_stats_default_attrs[] = {
/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.h116 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;
/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,
340 struct attribute attr;
347 struct attribute *attr, char *buffer) in edac_dev_instance_show()
359 struct attribute *attr, in edac_dev_instance_store()
402 .default_attrs = (struct attribute **)device_instance_attr,
415 struct attribute *attr, char *data) in block_ue_count_show()
423 struct attribute *attr, char *data) in block_ce_count_show()
[all …]
Dedac_device.h89 struct attribute attr;
107 struct attribute attr;
108 ssize_t (*show)(struct kobject *, struct attribute *, char *);
109 ssize_t (*store)(struct kobject *, struct attribute *,
Dedac_pci_sysfs.c91 struct attribute attr;
98 struct attribute *attr, char *buffer) in edac_pci_instance_show()
110 struct attribute *attr, in edac_pci_instance_store()
148 .default_attrs = (struct attribute **)pci_instance_attr,
231 struct attribute attr;
238 static ssize_t edac_pci_dev_show(struct kobject *kobj, struct attribute *attr, in edac_pci_dev_show()
250 struct attribute *attr, const char *buffer, in edac_pci_dev_store()
330 .default_attrs = (struct attribute **)edac_pci_attr,
/drivers/pci/
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()
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()
93 static struct attribute *pci_slot_default_attrs[] = {
/drivers/firmware/efi/
Dfake_mem.c83 u64 start = 0, mem_size = 0, attribute = 0; in setup_fake_mem() local
97 attribute = simple_strtoull(p+1, &p, 0); in setup_fake_mem()
106 efi_fake_mems[nr_fake_mem].attribute = attribute; in setup_fake_mem()
118 efi_fake_mems[i].attribute, efi_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[] = {
Desrt.c76 struct attribute attr;
87 static struct esre_attribute *to_attr(struct attribute *attr) in to_attr()
93 struct attribute *_attr, char *buf) in esre_attr_show()
139 static struct attribute *esre1_attrs[] = {
207 static struct attribute *esrt_attrs[] = {
224 struct attribute *attr, int n) in esrt_attr_is_visible()
257 (!(md.attribute & EFI_MEMORY_RUNTIME) && in efi_esrt_init()
/drivers/platform/x86/intel/
Duncore-frequency.c65 struct attribute attr;
67 struct attribute *attr, char *buf);
69 struct attribute *attr, const char *c, ssize_t count);
82 struct attribute *attr, \
159 struct attribute *attr, in store_min_max_freq_khz()
175 struct attribute *attr, in show_min_max_freq_khz()
196 struct attribute *attr, \
206 struct attribute *attr, char *buf) \
221 static struct attribute *uncore_attrs[] = {
/drivers/cpuidle/
Dsysfs.c107 static struct attribute *cpuidle_attrs[] = {
139 struct attribute attr;
160 static ssize_t cpuidle_show(struct kobject *kobj, struct attribute *attr, in cpuidle_show()
175 static ssize_t cpuidle_store(struct kobject *kobj, struct attribute *attr, in cpuidle_store()
209 struct attribute attr;
323 static struct attribute *cpuidle_state_default_attrs[] = {
366 static struct attribute *cpuidle_state_s2idle_attrs[] = {
405 static ssize_t cpuidle_state_show(struct kobject *kobj, struct attribute *attr, in cpuidle_state_show()
419 static ssize_t cpuidle_state_store(struct kobject *kobj, struct attribute *attr, in cpuidle_state_store()
535 struct attribute attr;
[all …]
/drivers/hwmon/
Dvexpress-hwmon.c69 struct attribute *attr, int index) in vexpress_hwmon_attr_is_visible()
90 static struct attribute *vexpress_hwmon_attrs_volt[] = {
110 static struct attribute *vexpress_hwmon_attrs_amp[] = {
129 static struct attribute *vexpress_hwmon_attrs_temp[] = {
148 static struct attribute *vexpress_hwmon_attrs_power[] = {
167 static struct attribute *vexpress_hwmon_attrs_energy[] = {
/drivers/video/fbdev/core/
Dbitblit.c25 static void update_attr(u8 *dst, u8 *src, int attribute, in update_attr() argument
36 if (attribute & FBCON_ATTRIBUTE_UNDERLINE && i >= offset) in update_attr()
38 if (attribute & FBCON_ATTRIBUTE_BOLD) in update_attr()
40 if (attribute & FBCON_ATTRIBUTE_REVERSE) in update_attr()
154 u32 attribute = get_attribute(info, scr_readw(s)); in bit_putcs() local
164 if (attribute) { in bit_putcs()
185 bit_putcs_aligned(vc, info, s, attribute, cnt, pitch, in bit_putcs()
188 bit_putcs_unaligned(vc, info, s, attribute, cnt, in bit_putcs()
244 int attribute, use_sw = vc->vc_cursor_type & CUR_SW; in bit_cursor() local
254 attribute = get_attribute(info, c); in bit_cursor()
[all …]
Dfbcon_ud.c25 static void ud_update_attr(u8 *dst, u8 *src, int attribute, in ud_update_attr() argument
37 if (attribute & FBCON_ATTRIBUTE_UNDERLINE && i < offset) in ud_update_attr()
39 if (attribute & FBCON_ATTRIBUTE_BOLD) in ud_update_attr()
41 if (attribute & FBCON_ATTRIBUTE_REVERSE) in ud_update_attr()
163 u32 attribute = get_attribute(info, scr_readw(s)); in ud_putcs() local
178 if (attribute) { in ud_putcs()
201 ud_putcs_aligned(vc, info, s, attribute, cnt, pitch, in ud_putcs()
204 ud_putcs_unaligned(vc, info, s, attribute, cnt, pitch, in ud_putcs()
259 int attribute, use_sw = vc->vc_cursor_type & CUR_SW; in ud_cursor() local
271 attribute = get_attribute(info, c); in ud_cursor()
[all …]
Dfbcon_cw.c25 static void cw_update_attr(u8 *dst, u8 *src, int attribute, in cw_update_attr() argument
35 if (attribute & FBCON_ATTRIBUTE_UNDERLINE && !j) in cw_update_attr()
37 if (attribute & FBCON_ATTRIBUTE_BOLD && i) in cw_update_attr()
39 if (attribute & FBCON_ATTRIBUTE_REVERSE) in cw_update_attr()
126 u32 attribute = get_attribute(info, scr_readw(s)); in cw_putcs() local
140 if (attribute) { in cw_putcs()
159 cw_putcs_aligned(vc, info, s, attribute, cnt, pitch, in cw_putcs()
212 int attribute, use_sw = vc->vc_cursor_type & CUR_SW; in cw_cursor() local
223 attribute = get_attribute(info, c); in cw_cursor()
232 if (attribute) { in cw_cursor()
[all …]
Dfbcon.h245 int attribute = 0; in get_attribute() local
249 attribute |= FBCON_ATTRIBUTE_UNDERLINE; in get_attribute()
251 attribute |= FBCON_ATTRIBUTE_REVERSE; in get_attribute()
253 attribute |= FBCON_ATTRIBUTE_BOLD; in get_attribute()
256 return attribute; in get_attribute()
Dfbcon_ccw.c25 static void ccw_update_attr(u8 *dst, u8 *src, int attribute, in ccw_update_attr() argument
43 if (attribute & FBCON_ATTRIBUTE_UNDERLINE) { in ccw_update_attr()
51 if (attribute & FBCON_ATTRIBUTE_BOLD && i) in ccw_update_attr()
54 if (attribute & FBCON_ATTRIBUTE_REVERSE) in ccw_update_attr()
141 u32 attribute = get_attribute(info, scr_readw(s)); in ccw_putcs() local
155 if (attribute) { in ccw_putcs()
176 ccw_putcs_aligned(vc, info, s, attribute, cnt, pitch, in ccw_putcs()
229 int attribute, use_sw = vc->vc_cursor_type & CUR_SW; in ccw_cursor() local
240 attribute = get_attribute(info, c); in ccw_cursor()
249 if (attribute) { in ccw_cursor()
[all …]
/drivers/scsi/
Discsi_boot_sysfs.c24 struct attribute attr;
33 struct attribute *attr, char *buf) in iscsi_boot_show_attribute()
91 static struct attribute *target_attrs[] = {
108 struct attribute *attr, int i) in iscsi_boot_tgt_attr_is_visible()
173 static struct attribute *ethernet_attrs[] = {
191 struct attribute *attr, int i) in iscsi_boot_eth_attr_is_visible()
254 static struct attribute *initiator_attrs[] = {
266 struct attribute *attr, int i) in iscsi_boot_ini_attr_is_visible()
307 static struct attribute *acpitbl_attrs[] = {
315 struct attribute *attr, int i) in iscsi_boot_acpitbl_attr_is_visible()
/drivers/md/
Ddm-sysfs.c13 struct attribute attr;
22 static ssize_t dm_attr_show(struct kobject *kobj, struct attribute *attr, in dm_attr_show()
47 static ssize_t dm_attr_store(struct kobject *kobj, struct attribute *attr, in dm_attr_store()
107 static struct attribute *dm_attrs[] = {
/drivers/firmware/
Dmemmap.c42 struct attribute *attr, char *buf);
55 struct attribute attr;
66 static struct attribute *def_attrs[] = {
386 static inline struct memmap_attribute *to_memmap_attr(struct attribute *attr) in to_memmap_attr()
392 struct attribute *attr, char *buf) in memmap_attr_show()
/drivers/cpufreq/
Dcpufreq_governor_attr_set.c11 static inline struct governor_attr *to_gov_attr(struct attribute *attr) in to_gov_attr()
16 static ssize_t governor_show(struct kobject *kobj, struct attribute *attr, in governor_show()
24 static ssize_t governor_store(struct kobject *kobj, struct attribute *attr, in governor_store()
/drivers/soundwire/
Dsysfs_slave.c104 static struct attribute *slave_attrs[] = {
110 static struct attribute *slave_dev_attrs[] = {
174 static struct attribute *dp0_attrs[] = {
253 static struct attribute *slave_status_attrs[] = {

12345678910>>...43