Lines Matching refs:handle
282 void mpic_start_timer(struct mpic_timer *handle) in mpic_start_timer() argument
284 struct timer_group_priv *priv = container_of(handle, in mpic_start_timer()
285 struct timer_group_priv, timer[handle->num]); in mpic_start_timer()
287 clrbits32(&priv->regs[handle->num].gtbcr, TIMER_STOP); in mpic_start_timer()
297 void mpic_stop_timer(struct mpic_timer *handle) in mpic_stop_timer() argument
299 struct timer_group_priv *priv = container_of(handle, in mpic_stop_timer()
300 struct timer_group_priv, timer[handle->num]); in mpic_stop_timer()
303 setbits32(&priv->regs[handle->num].gtbcr, TIMER_STOP); in mpic_stop_timer()
305 casc_priv = priv->timer[handle->num].cascade_handle; in mpic_stop_timer()
307 out_be32(&priv->regs[handle->num].gtccr, 0); in mpic_stop_timer()
308 out_be32(&priv->regs[handle->num - 1].gtccr, 0); in mpic_stop_timer()
310 out_be32(&priv->regs[handle->num].gtccr, 0); in mpic_stop_timer()
322 void mpic_get_remain_time(struct mpic_timer *handle, struct timeval *time) in mpic_get_remain_time() argument
324 struct timer_group_priv *priv = container_of(handle, in mpic_get_remain_time()
325 struct timer_group_priv, timer[handle->num]); in mpic_get_remain_time()
331 casc_priv = priv->timer[handle->num].cascade_handle; in mpic_get_remain_time()
333 tmp_ticks = in_be32(&priv->regs[handle->num].gtccr); in mpic_get_remain_time()
336 tmp_ticks = in_be32(&priv->regs[handle->num - 1].gtccr); in mpic_get_remain_time()
339 ticks = in_be32(&priv->regs[handle->num].gtccr); in mpic_get_remain_time()
355 void mpic_free_timer(struct mpic_timer *handle) in mpic_free_timer() argument
357 struct timer_group_priv *priv = container_of(handle, in mpic_free_timer()
358 struct timer_group_priv, timer[handle->num]); in mpic_free_timer()
363 mpic_stop_timer(handle); in mpic_free_timer()
365 casc_priv = priv->timer[handle->num].cascade_handle; in mpic_free_timer()
367 free_irq(priv->timer[handle->num].irq, priv->timer[handle->num].dev); in mpic_free_timer()
376 priv->timer[handle->num].cascade_handle = NULL; in mpic_free_timer()
378 priv->idle |= TIMER_OFFSET(handle->num); in mpic_free_timer()