Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/iio/test/
Diio-test-gts.c353 int ret, scale_int, scale_nano; in test_iio_gts_total_gain_to_scale() local
359 ret = iio_gts_total_gain_to_scale(&gts, 1, &scale_int, &scale_nano); in test_iio_gts_total_gain_to_scale()
361 KUNIT_EXPECT_EQ(test, TEST_SCALE_1X, scale_int); in test_iio_gts_total_gain_to_scale()
364 ret = iio_gts_total_gain_to_scale(&gts, 1, &scale_int, &scale_nano); in test_iio_gts_total_gain_to_scale()
366 KUNIT_EXPECT_EQ(test, TEST_SCALE_1X, scale_int); in test_iio_gts_total_gain_to_scale()
369 ret = iio_gts_total_gain_to_scale(&gts, 4096 * 8, &scale_int, in test_iio_gts_total_gain_to_scale()
372 KUNIT_EXPECT_EQ(test, 0, scale_int); in test_iio_gts_total_gain_to_scale()
/linux-6.12.1/include/linux/iio/
Diio-gts-helper.h187 int *scale_int, int *scale_nano);
189 int scale_int, int scale_nano,
191 int iio_gts_get_scale(struct iio_gts *gts, int gain, int time, int *scale_int,
/linux-6.12.1/drivers/iio/
Dindustrialio-gts-helper.c127 int *scale_int, int *scale_nano) in iio_gts_total_gain_to_scale() argument
135 return iio_gts_delinearize(tmp, NANO, scale_int, scale_nano); in iio_gts_total_gain_to_scale()
860 int scale_int, int scale_nano, in iio_gts_find_gain_for_scale_using_time() argument
866 ret = iio_gts_linearize(scale_int, scale_nano, NANO, &scale_linear); in iio_gts_find_gain_for_scale_using_time()
898 int scale_int, int scale_nano, in iio_gts_find_gain_sel_for_scale_using_time() argument
903 ret = iio_gts_find_gain_for_scale_using_time(gts, time_sel, scale_int, in iio_gts_find_gain_sel_for_scale_using_time()
966 int iio_gts_get_scale(struct iio_gts *gts, int gain, int time, int *scale_int, in iio_gts_get_scale() argument
976 return iio_gts_delinearize(lin_scale, NANO, scale_int, scale_nano); in iio_gts_get_scale()
/linux-6.12.1/drivers/iio/dac/
Dad3552r.c254 s32 scale_int; member
484 *val = dac->ch_data[ch].scale_int; in ad3552r_read_raw()
774 dac->ch_data[ch].scale_int = div_s64_rem(span, 65536, &rem); in ad3552r_calc_gain_and_offset()