Home
last modified time | relevance | path

Searched refs:imin (Results 1 – 3 of 3) sorted by relevance

/drivers/media/dvb-frontends/
Dstv6111.c546 int imin = 0; in table_lookup() local
556 while ((imax - imin) > 1) { in table_lookup()
557 i = (imax + imin) / 2; in table_lookup()
558 if ((table[imin].reg_value <= reg_value) && in table_lookup()
562 imin = i; in table_lookup()
564 reg_diff = table[imax].reg_value - table[imin].reg_value; in table_lookup()
565 gain = table[imin].value; in table_lookup()
567 gain += ((s32)(reg_value - table[imin].reg_value) * in table_lookup()
569 - table[imin].value)) / reg_diff; in table_lookup()
Dstv0900_core.c595 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()
[all …]
Dstv0910.c608 int imin = 0; in table_lookup() local
619 while ((imax - imin) > 1) { in table_lookup()
620 i = (imax + imin) / 2; in table_lookup()
621 if ((table[imin].reg_value >= reg_value) && in table_lookup()
625 imin = i; in table_lookup()
628 reg_diff = table[imax].reg_value - table[imin].reg_value; in table_lookup()
629 value = table[imin].value; in table_lookup()
631 value += ((s32)(reg_value - table[imin].reg_value) * in table_lookup()
633 - table[imin].value)) in table_lookup()