Home
last modified time | relevance | path

Searched refs:ADC_READ4 (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/arm/ti/
H A Dti_adc.c153 ADC_WRITE4(sc, ADC_CTRL, ADC_READ4(sc, ADC_CTRL) & ~ADC_CTRL_ENABLE); in ti_adc_disable()
160 ADC_WRITE4(sc, ADC_IRQSTATUS, ADC_READ4(sc, ADC_IRQSTATUS)); in ti_adc_disable()
163 count = ADC_READ4(sc, ADC_FIFO0COUNT) & ADC_FIFO_COUNT_MSK; in ti_adc_disable()
165 (void)ADC_READ4(sc, ADC_FIFO0DATA); in ti_adc_disable()
166 count = ADC_READ4(sc, ADC_FIFO0COUNT) & ADC_FIFO_COUNT_MSK; in ti_adc_disable()
169 count = ADC_READ4(sc, ADC_FIFO1COUNT) & ADC_FIFO_COUNT_MSK; in ti_adc_disable()
171 (void)ADC_READ4(sc, ADC_FIFO1DATA); in ti_adc_disable()
172 count = ADC_READ4(sc, ADC_FIFO1COUNT) & ADC_FIFO_COUNT_MSK; in ti_adc_disable()
198 if (enabled != ADC_READ4(sc, ADC_STEPENABLE)) in ti_adc_setup()
216 val = ADC_READ4(sc, reg); in ti_adc_input_setup()
[all …]
H A Dti_adcvar.h32 #define ADC_READ4(_sc, reg) bus_read_4((_sc)->sc_mem_res, reg) macro