Lines Matching full:gain

2 /* Unit tests for IIO light sensor gain-time-scale helpers
73 /* Keep the gain and time tables unsorted to test the sorting */
161 /* Ok times, negative gain */ in test_init_iio_gts_invalid()
167 /* gain * time overflow int */ in test_init_iio_gts_invalid()
186 * Meas time 100 => gain by time 2x in test_iio_gts_find_gain_for_scale_using_time()
187 * TEST_SCALE_8X matches total gain 8x in test_iio_gts_find_gain_for_scale_using_time()
196 * Meas time 200 => gain by time 4x in test_iio_gts_find_gain_for_scale_using_time()
197 * TEST_SCALE_256X matches total gain 256x in test_iio_gts_find_gain_for_scale_using_time()
203 /* Min time, Min gain */ in test_iio_gts_find_gain_for_scale_using_time()
209 /* Max time, Max gain */ in test_iio_gts_find_gain_for_scale_using_time()
218 * Meas time 100 => gain by time 2x in test_iio_gts_find_gain_for_scale_using_time()
219 * TEST_SCALE_256X matches total gain 256x in test_iio_gts_find_gain_for_scale_using_time()
220 * => required HWGAIN 256/2 => 128x (not in gain-table - unsupported) in test_iio_gts_find_gain_for_scale_using_time()
226 /* We can't reach the max gain with integration time smaller than MAX */ in test_iio_gts_find_gain_for_scale_using_time()
231 /* We can't reach the max gain with integration time smaller than MAX */ in test_iio_gts_find_gain_for_scale_using_time()
252 * Doubling the integration time doubles the total gain - so old in test_iio_gts_find_new_gain_sel_by_old_gain_time()
253 * (hw)gain must be divided by two to compensate. => 32 / 2 => 16 in test_iio_gts_find_new_gain_sel_by_old_gain_time()
264 * gain by time 1x => 4x - (hw)gain 4x => 1x in test_iio_gts_find_new_gain_sel_by_old_gain_time()
275 * gain by time 8x => 1x - (hw)gain 512x => 4096x) in test_iio_gts_find_new_gain_sel_by_old_gain_time()
279 /* Unsupported gain 2x */ in test_iio_gts_find_new_gain_sel_by_old_gain_time()
287 /* Too small gain */ in test_iio_gts_find_new_gain_sel_by_old_gain_time()
295 /* Too big gain */ in test_iio_gts_find_new_gain_sel_by_old_gain_time()
415 /* The gain caused by time 200 is 4x */ in test_iio_gts_chk_scales_t200()
506 .name = "iio-gain-time-scale",
514 MODULE_DESCRIPTION("Test IIO light sensor gain-time-scale helpers");