Home
last modified time | relevance | path

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

12

/Linux-v5.15/include/trace/events/
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, attr_name);
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, long val),
43 TP_ARGS(index, attr_name, val)
48 TP_PROTO(int index, const char *attr_name, const char *s),
[all …]
/Linux-v5.15/drivers/hwmon/
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 …]
Dcoretemp.c84 char attr_name[TOTAL_ATTRS][CORETEMP_NAME_LENGTH]; member
393 snprintf(tdata->attr_name[i], CORETEMP_NAME_LENGTH, in create_core_attrs()
396 tdata->sd_attrs[i].dev_attr.attr.name = tdata->attr_name[i]; in create_core_attrs()
/Linux-v5.15/tools/usb/usbip/src/
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()
Dutils.c17 char attr_name[] = "match_busid"; in modify_match_busid() local
26 attr_name); in modify_match_busid()
/Linux-v5.15/drivers/s390/net/
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-v5.15/arch/alpha/kernel/
Dpci-sysfs.c179 char *suffix, *attr_name; in pci_create_attr() local
211 attr_name = (char *)(attr + res_count); in pci_create_attr()
213 retval = pci_create_one_attr(pdev, num, attr_name, suffix, attr, in pci_create_attr()
219 attr_name += nlen1; in pci_create_attr()
222 return pci_create_one_attr(pdev, num, attr_name, "_dense", attr, 0); in pci_create_attr()
/Linux-v5.15/drivers/char/mwave/
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-v5.15/drivers/power/supply/
Dpower_supply_sysfs.c25 char attr_name[MAX_PROP_NAME_LEN + 1]; member
35 .attr_name = #_name "\0", \
407 sprintf(power_supply_attrs[i].attr_name, "_err_%d", i); in power_supply_init_attrs()
409 str_to_lower(power_supply_attrs[i].attr_name); in power_supply_init_attrs()
414 attr->attr.name = power_supply_attrs[i].attr_name; in power_supply_init_attrs()
Dcharger-manager.c1079 = container_of(attr, struct charger_regulator, attr_name); in charger_name_show()
1189 charger->attrs[0] = &charger->attr_name.attr; in charger_manager_prepare_sysfs()
1198 sysfs_attr_init(&charger->attr_name.attr); in charger_manager_prepare_sysfs()
1199 charger->attr_name.attr.name = "name"; in charger_manager_prepare_sysfs()
1200 charger->attr_name.attr.mode = 0444; in charger_manager_prepare_sysfs()
1201 charger->attr_name.show = charger_name_show; in charger_manager_prepare_sysfs()
/Linux-v5.15/fs/ksmbd/
Dvfs.h146 struct dentry *dentry, char *attr_name,
149 struct dentry *dentry, const char *attr_name,
154 struct dentry *dentry, char *attr_name);
Dvfs.c250 struct dentry *dentry, char *attr_name, in ksmbd_vfs_getcasexattr() argument
263 if (strncasecmp(attr_name, name, attr_name_len)) in ksmbd_vfs_getcasexattr()
968 struct dentry *dentry, const char *attr_name, in ksmbd_vfs_setxattr() argument
975 attr_name, in ksmbd_vfs_setxattr()
1082 struct dentry *dentry, char *attr_name) in ksmbd_vfs_remove_xattr() argument
1084 return vfs_removexattr(user_ns, dentry, attr_name); in ksmbd_vfs_remove_xattr()
1678 struct dentry *dentry, char *attr_name, in ksmbd_vfs_casexattr_len() argument
1691 if (strncasecmp(attr_name, name, attr_name_len)) in ksmbd_vfs_casexattr_len()
/Linux-v5.15/drivers/leds/
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-v5.15/drivers/media/usb/pvrusb2/
Dpvrusb2-sysfs.c50 struct device_attribute attr_name; member
79 cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_name); in show_name()
312 sysfs_attr_init(&cip->attr_name.attr); in pvr2_sysfs_add_control()
313 cip->attr_name.attr.name = "name"; in pvr2_sysfs_add_control()
314 cip->attr_name.attr.mode = S_IRUGO; in pvr2_sysfs_add_control()
315 cip->attr_name.show = show_name; in pvr2_sysfs_add_control()
361 cip->attr_gen[acnt++] = &cip->attr_name.attr; in pvr2_sysfs_add_control()
/Linux-v5.15/tools/usb/usbip/libsrc/
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-v5.15/drivers/extcon/
Dextcon.c205 struct device_attribute attr_name; member
380 attr_name); in cable_name_show()
1144 cable->attrs[0] = &cable->attr_name.attr; in extcon_dev_register()
1150 sysfs_attr_init(&cable->attr_name.attr); in extcon_dev_register()
1151 cable->attr_name.attr.name = "name"; in extcon_dev_register()
1152 cable->attr_name.attr.mode = 0444; in extcon_dev_register()
1153 cable->attr_name.show = cable_name_show; in extcon_dev_register()
/Linux-v5.15/arch/powerpc/platforms/powernv/
Dopal-sensor-groups.c113 const char *attr_name; member
124 attr->attr.attr.name = ops_info[index].attr_name; in add_attr()
/Linux-v5.15/include/linux/power/
Dcharger-manager.h116 struct device_attribute attr_name; member
/Linux-v5.15/drivers/misc/cxl/
Dguest.c705 static bool guest_support_attributes(const char *attr_name, in guest_support_attributes() argument
710 if ((strcmp(attr_name, "base_image") == 0) || in guest_support_attributes()
711 (strcmp(attr_name, "load_image_on_perst") == 0) || in guest_support_attributes()
712 (strcmp(attr_name, "perst_reloads_same_image") == 0) || in guest_support_attributes()
713 (strcmp(attr_name, "image_loaded") == 0)) in guest_support_attributes()
717 if ((strcmp(attr_name, "pp_mmio_off") == 0)) in guest_support_attributes()
/Linux-v5.15/drivers/thermal/
Dthermal_core.h107 char attr_name[THERMAL_NAME_LENGTH]; member
/Linux-v5.15/tools/perf/util/
Ddwarf-aux.c306 static int die_get_attr_udata(Dwarf_Die *tp_die, unsigned int attr_name, in die_get_attr_udata() argument
311 if (dwarf_attr(tp_die, attr_name, &attr) == NULL || in die_get_attr_udata()
319 static int die_get_attr_sdata(Dwarf_Die *tp_die, unsigned int attr_name, in die_get_attr_sdata() argument
324 if (dwarf_attr(tp_die, attr_name, &attr) == NULL || in die_get_attr_sdata()
Dpython.c442 get_tracepoint_field(struct pyrf_event *pevent, PyObject *attr_name) in get_tracepoint_field() argument
444 const char *str = _PyUnicode_AsString(PyObject_Str(attr_name)); in get_tracepoint_field()
466 pyrf_sample_event__getattro(struct pyrf_event *pevent, PyObject *attr_name) in pyrf_sample_event__getattro() argument
471 obj = get_tracepoint_field(pevent, attr_name); in pyrf_sample_event__getattro()
473 return obj ?: PyObject_GenericGetAttr((PyObject *) pevent, attr_name); in pyrf_sample_event__getattro()
/Linux-v5.15/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.c436 attr_name); in node_show()
612 sysfs_remove_file(dev->kobj_node, &dev->attr_name); in kfd_remove_sysfs_node_entry()
670 dev->attr_name.name = "name"; in kfd_build_sysfs_node_entry()
671 dev->attr_name.mode = KFD_SYSFS_FILE_MODE; in kfd_build_sysfs_node_entry()
672 sysfs_attr_init(&dev->attr_name); in kfd_build_sysfs_node_entry()
679 ret = sysfs_create_file(dev->kobj_node, &dev->attr_name); in kfd_build_sysfs_node_entry()
Dkfd_topology.h185 struct attribute attr_name; member
/Linux-v5.15/drivers/hid/
Dhid-sensor-custom.c32 char attr_name[HID_CUSTOM_TOTAL_ATTRS][HID_CUSTOM_NAME_LENGTH]; member
589 snprintf((char *)&sensor_inst->fields[i].attr_name[j], in hid_sensor_custom_add_attributes()
595 (char *)&sensor_inst->fields[i].attr_name[j]; in hid_sensor_custom_add_attributes()

12