Lines Matching refs:idx
268 unsigned int idx = 0, cpu = 0; in thermal_zone_init() local
281 for (j = 0, idx = 0; j < cfg_cnt && in thermal_zone_init()
282 idx < (get_num_cpus() + cfg_cnt - 1); j++) { in thermal_zone_init()
286 idx < (get_num_cpus() + cfg_cnt - 1); cpu++, idx++) { in thermal_zone_init()
287 if (initialize_sensor(&v_sen_t[j], &sensors[idx], in thermal_zone_init()
295 if (initialize_sensor(&v_sen_t[j], &sensors[idx], in thermal_zone_init()
300 idx++; in thermal_zone_init()
303 sensor_cnt = idx; in thermal_zone_init()
366 size_t idx; in get_temperature_for_all() local
373 for (idx = 0; idx < sensor_cnt && idx < size; idx++) { in get_temperature_for_all()
374 ssize_t result = read_temperature(sensors[idx].tzn, sensors[idx].t.type, in get_temperature_for_all()
375 sensors[idx].t.name, sensors[idx].mult, in get_temperature_for_all()
376 sensors[idx].t.throttling_threshold, in get_temperature_for_all()
377 sensors[idx].t.shutdown_threshold, in get_temperature_for_all()
378 sensors[idx].t.vr_throttling_threshold, in get_temperature_for_all()
379 &list[idx]); in get_temperature_for_all()
383 return idx; in get_temperature_for_all()