Lines Matching refs:gpt_wdt
531 static inline void mpc52xx_gpt_wdt_ping(struct mpc52xx_gpt_priv *gpt_wdt) in mpc52xx_gpt_wdt_ping() argument
535 raw_spin_lock_irqsave(&gpt_wdt->lock, flags); in mpc52xx_gpt_wdt_ping()
536 out_8((u8 *) &gpt_wdt->regs->mode, MPC52xx_GPT_MODE_WDT_PING); in mpc52xx_gpt_wdt_ping()
537 raw_spin_unlock_irqrestore(&gpt_wdt->lock, flags); in mpc52xx_gpt_wdt_ping()
544 struct mpc52xx_gpt_priv *gpt_wdt = file->private_data; in mpc52xx_wdt_write() local
545 mpc52xx_gpt_wdt_ping(gpt_wdt); in mpc52xx_wdt_write()
557 struct mpc52xx_gpt_priv *gpt_wdt = file->private_data; in mpc52xx_wdt_ioctl() local
577 mpc52xx_gpt_wdt_ping(gpt_wdt); in mpc52xx_wdt_ioctl()
585 ret = mpc52xx_gpt_do_start(gpt_wdt, real_timeout, 0, 1); in mpc52xx_wdt_ioctl()
598 mpc52xx_gpt_timer_period(gpt_wdt) + 500000000ULL; in mpc52xx_wdt_ioctl()
638 struct mpc52xx_gpt_priv *gpt_wdt = file->private_data; in mpc52xx_wdt_release() local
641 raw_spin_lock_irqsave(&gpt_wdt->lock, flags); in mpc52xx_wdt_release()
642 clrbits32(&gpt_wdt->regs->mode, in mpc52xx_wdt_release()
644 gpt_wdt->wdt_mode &= ~MPC52xx_GPT_IS_WDT; in mpc52xx_wdt_release()
645 raw_spin_unlock_irqrestore(&gpt_wdt->lock, flags); in mpc52xx_wdt_release()