Lines Matching refs:handle
246 void mpic_start_timer(struct mpic_timer *handle) in mpic_start_timer() argument
248 struct timer_group_priv *priv = container_of(handle, in mpic_start_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()
261 void mpic_stop_timer(struct mpic_timer *handle) in mpic_stop_timer() argument
263 struct timer_group_priv *priv = container_of(handle, in mpic_stop_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()
286 void mpic_get_remain_time(struct mpic_timer *handle, time64_t *time) in mpic_get_remain_time() argument
288 struct timer_group_priv *priv = container_of(handle, in mpic_get_remain_time()
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()
319 void mpic_free_timer(struct mpic_timer *handle) in mpic_free_timer() argument
321 struct timer_group_priv *priv = container_of(handle, in mpic_free_timer()
322 struct timer_group_priv, timer[handle->num]); in mpic_free_timer()
327 mpic_stop_timer(handle); 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()