Lines Matching refs:igb_attr
27 struct hwmon_attr *igb_attr = container_of(attr, struct hwmon_attr, in igb_hwmon_show_location() local
30 igb_attr->sensor->location); in igb_hwmon_show_location()
37 struct hwmon_attr *igb_attr = container_of(attr, struct hwmon_attr, in igb_hwmon_show_temp() local
42 igb_attr->hw->mac.ops.get_thermal_sensor_data(igb_attr->hw); in igb_hwmon_show_temp()
44 value = igb_attr->sensor->temp; in igb_hwmon_show_temp()
56 struct hwmon_attr *igb_attr = container_of(attr, struct hwmon_attr, in igb_hwmon_show_cautionthresh() local
58 unsigned int value = igb_attr->sensor->caution_thresh; in igb_hwmon_show_cautionthresh()
70 struct hwmon_attr *igb_attr = container_of(attr, struct hwmon_attr, in igb_hwmon_show_maxopthresh() local
72 unsigned int value = igb_attr->sensor->max_op_thresh; in igb_hwmon_show_maxopthresh()
94 struct hwmon_attr *igb_attr; in igb_add_hwmon_attr() local
97 igb_attr = &adapter->igb_hwmon_buff->hwmon_list[n_attr]; in igb_add_hwmon_attr()
101 igb_attr->dev_attr.show = igb_hwmon_show_location; in igb_add_hwmon_attr()
102 snprintf(igb_attr->name, sizeof(igb_attr->name), in igb_add_hwmon_attr()
106 igb_attr->dev_attr.show = igb_hwmon_show_temp; in igb_add_hwmon_attr()
107 snprintf(igb_attr->name, sizeof(igb_attr->name), in igb_add_hwmon_attr()
111 igb_attr->dev_attr.show = igb_hwmon_show_cautionthresh; in igb_add_hwmon_attr()
112 snprintf(igb_attr->name, sizeof(igb_attr->name), in igb_add_hwmon_attr()
116 igb_attr->dev_attr.show = igb_hwmon_show_maxopthresh; in igb_add_hwmon_attr()
117 snprintf(igb_attr->name, sizeof(igb_attr->name), in igb_add_hwmon_attr()
126 igb_attr->sensor = in igb_add_hwmon_attr()
128 igb_attr->hw = &adapter->hw; in igb_add_hwmon_attr()
129 igb_attr->dev_attr.store = NULL; in igb_add_hwmon_attr()
130 igb_attr->dev_attr.attr.mode = 0444; in igb_add_hwmon_attr()
131 igb_attr->dev_attr.attr.name = igb_attr->name; in igb_add_hwmon_attr()
132 sysfs_attr_init(&igb_attr->dev_attr.attr); in igb_add_hwmon_attr()
134 adapter->igb_hwmon_buff->attrs[n_attr] = &igb_attr->dev_attr.attr; in igb_add_hwmon_attr()