Home
last modified time | relevance | path

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

/drivers/iio/adc/
Dat91_adc.c238 u16 ts_pendbc; member
379 reg |= AT91_ADC_PENDBC_(st->ts_pendbc) & AT91_ADC_PENDBC; in at91_adc_rl_interrupt()
1026 st->ts_pendbc = round_up(TOUCH_PEN_DETECT_DEBOUNCE_US * adc_clk_khz / in at91_ts_hw_init()
1029 while (st->ts_pendbc >> ++i) in at91_ts_hw_init()
1031 if (abs(st->ts_pendbc - (1 << i)) < abs(st->ts_pendbc - (1 << (i - 1)))) in at91_ts_hw_init()
1032 st->ts_pendbc = i; in at91_ts_hw_init()
1034 st->ts_pendbc = i - 1; in at91_ts_hw_init()
1040 reg |= AT91_ADC_PENDBC_(st->ts_pendbc) & AT91_ADC_PENDBC; in at91_ts_hw_init()
1068 reg |= AT91_ADC_TSMR_PENDBC_(st->ts_pendbc) & AT91_ADC_TSMR_PENDBC; in at91_ts_hw_init()