Lines Matching defs:timer
13 #include <linux/timer.h>
304 struct vudc *udc = from_timer(udc, t, tr_timer.timer);
305 struct transfer_timer *timer = &udc->tr_timer;
317 timer->state = VUDC_TR_IDLE;
322 if (time_after(jiffies, timer->frame_start + msecs_to_jiffies(1))) {
323 timer->frame_limit = total;
325 timer->frame_start = jiffies;
327 total = timer->frame_limit;
344 if (timer->state != VUDC_TR_RUNNING)
436 timer->state = VUDC_TR_IDLE;
438 mod_timer(&timer->timer,
439 timer->frame_start + msecs_to_jiffies(1));
444 /* All timer functions are run with udc->lock held */
450 timer_setup(&t->timer, v_timer, 0);
458 dev_dbg(&udc->pdev->dev, "timer start");
476 dev_dbg(&udc->pdev->dev, "timer kick");
484 /* we may want to kick timer to unqueue urbs */
485 mod_timer(&t->timer, time);
493 /* timer itself will take care of stopping */
494 dev_dbg(&udc->pdev->dev, "timer stop");