Lines Matching refs:zn
635 static void thermal_irq_enable(struct tegra_thermctl_zone *zn)
640 mutex_lock(&zn->ts->thermctl_lock);
641 r = readl(zn->ts->regs + THERMCTL_INTR_ENABLE);
642 r = REG_SET_MASK(r, zn->sg->thermctl_isr_mask, TH_INTR_UP_DN_EN);
643 writel(r, zn->ts->regs + THERMCTL_INTR_ENABLE);
644 mutex_unlock(&zn->ts->thermctl_lock);
647 static void thermal_irq_disable(struct tegra_thermctl_zone *zn)
652 mutex_lock(&zn->ts->thermctl_lock);
653 r = readl(zn->ts->regs + THERMCTL_INTR_DISABLE);
654 r = REG_SET_MASK(r, zn->sg->thermctl_isr_mask, 0);
655 writel(r, zn->ts->regs + THERMCTL_INTR_DISABLE);
656 mutex_unlock(&zn->ts->thermctl_lock);