Lines Matching refs:ring

68 	if (dev_priv->ring.space < n*4) 		\
70 dev_priv->ring.space -= n*4; \
71 outring = dev_priv->ring.tail; \
72 ringmask = dev_priv->ring.tail_mask; \
73 virt = dev_priv->ring.virtual_start; \
78 dev_priv->ring.tail = outring; \
306 if(dev_priv->ring.virtual_start) { in i810_dma_cleanup()
307 drm_ioremapfree((void *) dev_priv->ring.virtual_start, in i810_dma_cleanup()
308 dev_priv->ring.Size, dev); in i810_dma_cleanup()
331 drm_i810_ring_buffer_t *ring = &(dev_priv->ring); in i810_wait_ring() local
337 while (ring->space < n) { in i810_wait_ring()
340 ring->head = I810_READ(LP_RING + RING_HEAD) & HEAD_ADDR; in i810_wait_ring()
341 ring->space = ring->head - (ring->tail+8); in i810_wait_ring()
342 if (ring->space < 0) ring->space += ring->Size; in i810_wait_ring()
344 if (ring->head != last_head) in i810_wait_ring()
349 DRM_ERROR("space: %d wanted %d\n", ring->space, n); in i810_wait_ring()
364 drm_i810_ring_buffer_t *ring = &(dev_priv->ring); in i810_kernel_lost_context() local
366 ring->head = I810_READ(LP_RING + RING_HEAD) & HEAD_ADDR; in i810_kernel_lost_context()
367 ring->tail = I810_READ(LP_RING + RING_TAIL); in i810_kernel_lost_context()
368 ring->space = ring->head - (ring->tail+8); in i810_kernel_lost_context()
369 if (ring->space < 0) ring->space += ring->Size; in i810_kernel_lost_context()
427 dev_priv->ring.Start = init->ring_start; in i810_dma_initialize()
428 dev_priv->ring.End = init->ring_end; in i810_dma_initialize()
429 dev_priv->ring.Size = init->ring_size; in i810_dma_initialize()
431 dev_priv->ring.virtual_start = drm_ioremap(dev->agp->base + in i810_dma_initialize()
435 dev_priv->ring.tail_mask = dev_priv->ring.Size - 1; in i810_dma_initialize()
437 if (dev_priv->ring.virtual_start == NULL) { in i810_dma_initialize()