Lines Matching refs:ratio

393 static unsigned int get_compensation(int ratio)  in get_compensation()  argument
401 if (ratio == 1 && in get_compensation()
402 cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation()
403 cal_data[ratio + 1].confidence >= CONFIDENCE_OK && in get_compensation()
404 cal_data[ratio + 2].confidence >= CONFIDENCE_OK) { in get_compensation()
405 comp = (cal_data[ratio].steady_comp + in get_compensation()
406 cal_data[ratio + 1].steady_comp + in get_compensation()
407 cal_data[ratio + 2].steady_comp) / 3; in get_compensation()
408 } else if (ratio == MAX_TARGET_RATIO - 1 && in get_compensation()
409 cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation()
410 cal_data[ratio - 1].confidence >= CONFIDENCE_OK && in get_compensation()
411 cal_data[ratio - 2].confidence >= CONFIDENCE_OK) { in get_compensation()
412 comp = (cal_data[ratio].steady_comp + in get_compensation()
413 cal_data[ratio - 1].steady_comp + in get_compensation()
414 cal_data[ratio - 2].steady_comp) / 3; in get_compensation()
415 } else if (cal_data[ratio].confidence >= CONFIDENCE_OK && in get_compensation()
416 cal_data[ratio - 1].confidence >= CONFIDENCE_OK && in get_compensation()
417 cal_data[ratio + 1].confidence >= CONFIDENCE_OK) { in get_compensation()
418 comp = (cal_data[ratio].steady_comp + in get_compensation()
419 cal_data[ratio - 1].steady_comp + in get_compensation()
420 cal_data[ratio + 1].steady_comp) / 3; in get_compensation()
424 if (comp + ratio >= MAX_TARGET_RATIO) in get_compensation()
425 comp = MAX_TARGET_RATIO - ratio - 1; in get_compensation()