Lines Matching refs:adc_control
177 unsigned int adc_control; member
258 st->adc_control &= ~AD7124_ADC_CTRL_MODE_MSK; in ad7124_set_mode()
259 st->adc_control |= AD7124_ADC_CTRL_MODE(mode); in ad7124_set_mode()
261 return ad_sd_write_reg(&st->sd, AD7124_ADC_CONTROL, 2, st->adc_control); in ad7124_set_mode()
383 st->adc_control &= ~AD7124_ADC_CTRL_REF_EN_MSK; in ad7124_init_config_vref()
384 st->adc_control |= AD7124_ADC_CTRL_REF_EN(1); in ad7124_init_config_vref()
386 2, st->adc_control); in ad7124_init_config_vref()
532 unsigned int adc_control = st->adc_control; in ad7124_append_status() local
535 adc_control &= ~AD7124_ADC_STATUS_EN_MSK; in ad7124_append_status()
536 adc_control |= AD7124_ADC_STATUS_EN(append); in ad7124_append_status()
538 ret = ad_sd_write_reg(&st->sd, AD7124_ADC_CONTROL, 2, adc_control); in ad7124_append_status()
542 st->adc_control = adc_control; in ad7124_append_status()
906 st->adc_control &= ~AD7124_ADC_CTRL_PWR_MSK; in ad7124_setup()
907 st->adc_control |= AD7124_ADC_CTRL_PWR(power_mode); in ad7124_setup()
908 ret = ad_sd_write_reg(&st->sd, AD7124_ADC_CONTROL, 2, st->adc_control); in ad7124_setup()