Lines Matching refs:new_wtcr
335 static void npcm7xx_timer_write_wtcr(NPCM7xxWatchdogTimer *t, uint32_t new_wtcr) in npcm7xx_timer_write_wtcr() argument
343 if (new_wtcr & NPCM7XX_WTCR_WTIF) { in npcm7xx_timer_write_wtcr()
344 new_wtcr &= ~NPCM7XX_WTCR_WTIF; in npcm7xx_timer_write_wtcr()
346 new_wtcr |= NPCM7XX_WTCR_WTIF; in npcm7xx_timer_write_wtcr()
348 if (new_wtcr & NPCM7XX_WTCR_WTRF) { in npcm7xx_timer_write_wtcr()
349 new_wtcr &= ~NPCM7XX_WTCR_WTRF; in npcm7xx_timer_write_wtcr()
351 new_wtcr |= NPCM7XX_WTCR_WTRF; in npcm7xx_timer_write_wtcr()
354 t->wtcr = new_wtcr; in npcm7xx_timer_write_wtcr()
356 if (new_wtcr & NPCM7XX_WTCR_WTR) { in npcm7xx_timer_write_wtcr()
359 if (new_wtcr & NPCM7XX_WTCR_WTE) { in npcm7xx_timer_write_wtcr()
362 } else if ((old_wtcr ^ new_wtcr) & NPCM7XX_WTCR_WTE) { in npcm7xx_timer_write_wtcr()
363 if (new_wtcr & NPCM7XX_WTCR_WTE) { in npcm7xx_timer_write_wtcr()