Lines Matching refs:attr_name
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()
483 static void create_hwmon_attr(struct sensor_data *sdata, const char *attr_name, in create_hwmon_attr() argument
493 attr_name); in create_hwmon_attr()
507 const char *attr_name, enum sensors type, in populate_sensor() argument
521 create_hwmon_attr(sdata, attr_name, show, store); in populate_sensor()
570 const char *attr_name; in create_device_attrs() local
601 attr_name = parse_opal_node_name(np->name, type, &opal_index); in create_device_attrs()
602 if (IS_ERR(attr_name)) { in create_device_attrs()
603 attr_name = "input"; in create_device_attrs()
610 attr_name, type, pgroups[type], sgrp_data, in create_device_attrs()
630 attr_name = get_max_attr(type); in create_device_attrs()
632 sensor_id, attr_name, type, in create_device_attrs()
639 attr_name = get_min_attr(type); in create_device_attrs()
641 sensor_id, attr_name, type, in create_device_attrs()