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