Lines Matching refs:wait
92 struct omap_irq_wait *wait = in wait_irq() local
94 wait->count--; in wait_irq()
101 struct omap_irq_wait *wait = kzalloc(sizeof(*wait), GFP_KERNEL); in omap_irq_wait_init() local
102 wait->irq.irq = wait_irq; in omap_irq_wait_init()
103 wait->irq.irqmask = irqmask; in omap_irq_wait_init()
104 wait->count = count; in omap_irq_wait_init()
105 omap_irq_register(dev, &wait->irq); in omap_irq_wait_init()
106 return wait; in omap_irq_wait_init()
109 int omap_irq_wait(struct drm_device *dev, struct omap_irq_wait *wait, in omap_irq_wait() argument
112 int ret = wait_event_timeout(wait_event, (wait->count <= 0), timeout); in omap_irq_wait()
113 omap_irq_unregister(dev, &wait->irq); in omap_irq_wait()
114 kfree(wait); in omap_irq_wait()