Lines Matching defs:index
337 struct temp_data *tdata = pdata->core_data[attr->index];
351 struct temp_data *tdata = pdata->core_data[attr->index];
365 struct temp_data *tdata = pdata->core_data[attr->index];
380 struct temp_data *tdata = pdata->core_data[attr->index];
398 struct temp_data *tdata = pdata->core_data[attr->index];
422 int index)
447 tdata->sd_attrs[i].index = index;
505 int err, index;
511 * Get the index of tdata in pdata->core_data[]
516 index = PKG_SYSFS_ATTR_NO;
518 index = ida_alloc_max(&pdata->ida, NUM_REAL_CORES - 1, GFP_KERNEL);
519 if (index < 0)
520 return index;
522 pdata->cpu_map[index] = topology_core_id(cpu);
523 index += BASE_SYSFS_ATTR_NO;
549 pdata->core_data[index] = tdata;
552 err = create_core_attrs(tdata, pdata->hwmon_dev, index);
558 pdata->core_data[index] = NULL;
562 ida_free(&pdata->ida, index - BASE_SYSFS_ATTR_NO);