Lines Matching defs:ring

48 #define LP_RING(d) (&((struct drm_i915_private *)(d))->ring[RCS])
60 * Lock test for when it's just for synchronization of ring access.
63 * has access to the ring.
115 struct intel_ring_buffer *ring = LP_RING(dev_priv);
122 if (ring->status_page.gfx_addr) {
123 ring->status_page.gfx_addr = 0;
135 struct intel_ring_buffer *ring = LP_RING(dev_priv);
138 * We should never lose context on the ring with modesetting
144 ring->head = I915_READ_HEAD(ring) & HEAD_ADDR;
145 ring->tail = I915_READ_TAIL(ring) & TAIL_ADDR;
146 ring->space = ring->head - (ring->tail + I915_RING_FREE_SPACE);
147 if (ring->space < 0)
148 ring->space += ring->size;
154 if (ring->head == ring->tail && master_priv->sarea_priv)
172 intel_cleanup_ring_buffer(&dev_priv->ring[i]);
230 struct intel_ring_buffer *ring = LP_RING(dev_priv);
234 if (ring->virtual_start == NULL) {
236 " ring buffer\n");
241 if (!ring->status_page.page_addr) {
246 ring->status_page.page_addr);
247 if (ring->status_page.gfx_addr != 0)
248 intel_ring_setup_status_page(ring);
776 struct intel_ring_buffer *ring = LP_RING(dev_priv);
790 if (ring->irq_get(ring)) {
791 DRM_WAIT_ON(ret, &ring->irq_queue, 3 * DRM_HZ,
793 ring->irq_put(ring);
805 /* Needs the lock as it touches the ring.
958 value = intel_ring_initialized(&dev_priv->ring[VCS]);
961 value = intel_ring_initialized(&dev_priv->ring[BCS]);
964 value = intel_ring_initialized(&dev_priv->ring[VECS]);
1063 struct intel_ring_buffer *ring;
1083 ring = LP_RING(dev_priv);
1084 ring->status_page.gfx_addr = hws->addr & (0x1ffff<<12);
1095 ring->status_page.gfx_addr = 0;
1102 I915_WRITE(HWS_PGA, ring->status_page.gfx_addr);
1105 ring->status_page.gfx_addr);
1107 ring->status_page.page_addr);