Lines Matching refs:ring
778 *dev_priv->ring.head = cur_read_ptr; in radeon_do_cp_reset()
779 dev_priv->ring.tail = cur_read_ptr; in radeon_do_cp_reset()
891 *dev_priv->ring.head = cur_read_ptr; in radeon_cp_init_ring_buffer()
892 dev_priv->ring.tail = cur_read_ptr; in radeon_cp_init_ring_buffer()
922 dev_priv->ring.head + in radeon_cp_init_ring_buffer()
959 RADEON_WRITE( RADEON_CP_RB_CNTL, dev_priv->ring.size_l2qw | RADEON_BUF_SWAP_32BIT ); in radeon_cp_init_ring_buffer()
961 RADEON_WRITE( RADEON_CP_RB_CNTL, dev_priv->ring.size_l2qw ); in radeon_cp_init_ring_buffer()
1195 dev_priv->ring.head = ((__volatile__ u32 *) in radeon_do_init_cp()
1198 dev_priv->ring.start = (u32 *)dev_priv->cp_ring->handle; in radeon_do_init_cp()
1199 dev_priv->ring.end = ((u32 *)dev_priv->cp_ring->handle in radeon_do_init_cp()
1201 dev_priv->ring.size = init->ring_size; in radeon_do_init_cp()
1202 dev_priv->ring.size_l2qw = DRM(order)( init->ring_size / 8 ); in radeon_do_init_cp()
1204 dev_priv->ring.tail_mask = in radeon_do_init_cp()
1205 (dev_priv->ring.size / sizeof(u32)) - 1; in radeon_do_init_cp()
1207 dev_priv->ring.high_mark = RADEON_RING_HIGH_MARK; in radeon_do_init_cp()
1558 drm_radeon_ring_buffer_t *ring = &dev_priv->ring; in radeon_wait_ring() local
1560 u32 last_head = GET_RING_HEAD(ring); in radeon_wait_ring()
1563 u32 head = GET_RING_HEAD(ring); in radeon_wait_ring()
1565 ring->space = (head - ring->tail) * sizeof(u32); in radeon_wait_ring()
1566 if ( ring->space <= 0 ) in radeon_wait_ring()
1567 ring->space += ring->size; in radeon_wait_ring()
1568 if ( ring->space > n ) in radeon_wait_ring()