Lines Matching refs:vals
230 int ret, vals[2]; in axi_dac_scale_get() local
247 vals[0] = scale / MEGA; in axi_dac_scale_get()
248 vals[1] = scale % MEGA; in axi_dac_scale_get()
251 vals[0] *= -1; in axi_dac_scale_get()
252 if (!vals[0]) in axi_dac_scale_get()
253 vals[1] *= -1; in axi_dac_scale_get()
256 return iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO, ARRAY_SIZE(vals), in axi_dac_scale_get()
257 vals); in axi_dac_scale_get()
265 int ret, vals[2]; in axi_dac_phase_get() local
279 vals[0] = phase / MEGA; in axi_dac_phase_get()
280 vals[1] = phase % MEGA; in axi_dac_phase_get()
282 return iio_format_value(buf, IIO_VAL_INT_PLUS_MICRO, ARRAY_SIZE(vals), in axi_dac_phase_get()
283 vals); in axi_dac_phase_get()