Lines Matching refs:ixgbe_attr

21 	struct hwmon_attr *ixgbe_attr = container_of(attr, struct hwmon_attr,  in ixgbe_hwmon_show_location()  local
24 ixgbe_attr->sensor->location); in ixgbe_hwmon_show_location()
31 struct hwmon_attr *ixgbe_attr = container_of(attr, struct hwmon_attr, in ixgbe_hwmon_show_temp() local
36 ixgbe_attr->hw->mac.ops.get_thermal_sensor_data(ixgbe_attr->hw); in ixgbe_hwmon_show_temp()
38 value = ixgbe_attr->sensor->temp; in ixgbe_hwmon_show_temp()
50 struct hwmon_attr *ixgbe_attr = container_of(attr, struct hwmon_attr, in ixgbe_hwmon_show_cautionthresh() local
52 unsigned int value = ixgbe_attr->sensor->caution_thresh; in ixgbe_hwmon_show_cautionthresh()
64 struct hwmon_attr *ixgbe_attr = container_of(attr, struct hwmon_attr, in ixgbe_hwmon_show_maxopthresh() local
66 unsigned int value = ixgbe_attr->sensor->max_op_thresh; in ixgbe_hwmon_show_maxopthresh()
88 struct hwmon_attr *ixgbe_attr; in ixgbe_add_hwmon_attr() local
91 ixgbe_attr = &adapter->ixgbe_hwmon_buff->hwmon_list[n_attr]; in ixgbe_add_hwmon_attr()
95 ixgbe_attr->dev_attr.show = ixgbe_hwmon_show_location; in ixgbe_add_hwmon_attr()
96 snprintf(ixgbe_attr->name, sizeof(ixgbe_attr->name), in ixgbe_add_hwmon_attr()
100 ixgbe_attr->dev_attr.show = ixgbe_hwmon_show_temp; in ixgbe_add_hwmon_attr()
101 snprintf(ixgbe_attr->name, sizeof(ixgbe_attr->name), in ixgbe_add_hwmon_attr()
105 ixgbe_attr->dev_attr.show = ixgbe_hwmon_show_cautionthresh; in ixgbe_add_hwmon_attr()
106 snprintf(ixgbe_attr->name, sizeof(ixgbe_attr->name), in ixgbe_add_hwmon_attr()
110 ixgbe_attr->dev_attr.show = ixgbe_hwmon_show_maxopthresh; in ixgbe_add_hwmon_attr()
111 snprintf(ixgbe_attr->name, sizeof(ixgbe_attr->name), in ixgbe_add_hwmon_attr()
120 ixgbe_attr->sensor = in ixgbe_add_hwmon_attr()
122 ixgbe_attr->hw = &adapter->hw; in ixgbe_add_hwmon_attr()
123 ixgbe_attr->dev_attr.store = NULL; in ixgbe_add_hwmon_attr()
124 ixgbe_attr->dev_attr.attr.mode = 0444; in ixgbe_add_hwmon_attr()
125 ixgbe_attr->dev_attr.attr.name = ixgbe_attr->name; in ixgbe_add_hwmon_attr()
126 sysfs_attr_init(&ixgbe_attr->dev_attr.attr); in ixgbe_add_hwmon_attr()
128 adapter->ixgbe_hwmon_buff->attrs[n_attr] = &ixgbe_attr->dev_attr.attr; in ixgbe_add_hwmon_attr()