Home
last modified time | relevance | path

Searched refs:attr_name (Results 1 – 25 of 51) sorted by relevance

123

/linux/include/trace/events/
H A Dhwmon.h12 TP_PROTO(int index, const char *attr_name, long val),
14 TP_ARGS(index, attr_name, val),
18 __string(attr_name, attr_name)
24 __assign_str(attr_name);
28 TP_printk("index=%d, attr_name=%s, val=%ld",
29 __entry->index, __get_str(attr_name), __entry->val)
34 TP_PROTO(int index, const char *attr_name, long val),
36 TP_ARGS(index, attr_name, val)
41 TP_PROTO(int index, const char *attr_name, lon
[all...]
/linux/drivers/hwmon/
H A Dibmpowernv.c251 const char *attr_name = NULL; in convert_opal_attr_name() local
254 attr_name = "fault"; in convert_opal_attr_name()
256 attr_name = "input"; in convert_opal_attr_name()
259 attr_name = "max"; in convert_opal_attr_name()
261 attr_name = "min"; in convert_opal_attr_name()
264 return attr_name; in convert_opal_attr_name()
277 const char *attr_name; in parse_opal_node_name() local
284 attr_name = convert_opal_attr_name(type, attr_suffix); in parse_opal_node_name()
285 if (!attr_name) in parse_opal_node_name()
288 return attr_name; in parse_opal_node_name()
[all …]
H A Dcoretemp.c84 char attr_name[TOTAL_ATTRS][CORETEMP_NAME_LENGTH]; member
441 snprintf(tdata->attr_name[i], CORETEMP_NAME_LENGTH, in create_core_attrs()
444 tdata->sd_attrs[i].attr.name = tdata->attr_name[i]; in create_core_attrs()
/linux/drivers/thermal/intel/int340x_thermal/
H A Dprocessor_thermal_rfim.c23 const char *attr_name; member
90 static int match_mapping_table(const struct mapping_table *table, const char *attr_name, in match_mapping_table() argument
100 while (table[i].attr_name) { in match_mapping_table()
101 if (strncmp(table[i].attr_name, attr_name, strlen(attr_name))) in match_mapping_table()
131 static int get_mapped_string(const struct mapping_table *table, const char *attr_name, in get_mapped_string() argument
134 return match_mapping_table(table, attr_name, true, value, NULL, result, NULL); in get_mapped_string()
137 static int get_mapped_value(const struct mapping_table *table, const char *attr_name, in get_mapped_value() argument
140 return match_mapping_table(table, attr_name, false, 0, value, NULL, result); in get_mapped_value()
/linux/drivers/s390/net/
H A Dqeth_l2_sys.c253 static u32 qeth_l2_vnicc_sysfs_attr_to_char(const char *attr_name) in qeth_l2_vnicc_sysfs_attr_to_char() argument
255 if (sysfs_streq(attr_name, "flooding")) in qeth_l2_vnicc_sysfs_attr_to_char()
257 else if (sysfs_streq(attr_name, "mcast_flooding")) in qeth_l2_vnicc_sysfs_attr_to_char()
259 else if (sysfs_streq(attr_name, "learning")) in qeth_l2_vnicc_sysfs_attr_to_char()
261 else if (sysfs_streq(attr_name, "takeover_setvmac")) in qeth_l2_vnicc_sysfs_attr_to_char()
263 else if (sysfs_streq(attr_name, "takeover_learning")) in qeth_l2_vnicc_sysfs_attr_to_char()
265 else if (sysfs_streq(attr_name, "bridge_invisible")) in qeth_l2_vnicc_sysfs_attr_to_char()
267 else if (sysfs_streq(attr_name, "rx_bcast")) in qeth_l2_vnicc_sysfs_attr_to_char()
/linux/tools/usb/usbip/src/
H A Dusbip_bind.c40 char attr_name[] = "bind"; in bind_usbip() local
46 SYSFS_DRIVERS_NAME, USBIP_HOST_DRV_NAME, attr_name); in bind_usbip()
63 char attr_name[] = "unbind"; in unbind_other() local
111 SYSFS_DRIVERS_NAME, driver, attr_name); in unbind_other()
H A Dutils.c17 char attr_name[] = "match_busid"; in modify_match_busid() local
26 attr_name); in modify_match_busid()
/linux/drivers/platform/chrome/
H A Dchromeos_acpi.c150 static int parse_attr_name(const char *name, char *attr_name, int *attr_num) in parse_attr_name() argument
154 ret = strscpy(attr_name, name, ACPI_ATTR_NAME_LEN + 1); in parse_attr_name()
163 char attr_name[ACPI_ATTR_NAME_LEN + 1]; in chromeos_first_level_attr_show() local
166 ret = parse_attr_name(attr->attr.name, attr_name, &attr_num); in chromeos_first_level_attr_show()
169 return chromeos_acpi_evaluate_method(dev, attr_num, 0, attr_name, buf); in chromeos_first_level_attr_show()
/linux/drivers/char/mwave/
H A Dmwavedd.c503 #define mwave_show_function(attr_name, format_string, field) \
504 static ssize_t mwave_show_##attr_name(struct device *dev, struct device_attribute *attr, char *buf)…
512 #define mwave_dev_rd_attr(attr_name, format_string, field) \
513 mwave_show_function(attr_name, format_string, field) \
514 static DEVICE_ATTR(attr_name, S_IRUGO, mwave_show_##attr_name, NULL)
/linux/drivers/power/supply/
H A Dpower_supply_sysfs.c26 char attr_name[MAX_PROP_NAME_LEN + 1]; member
36 .attr_name = #_name "\0", \
414 sprintf(power_supply_attrs[i].attr_name, "_err_%d", i); in power_supply_init_attrs()
416 string_lower(power_supply_attrs[i].attr_name, in power_supply_init_attrs()
417 power_supply_attrs[i].attr_name); in power_supply_init_attrs()
422 attr->attr.name = power_supply_attrs[i].attr_name; in power_supply_init_attrs()
H A Dcharger-manager.c1076 = container_of(attr, struct charger_regulator, attr_name); in charger_name_show()
1186 charger->attrs[0] = &charger->attr_name.attr; in charger_manager_prepare_sysfs()
1195 sysfs_attr_init(&charger->attr_name.attr); in charger_manager_prepare_sysfs()
1196 charger->attr_name.attr.name = "name"; in charger_manager_prepare_sysfs()
1197 charger->attr_name.attr.mode = 0444; in charger_manager_prepare_sysfs()
1198 charger->attr_name.show = charger_name_show; in charger_manager_prepare_sysfs()
/linux/drivers/leds/
H A Dleds-bd2802.c472 #define BD2802_CONTROL_ATTR(attr_name, name_str) \ argument
473 static ssize_t bd2802_show_##attr_name(struct device *dev, \
479 ret = sprintf(buf, "0x%02x\n", led->attr_name); \
483 static ssize_t bd2802_store_##attr_name(struct device *dev, \
495 led->attr_name = val; \
499 static struct device_attribute bd2802_##attr_name##_attr = { \
504 .show = bd2802_show_##attr_name, \
505 .store = bd2802_store_##attr_name, \
/linux/drivers/platform/x86/hp/hp-bioscfg/
H A Dbioscfg.c510 void hp_friendly_user_name_update(char *path, const char *attr_name, in hp_friendly_user_name_update() argument
514 snprintf(attr_display, attr_size, "%s - %s", SCHEDULE_POWER_ON, attr_name); in hp_friendly_user_name_update()
516 strscpy(attr_display, attr_name, attr_size); in hp_friendly_user_name_update()
592 char *attr_name; in hp_add_other_attributes() local
604 attr_name = SPM_STR; in hp_add_other_attributes()
609 attr_name = SURE_START_STR; in hp_add_other_attributes()
620 NULL, "%s", attr_name); in hp_add_other_attributes()
/linux/lib/kunit/
H A Dattributes.c290 const char *attr_name, *attr_str; in kunit_print_attr() local
300 attr_name = kunit_attr_list[i].name; in kunit_print_attr()
305 attr_name, attr_str); in kunit_print_attr()
308 KUNIT_INDENT_LEN * test_level, "", attr_name, attr_str); in kunit_print_attr()
/linux/arch/powerpc/platforms/pseries/
H A Dpapr_platform_attributes.c198 const char *attr_name; member
211 attr->kobj_attr.attr.name = ops_info[index].attr_name; in add_attr()
221 if (!strcmp(ops_info[i].attr_name, "value_desc") && in add_attr_group()
/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-sysfs.c50 struct device_attribute attr_name; member
75 cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_name); in show_name()
308 sysfs_attr_init(&cip->attr_name.attr); in pvr2_sysfs_add_control()
309 cip->attr_name.attr.name = "name"; in pvr2_sysfs_add_control()
310 cip->attr_name.attr.mode = S_IRUGO; in pvr2_sysfs_add_control()
311 cip->attr_name.show = show_name; in pvr2_sysfs_add_control()
357 cip->attr_gen[acnt++] = &cip->attr_name.attr; in pvr2_sysfs_add_control()
/linux/drivers/extcon/
H A Dextcon.c224 struct device_attribute attr_name; member
400 attr_name); in cable_name_show()
1122 cable->attrs[0] = &cable->attr_name.attr; in extcon_alloc_cables()
1128 sysfs_attr_init(&cable->attr_name.attr); in extcon_alloc_cables()
1129 cable->attr_name.attr.name = "name"; in extcon_alloc_cables()
1130 cable->attr_name.attr.mode = 0444; in extcon_alloc_cables()
1131 cable->attr_name.show = cable_name_show; in extcon_alloc_cables()
/linux/tools/usb/usbip/libsrc/
H A Dusbip_host_common.c214 char attr_name[] = "usbip_sockfd"; in usbip_export_device() local
240 edev->udev.path, attr_name); in usbip_export_device()
/linux/arch/powerpc/platforms/powernv/
H A Dopal-sensor-groups.c113 const char *attr_name; member
124 attr->attr.attr.name = ops_info[index].attr_name; in add_attr()
/linux/fs/xfs/
H A Dxfs_attr_item.c1013 const void *attr_name; in xlog_recover_attri_commit_pass2() local
1095 attr_name = xfs_attri_validate_name_iovec(mp, attri_formatp, in xlog_recover_attri_commit_pass2()
1097 if (!attr_name) in xlog_recover_attri_commit_pass2()
1161 if (attr_name == NULL || name_len == 0) { in xlog_recover_attri_commit_pass2()
1173 if (attr_name == NULL || name_len == 0) { in xlog_recover_attri_commit_pass2()
1191 nv = xfs_attri_log_nameval_alloc(attr_name, name_len, in xlog_recover_attri_commit_pass2()
/linux/include/linux/power/
H A Dcharger-manager.h116 struct device_attribute attr_name; member
/linux/drivers/misc/cxl/
H A Dguest.c711 static bool guest_support_attributes(const char *attr_name, in guest_support_attributes() argument
716 if ((strcmp(attr_name, "base_image") == 0) || in guest_support_attributes()
717 (strcmp(attr_name, "load_image_on_perst") == 0) || in guest_support_attributes()
718 (strcmp(attr_name, "perst_reloads_same_image") == 0) || in guest_support_attributes()
719 (strcmp(attr_name, "image_loaded") == 0)) in guest_support_attributes()
723 if ((strcmp(attr_name, "pp_mmio_off") == 0)) in guest_support_attributes()
/linux/fs/smb/server/
H A Dvfs.c258 struct dentry *dentry, char *attr_name, in ksmbd_vfs_getcasexattr() argument
271 if (strncasecmp(attr_name, name, attr_name_len)) in ksmbd_vfs_getcasexattr()
936 const struct path *path, const char *attr_name, in ksmbd_vfs_setxattr() argument
950 attr_name, in ksmbd_vfs_setxattr()
1061 const struct path *path, char *attr_name, in ksmbd_vfs_remove_xattr() argument
1072 err = vfs_removexattr(idmap, path->dentry, attr_name); in ksmbd_vfs_remove_xattr()
1735 struct dentry *dentry, char *attr_name, in ksmbd_vfs_casexattr_len() argument
1748 if (strncasecmp(attr_name, name, attr_name_len)) in ksmbd_vfs_casexattr_len()
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_topology.h160 struct attribute attr_name; member
/linux/tools/perf/util/
H A Dpython.c366 get_tracepoint_field(struct pyrf_event *pevent, PyObject *attr_name) in get_tracepoint_field() argument
368 const char *str = _PyUnicode_AsString(PyObject_Str(attr_name)); in get_tracepoint_field()
391 pyrf_sample_event__getattro(struct pyrf_event *pevent, PyObject *attr_name) in pyrf_sample_event__getattro() argument
397 obj = get_tracepoint_field(pevent, attr_name); in pyrf_sample_event__getattro()
400 return obj ?: PyObject_GenericGetAttr((PyObject *) pevent, attr_name); in pyrf_sample_event__getattro()

123