Lines Matching refs:val2

280 static int axp20x_adc_scale_voltage(int channel, int *val, int *val2)  in axp20x_adc_scale_voltage()  argument
286 *val2 = 700000; in axp20x_adc_scale_voltage()
292 *val2 = 500000; in axp20x_adc_scale_voltage()
297 *val2 = 100000; in axp20x_adc_scale_voltage()
302 *val2 = 400000; in axp20x_adc_scale_voltage()
308 *val2 = 800000; in axp20x_adc_scale_voltage()
316 static int axp22x_adc_scale_voltage(int channel, int *val, int *val2) in axp22x_adc_scale_voltage() argument
322 *val2 = 100000; in axp22x_adc_scale_voltage()
328 *val2 = 800000; in axp22x_adc_scale_voltage()
335 static int axp813_adc_scale_voltage(int channel, int *val, int *val2) in axp813_adc_scale_voltage() argument
340 *val2 = 800000; in axp813_adc_scale_voltage()
345 *val2 = 100000; in axp813_adc_scale_voltage()
351 *val2 = 800000; in axp813_adc_scale_voltage()
359 static int axp20x_adc_scale_current(int channel, int *val, int *val2) in axp20x_adc_scale_current() argument
364 *val2 = 625000; in axp20x_adc_scale_current()
369 *val2 = 375000; in axp20x_adc_scale_current()
375 *val2 = 500000; in axp20x_adc_scale_current()
384 int *val2) in axp20x_adc_scale() argument
388 return axp20x_adc_scale_voltage(chan->channel, val, val2); in axp20x_adc_scale()
391 return axp20x_adc_scale_current(chan->channel, val, val2); in axp20x_adc_scale()
403 int *val2) in axp22x_adc_scale() argument
407 return axp22x_adc_scale_voltage(chan->channel, val, val2); in axp22x_adc_scale()
423 int *val2) in axp813_adc_scale() argument
427 return axp813_adc_scale_voltage(chan->channel, val, val2); in axp813_adc_scale()
488 int *val2, long mask) in axp20x_read_raw() argument
495 return axp20x_adc_scale(chan, val, val2); in axp20x_read_raw()
507 int *val2, long mask) in axp22x_read_raw() argument
516 return axp22x_adc_scale(chan, val, val2); in axp22x_read_raw()
528 int *val2, long mask) in axp813_read_raw() argument
536 return axp813_adc_scale(chan, val, val2); in axp813_read_raw()
547 struct iio_chan_spec const *chan, int val, int val2, in axp20x_write_raw() argument