Lines Matching refs:zn
630 static void thermal_irq_enable(struct tegra_thermctl_zone *zn) in thermal_irq_enable() argument
635 mutex_lock(&zn->ts->thermctl_lock); in thermal_irq_enable()
636 r = readl(zn->ts->regs + THERMCTL_INTR_ENABLE); in thermal_irq_enable()
637 r = REG_SET_MASK(r, zn->sg->thermctl_isr_mask, TH_INTR_UP_DN_EN); in thermal_irq_enable()
638 writel(r, zn->ts->regs + THERMCTL_INTR_ENABLE); in thermal_irq_enable()
639 mutex_unlock(&zn->ts->thermctl_lock); in thermal_irq_enable()
642 static void thermal_irq_disable(struct tegra_thermctl_zone *zn) in thermal_irq_disable() argument
647 mutex_lock(&zn->ts->thermctl_lock); in thermal_irq_disable()
648 r = readl(zn->ts->regs + THERMCTL_INTR_DISABLE); in thermal_irq_disable()
649 r = REG_SET_MASK(r, zn->sg->thermctl_isr_mask, 0); in thermal_irq_disable()
650 writel(r, zn->ts->regs + THERMCTL_INTR_DISABLE); in thermal_irq_disable()
651 mutex_unlock(&zn->ts->thermctl_lock); in thermal_irq_disable()