Lines Matching full:ref_sel
189 u8 ref_sel;
628 config = FIELD_PREP(AD7173_SETUP_REF_SEL_MASK, cfg->ref_sel); in ad7173_load_config()
847 *val = ad7173_get_ref_voltage_milli(st, ch->cfg.ref_sel); in ad7173_read_raw()
854 *val = ad7173_get_ref_voltage_milli(st, ch->cfg.ref_sel); in ad7173_read_raw()
1160 static int ad7173_validate_reference(struct ad7173_state *st, int ref_sel) in ad7173_validate_reference() argument
1165 if (ref_sel == AD7173_SETUP_REF_SEL_INT_REF && !st->info->has_int_ref) in ad7173_validate_reference()
1169 if (ref_sel == AD7173_SETUP_REF_SEL_EXT_REF2 && !st->info->has_ref2) in ad7173_validate_reference()
1173 ret = ad7173_get_ref_voltage_milli(st, ref_sel); in ad7173_validate_reference()
1176 ref_sel); in ad7173_validate_reference()
1188 int ref_sel, ret, num_channels; in ad7173_fw_parse_channel_config() local
1227 chan_st_priv->cfg.ref_sel = AD7173_SETUP_REF_SEL_INT_REF; in ad7173_fw_parse_channel_config()
1275 ref_sel = AD7173_SETUP_REF_SEL_INT_REF; in ad7173_fw_parse_channel_config()
1277 ref_sel = ret; in ad7173_fw_parse_channel_config()
1279 ret = ad7173_validate_reference(st, ref_sel); in ad7173_fw_parse_channel_config()
1283 if (ref_sel == AD7173_SETUP_REF_SEL_INT_REF) in ad7173_fw_parse_channel_config()
1285 chan_st_priv->cfg.ref_sel = ref_sel; in ad7173_fw_parse_channel_config()