Home
last modified time | relevance | path

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

/linux/drivers/iio/adc/
H A Dat91_adc.c257 u16 ts_pendbc; member
396 reg |= AT91_ADC_PENDBC_(st->ts_pendbc) & AT91_ADC_PENDBC; in at91_adc_rl_interrupt()
866 st->ts_pendbc = round_up(TOUCH_PEN_DETECT_DEBOUNCE_US * adc_clk_khz / in at91_ts_hw_init()
869 while (st->ts_pendbc >> ++i) in at91_ts_hw_init()
871 if (abs(st->ts_pendbc - (1 << i)) < abs(st->ts_pendbc - (1 << (i - 1)))) in at91_ts_hw_init()
872 st->ts_pendbc = i; in at91_ts_hw_init()
874 st->ts_pendbc = i - 1; in at91_ts_hw_init()
880 reg |= AT91_ADC_PENDBC_(st->ts_pendbc) & AT91_ADC_PENDBC; in at91_ts_hw_init()
908 reg |= AT91_ADC_TSMR_PENDBC_(st->ts_pendbc) & AT91_ADC_TSMR_PENDBC; in at91_ts_hw_init()