Lines Matching refs:ticks
236 unsigned int gpmc_ticks_to_ns(unsigned int ticks) in gpmc_ticks_to_ns() argument
238 return ticks * gpmc_get_fclk_period() / 1000; in gpmc_ticks_to_ns()
241 static unsigned int gpmc_ticks_to_ps(unsigned int ticks) in gpmc_ticks_to_ps() argument
243 return ticks * gpmc_get_fclk_period(); in gpmc_ticks_to_ps()
248 unsigned long ticks = gpmc_ps_to_ticks(time_ps); in gpmc_round_ps_to_ticks() local
250 return ticks * gpmc_get_fclk_period(); in gpmc_round_ps_to_ticks()
295 int ticks, mask, nr_bits; in set_gpmc_timing_reg() local
298 ticks = 0; in set_gpmc_timing_reg()
300 ticks = gpmc_ns_to_ticks(time); in set_gpmc_timing_reg()
302 if (ticks >= 1 << nr_bits) { in set_gpmc_timing_reg()
305 cs, name, time, ticks, 1 << nr_bits); in set_gpmc_timing_reg()
315 cs, name, ticks, gpmc_get_fclk_period() * ticks / 1000, in set_gpmc_timing_reg()
319 l |= ticks << st_bit; in set_gpmc_timing_reg()