Lines Matching refs:adc_control
173 unsigned int adc_control; member
254 st->adc_control &= ~AD7124_ADC_CTRL_MODE_MSK; in ad7124_set_mode()
255 st->adc_control |= AD7124_ADC_CTRL_MODE(mode); in ad7124_set_mode()
257 return ad_sd_write_reg(&st->sd, AD7124_ADC_CONTROL, 2, st->adc_control); in ad7124_set_mode()
378 st->adc_control &= ~AD7124_ADC_CTRL_REF_EN_MSK; in ad7124_init_config_vref()
379 st->adc_control |= AD7124_ADC_CTRL_REF_EN(1); in ad7124_init_config_vref()
381 2, st->adc_control); in ad7124_init_config_vref()
527 unsigned int adc_control = st->adc_control; in ad7124_append_status() local
530 adc_control &= ~AD7124_ADC_STATUS_EN_MSK; in ad7124_append_status()
531 adc_control |= AD7124_ADC_STATUS_EN(append); in ad7124_append_status()
533 ret = ad_sd_write_reg(&st->sd, AD7124_ADC_CONTROL, 2, adc_control); in ad7124_append_status()
537 st->adc_control = adc_control; in ad7124_append_status()
909 st->adc_control &= ~AD7124_ADC_CTRL_PWR_MSK; in ad7124_setup()
910 st->adc_control |= AD7124_ADC_CTRL_PWR(power_mode); in ad7124_setup()
911 ret = ad_sd_write_reg(&st->sd, AD7124_ADC_CONTROL, 2, st->adc_control); in ad7124_setup()