Home
last modified time | relevance | path

Searched refs:ad_sd_write_reg (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/iio/adc/
H A Dad7192.c304 return ad_sd_write_reg(&st->sd, AD7192_REG_CONF, 3, st->conf); in ad7192_set_channel()
315 return ad_sd_write_reg(&st->sd, AD7192_REG_MODE, 3, st->mode); in ad7192_set_mode()
327 ret = ad_sd_write_reg(&st->sd, AD7192_REG_MODE, 3, mode); in ad7192_append_status()
344 ret = ad_sd_write_reg(&st->sd, AD7192_REG_CONF, 3, conf); in ad7192_disable_all()
437 ret = ad_sd_write_reg(&st->sd, AD7192_REG_MODE, 3, st->mode); in ad7192_clk_prepare()
454 ret = ad_sd_write_reg(&st->sd, AD7192_REG_MODE, 3, st->mode); in ad7192_clk_unprepare()
617 ret = ad_sd_write_reg(&st->sd, AD7192_REG_MODE, 3, st->mode); in ad7192_setup()
621 ret = ad_sd_write_reg(&st->sd, AD7192_REG_CONF, 3, st->conf); in ad7192_setup()
705 ad_sd_write_reg(&st->sd, AD7192_REG_GPOCON, 1, st->gpocon); in ad7192_set()
713 ad_sd_write_reg(&st->sd, AD7192_REG_CONF, 3, st->conf); in ad7192_set()
[all …]
H A Dad7173.c636 ret = ad_sd_write_reg(&st->sd, AD7173_REG_SETUP(free_cfg_slot), 2, config); in ad7173_load_config()
640 return ad_sd_write_reg(&st->sd, AD7173_REG_FILTER(free_cfg_slot), 2, in ad7173_load_config()
685 return ad_sd_write_reg(&st->sd, AD7173_REG_CH(channel), 2, val); in ad7173_set_channel()
696 return ad_sd_write_reg(&st->sd, AD7173_REG_ADC_MODE, 2, st->adc_mode); in ad7173_set_mode()
707 ret = ad_sd_write_reg(&st->sd, AD7173_REG_INTERFACE_MODE, 2, interface_mode); in ad7173_append_status()
723 ret = ad_sd_write_reg(sd, AD7173_REG_CH(i), 2, 0); in ad7173_disable_all()
733 return ad_sd_write_reg(sd, AD7173_REG_CH(chan), 2, 0); in ad7173_disable_one()
952 ret = ad_sd_write_reg(&st->sd, AD7173_REG_CH(i), 2, 0); in ad7173_update_scan_mode()
977 return ad_sd_write_reg(&st->sd, reg, reg_size, writeval); in ad7173_debug_reg_access()
1035 ret = ad_sd_write_reg(&st->sd, AD7173_REG_ADC_MODE, 0x2, st->adc_mode); in ad7173_sel_clk()
H A Dad7124.c250 return ad_sd_write_reg(&st->sd, addr, bytes, readval); in ad7124_spi_write_mask()
261 return ad_sd_write_reg(&st->sd, AD7124_ADC_CONTROL, 2, st->adc_control); in ad7124_set_mode()
405 ret = ad_sd_write_reg(&st->sd, AD7124_CONFIG(cfg->cfg_slot), 2, val); in ad7124_write_config()
476 return ad_sd_write_reg(&st->sd, AD7124_CHANNEL(ch->nr), 2, ch->ain | in ad7124_enable_channel()
530 ret = ad_sd_write_reg(&st->sd, AD7124_ADC_CONTROL, 2, adc_control); in ad7124_append_status()
699 ret = ad_sd_write_reg(&st->sd, reg, ad7124_reg_size[reg], in ad7124_reg_access()
922 ret = ad_sd_write_reg(&st->sd, AD7124_ADC_CONTROL, 2, st->adc_control); in ad7124_setup()
H A Dad7791.c247 return ad_sd_write_reg(sd, AD7791_REG_MODE, sizeof(st->mode), st->mode); in ad7791_set_mode()
337 ad_sd_write_reg(&st->sd, AD7791_REG_FILTER, in ad7791_write_raw()
393 return ad_sd_write_reg(&st->sd, AD7791_REG_MODE, sizeof(st->mode), in ad7791_setup()
H A Dad7793.c188 return ad_sd_write_reg(&st->sd, AD7793_REG_CONF, 2, st->conf); in ad7793_set_channel()
199 return ad_sd_write_reg(&st->sd, AD7793_REG_MODE, 2, st->mode); in ad7793_set_mode()
317 ret = ad_sd_write_reg(&st->sd, AD7793_REG_IO, 1, in ad7793_setup()
491 ad_sd_write_reg(&st->sd, AD7793_REG_CONF, in ad7793_write_raw()
514 ad_sd_write_reg(&st->sd, AD7793_REG_MODE, sizeof(st->mode), in ad7793_write_raw()
H A Dad_sigma_delta.c58 int ad_sd_write_reg(struct ad_sigma_delta *sigma_delta, unsigned int reg, in ad_sd_write_reg() function
98 EXPORT_SYMBOL_NS_GPL(ad_sd_write_reg, IIO_AD_SIGMA_DELTA);
/linux/include/linux/iio/adc/
H A Dad_sigma_delta.h176 int ad_sd_write_reg(struct ad_sigma_delta *sigma_delta, unsigned int reg,