Lines Matching defs:gains
168 static int gain_to_scaletables(struct iio_gts *gts, int **gains, int **scales)
179 sort(gains[i], gts->num_hwgain, sizeof(int), iio_gts_gain_cmp,
182 /* Convert gains to scales */
184 ret = iio_gts_total_gain_to_scale(gts, gains[i][j],
198 * We assume all the gains for same integration time were unique.
202 * to have the smallest total gains.
205 memcpy(all_gains, gains[time_idx], gain_bytes);
210 int candidate = gains[time_idx][j];
269 * supported gains and times can provide.
429 * of supported gains and times can provide.
487 * of supported gains and times can provide.
588 * @gain_tbl: table describing supported gains
589 * @num_gain: number of gains in the gain table
599 * Initialize the gain-time-scale helper for use. Note, gains, times, selectors
746 * Return: The smallest HW-gain -EINVAL if no HW-gains were in the tables.
770 * supported gains.