Lines Matching refs:aio_ctl_map
95 struct regmap *aio_ctl_map; member
182 err = regmap_read(priv->aio_ctl_map, STX104_ADC_CONFIGURATION, &adc_config); in stx104_read_raw()
201 err = regmap_write(priv->aio_ctl_map, STX104_ADC_CHANNEL, in stx104_read_raw()
216 err = regmap_write(priv->aio_ctl_map, STX104_SOFTWARE_STROBE, 0); in stx104_read_raw()
221 err = regmap_read_poll_timeout(priv->aio_ctl_map, STX104_ADC_STATUS, adc_status, in stx104_read_raw()
239 err = regmap_read(priv->aio_ctl_map, STX104_ADC_CONFIGURATION, &adc_config); in stx104_read_raw()
247 err = regmap_read(priv->aio_ctl_map, STX104_ADC_CONFIGURATION, &adc_config); in stx104_read_raw()
286 return regmap_write(priv->aio_ctl_map, STX104_ADC_CONFIGURATION, gain); in stx104_write_raw()
347 err = regmap_write(priv->aio_ctl_map, STX104_ADC_CONTROL, STX104_SOFTWARE_TRIGGER); in stx104_init_hw()
352 err = regmap_write(priv->aio_ctl_map, STX104_ADC_CONFIGURATION, STX104_GAIN_X1); in stx104_init_hw()
373 struct regmap *aio_ctl_map; in stx104_probe() local
394 aio_ctl_map = devm_regmap_init_mmio(dev, stx104_base, &aio_ctl_regmap_config); in stx104_probe()
395 if (IS_ERR(aio_ctl_map)) in stx104_probe()
396 return dev_err_probe(dev, PTR_ERR(aio_ctl_map), in stx104_probe()
410 priv->aio_ctl_map = aio_ctl_map; in stx104_probe()
416 err = regmap_read(aio_ctl_map, STX104_ADC_STATUS, &adc_status); in stx104_probe()