Lines Matching defs:period
396 static int mpc52xx_gpt_do_start(struct mpc52xx_gpt_priv *gpt, u64 period,
412 /* Determine the number of clocks in the requested period. 64 bit
416 clocks = period * (u64)gpt->ipb_freq;
424 * 'clocks' is the number of clock ticks in the period. The timer
461 * @period: period of timer in ns; max. ~130s @ 33MHz IPB clock
466 int mpc52xx_gpt_start_timer(struct mpc52xx_gpt_priv *gpt, u64 period,
469 return mpc52xx_gpt_do_start(gpt, period, continuous, 0);
497 * mpc52xx_gpt_timer_period - Read the timer period
500 * Returns the timer period in ns
504 u64 period;
509 period = in_be32(&gpt->regs->count);
512 prescale = period >> 16;
513 period &= 0xffff;
516 period = period * prescale * 1000000000ULL;
517 do_div(period, (u64)gpt->ipb_freq);
518 return period;
686 const u32 *period)
694 if (!period || *period == 0)
697 real_timeout = (u64) *period * 1000000000ULL;
701 dev_info(gpt->dev, "watchdog set to %us timeout\n", *period);
713 const u32 *period)