Lines Matching refs:gain
535 s32 gain; in table_lookup() local
543 gain = table[0].value; in table_lookup()
545 gain = table[imax].value; in table_lookup()
556 gain = table[imin].value; in table_lookup()
558 gain += ((s32)(reg_value - table[imin].reg_value) * in table_lookup()
562 return gain; in table_lookup()
569 s32 gain; in get_rf_strength() local
589 gain = table_lookup(lnagain_nf_lookup, in get_rf_strength()
594 gain = table_lookup(lnagain_iip3_lookup, in get_rf_strength()
598 gain += table_lookup(gain_rfagc_lookup, in get_rf_strength()
601 gain -= 2400; in get_rf_strength()
606 gain = table_lookup( in get_rf_strength()
610 gain += 600; in get_rf_strength()
613 gain = table_lookup( in get_rf_strength()
622 gain -= ((((s32)(state->frequency / 1000) - 1550) * 2) / 12); in get_rf_strength()
625 gain += (s32)((state->reg[0x01] & 0xC0) >> 6) * 600 - 1300; in get_rf_strength()
627 if (gain < 0) in get_rf_strength()
628 gain = 0; in get_rf_strength()
629 else if (gain > 10000) in get_rf_strength()
630 gain = 10000; in get_rf_strength()
632 *st = 10000 - gain; in get_rf_strength()