Lines Matching refs:num
44 #define TIMER_OFFSET(num) (1 << (TIMERS_PER_GROUP - 1 - num)) argument
114 unsigned int num; in detect_idle_cascade_timer() local
123 num = casc_priv->timer_num; in detect_idle_cascade_timer()
124 priv->timer[num].cascade_handle = casc_priv; in detect_idle_cascade_timer()
129 return &priv->timer[num]; in detect_idle_cascade_timer()
139 unsigned int num) in set_cascade_timer() argument
147 casc_priv = priv->timer[num].cascade_handle; in set_cascade_timer()
157 out_be32(&priv->regs[num].gtccr, 0); in set_cascade_timer()
158 out_be32(&priv->regs[num].gtbcr, tmp_ticks | TIMER_STOP); in set_cascade_timer()
160 out_be32(&priv->regs[num - 1].gtccr, 0); in set_cascade_timer()
161 out_be32(&priv->regs[num - 1].gtbcr, rem_ticks); in set_cascade_timer()
184 ret = set_cascade_timer(priv, ticks, allocated_timer->num); in get_cascade_timer()
197 unsigned int num; in get_timer() local
220 num = TIMERS_PER_GROUP - 1 - i; in get_timer()
226 out_be32(&priv->regs[num].gtbcr, in get_timer()
228 out_be32(&priv->regs[num].gtccr, 0); in get_timer()
229 priv->timer[num].cascade_handle = NULL; in get_timer()
231 return &priv->timer[num]; in get_timer()
250 struct timer_group_priv, timer[handle->num]); in mpic_start_timer()
252 clrbits32(&priv->regs[handle->num].gtbcr, TIMER_STOP); in mpic_start_timer()
265 struct timer_group_priv, timer[handle->num]); in mpic_stop_timer()
268 setbits32(&priv->regs[handle->num].gtbcr, TIMER_STOP); in mpic_stop_timer()
270 casc_priv = priv->timer[handle->num].cascade_handle; in mpic_stop_timer()
272 out_be32(&priv->regs[handle->num].gtccr, 0); in mpic_stop_timer()
273 out_be32(&priv->regs[handle->num - 1].gtccr, 0); in mpic_stop_timer()
275 out_be32(&priv->regs[handle->num].gtccr, 0); in mpic_stop_timer()
290 struct timer_group_priv, timer[handle->num]); in mpic_get_remain_time()
296 casc_priv = priv->timer[handle->num].cascade_handle; in mpic_get_remain_time()
298 tmp_ticks = in_be32(&priv->regs[handle->num].gtccr); in mpic_get_remain_time()
301 tmp_ticks = in_be32(&priv->regs[handle->num - 1].gtccr); in mpic_get_remain_time()
304 ticks = in_be32(&priv->regs[handle->num].gtccr); in mpic_get_remain_time()
323 struct timer_group_priv, timer[handle->num]); in mpic_free_timer()
330 casc_priv = priv->timer[handle->num].cascade_handle; in mpic_free_timer()
332 free_irq(priv->timer[handle->num].irq, priv->timer[handle->num].dev); in mpic_free_timer()
341 priv->timer[handle->num].cascade_handle = NULL; in mpic_free_timer()
343 priv->idle |= TIMER_OFFSET(handle->num); in mpic_free_timer()
454 priv->timer[offset + j].num = offset + j; in timer_group_get_irq()