dfsdm 71 drivers/iio/adc/stm32-dfsdm-adc.c struct stm32_dfsdm *dfsdm; dfsdm 315 drivers/iio/adc/stm32-dfsdm-adc.c struct stm32_dfsdm_filter *fl = &adc->dfsdm->fl_list[adc->fl_id]; dfsdm 336 drivers/iio/adc/stm32-dfsdm-adc.c struct regmap *regmap = adc->dfsdm->regmap; dfsdm 356 drivers/iio/adc/stm32-dfsdm-adc.c struct regmap *regmap = adc->dfsdm->regmap; dfsdm 368 drivers/iio/adc/stm32-dfsdm-adc.c static int stm32_dfsdm_chan_configure(struct stm32_dfsdm *dfsdm, dfsdm 372 drivers/iio/adc/stm32-dfsdm-adc.c struct regmap *regmap = dfsdm->regmap; dfsdm 394 drivers/iio/adc/stm32-dfsdm-adc.c struct stm32_dfsdm *dfsdm = adc->dfsdm; dfsdm 398 drivers/iio/adc/stm32-dfsdm-adc.c ret = regmap_update_bits(dfsdm->regmap, DFSDM_CR1(fl_id), dfsdm 408 drivers/iio/adc/stm32-dfsdm-adc.c return regmap_update_bits(dfsdm->regmap, DFSDM_CR1(fl_id), dfsdm 413 drivers/iio/adc/stm32-dfsdm-adc.c static void stm32_dfsdm_stop_filter(struct stm32_dfsdm *dfsdm, dfsdm 417 drivers/iio/adc/stm32-dfsdm-adc.c regmap_update_bits(dfsdm->regmap, DFSDM_CR1(fl_id), dfsdm 426 drivers/iio/adc/stm32-dfsdm-adc.c struct regmap *regmap = adc->dfsdm->regmap; dfsdm 455 drivers/iio/adc/stm32-dfsdm-adc.c struct regmap *regmap = adc->dfsdm->regmap; dfsdm 456 drivers/iio/adc/stm32-dfsdm-adc.c struct stm32_dfsdm_filter *fl = &adc->dfsdm->fl_list[fl_id]; dfsdm 499 drivers/iio/adc/stm32-dfsdm-adc.c struct regmap *regmap = adc->dfsdm->regmap; dfsdm 500 drivers/iio/adc/stm32-dfsdm-adc.c struct stm32_dfsdm_filter *fl = &adc->dfsdm->fl_list[fl_id]; dfsdm 594 drivers/iio/adc/stm32-dfsdm-adc.c static int stm32_dfsdm_channel_parse_of(struct stm32_dfsdm *dfsdm, dfsdm 612 drivers/iio/adc/stm32-dfsdm-adc.c if (ch->channel >= dfsdm->num_chs) { dfsdm 615 drivers/iio/adc/stm32-dfsdm-adc.c ch->channel, dfsdm->num_chs); dfsdm 629 drivers/iio/adc/stm32-dfsdm-adc.c df_ch = &dfsdm->ch_list[ch->channel]; dfsdm 705 drivers/iio/adc/stm32-dfsdm-adc.c struct stm32_dfsdm_channel *ch = &adc->dfsdm->ch_list[chan->channel]; dfsdm 735 drivers/iio/adc/stm32-dfsdm-adc.c struct regmap *regmap = adc->dfsdm->regmap; dfsdm 767 drivers/iio/adc/stm32-dfsdm-adc.c struct regmap *regmap = adc->dfsdm->regmap; dfsdm 769 drivers/iio/adc/stm32-dfsdm-adc.c stm32_dfsdm_stop_filter(adc->dfsdm, adc->fl_id); dfsdm 824 drivers/iio/adc/stm32-dfsdm-adc.c struct stm32_dfsdm_filter *fl = &adc->dfsdm->fl_list[adc->fl_id]; dfsdm 905 drivers/iio/adc/stm32-dfsdm-adc.c .src_addr = (dma_addr_t)adc->dfsdm->phys_base, dfsdm 948 drivers/iio/adc/stm32-dfsdm-adc.c ret = regmap_update_bits(adc->dfsdm->regmap, dfsdm 954 drivers/iio/adc/stm32-dfsdm-adc.c ret = regmap_update_bits(adc->dfsdm->regmap, dfsdm 978 drivers/iio/adc/stm32-dfsdm-adc.c regmap_update_bits(adc->dfsdm->regmap, DFSDM_CR1(adc->fl_id), dfsdm 1010 drivers/iio/adc/stm32-dfsdm-adc.c ret = stm32_dfsdm_start_dfsdm(adc->dfsdm); dfsdm 1031 drivers/iio/adc/stm32-dfsdm-adc.c stm32_dfsdm_stop_dfsdm(adc->dfsdm); dfsdm 1070 drivers/iio/adc/stm32-dfsdm-adc.c stm32_dfsdm_stop_dfsdm(adc->dfsdm); dfsdm 1151 drivers/iio/adc/stm32-dfsdm-adc.c ret = stm32_dfsdm_start_dfsdm(adc->dfsdm); dfsdm 1155 drivers/iio/adc/stm32-dfsdm-adc.c ret = regmap_update_bits(adc->dfsdm->regmap, DFSDM_CR2(adc->fl_id), dfsdm 1164 drivers/iio/adc/stm32-dfsdm-adc.c regmap_update_bits(adc->dfsdm->regmap, DFSDM_CR2(adc->fl_id), dfsdm 1173 drivers/iio/adc/stm32-dfsdm-adc.c regmap_update_bits(adc->dfsdm->regmap, DFSDM_CR2(adc->fl_id), dfsdm 1188 drivers/iio/adc/stm32-dfsdm-adc.c stm32_dfsdm_stop_dfsdm(adc->dfsdm); dfsdm 1198 drivers/iio/adc/stm32-dfsdm-adc.c struct stm32_dfsdm_channel *ch = &adc->dfsdm->ch_list[chan->channel]; dfsdm 1223 drivers/iio/adc/stm32-dfsdm-adc.c spi_freq = adc->dfsdm->spi_master_freq; dfsdm 1227 drivers/iio/adc/stm32-dfsdm-adc.c spi_freq = adc->dfsdm->spi_master_freq / 2; dfsdm 1312 drivers/iio/adc/stm32-dfsdm-adc.c struct regmap *regmap = adc->dfsdm->regmap; dfsdm 1395 drivers/iio/adc/stm32-dfsdm-adc.c ret = stm32_dfsdm_channel_parse_of(adc->dfsdm, indio_dev, ch); dfsdm 1419 drivers/iio/adc/stm32-dfsdm-adc.c return stm32_dfsdm_chan_configure(adc->dfsdm, dfsdm 1420 drivers/iio/adc/stm32-dfsdm-adc.c &adc->dfsdm->ch_list[ch->channel]); dfsdm 1443 drivers/iio/adc/stm32-dfsdm-adc.c d_ch = &adc->dfsdm->ch_list[ch->channel]; dfsdm 1445 drivers/iio/adc/stm32-dfsdm-adc.c adc->spi_freq = adc->dfsdm->spi_master_freq; dfsdm 1467 drivers/iio/adc/stm32-dfsdm-adc.c if (num_ch < 0 || num_ch > adc->dfsdm->num_chs) { dfsdm 1566 drivers/iio/adc/stm32-dfsdm-adc.c adc->dfsdm = dev_get_drvdata(dev->parent); dfsdm 1575 drivers/iio/adc/stm32-dfsdm-adc.c if (ret != 0 || adc->fl_id >= adc->dfsdm->num_fls) { dfsdm 1613 drivers/iio/adc/stm32-dfsdm-adc.c adc->dfsdm->fl_list[adc->fl_id].ford = val; dfsdm 1617 drivers/iio/adc/stm32-dfsdm-adc.c adc->dfsdm->fl_list[adc->fl_id].sync_mode = val; dfsdm 1681 drivers/iio/adc/stm32-dfsdm-adc.c ch = &adc->dfsdm->ch_list[chan->channel]; dfsdm 1682 drivers/iio/adc/stm32-dfsdm-adc.c ret = stm32_dfsdm_chan_configure(adc->dfsdm, ch); dfsdm 86 drivers/iio/adc/stm32-dfsdm-core.c struct stm32_dfsdm dfsdm; /* common data exported for all instances */ dfsdm 95 drivers/iio/adc/stm32-dfsdm-core.c static inline struct dfsdm_priv *to_stm32_dfsdm_priv(struct stm32_dfsdm *dfsdm) dfsdm 97 drivers/iio/adc/stm32-dfsdm-core.c return container_of(dfsdm, struct dfsdm_priv, dfsdm); dfsdm 100 drivers/iio/adc/stm32-dfsdm-core.c static int stm32_dfsdm_clk_prepare_enable(struct stm32_dfsdm *dfsdm) dfsdm 102 drivers/iio/adc/stm32-dfsdm-core.c struct dfsdm_priv *priv = to_stm32_dfsdm_priv(dfsdm); dfsdm 116 drivers/iio/adc/stm32-dfsdm-core.c static void stm32_dfsdm_clk_disable_unprepare(struct stm32_dfsdm *dfsdm) dfsdm 118 drivers/iio/adc/stm32-dfsdm-core.c struct dfsdm_priv *priv = to_stm32_dfsdm_priv(dfsdm); dfsdm 131 drivers/iio/adc/stm32-dfsdm-core.c int stm32_dfsdm_start_dfsdm(struct stm32_dfsdm *dfsdm) dfsdm 133 drivers/iio/adc/stm32-dfsdm-core.c struct dfsdm_priv *priv = to_stm32_dfsdm_priv(dfsdm); dfsdm 147 drivers/iio/adc/stm32-dfsdm-core.c ret = regmap_update_bits(dfsdm->regmap, DFSDM_CHCFGR1(0), dfsdm 154 drivers/iio/adc/stm32-dfsdm-core.c ret = regmap_update_bits(dfsdm->regmap, DFSDM_CHCFGR1(0), dfsdm 161 drivers/iio/adc/stm32-dfsdm-core.c ret = regmap_update_bits(dfsdm->regmap, DFSDM_CHCFGR1(0), dfsdm 188 drivers/iio/adc/stm32-dfsdm-core.c int stm32_dfsdm_stop_dfsdm(struct stm32_dfsdm *dfsdm) dfsdm 190 drivers/iio/adc/stm32-dfsdm-core.c struct dfsdm_priv *priv = to_stm32_dfsdm_priv(dfsdm); dfsdm 195 drivers/iio/adc/stm32-dfsdm-core.c ret = regmap_update_bits(dfsdm->regmap, DFSDM_CHCFGR1(0), dfsdm 202 drivers/iio/adc/stm32-dfsdm-core.c ret = regmap_update_bits(dfsdm->regmap, DFSDM_CHCFGR1(0), dfsdm 234 drivers/iio/adc/stm32-dfsdm-core.c priv->dfsdm.phys_base = res->start; dfsdm 235 drivers/iio/adc/stm32-dfsdm-core.c priv->dfsdm.base = devm_ioremap_resource(&pdev->dev, res); dfsdm 236 drivers/iio/adc/stm32-dfsdm-core.c if (IS_ERR(priv->dfsdm.base)) dfsdm 237 drivers/iio/adc/stm32-dfsdm-core.c return PTR_ERR(priv->dfsdm.base); dfsdm 283 drivers/iio/adc/stm32-dfsdm-core.c priv->dfsdm.spi_master_freq = clk_freq / (priv->spi_clk_out_div + 1); dfsdm 311 drivers/iio/adc/stm32-dfsdm-core.c struct stm32_dfsdm *dfsdm; dfsdm 322 drivers/iio/adc/stm32-dfsdm-core.c dfsdm = &priv->dfsdm; dfsdm 323 drivers/iio/adc/stm32-dfsdm-core.c dfsdm->fl_list = devm_kcalloc(&pdev->dev, dev_data->num_filters, dfsdm 324 drivers/iio/adc/stm32-dfsdm-core.c sizeof(*dfsdm->fl_list), GFP_KERNEL); dfsdm 325 drivers/iio/adc/stm32-dfsdm-core.c if (!dfsdm->fl_list) dfsdm 328 drivers/iio/adc/stm32-dfsdm-core.c dfsdm->num_fls = dev_data->num_filters; dfsdm 329 drivers/iio/adc/stm32-dfsdm-core.c dfsdm->ch_list = devm_kcalloc(&pdev->dev, dev_data->num_channels, dfsdm 330 drivers/iio/adc/stm32-dfsdm-core.c sizeof(*dfsdm->ch_list), dfsdm 332 drivers/iio/adc/stm32-dfsdm-core.c if (!dfsdm->ch_list) dfsdm 334 drivers/iio/adc/stm32-dfsdm-core.c dfsdm->num_chs = dev_data->num_channels; dfsdm 340 drivers/iio/adc/stm32-dfsdm-core.c dfsdm->regmap = devm_regmap_init_mmio_clk(&pdev->dev, "dfsdm", dfsdm 341 drivers/iio/adc/stm32-dfsdm-core.c dfsdm->base, dfsdm 343 drivers/iio/adc/stm32-dfsdm-core.c if (IS_ERR(dfsdm->regmap)) { dfsdm 344 drivers/iio/adc/stm32-dfsdm-core.c ret = PTR_ERR(dfsdm->regmap); dfsdm 350 drivers/iio/adc/stm32-dfsdm-core.c platform_set_drvdata(pdev, dfsdm); dfsdm 352 drivers/iio/adc/stm32-dfsdm-core.c ret = stm32_dfsdm_clk_prepare_enable(dfsdm); dfsdm 374 drivers/iio/adc/stm32-dfsdm-core.c stm32_dfsdm_clk_disable_unprepare(dfsdm); dfsdm 381 drivers/iio/adc/stm32-dfsdm-core.c struct stm32_dfsdm *dfsdm = platform_get_drvdata(pdev); dfsdm 388 drivers/iio/adc/stm32-dfsdm-core.c stm32_dfsdm_clk_disable_unprepare(dfsdm); dfsdm 395 drivers/iio/adc/stm32-dfsdm-core.c struct stm32_dfsdm *dfsdm = dev_get_drvdata(dev); dfsdm 396 drivers/iio/adc/stm32-dfsdm-core.c struct dfsdm_priv *priv = to_stm32_dfsdm_priv(dfsdm); dfsdm 411 drivers/iio/adc/stm32-dfsdm-core.c struct stm32_dfsdm *dfsdm = dev_get_drvdata(dev); dfsdm 412 drivers/iio/adc/stm32-dfsdm-core.c struct dfsdm_priv *priv = to_stm32_dfsdm_priv(dfsdm); dfsdm 428 drivers/iio/adc/stm32-dfsdm-core.c struct stm32_dfsdm *dfsdm = dev_get_drvdata(dev); dfsdm 430 drivers/iio/adc/stm32-dfsdm-core.c stm32_dfsdm_clk_disable_unprepare(dfsdm); dfsdm 437 drivers/iio/adc/stm32-dfsdm-core.c struct stm32_dfsdm *dfsdm = dev_get_drvdata(dev); dfsdm 439 drivers/iio/adc/stm32-dfsdm-core.c return stm32_dfsdm_clk_prepare_enable(dfsdm); dfsdm 321 drivers/iio/adc/stm32-dfsdm.h int stm32_dfsdm_start_dfsdm(struct stm32_dfsdm *dfsdm); dfsdm 322 drivers/iio/adc/stm32-dfsdm.h int stm32_dfsdm_stop_dfsdm(struct stm32_dfsdm *dfsdm);