Lines Matching refs:values

47 	int values[2];  in iio_test_iio_format_value_fixedpoint()  local
55 values[0] = 1; in iio_test_iio_format_value_fixedpoint()
56 values[1] = 10; in iio_test_iio_format_value_fixedpoint()
58 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint()
61 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO_DB, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint()
64 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_NANO, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint()
68 values[0] = 0; in iio_test_iio_format_value_fixedpoint()
69 values[1] = 12; in iio_test_iio_format_value_fixedpoint()
71 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint()
74 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO_DB, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint()
77 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_NANO, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint()
81 values[0] = -1; in iio_test_iio_format_value_fixedpoint()
82 values[1] = 10; in iio_test_iio_format_value_fixedpoint()
84 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint()
87 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO_DB, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint()
90 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_NANO, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint()
94 values[0] = 0; in iio_test_iio_format_value_fixedpoint()
95 values[1] = -123; in iio_test_iio_format_value_fixedpoint()
96 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint()
99 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO_DB, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint()
102 ret = iio_format_value(buf, IIO_VAL_INT_PLUS_NANO, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fixedpoint()
108 int values[2]; in iio_test_iio_format_value_fractional() local
116 values[0] = 1; in iio_test_iio_format_value_fractional()
117 values[1] = 10; in iio_test_iio_format_value_fractional()
118 ret = iio_format_value(buf, IIO_VAL_FRACTIONAL, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fractional()
122 values[0] = 100; in iio_test_iio_format_value_fractional()
123 values[1] = 3; in iio_test_iio_format_value_fractional()
124 ret = iio_format_value(buf, IIO_VAL_FRACTIONAL, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fractional()
128 values[0] = -1; in iio_test_iio_format_value_fractional()
129 values[1] = 1000000000; in iio_test_iio_format_value_fractional()
130 ret = iio_format_value(buf, IIO_VAL_FRACTIONAL, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fractional()
134 values[0] = -200; in iio_test_iio_format_value_fractional()
135 values[1] = 3; in iio_test_iio_format_value_fractional()
136 ret = iio_format_value(buf, IIO_VAL_FRACTIONAL, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fractional()
140 values[0] = 0; in iio_test_iio_format_value_fractional()
141 values[1] = -10; in iio_test_iio_format_value_fractional()
142 ret = iio_format_value(buf, IIO_VAL_FRACTIONAL, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fractional()
148 int values[2]; in iio_test_iio_format_value_fractional_log2() local
156 values[0] = 123; in iio_test_iio_format_value_fractional_log2()
157 values[1] = 10; in iio_test_iio_format_value_fractional_log2()
158 ret = iio_format_value(buf, IIO_VAL_FRACTIONAL_LOG2, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fractional_log2()
162 values[0] = 1234567; in iio_test_iio_format_value_fractional_log2()
163 values[1] = 10; in iio_test_iio_format_value_fractional_log2()
164 ret = iio_format_value(buf, IIO_VAL_FRACTIONAL_LOG2, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fractional_log2()
168 values[0] = -123; in iio_test_iio_format_value_fractional_log2()
169 values[1] = 10; in iio_test_iio_format_value_fractional_log2()
170 ret = iio_format_value(buf, IIO_VAL_FRACTIONAL_LOG2, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fractional_log2()
174 values[0] = -1234567; in iio_test_iio_format_value_fractional_log2()
175 values[1] = 10; in iio_test_iio_format_value_fractional_log2()
176 ret = iio_format_value(buf, IIO_VAL_FRACTIONAL_LOG2, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fractional_log2()
180 values[0] = 0; in iio_test_iio_format_value_fractional_log2()
181 values[1] = 10; in iio_test_iio_format_value_fractional_log2()
182 ret = iio_format_value(buf, IIO_VAL_FRACTIONAL_LOG2, ARRAY_SIZE(values), values); in iio_test_iio_format_value_fractional_log2()
188 int values[] = {1, -2, 3, -4, 5}; in iio_test_iio_format_value_multiple() local
196 ARRAY_SIZE(values), values); in iio_test_iio_format_value_multiple()
202 int values[2]; in iio_test_iio_format_value_integer_64() local
211 values[0] = lower_32_bits(value); in iio_test_iio_format_value_integer_64()
212 values[1] = upper_32_bits(value); in iio_test_iio_format_value_integer_64()
213 ret = iio_format_value(buf, IIO_VAL_INT_64, ARRAY_SIZE(values), values); in iio_test_iio_format_value_integer_64()
217 values[0] = lower_32_bits(value); in iio_test_iio_format_value_integer_64()
218 values[1] = upper_32_bits(value); in iio_test_iio_format_value_integer_64()
219 ret = iio_format_value(buf, IIO_VAL_INT_64, ARRAY_SIZE(values), values); in iio_test_iio_format_value_integer_64()
223 values[0] = lower_32_bits(value); in iio_test_iio_format_value_integer_64()
224 values[1] = upper_32_bits(value); in iio_test_iio_format_value_integer_64()
225 ret = iio_format_value(buf, IIO_VAL_INT_64, ARRAY_SIZE(values), values); in iio_test_iio_format_value_integer_64()
229 values[0] = lower_32_bits(value); in iio_test_iio_format_value_integer_64()
230 values[1] = upper_32_bits(value); in iio_test_iio_format_value_integer_64()
231 ret = iio_format_value(buf, IIO_VAL_INT_64, ARRAY_SIZE(values), values); in iio_test_iio_format_value_integer_64()
235 values[0] = lower_32_bits(value); in iio_test_iio_format_value_integer_64()
236 values[1] = upper_32_bits(value); in iio_test_iio_format_value_integer_64()
237 ret = iio_format_value(buf, IIO_VAL_INT_64, ARRAY_SIZE(values), values); in iio_test_iio_format_value_integer_64()
241 values[0] = lower_32_bits(value); in iio_test_iio_format_value_integer_64()
242 values[1] = upper_32_bits(value); in iio_test_iio_format_value_integer_64()
243 ret = iio_format_value(buf, IIO_VAL_INT_64, ARRAY_SIZE(values), values); in iio_test_iio_format_value_integer_64()
247 values[0] = lower_32_bits(value); in iio_test_iio_format_value_integer_64()
248 values[1] = upper_32_bits(value); in iio_test_iio_format_value_integer_64()
249 ret = iio_format_value(buf, IIO_VAL_INT_64, ARRAY_SIZE(values), values); in iio_test_iio_format_value_integer_64()