Home
last modified time | relevance | path

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

/drivers/iio/adc/
Dat91_adc.c257 u16 ts_pendbc; member
398 reg |= AT91_ADC_PENDBC_(st->ts_pendbc) & AT91_ADC_PENDBC; in at91_adc_rl_interrupt()
872 st->ts_pendbc = round_up(TOUCH_PEN_DETECT_DEBOUNCE_US * adc_clk_khz / in at91_ts_hw_init()
875 while (st->ts_pendbc >> ++i) in at91_ts_hw_init()
877 if (abs(st->ts_pendbc - (1 << i)) < abs(st->ts_pendbc - (1 << (i - 1)))) in at91_ts_hw_init()
878 st->ts_pendbc = i; in at91_ts_hw_init()
880 st->ts_pendbc = i - 1; in at91_ts_hw_init()
886 reg |= AT91_ADC_PENDBC_(st->ts_pendbc) & AT91_ADC_PENDBC; in at91_ts_hw_init()
914 reg |= AT91_ADC_TSMR_PENDBC_(st->ts_pendbc) & AT91_ADC_TSMR_PENDBC; in at91_ts_hw_init()