Lines Matching refs:imin
595 imin, in stv0900_get_rf_level() local
608 imin = 0; in stv0900_get_rf_level()
610 if (INRANGE(lookup->table[imin].regval, agc_gain, in stv0900_get_rf_level()
612 while ((imax - imin) > 1) { in stv0900_get_rf_level()
613 i = (imax + imin) >> 1; in stv0900_get_rf_level()
615 if (INRANGE(lookup->table[imin].regval, in stv0900_get_rf_level()
620 imin = i; in stv0900_get_rf_level()
623 rf_lvl = (s32)agc_gain - lookup->table[imin].regval; in stv0900_get_rf_level()
625 lookup->table[imin].realval); in stv0900_get_rf_level()
627 lookup->table[imin].regval); in stv0900_get_rf_level()
628 rf_lvl += lookup->table[imin].realval; in stv0900_get_rf_level()
667 imin, in stv0900_carr_get_quality() local
696 imin = 0; in stv0900_carr_get_quality()
698 if (INRANGE(lookup->table[imin].regval, in stv0900_carr_get_quality()
701 while ((imax - imin) > 1) { in stv0900_carr_get_quality()
702 i = (imax + imin) >> 1; in stv0900_carr_get_quality()
703 if (INRANGE(lookup->table[imin].regval, in stv0900_carr_get_quality()
708 imin = i; in stv0900_carr_get_quality()
711 c_n = ((regval - lookup->table[imin].regval) in stv0900_carr_get_quality()
713 - lookup->table[imin].realval) in stv0900_carr_get_quality()
715 - lookup->table[imin].regval)) in stv0900_carr_get_quality()
716 + lookup->table[imin].realval; in stv0900_carr_get_quality()
717 } else if (regval < lookup->table[imin].regval) in stv0900_carr_get_quality()