Lines Matching defs:dev
74 drm_device_t *dev = (drm_device_t *)(uintptr_t)arg;
76 (drm_radeon_private_t *)dev->dev_private;
103 atomic_inc(&dev->vbl_received);
105 atomic_inc(&dev->vbl_received2);
110 atomic_inc(&dev->vbl_received);
112 DRM_WAKEUP(&dev->vbl_queue);
113 drm_vbl_send_signals(dev);
119 static int radeon_emit_irq(drm_device_t *dev)
121 drm_radeon_private_t *dev_priv = dev->dev_private;
137 static int radeon_wait_irq(drm_device_t *dev, int swi_nr)
140 (drm_radeon_private_t *)dev->dev_private;
154 static int radeon_driver_vblank_do_wait(struct drm_device *dev,
158 (drm_radeon_private_t *)dev->dev_private;
174 counter = &dev->vbl_received;
176 counter = &dev->vbl_received2;
187 DRM_WAIT_ON(ret, &dev->vbl_queue, 3 * DRM_HZ,
196 radeon_driver_vblank_wait(struct drm_device *dev, unsigned int *sequence)
198 return (radeon_driver_vblank_do_wait(dev, sequence,
203 radeon_driver_vblank_wait2(struct drm_device *dev, unsigned int *sequence)
205 return (radeon_driver_vblank_do_wait(dev, sequence,
217 drm_radeon_private_t *dev_priv = dev->dev_private;
221 LOCK_TEST_WITH_RETURN(dev, fpriv);
243 result = radeon_emit_irq(dev);
261 drm_radeon_private_t *dev_priv = dev->dev_private;
271 return (radeon_wait_irq(dev, irqwait.irq_seq));
274 static void radeon_enable_interrupt(struct drm_device *dev)
278 dev_priv = (drm_radeon_private_t *)dev->dev_private;
298 radeon_driver_irq_preinstall(drm_device_t *dev)
301 (drm_radeon_private_t *)dev->dev_private;
318 radeon_driver_irq_postinstall(drm_device_t *dev)
321 (drm_radeon_private_t *)dev->dev_private;
324 DRM_INIT_WAITQUEUE(&dev_priv->swi_queue, DRM_INTR_PRI(dev));
326 radeon_enable_interrupt(dev);
330 radeon_driver_irq_uninstall(drm_device_t *dev)
333 (drm_radeon_private_t *)dev->dev_private;
343 radeon_vblank_crtc_get(drm_device_t *dev)
349 dev_priv = (drm_radeon_private_t *)dev->dev_private;
362 radeon_vblank_crtc_set(drm_device_t *dev, int64_t value)
366 dev_priv = (drm_radeon_private_t *)dev->dev_private;
373 radeon_enable_interrupt(dev);