Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/iio/
Dindustrialio-gts-helper.c278 int **per_time_gains, **per_time_scales, i, j, ret = -ENOMEM; in iio_gts_build_avail_scale_table() local
280 per_time_gains = kcalloc(gts->num_itime, sizeof(*per_time_gains), GFP_KERNEL); in iio_gts_build_avail_scale_table()
281 if (!per_time_gains) in iio_gts_build_avail_scale_table()
294 per_time_gains[i] = kcalloc(gts->num_hwgain, sizeof(int), in iio_gts_build_avail_scale_table()
296 if (!per_time_gains[i]) { in iio_gts_build_avail_scale_table()
302 per_time_gains[i][j] = gts->hwgain_table[j].gain * in iio_gts_build_avail_scale_table()
306 ret = gain_to_scaletables(gts, per_time_gains, per_time_scales); in iio_gts_build_avail_scale_table()
311 kfree(per_time_gains[i]); in iio_gts_build_avail_scale_table()
312 kfree(per_time_gains); in iio_gts_build_avail_scale_table()
320 kfree(per_time_gains[i]); in iio_gts_build_avail_scale_table()
[all …]