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