Lines Matching refs:STM32H7_ADC_CR
853 stm32_adc_set_bits(adc, STM32H7_ADC_CR, STM32H7_ADSTART); in stm32h7_adc_start_conv()
862 stm32_adc_set_bits(adc, STM32H7_ADC_CR, STM32H7_ADSTP); in stm32h7_adc_stop_conv()
864 ret = stm32_adc_readl_poll_timeout(STM32H7_ADC_CR, val, in stm32h7_adc_stop_conv()
889 stm32_adc_set_bits(adc, STM32H7_ADC_CR, STM32H7_ADSTART); in stm32mp13_adc_start_conv()
899 stm32_adc_clr_bits(adc, STM32H7_ADC_CR, STM32H7_DEEPPWD); in stm32h7_adc_exit_pwr_down()
900 stm32_adc_set_bits(adc, STM32H7_ADC_CR, STM32H7_ADVREGEN); in stm32h7_adc_exit_pwr_down()
904 stm32_adc_set_bits(adc, STM32H7_ADC_CR, STM32H7_BOOST); in stm32h7_adc_exit_pwr_down()
916 stm32_adc_set_bits(adc, STM32H7_ADC_CR, STM32H7_DEEPPWD); in stm32h7_adc_exit_pwr_down()
926 stm32_adc_clr_bits(adc, STM32H7_ADC_CR, STM32H7_BOOST); in stm32h7_adc_enter_pwr_down()
929 stm32_adc_set_bits(adc, STM32H7_ADC_CR, STM32H7_DEEPPWD); in stm32h7_adc_enter_pwr_down()
938 stm32_adc_set_bits(adc, STM32H7_ADC_CR, STM32H7_ADEN); in stm32h7_adc_enable()
945 stm32_adc_set_bits(adc, STM32H7_ADC_CR, STM32H7_ADDIS); in stm32h7_adc_enable()
961 if (!(stm32_adc_readl(adc, STM32H7_ADC_CR) & STM32H7_ADEN)) in stm32h7_adc_disable()
965 stm32_adc_set_bits(adc, STM32H7_ADC_CR, STM32H7_ADDIS); in stm32h7_adc_disable()
966 ret = stm32_adc_readl_poll_timeout(STM32H7_ADC_CR, val, in stm32h7_adc_disable()
988 stm32_adc_clr_bits(adc, STM32H7_ADC_CR, lincalrdyw_mask); in stm32h7_adc_read_selfcalib()
991 ret = stm32_adc_readl_poll_timeout(STM32H7_ADC_CR, val, in stm32h7_adc_read_selfcalib()
1030 stm32_adc_set_bits(adc, STM32H7_ADC_CR, lincalrdyw_mask); in stm32h7_adc_restore_selfcalib()
1031 ret = stm32_adc_readl_poll_timeout(STM32H7_ADC_CR, val, in stm32h7_adc_restore_selfcalib()
1046 stm32_adc_clr_bits(adc, STM32H7_ADC_CR, lincalrdyw_mask); in stm32h7_adc_restore_selfcalib()
1047 ret = stm32_adc_readl_poll_timeout(STM32H7_ADC_CR, val, in stm32h7_adc_restore_selfcalib()
1105 stm32_adc_clr_bits(adc, STM32H7_ADC_CR, msk); in stm32h7_adc_selfcalib()
1108 stm32_adc_set_bits(adc, STM32H7_ADC_CR, STM32H7_ADCAL); in stm32h7_adc_selfcalib()
1109 ret = stm32_adc_readl_poll_timeout(STM32H7_ADC_CR, val, in stm32h7_adc_selfcalib()
1123 stm32_adc_set_bits(adc, STM32H7_ADC_CR, msk); in stm32h7_adc_selfcalib()
1124 stm32_adc_set_bits(adc, STM32H7_ADC_CR, STM32H7_ADCAL); in stm32h7_adc_selfcalib()
1125 ret = stm32_adc_readl_poll_timeout(STM32H7_ADC_CR, val, in stm32h7_adc_selfcalib()
1135 stm32_adc_clr_bits(adc, STM32H7_ADC_CR, msk); in stm32h7_adc_selfcalib()
1160 val = stm32_adc_readl(adc, STM32H7_ADC_CR) & STM32H7_LINCALRDYW_MASK; in stm32h7_adc_check_selfcalib()