Lines Matching refs:index
52 int index;
66 int index; /* sensor index */
162 tdata->index, &t);
189 if (info[i]->config[tdata->index] & HWMON_T_MIN) {
191 hwmon_temp_min, tdata->index, low);
196 if (info[i]->config[tdata->index] & HWMON_T_MAX) {
198 hwmon_temp_max, tdata->index, high);
216 static int hwmon_thermal_add_sensor(struct device *dev, int index)
228 tdata->index = index;
230 tzd = devm_thermal_of_zone_register(dev, index, tdata,
236 index + 1);
282 static void hwmon_thermal_notify(struct device *dev, int index)
288 if (tzdata->index == index) {
301 static void hwmon_thermal_notify(struct device *dev, int index) { }
321 ret = hattr->ops->read(dev, hattr->type, hattr->attr, hattr->index,
326 trace_hwmon_attr_show(hattr->index + hwmon_attr_base(hattr->type),
342 hattr->index, &s);
346 trace_hwmon_attr_show_string(hattr->index + hwmon_attr_base(type),
364 ret = hattr->ops->write(dev, hattr->type, hattr->attr, hattr->index,
369 trace_hwmon_attr_store(hattr->index + hwmon_attr_base(hattr->type),
389 int index,
404 mode = ops->is_visible(drvdata, type, attr, index);
422 index + hwmon_attr_base(type));
428 hattr->index = index;