Lines Matching refs:wait
106 struct omap_irq_wait *wait = in wait_irq() local
108 wait->count--; in wait_irq()
115 struct omap_irq_wait *wait = kzalloc(sizeof(*wait), GFP_KERNEL); in omap_irq_wait_init() local
116 wait->irq.irq = wait_irq; in omap_irq_wait_init()
117 wait->irq.irqmask = irqmask; in omap_irq_wait_init()
118 wait->count = count; in omap_irq_wait_init()
119 omap_irq_register(dev, &wait->irq); in omap_irq_wait_init()
120 return wait; in omap_irq_wait_init()
123 int omap_irq_wait(struct drm_device *dev, struct omap_irq_wait *wait, in omap_irq_wait() argument
126 int ret = wait_event_timeout(wait_event, (wait->count <= 0), timeout); in omap_irq_wait()
127 omap_irq_unregister(dev, &wait->irq); in omap_irq_wait()
128 kfree(wait); in omap_irq_wait()