Lines Matching refs:chan_info

633 	struct ad4130_chan_info *chan_info = &st->chans_info[channel];  in ad4130_unlink_channel()  local
634 struct ad4130_slot_info *slot_info = &st->slots_info[chan_info->slot]; in ad4130_unlink_channel()
636 chan_info->slot = AD4130_INVALID_SLOT; in ad4130_unlink_channel()
645 struct ad4130_chan_info *chan_info = &st->chans_info[i]; in ad4130_unlink_slot() local
647 if (!chan_info->initialized || chan_info->slot != slot) in ad4130_unlink_slot()
660 struct ad4130_chan_info *chan_info = &st->chans_info[channel]; in ad4130_link_channel_slot() local
669 chan_info->slot = slot; in ad4130_link_channel_slot()
709 struct ad4130_chan_info *chan_info = &st->chans_info[channel]; in ad4130_write_channel_setup() local
710 struct ad4130_setup_info *setup_info = &chan_info->setup; in ad4130_write_channel_setup()
740 if (on_enable && chan_info->slot != AD4130_INVALID_SLOT) in ad4130_write_channel_setup()
743 if (!on_enable && !chan_info->enabled) { in ad4130_write_channel_setup()
744 if (chan_info->slot != AD4130_INVALID_SLOT) in ad4130_write_channel_setup()
757 if (chan_info->slot != AD4130_INVALID_SLOT) in ad4130_write_channel_setup()
777 struct ad4130_chan_info *chan_info = &st->chans_info[channel]; in ad4130_set_channel_enable() local
781 if (chan_info->enabled == status) in ad4130_set_channel_enable()
790 slot_info = &st->slots_info[chan_info->slot]; in ad4130_set_channel_enable()
799 chan_info->enabled = status; in ad4130_set_channel_enable()
883 struct ad4130_chan_info *chan_info = &st->chans_info[channel]; in ad4130_set_filter_mode() local
884 struct ad4130_setup_info *setup_info = &chan_info->setup; in ad4130_set_filter_mode()
971 struct ad4130_chan_info *chan_info = &st->chans_info[channel]; in ad4130_set_channel_pga() local
972 struct ad4130_setup_info *setup_info = &chan_info->setup; in ad4130_set_channel_pga()
1004 struct ad4130_chan_info *chan_info = &st->chans_info[channel]; in ad4130_set_channel_freq() local
1005 struct ad4130_setup_info *setup_info = &chan_info->setup; in ad4130_set_channel_freq()
1571 struct ad4130_chan_info *chan_info; in ad4130_parse_fw_channel() local
1580 chan_info = &st->chans_info[index]; in ad4130_parse_fw_channel()
1587 chan_info->slot = AD4130_INVALID_SLOT; in ad4130_parse_fw_channel()
1588 chan_info->setup.fs = AD4130_FILTER_SELECT_MIN; in ad4130_parse_fw_channel()
1589 chan_info->initialized = true; in ad4130_parse_fw_channel()
1603 ret = ad4130_parse_fw_setup(st, child, &chan_info->setup); in ad4130_parse_fw_channel()
1608 &chan_info->iout0); in ad4130_parse_fw_channel()
1609 if (chan_info->setup.iout0_val != AD4130_IOUT_OFF) { in ad4130_parse_fw_channel()
1610 ret = ad4130_validate_excitation_pin(st, chan_info->iout0); in ad4130_parse_fw_channel()
1616 &chan_info->iout1); in ad4130_parse_fw_channel()
1617 if (chan_info->setup.iout1_val != AD4130_IOUT_OFF) { in ad4130_parse_fw_channel()
1618 ret = ad4130_validate_excitation_pin(st, chan_info->iout1); in ad4130_parse_fw_channel()
1937 struct ad4130_chan_info *chan_info = &st->chans_info[i]; in ad4130_setup() local
1943 FIELD_PREP(AD4130_CHANNEL_IOUT1_MASK, chan_info->iout0) | in ad4130_setup()
1944 FIELD_PREP(AD4130_CHANNEL_IOUT2_MASK, chan_info->iout1); in ad4130_setup()