Lines Matching refs:t_ctrl
517 struct adc_npcx_threshold_control *const t_ctrl = in adc_npcx_threshold_ctrl_set_param() local
536 t_ctrl->chnsel = (uint8_t)param->val; in adc_npcx_threshold_ctrl_set_param()
540 t_ctrl->l_h = !!param->val; in adc_npcx_threshold_ctrl_set_param()
548 t_ctrl->thrval = (uint16_t)param->val; in adc_npcx_threshold_ctrl_set_param()
556 t_ctrl->work = (struct k_work *)param->val; in adc_npcx_threshold_ctrl_set_param()
572 struct adc_npcx_threshold_control *const t_ctrl = in adc_npcx_threshold_ctrl_setup() local
588 if (t_ctrl->chnsel >= config->channel_count || in adc_npcx_threshold_ctrl_setup()
589 t_ctrl->thrval >= api->ref_internal || in adc_npcx_threshold_ctrl_setup()
590 t_ctrl->thrval == 0 || t_ctrl->work == 0) { in adc_npcx_threshold_ctrl_setup()
597 NPCX_THRCTL_CHNSEL, t_ctrl->chnsel); in adc_npcx_threshold_ctrl_setup()
599 if (t_ctrl->l_h) { in adc_npcx_threshold_ctrl_setup()
606 t_ctrl->thrval); in adc_npcx_threshold_ctrl_setup()
620 struct adc_npcx_threshold_control *const t_ctrl = in adc_npcx_threshold_enable_irq() local
630 if (t_ctrl->chnsel >= config->channel_count || in adc_npcx_threshold_enable_irq()
631 t_ctrl->thrval >= api->ref_internal || in adc_npcx_threshold_enable_irq()
632 t_ctrl->thrval == 0 || t_ctrl->work == 0) { in adc_npcx_threshold_enable_irq()