Lines Matching refs:num
43 #define TIMER_OFFSET(num) (1 << (TIMERS_PER_GROUP - 1 - num)) argument
113 unsigned int num; in detect_idle_cascade_timer() local
122 num = casc_priv->timer_num; in detect_idle_cascade_timer()
123 priv->timer[num].cascade_handle = casc_priv; in detect_idle_cascade_timer()
128 return &priv->timer[num]; in detect_idle_cascade_timer()
138 unsigned int num) in set_cascade_timer() argument
146 casc_priv = priv->timer[num].cascade_handle; in set_cascade_timer()
156 out_be32(&priv->regs[num].gtccr, 0); in set_cascade_timer()
157 out_be32(&priv->regs[num].gtbcr, tmp_ticks | TIMER_STOP); in set_cascade_timer()
159 out_be32(&priv->regs[num - 1].gtccr, 0); in set_cascade_timer()
160 out_be32(&priv->regs[num - 1].gtbcr, rem_ticks); in set_cascade_timer()
183 ret = set_cascade_timer(priv, ticks, allocated_timer->num); in get_cascade_timer()
196 unsigned int num; in get_timer() local
219 num = TIMERS_PER_GROUP - 1 - i; in get_timer()
225 out_be32(&priv->regs[num].gtbcr, in get_timer()
227 out_be32(&priv->regs[num].gtccr, 0); in get_timer()
228 priv->timer[num].cascade_handle = NULL; in get_timer()
230 return &priv->timer[num]; in get_timer()
249 struct timer_group_priv, timer[handle->num]); in mpic_start_timer()
251 clrbits32(&priv->regs[handle->num].gtbcr, TIMER_STOP); in mpic_start_timer()
264 struct timer_group_priv, timer[handle->num]); in mpic_stop_timer()
267 setbits32(&priv->regs[handle->num].gtbcr, TIMER_STOP); in mpic_stop_timer()
269 casc_priv = priv->timer[handle->num].cascade_handle; in mpic_stop_timer()
271 out_be32(&priv->regs[handle->num].gtccr, 0); in mpic_stop_timer()
272 out_be32(&priv->regs[handle->num - 1].gtccr, 0); in mpic_stop_timer()
274 out_be32(&priv->regs[handle->num].gtccr, 0); in mpic_stop_timer()
289 struct timer_group_priv, timer[handle->num]); in mpic_get_remain_time()
295 casc_priv = priv->timer[handle->num].cascade_handle; in mpic_get_remain_time()
297 tmp_ticks = in_be32(&priv->regs[handle->num].gtccr); in mpic_get_remain_time()
300 tmp_ticks = in_be32(&priv->regs[handle->num - 1].gtccr); in mpic_get_remain_time()
303 ticks = in_be32(&priv->regs[handle->num].gtccr); in mpic_get_remain_time()
322 struct timer_group_priv, timer[handle->num]); in mpic_free_timer()
329 casc_priv = priv->timer[handle->num].cascade_handle; in mpic_free_timer()
331 free_irq(priv->timer[handle->num].irq, priv->timer[handle->num].dev); in mpic_free_timer()
340 priv->timer[handle->num].cascade_handle = NULL; in mpic_free_timer()
342 priv->idle |= TIMER_OFFSET(handle->num); in mpic_free_timer()
453 priv->timer[offset + j].num = offset + j; in timer_group_get_irq()