FreeBSD/sys/dev/drm/i915_dma.c
/* XXX: Emitting the counter should really be moved to part of the IRQ
 * emit. For now, do it in both places:
 */
Emitting the counter should really be moved to part of the IRQ
emit. For now, do it in both places.
Emitting the counter should really be moved to part of the IRQ emit . For now do it in both places .
static void i915_emit_breadcrumb(struct drm_device *dev)
{
	drm_i915_private_t *dev_priv = dev->dev_private;
	RING_LOCALS;
	if (++dev_priv->counter > 0x7FFFFFFFUL)
		dev_priv->counter = 0;
	if (dev_priv->sarea_priv)
		dev_priv->sarea_priv->last_enqueue = dev_priv->counter;
	BEGIN_LP_RING(4);
	OUT_RING(MI_STORE_DWORD_INDEX);
	OUT_RING(I915_BREADCRUMB_INDEX << MI_STORE_DWORD_INDEX_SHIFT);
	OUT_RING(dev_priv->counter);
	OUT_RING(0);
	ADVANCE_LP_RING();
}
static void i915_emit_breadcrumb ( struct drm_device * dev ) { drm_i915_private_t * dev_priv = dev -> dev_private ; RING_LOCALS ; if ( ++ dev_priv -> counter > 0x7FFFFFFFUL ) dev_priv -> counter = 0 ; if ( dev_priv -> sarea_priv ) dev_priv -> sarea_priv -> last_enqueue = dev_priv -> counter ; BEGIN_LP_RING ( 4 ) ; OUT_RING ( MI_STORE_DWORD_INDEX ) ; OUT_RING ( I915_BREADCRUMB_INDEX << MI_STORE_DWORD_INDEX_SHIFT ) ; OUT_RING ( dev_priv -> counter ) ; OUT_RING ( 0 ) ; ADVANCE_LP_RING ( ) ; }
XXX: Emitting the counter should really be moved to part of the IRQ
 emit.
XXX : Emitting the counter should really be moved to part of the IRQ emit .