Lines Matching refs:ring
34 #define GET_RING_HEAD(ring) readl( (volatile u32 *) (ring)->head ) argument
35 #define SET_RING_HEAD(ring,val) writel( (val), (volatile u32 *) (ring)->head ) argument
74 drm_radeon_ring_buffer_t ring; member
805 u32 head = GET_RING_HEAD(&dev_priv->ring); \
806 if (head == dev_priv->ring.tail) \
844 #define RING_LOCALS int write, _nr; unsigned int mask; u32 *ring;
851 if ( dev_priv->ring.space <= (n) * sizeof(u32) ) { \
855 _nr = n; dev_priv->ring.space -= (n) * sizeof(u32); \
856 ring = dev_priv->ring.start; \
857 write = dev_priv->ring.tail; \
858 mask = dev_priv->ring.tail_mask; \
864 write, dev_priv->ring.tail ); \
866 if (((dev_priv->ring.tail + _nr) & mask) != write) { \
869 ((dev_priv->ring.tail + _nr) & mask), \
872 dev_priv->ring.tail = write; \
878 GET_RING_HEAD( &dev_priv->ring ); \
879 RADEON_WRITE( RADEON_CP_RB_WPTR, dev_priv->ring.tail ); \
889 ring[write++] = (x); \
905 if (__copy_from_user( (int *)(ring+write), \
913 if (_size && __copy_from_user( (int *)(ring+write), \