Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/iio/
Dindustrialio-gts-helper.c171 int *all_gains; in gain_to_scaletables() local
193 all_gains = kcalloc(gts->num_itime, gain_bytes, GFP_KERNEL); in gain_to_scaletables()
194 if (!all_gains) in gain_to_scaletables()
205 memcpy(all_gains, gains[time_idx], gain_bytes); in gain_to_scaletables()
213 if (candidate > all_gains[new_idx - 1]) { in gain_to_scaletables()
214 all_gains[new_idx] = candidate; in gain_to_scaletables()
220 if (candidate <= all_gains[chk]) in gain_to_scaletables()
223 if (candidate == all_gains[chk]) in gain_to_scaletables()
226 memmove(&all_gains[chk + 1], &all_gains[chk], in gain_to_scaletables()
228 all_gains[chk] = candidate; in gain_to_scaletables()
[all …]