Lines Matching refs:t
576 static void case_to_desc(const struct rescale_tc_data *t, char *desc) in case_to_desc() argument
578 strcpy(desc, t->name); in case_to_desc()
648 struct rescale_tc_data *t = (struct rescale_tc_data *)test->param_value; in iio_rescale_test_scale() local
655 rescale.numerator = t->numerator; in iio_rescale_test_scale()
656 rescale.denominator = t->denominator; in iio_rescale_test_scale()
657 rescale.offset = t->offset; in iio_rescale_test_scale()
658 values[0] = t->schan_val; in iio_rescale_test_scale()
659 values[1] = t->schan_val2; in iio_rescale_test_scale()
661 ret = rescale_process_scale(&rescale, t->schan_scale_type, in iio_rescale_test_scale()
667 rel_ppm = iio_test_relative_error_ppm(buff, t->expected); in iio_rescale_test_scale()
673 buff, t->expected); in iio_rescale_test_scale()
678 struct rescale_tc_data *t = (struct rescale_tc_data *)test->param_value; in iio_rescale_test_offset() local
684 rescale.numerator = t->numerator; in iio_rescale_test_offset()
685 rescale.denominator = t->denominator; in iio_rescale_test_offset()
686 rescale.offset = t->offset; in iio_rescale_test_offset()
687 values[0] = t->schan_val; in iio_rescale_test_offset()
688 values[1] = t->schan_val2; in iio_rescale_test_offset()
690 ret = rescale_process_offset(&rescale, t->schan_scale_type, in iio_rescale_test_offset()
691 t->schan_val, t->schan_val2, t->schan_off, in iio_rescale_test_offset()
697 KUNIT_EXPECT_STREQ(test, strim(buff_off), t->expected_off); in iio_rescale_test_offset()