Lines Matching refs:ring
232 if ( *dev_priv->ring.head == dev_priv->ring.tail ) { in r128_do_cce_idle()
258 dev_priv->cce_mode | dev_priv->ring.size_l2qw ); in r128_do_cce_start()
273 *dev_priv->ring.head = 0; in r128_do_cce_reset()
274 dev_priv->ring.tail = 0; in r128_do_cce_reset()
346 *dev_priv->ring.head = 0; in r128_cce_init_ring_buffer()
493 dev_priv->ring.head = ((__volatile__ u32 *) in r128_do_init_cce()
496 dev_priv->ring.start = (u32 *)dev_priv->cce_ring->handle; in r128_do_init_cce()
497 dev_priv->ring.end = ((u32 *)dev_priv->cce_ring->handle in r128_do_init_cce()
499 dev_priv->ring.size = init->ring_size; in r128_do_init_cce()
500 dev_priv->ring.size_l2qw = drm_order( init->ring_size / 8 ); in r128_do_init_cce()
502 dev_priv->ring.tail_mask = in r128_do_init_cce()
503 (dev_priv->ring.size / sizeof(u32)) - 1; in r128_do_init_cce()
810 drm_r128_ring_buffer_t *ring = &dev_priv->ring; in r128_wait_ring() local
814 ring->space = *ring->head - ring->tail; in r128_wait_ring()
815 if ( ring->space <= 0 ) in r128_wait_ring()
816 ring->space += ring->size; in r128_wait_ring()
818 if ( ring->space >= n ) in r128_wait_ring()
829 drm_r128_ring_buffer_t *ring = &dev_priv->ring; in r128_update_ring_snapshot() local
831 ring->space = *ring->head - ring->tail; in r128_update_ring_snapshot()
833 if ( ring->space == 0 ) in r128_update_ring_snapshot()
836 if ( ring->space <= 0 ) in r128_update_ring_snapshot()
837 ring->space += ring->size; in r128_update_ring_snapshot()