Lines Matching defs:index
108 struct temp_data *tdata = pdata->core_data[attr->index];
122 struct temp_data *tdata = pdata->core_data[attr->index];
137 return sprintf(buf, "%d\n", pdata->core_data[attr->index]->tjmax);
146 return sprintf(buf, "%d\n", pdata->core_data[attr->index]->ttarget);
155 struct temp_data *tdata = pdata->core_data[attr->index];
383 int index)
408 tdata->sd_attrs[i].index = index;
466 int err, index;
469 * Get the index of tdata in pdata->core_data[]
474 index = PKG_SYSFS_ATTR_NO;
476 index = ida_alloc_max(&pdata->ida, NUM_REAL_CORES - 1, GFP_KERNEL);
477 if (index < 0)
478 return index;
480 pdata->cpu_map[index] = topology_core_id(cpu);
481 index += BASE_SYSFS_ATTR_NO;
513 pdata->core_data[index] = tdata;
516 err = create_core_attrs(tdata, pdata->hwmon_dev, index);
522 pdata->core_data[index] = NULL;
526 ida_free(&pdata->ida, index - BASE_SYSFS_ATTR_NO);