Searched refs:total_gain (Results 1 – 4 of 4) sorted by relevance
139 int iio_gts_total_gain_to_scale(struct iio_gts *gts, int total_gain, in iio_gts_total_gain_to_scale() argument146 do_div(tmp, total_gain); in iio_gts_total_gain_to_scale()946 int total_gain; in iio_gts_get_scale_linear() local949 total_gain = iio_gts_get_total_gain(gts, gain, time); in iio_gts_get_scale_linear()950 if (total_gain < 0) in iio_gts_get_scale_linear()951 return total_gain; in iio_gts_get_scale_linear()955 do_div(tmp, total_gain); in iio_gts_get_scale_linear()
186 int iio_gts_total_gain_to_scale(struct iio_gts *gts, int total_gain,
1240 int i, total_gain = 0;1264 if (total_gain >= gain)1267 total_gain += r820t_lna_gain_steps[++lna_index];1269 if (total_gain >= gain)1272 total_gain += r820t_mixer_gain_steps[++mix_index];
6366 u32 total_gain = 0; in get_strength() local6405 total_gain += tuner_rf_gain; in get_strength()6434 total_gain += (u32) tuner_if_gain; in get_strength()6455 if (total_gain > 0) in get_strength()6456 *strength = (65535UL * atten / total_gain / 100); in get_strength()