Lines Matching refs:period
383 static int mpc52xx_gpt_do_start(struct mpc52xx_gpt_priv *gpt, u64 period, in mpc52xx_gpt_do_start() argument
403 clocks = period * (u64)gpt->ipb_freq; in mpc52xx_gpt_do_start()
453 int mpc52xx_gpt_start_timer(struct mpc52xx_gpt_priv *gpt, u64 period, in mpc52xx_gpt_start_timer() argument
456 return mpc52xx_gpt_do_start(gpt, period, continuous, 0); in mpc52xx_gpt_start_timer()
491 u64 period; in mpc52xx_gpt_timer_period() local
496 period = in_be32(&gpt->regs->count); in mpc52xx_gpt_timer_period()
499 prescale = period >> 16; in mpc52xx_gpt_timer_period()
500 period &= 0xffff; in mpc52xx_gpt_timer_period()
503 period = period * prescale * 1000000000ULL; in mpc52xx_gpt_timer_period()
504 do_div(period, gpt->ipb_freq); in mpc52xx_gpt_timer_period()
505 return period; in mpc52xx_gpt_timer_period()
674 const u32 *period) in mpc52xx_gpt_wdt_setup() argument
682 if (!period || *period == 0) in mpc52xx_gpt_wdt_setup()
685 real_timeout = (u64) *period * 1000000000ULL; in mpc52xx_gpt_wdt_setup()
689 dev_info(gpt->dev, "watchdog set to %us timeout\n", *period); in mpc52xx_gpt_wdt_setup()
701 const u32 *period) in mpc52xx_gpt_wdt_setup() argument