Lines Matching refs:zn
667 static void thermal_irq_enable(struct tegra_thermctl_zone *zn) in thermal_irq_enable() argument
672 mutex_lock(&zn->ts->thermctl_lock); in thermal_irq_enable()
673 r = readl(zn->ts->regs + THERMCTL_INTR_ENABLE); in thermal_irq_enable()
674 r = REG_SET_MASK(r, zn->sg->thermctl_isr_mask, TH_INTR_UP_DN_EN); in thermal_irq_enable()
675 writel(r, zn->ts->regs + THERMCTL_INTR_ENABLE); in thermal_irq_enable()
676 mutex_unlock(&zn->ts->thermctl_lock); in thermal_irq_enable()
679 static void thermal_irq_disable(struct tegra_thermctl_zone *zn) in thermal_irq_disable() argument
684 mutex_lock(&zn->ts->thermctl_lock); in thermal_irq_disable()
685 r = readl(zn->ts->regs + THERMCTL_INTR_DISABLE); in thermal_irq_disable()
686 r = REG_SET_MASK(r, zn->sg->thermctl_isr_mask, 0); in thermal_irq_disable()
687 writel(r, zn->ts->regs + THERMCTL_INTR_DISABLE); in thermal_irq_disable()
688 mutex_unlock(&zn->ts->thermctl_lock); in thermal_irq_disable()