Lines Matching refs:ring
253 if(dev_priv->ring.virtual_start) { in i830_dma_cleanup()
254 DRM(ioremapfree)((void *) dev_priv->ring.virtual_start, in i830_dma_cleanup()
255 dev_priv->ring.Size, dev); in i830_dma_cleanup()
289 drm_i830_ring_buffer_t *ring = &(dev_priv->ring); in i830_wait_ring() local
295 while (ring->space < n) { in i830_wait_ring()
296 ring->head = I830_READ(LP_RING + RING_HEAD) & HEAD_ADDR; in i830_wait_ring()
297 ring->space = ring->head - (ring->tail+8); in i830_wait_ring()
298 if (ring->space < 0) ring->space += ring->Size; in i830_wait_ring()
300 if (ring->head != last_head) { in i830_wait_ring()
302 last_head = ring->head; in i830_wait_ring()
307 DRM_ERROR("space: %d wanted %d\n", ring->space, n); in i830_wait_ring()
322 drm_i830_ring_buffer_t *ring = &(dev_priv->ring); in i830_kernel_lost_context() local
324 ring->head = I830_READ(LP_RING + RING_HEAD) & HEAD_ADDR; in i830_kernel_lost_context()
325 ring->tail = I830_READ(LP_RING + RING_TAIL) & TAIL_ADDR; in i830_kernel_lost_context()
326 ring->space = ring->head - (ring->tail+8); in i830_kernel_lost_context()
327 if (ring->space < 0) ring->space += ring->Size; in i830_kernel_lost_context()
329 if (ring->head == ring->tail) in i830_kernel_lost_context()
404 dev_priv->ring.Start = init->ring_start; in i830_dma_initialize()
405 dev_priv->ring.End = init->ring_end; in i830_dma_initialize()
406 dev_priv->ring.Size = init->ring_size; in i830_dma_initialize()
408 dev_priv->ring.virtual_start = DRM(ioremap)(dev->agp->base + in i830_dma_initialize()
412 if (dev_priv->ring.virtual_start == NULL) { in i830_dma_initialize()
420 dev_priv->ring.tail_mask = dev_priv->ring.Size - 1; in i830_dma_initialize()
1264 i830_wait_ring( dev, dev_priv->ring.Size - 8, __FUNCTION__ ); in i830_dma_quiescent()
1281 i830_wait_ring( dev, dev_priv->ring.Size - 8, __FUNCTION__ ); in i830_flush_queue()