Lines Matching refs:thrcts
246 uint16_t thrcts; in adc_npcx_isr() local
252 thrcts = inst->THRCTS & in adc_npcx_isr()
255 thrcts |= BIT(i); in adc_npcx_isr()
256 inst->THRCTS = thrcts; in adc_npcx_isr()
622 uint16_t thrcts; in adc_npcx_threshold_enable_irq() local
642 thrcts = inst->THRCTS & ~GENMASK(config->threshold_count - 1, 0); in adc_npcx_threshold_enable_irq()
648 thrcts |= BIT(th_sel); in adc_npcx_threshold_enable_irq()
651 thrcts |= BIT(NPCX_THRCTS_THR1_IEN + th_sel); in adc_npcx_threshold_enable_irq()
653 inst->THRCTS = thrcts; in adc_npcx_threshold_enable_irq()
668 uint16_t thrcts; in adc_npcx_threshold_disable_irq() local
686 thrcts = inst->THRCTS & ~GENMASK(config->threshold_count - 1, 0); in adc_npcx_threshold_disable_irq()
689 thrcts &= ~BIT(NPCX_THRCTS_THR1_IEN + th_sel); in adc_npcx_threshold_disable_irq()
690 inst->THRCTS = thrcts; in adc_npcx_threshold_disable_irq()