Searched refs:adc_clk_khz (Results 1 – 2 of 2) sorted by relevance
204 u32 (*calc_startup_ticks)(u32 startup_time, u32 adc_clk_khz);761 static u32 calc_startup_ticks_9260(u32 startup_time, u32 adc_clk_khz) in calc_startup_ticks_9260() argument769 return round_up((startup_time * adc_clk_khz / 1000) - 1, 8) / 8; in calc_startup_ticks_9260()772 static u32 calc_startup_ticks_9x5(u32 startup_time, u32 adc_clk_khz) in calc_startup_ticks_9x5() argument787 ticks = startup_time * adc_clk_khz / 1000; in calc_startup_ticks_9x5()861 static int at91_ts_hw_init(struct iio_dev *idev, u32 adc_clk_khz) in at91_ts_hw_init() argument872 st->ts_pendbc = round_up(TOUCH_PEN_DETECT_DEBOUNCE_US * adc_clk_khz / in at91_ts_hw_init()893 adc_clk_khz / 1000) - 1, 1); in at91_ts_hw_init()902 tssctim = DIV_ROUND_UP(TOUCH_SCTIM_US * adc_clk_khz / 1000, 4); in at91_ts_hw_init()904 adc_clk_khz, tssctim); in at91_ts_hw_init()[all …]
1555 unsigned adc_clk_khz) in at91_adc_startup_time() argument1570 ticks_min = startup_time_min * adc_clk_khz / 1000; in at91_adc_startup_time()