Lines Matching refs:gain
329 * Get the tuner gain.
330 * @fe: The front end for which we're determining the gain
332 * @_gain: Where to store the gain (in 0.001dB units)
344 /* Read the RF gain */
350 /* Read the baseband gain */
366 /* gain in range -19600 to -116850 in units of 0.001dB */
385 /* gain in range -47320 to -158950 in units of 0.001dB */
394 * tuner gain.
459 __s64 gain;
469 gain = c->strength.stat[0].svalue;
471 /* Calculate the signal strength based on the total gain of the tuner */
472 if (gain < -85000)
475 else if (gain < -65000)
477 strength = 0 + div64_s64((85000 + gain) * 3, 1000);
478 else if (gain < -45000)
480 strength = 60 + div64_s64((65000 + gain) * 3, 2000);
483 strength = 90 + div64_s64((45000 + gain), 5000);