Home
last modified time | relevance | path

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

12345678910>>...46

/drivers/hid/
A Dhid-sensor-custom.c303 attribute = &sensor_inst->fields[field_index].attribute; in show_value()
304 report_id = attribute->report_id; in show_value()
319 if (i + attribute->size > ret) { in show_value()
325 switch (attribute->size) { in show_value()
328 i += attribute->size; in show_value()
332 i += attribute->size; in show_value()
336 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 …]
/drivers/staging/greybus/
A Daudio_manager_module.c22 struct attribute attr;
32 struct attribute *attr, char *buf) in gb_audio_module_attr_show()
34 struct gb_audio_manager_module_attribute *attribute; in gb_audio_module_attr_show() local
37 attribute = to_gb_audio_module_attr(attr); in gb_audio_module_attr_show()
40 if (!attribute->show) in gb_audio_module_attr_show()
43 return attribute->show(module, attribute, buf); in gb_audio_module_attr_show()
47 struct attribute *attr, in gb_audio_module_attr_store()
50 struct gb_audio_manager_module_attribute *attribute; in gb_audio_module_attr_store() local
53 attribute = to_gb_audio_module_attr(attr); in gb_audio_module_attr_store()
56 if (!attribute->store) in gb_audio_module_attr_store()
[all …]
/drivers/perf/arm_cspmu/
A Dnvidia_cspmu.c45 struct attribute **event_attr;
46 struct attribute **format_attr;
49 static struct attribute *scf_pmu_event_attrs[] = {
97 static struct attribute *mcf_pmu_event_attrs[] = {
116 static struct attribute *generic_pmu_event_attrs[] = {
121 static struct attribute *scf_pmu_format_attrs[] = {
126 static struct attribute *pcie_pmu_format_attrs[] = {
150 static struct attribute **
158 static struct attribute **
217 struct attribute **event_attr;
[all …]
A Dampere_cspmu.c22 struct attribute **event_attr;
23 struct attribute **format_attr;
40 static struct attribute *ampereone_mcu_pmu_event_attrs[] = {
103 static struct attribute *ampereone_mcu_format_attrs[] = {
111 static struct attribute **
119 static struct attribute **
/drivers/dma-buf/
A Ddma-buf-sysfs-stats.c54 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[] = {
/drivers/media/pci/mgb4/
A Dmgb4_sysfs.h12 extern struct attribute *mgb4_pci_attrs[];
13 extern struct attribute *mgb4_fpdl3_in_attrs[];
14 extern struct attribute *mgb4_gmsl_in_attrs[];
15 extern struct attribute *mgb4_fpdl3_out_attrs[];
16 extern struct attribute *mgb4_gmsl_out_attrs[];
/drivers/gpu/drm/amd/amdkfd/
A Dkfd_topology.h95 struct attribute attr;
113 struct attribute attr;
134 struct attribute attr;
161 struct attribute attr_gpuid;
162 struct attribute attr_name;
163 struct attribute attr_props;
180 struct attribute attr_genid;
181 struct attribute attr_props;
/drivers/edac/
A 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()
340 struct attribute attr;
347 struct attribute *attr, char *buffer) in edac_dev_instance_show()
359 struct attribute *attr, in edac_dev_instance_store()
416 struct attribute *attr, char *data) in block_ue_count_show()
424 struct attribute *attr, char *data) in block_ce_count_show()
579 (struct attribute *) sysfs_attrib); in edac_device_delete_block()
739 (struct attribute*) sysfs_attrib); in edac_device_add_main_sysfs_attributes()
[all …]
/drivers/pci/
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()
93 static struct attribute *pci_slot_default_attrs[] = {
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()
/drivers/gpu/drm/xe/
A Dxe_guc_hwconfig.c133 u32 attribute = hwconfig[i++]; in xe_guc_hwconfig_dump() local
138 attribute, len_dw, num_dw - i); in xe_guc_hwconfig_dump()
150 drm_printf(p, "[%2u] = %u\n", attribute, hwconfig[i]); in xe_guc_hwconfig_dump()
152 drm_printf(p, "[%2u] = { %*ph }\n", attribute, in xe_guc_hwconfig_dump()
167 int xe_guc_hwconfig_lookup_u32(struct xe_guc *guc, u32 attribute, u32 *val) in xe_guc_hwconfig_lookup_u32() argument
189 if (key != attribute) { in xe_guc_hwconfig_lookup_u32()
/drivers/gpu/drm/i915/gt/
A Dintel_gt_sysfs_pm.c100 struct attribute *attr, char *buff) \
120 struct attribute *attr, \
228 static struct attribute *rc6_attrs[] = {
234 static struct attribute *rc6p_attrs[] = {
240 static struct attribute *media_rc6_attrs[] = {
245 static struct attribute *rc6_dev_attrs[] = {
251 static struct attribute *rc6p_dev_attrs[] = {
257 static struct attribute *media_rc6_dev_attrs[] = {
507 struct attribute attr;
852 const struct attribute * const *attrs; in intel_sysfs_rps_init()
[all …]
/drivers/video/fbdev/core/
A 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()
153 u32 attribute = get_attribute(info, scr_readw(s)); in bit_putcs() local
163 if (attribute) { in bit_putcs()
187 bit_putcs_unaligned(vc, info, s, attribute, cnt, in bit_putcs()
243 int attribute, use_sw = vc->vc_cursor_type & CUR_SW; in bit_cursor() local
253 attribute = get_attribute(info, c); in bit_cursor()
262 if (attribute) { in bit_cursor()
[all …]
A 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()
162 u32 attribute = get_attribute(info, scr_readw(s)); in ud_putcs() local
177 if (attribute) { in ud_putcs()
200 ud_putcs_aligned(vc, info, s, attribute, cnt, pitch, in ud_putcs()
258 int attribute, use_sw = vc->vc_cursor_type & CUR_SW; in ud_cursor() local
270 attribute = get_attribute(info, c); in ud_cursor()
279 if (attribute) { in ud_cursor()
[all …]
A Dfbcon.h207 int attribute = 0; in get_attribute() local
211 attribute |= FBCON_ATTRIBUTE_UNDERLINE; in get_attribute()
213 attribute |= FBCON_ATTRIBUTE_REVERSE; in get_attribute()
215 attribute |= FBCON_ATTRIBUTE_BOLD; in get_attribute()
218 return attribute; in get_attribute()
A 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()
140 u32 attribute = get_attribute(info, scr_readw(s)); in ccw_putcs() local
154 if (attribute) { in ccw_putcs()
175 ccw_putcs_aligned(vc, info, s, attribute, cnt, pitch, in ccw_putcs()
228 int attribute, use_sw = vc->vc_cursor_type & CUR_SW; in ccw_cursor() local
239 attribute = get_attribute(info, c); in ccw_cursor()
248 if (attribute) { in ccw_cursor()
[all …]
A 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()
125 u32 attribute = get_attribute(info, scr_readw(s)); in cw_putcs() local
139 if (attribute) { in cw_putcs()
158 cw_putcs_aligned(vc, info, s, attribute, cnt, pitch, in cw_putcs()
211 int attribute, use_sw = vc->vc_cursor_type & CUR_SW; in cw_cursor() local
222 attribute = get_attribute(info, c); in cw_cursor()
231 if (attribute) { in cw_cursor()
[all …]
/drivers/net/ipa/
A Dipa_sysfs.c59 static struct attribute *ipa_attrs[] = {
93 static struct attribute *ipa_feature_attrs[] = {
105 struct attribute *attr, int n) in ipa_endpoint_id_is_visible()
143 static struct attribute *ipa_endpoint_id_attrs[] = {
165 static struct attribute *ipa_modem_attrs[] = {
/drivers/hwmon/
A Dvexpress-hwmon.c68 struct attribute *attr, int index) in vexpress_hwmon_attr_is_visible()
89 static struct attribute *vexpress_hwmon_attrs_volt[] = {
109 static struct attribute *vexpress_hwmon_attrs_amp[] = {
128 static struct attribute *vexpress_hwmon_attrs_temp[] = {
147 static struct attribute *vexpress_hwmon_attrs_power[] = {
166 static struct attribute *vexpress_hwmon_attrs_energy[] = {
/drivers/cpuidle/
A Dsysfs.c107 static struct attribute *cpuidle_attrs[] = {
146 struct attribute attr;
167 static ssize_t cpuidle_show(struct kobject *kobj, struct attribute *attr, in cpuidle_show()
182 static ssize_t cpuidle_store(struct kobject *kobj, struct attribute *attr, in cpuidle_store()
216 struct attribute attr;
330 static struct attribute *cpuidle_state_default_attrs[] = {
374 static struct attribute *cpuidle_state_s2idle_attrs[] = {
413 static ssize_t cpuidle_state_show(struct kobject *kobj, struct attribute *attr, in cpuidle_state_show()
427 static ssize_t cpuidle_state_store(struct kobject *kobj, struct attribute *attr, in cpuidle_state_store()
543 struct attribute attr;
[all …]
/drivers/firmware/efi/
A Desrt.c76 struct attribute attr;
85 static struct esre_attribute *to_attr(struct attribute *attr) in to_attr()
91 struct attribute *_attr, char *buf) in esre_attr_show()
133 static struct attribute *esre1_attrs[] = {
203 static struct attribute *esrt_attrs[] = {
220 struct attribute *attr, int n) in esrt_attr_is_visible()
253 (!(md.attribute & EFI_MEMORY_RUNTIME) && in efi_esrt_init()
/drivers/usb/typec/
A Dpd.c129 static struct attribute *source_fixed_supply_attrs[] = {
142 static umode_t fixed_attr_is_visible(struct kobject *kobj, struct attribute *attr, int n) in fixed_attr_is_visible()
166 static struct attribute *sink_fixed_supply_attrs[] = {
208 static struct attribute *source_variable_supply_attrs[] = {
222 static struct attribute *sink_variable_supply_attrs[] = {
253 static struct attribute *source_battery_attrs[] = {
267 static struct attribute *sink_battery_attrs[] = {
333 static struct attribute *source_pps_attrs[] = {
348 static struct attribute *sink_pps_attrs[] = {
548 static struct attribute *pd_attrs[] = {
[all …]
/drivers/soundwire/
A Dsysfs_slave.c104 static struct attribute *slave_attrs[] = {
113 static struct attribute *slave_dev_attrs[] = {
173 static struct attribute *dp0_attrs[] = {
183 static umode_t dp0_attr_visible(struct kobject *kobj, struct attribute *attr, in dp0_attr_visible()
249 static struct attribute *slave_status_attrs[] = {
/drivers/scsi/
A 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/firmware/efi/libstub/
A Drandomalloc.c28 if (md->attribute & EFI_MEMORY_HOT_PLUGGABLE) in get_entry_num_slots()
32 (md->attribute & EFI_MEMORY_SP)) in get_entry_num_slots()
93 if (md->attribute & EFI_MEMORY_MORE_RELIABLE) in efi_random_alloc()
122 !(md->attribute & EFI_MEMORY_MORE_RELIABLE)) in efi_random_alloc()

Completed in 60 milliseconds

12345678910>>...46