Home
last modified time | relevance | path

Searched refs:all_gains (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.6/drivers/iio/
Dindustrialio-gts-helper.c184 int *all_gains; in gain_to_scaletables() local
206 all_gains = kcalloc(gts->num_itime, gain_bytes, GFP_KERNEL); in gain_to_scaletables()
207 if (!all_gains) in gain_to_scaletables()
218 memcpy(all_gains, gains[time_idx], gain_bytes); in gain_to_scaletables()
226 if (candidate > all_gains[new_idx - 1]) { in gain_to_scaletables()
227 all_gains[new_idx] = candidate; in gain_to_scaletables()
233 if (candidate <= all_gains[chk]) in gain_to_scaletables()
236 if (candidate == all_gains[chk]) in gain_to_scaletables()
239 memmove(&all_gains[chk + 1], &all_gains[chk], in gain_to_scaletables()
241 all_gains[chk] = candidate; in gain_to_scaletables()
[all …]