Lines Matching refs:adc_info
162 const struct stm32_adc_info *adc_info; member
1667 res = adc->cfg->adc_info->resolutions[0]; in stm32_adc_of_get_resolution()
1669 for (i = 0; i < adc->cfg->adc_info->num_res; i++) in stm32_adc_of_get_resolution()
1670 if (res == adc->cfg->adc_info->resolutions[i]) in stm32_adc_of_get_resolution()
1672 if (i >= adc->cfg->adc_info->num_res) { in stm32_adc_of_get_resolution()
1724 chan->scan_type.realbits = adc->cfg->adc_info->resolutions[adc->res]; in stm32_adc_chan_init_one()
1742 const struct stm32_adc_info *adc_info = adc->cfg->adc_info; in stm32_adc_chan_of_init() local
1751 if (ret > adc_info->max_channels) { in stm32_adc_chan_of_init()
1760 if (ret > adc_info->max_channels) { in stm32_adc_chan_of_init()
1792 if (val >= adc_info->max_channels) { in stm32_adc_chan_of_init()
1811 if (diff[i].vinp >= adc_info->max_channels || in stm32_adc_chan_of_init()
1812 diff[i].vinn >= adc_info->max_channels) { in stm32_adc_chan_of_init()
2086 .adc_info = &stm32f4_adc_info,
2097 .adc_info = &stm32h7_adc_info,
2109 .adc_info = &stm32h7_adc_info,