Searched refs:adc_clk_khz (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/iio/adc/
H A Dat91_adc.c185 u32 (*calc_startup_ticks)(u32 startup_time, u32 adc_clk_khz);
782 static u32 calc_startup_ticks_9260(u32 startup_time, u32 adc_clk_khz) calc_startup_ticks_9260() argument
790 return round_up((startup_time * adc_clk_khz / 1000) - 1, 8) / 8; calc_startup_ticks_9260()
793 static u32 calc_startup_ticks_9x5(u32 startup_time, u32 adc_clk_khz) calc_startup_ticks_9x5() argument
808 ticks = startup_time * adc_clk_khz / 1000; calc_startup_ticks_9x5()
1002 static int at91_ts_hw_init(struct at91_adc_state *st, u32 adc_clk_khz) at91_ts_hw_init() argument
1011 st->ts_pendbc = round_up(TOUCH_PEN_DETECT_DEBOUNCE_US * adc_clk_khz / at91_ts_hw_init()
1032 adc_clk_khz / 1000) - 1, 1); at91_ts_hw_init()
1061 adc_clk_khz / 1000) - 1, 1); at91_ts_hw_init()
1129 unsigned int prsc, mstrclk, ticks, adc_clk, adc_clk_khz, shtim; at91_adc_probe() local
1224 adc_clk_khz = adc_clk / 1000; at91_adc_probe()
1236 ticks = (*st->caps->calc_startup_ticks)(st->startup_time, adc_clk_khz); at91_adc_probe()
1244 shtim = round_up((st->sample_hold_time * adc_clk_khz / 1000) at91_adc_probe()
1291 at91_ts_hw_init(st, adc_clk_khz); at91_adc_probe()

Completed in 64 milliseconds