Lines Matching defs:period
385 static int mpc52xx_gpt_do_start(struct mpc52xx_gpt_priv *gpt, u64 period,
401 /* Determine the number of clocks in the requested period. 64 bit
405 clocks = period * (u64)gpt->ipb_freq;
413 * 'clocks' is the number of clock ticks in the period. The timer
450 * @period: period of timer in ns; max. ~130s @ 33MHz IPB clock
455 int mpc52xx_gpt_start_timer(struct mpc52xx_gpt_priv *gpt, u64 period,
458 return mpc52xx_gpt_do_start(gpt, period, continuous, 0);
486 * mpc52xx_gpt_timer_period - Read the timer period
489 * Returns the timer period in ns
493 u64 period;
498 period = in_be32(&gpt->regs->count);
501 prescale = period >> 16;
502 period &= 0xffff;
505 period = period * prescale * 1000000000ULL;
506 do_div(period, gpt->ipb_freq);
507 return period;
676 const u32 *period)
684 if (!period || *period == 0)
687 real_timeout = (u64) *period * 1000000000ULL;
691 dev_info(gpt->dev, "watchdog set to %us timeout\n", *period);
703 const u32 *period)