adc: make internal functions static