Lines Matching refs:channel_config

153 	struct ad7124_channel_config *channel_config;  member
246 val = st->channel_config[channel].ain | AD7124_CHANNEL_EN(1) | in ad7124_set_channel()
289 st->channel_config[channel].odr = in ad7124_set_channel_odr()
310 st->channel_config[channel].pga_bits = res; in ad7124_set_channel_gain()
320 fadc = st->channel_config[channel].odr; in ad7124_get_3db_filter_freq()
322 switch (st->channel_config[channel].filter_type) { in ad7124_get_3db_filter_freq()
352 if (st->channel_config[channel].filter_type != new_filter) { in ad7124_set_3db_filter_freq()
355 st->channel_config[channel].filter_type = new_filter; in ad7124_set_3db_filter_freq()
383 st->channel_config[chan->address].ain | in ad7124_read_raw()
390 idx = st->channel_config[chan->address].pga_bits; in ad7124_read_raw()
391 *val = st->channel_config[chan->address].vref_mv; in ad7124_read_raw()
392 if (st->channel_config[chan->address].bipolar) in ad7124_read_raw()
399 if (st->channel_config[chan->address].bipolar) in ad7124_read_raw()
406 *val = st->channel_config[chan->address].odr; in ad7124_read_raw()
434 if (st->channel_config[chan->address].bipolar) in ad7124_write_raw()
439 vref = st->channel_config[chan->address].vref_mv * 1000000LL; in ad7124_write_raw()
553 unsigned int refsel = st->channel_config[channel_number].refsel; in ad7124_init_channel_vref()
565 st->channel_config[channel_number].vref_mv = in ad7124_init_channel_vref()
568 st->channel_config[channel_number].vref_mv /= 1000; in ad7124_init_channel_vref()
571 st->channel_config[channel_number].vref_mv = 2500; in ad7124_init_channel_vref()
612 st->channel_config = chan_config; in ad7124_of_parse_channel_config()
624 st->channel_config[channel].ain = AD7124_CHANNEL_AINP(ain[0]) | in ad7124_of_parse_channel_config()
626 st->channel_config[channel].bipolar = in ad7124_of_parse_channel_config()
631 st->channel_config[channel].refsel = AD7124_INT_REF; in ad7124_of_parse_channel_config()
633 st->channel_config[channel].refsel = tmp; in ad7124_of_parse_channel_config()
635 st->channel_config[channel].buf_positive = in ad7124_of_parse_channel_config()
637 st->channel_config[channel].buf_negative = in ad7124_of_parse_channel_config()
681 val = st->channel_config[i].ain | AD7124_CHANNEL_SETUP(i); in ad7124_setup()
690 tmp = (st->channel_config[i].buf_positive << 1) + in ad7124_setup()
691 st->channel_config[i].buf_negative; in ad7124_setup()
693 val = AD7124_CONFIG_BIPOLAR(st->channel_config[i].bipolar) | in ad7124_setup()
694 AD7124_CONFIG_REF_SEL(st->channel_config[i].refsel) | in ad7124_setup()