/drivers/hwmon/ |
D | ibmpowernv.c | 251 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 …]
|
D | coretemp.c | 81 char attr_name[TOTAL_ATTRS][CORETEMP_NAME_LENGTH]; member 402 snprintf(tdata->attr_name[i], CORETEMP_NAME_LENGTH, in create_core_attrs() 405 tdata->sd_attrs[i].dev_attr.attr.name = tdata->attr_name[i]; in create_core_attrs()
|
/drivers/s390/net/ |
D | qeth_l2_sys.c | 253 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()
|
/drivers/platform/chrome/ |
D | chromeos_acpi.c | 150 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()
|
/drivers/char/mwave/ |
D | mwavedd.c | 503 #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)
|
/drivers/leds/ |
D | leds-bd2802.c | 472 #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, \
|
/drivers/power/supply/ |
D | power_supply_sysfs.c | 25 char attr_name[MAX_PROP_NAME_LEN + 1]; member 35 .attr_name = #_name "\0", \ 418 sprintf(power_supply_attrs[i].attr_name, "_err_%d", i); in power_supply_init_attrs() 420 str_to_lower(power_supply_attrs[i].attr_name); in power_supply_init_attrs() 425 attr->attr.name = power_supply_attrs[i].attr_name; in power_supply_init_attrs()
|
D | charger-manager.c | 1076 = 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()
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-sysfs.c | 50 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()
|
/drivers/extcon/ |
D | extcon.c | 223 struct device_attribute attr_name; member 398 attr_name); in cable_name_show() 1156 cable->attrs[0] = &cable->attr_name.attr; in extcon_dev_register() 1162 sysfs_attr_init(&cable->attr_name.attr); in extcon_dev_register() 1163 cable->attr_name.attr.name = "name"; in extcon_dev_register() 1164 cable->attr_name.attr.mode = 0444; in extcon_dev_register() 1165 cable->attr_name.show = cable_name_show; in extcon_dev_register()
|
/drivers/misc/cxl/ |
D | guest.c | 711 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()
|
D | cxl.h | 1085 bool (*support_attributes)(const char *attr_name, enum cxl_attrs type);
|
D | native.c | 1468 static bool native_support_attributes(const char *attr_name, in native_support_attributes() argument
|
/drivers/thermal/ |
D | thermal_core.h | 93 char attr_name[THERMAL_NAME_LENGTH]; member
|
D | thermal_core.c | 656 snprintf(dev->attr_name, sizeof(dev->attr_name), "cdev%d_trip_point", in thermal_zone_bind_cooling_device() 659 dev->attr.attr.name = dev->attr_name; in thermal_zone_bind_cooling_device()
|
/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_topology.h | 147 struct attribute attr_name; member
|
D | kfd_topology.c | 457 attr_name); in node_show() 648 sysfs_remove_file(dev->kobj_node, &dev->attr_name); in kfd_remove_sysfs_node_entry() 711 dev->attr_name.name = "name"; in kfd_build_sysfs_node_entry() 712 dev->attr_name.mode = KFD_SYSFS_FILE_MODE; in kfd_build_sysfs_node_entry() 713 sysfs_attr_init(&dev->attr_name); in kfd_build_sysfs_node_entry() 720 ret = sysfs_create_file(dev->kobj_node, &dev->attr_name); in kfd_build_sysfs_node_entry()
|
/drivers/hid/ |
D | hid-sensor-custom.c | 32 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()
|
/drivers/cpuidle/ |
D | sysfs.c | 324 &attr_name.attr,
|
/drivers/gpu/drm/amd/pm/ |
D | amdgpu_pm.c | 1957 const char *attr_name = dev_attr->attr.name; in default_attr_update() local 1964 #define DEVICE_ATTR_IS(_name) (!strcmp(attr_name, #_name)) in default_attr_update()
|