Lines Matching refs:channel_id

67 	int channel_id = MRT_CHANNEL_ID(dev);  in nxp_mrt_stop()  local
69 LOG_DBG("MRT@%p channel %d stopped", base, channel_id); in nxp_mrt_stop()
73 base->CHANNEL[channel_id].INTVAL = MRT_CHANNEL_INTVAL_LOAD(1); in nxp_mrt_stop()
83 int channel_id = MRT_CHANNEL_ID(dev); in nxp_mrt_start() local
88 base, channel_id, config->info.max_top_value); in nxp_mrt_start()
93 base->CHANNEL[channel_id].INTVAL = data->top; in nxp_mrt_start()
95 LOG_DBG("MRT@%p channel %d started with top value %d", base, channel_id, data->top); in nxp_mrt_start()
104 int channel_id = MRT_CHANNEL_ID(dev); in nxp_mrt_get_value() local
106 *ticks = base->CHANNEL[channel_id].TIMER & MRT_CHANNEL_TIMER_VALUE_MASK; in nxp_mrt_get_value()
117 int channel_id = MRT_CHANNEL_ID(dev); in nxp_mrt_set_top_value() local
120 bool active = base->CHANNEL[channel_id].STAT & MRT_CHANNEL_STAT_RUN_MASK; in nxp_mrt_set_top_value()
121 uint32_t current_val = base->CHANNEL[channel_id].TIMER & MRT_CHANNEL_TIMER_VALUE_MASK; in nxp_mrt_set_top_value()
134 LOG_DBG("Set MRT@%p channel %d top value to %d", base, channel_id, data->top); in nxp_mrt_set_top_value()
142 base, channel_id, cfg->ticks, current_val); in nxp_mrt_set_top_value()
152 base->CHANNEL[channel_id].INTVAL = MRT_CHANNEL_INTVAL_IVALUE(cfg->ticks) | in nxp_mrt_set_top_value()
156 base, channel_id, in nxp_mrt_set_top_value()
157 base->CHANNEL[channel_id].INTVAL & MRT_CHANNEL_INTVAL_IVALUE_MASK); in nxp_mrt_set_top_value()
166 int channel_id = MRT_CHANNEL_ID(dev); in nxp_mrt_get_top_value() local
168 return base->CHANNEL[channel_id].INTVAL & MRT_CHANNEL_INTVAL_IVALUE_MASK; in nxp_mrt_get_top_value()
175 int channel_id = MRT_CHANNEL_ID(dev); in nxp_mrt_get_pending_int() local
177 return base->CHANNEL[channel_id].STAT & MRT_CHANNEL_STAT_INTFLAG_MASK; in nxp_mrt_get_pending_int()