Lines Matching refs:used

98    	int 		 used;  in i810_freelist_get()  local
106 used = cmpxchg(buf_priv->in_use, I810_BUF_FREE, in i810_freelist_get()
108 if(used == I810_BUF_FREE) { in i810_freelist_get()
122 int used; in i810_freelist_put() local
125 used = cmpxchg(buf_priv->in_use, I810_BUF_CLIENT, I810_BUF_FREE); in i810_freelist_put()
126 if(used != I810_BUF_CLIENT) { in i810_freelist_put()
785 int used) in i810_dma_dispatch_vertex() argument
802 if (used > 4*1024) in i810_dma_dispatch_vertex()
803 used = 0; in i810_dma_dispatch_vertex()
812 ((used/4)-2)); in i810_dma_dispatch_vertex()
814 if (used & 4) { in i810_dma_dispatch_vertex()
815 *(u32 *)((u32)buf_priv->virtual + used) = 0; in i810_dma_dispatch_vertex()
816 used += 4; in i810_dma_dispatch_vertex()
822 if (used) { in i810_dma_dispatch_vertex()
837 OUT_RING( start + used - 4 ); in i810_dma_dispatch_vertex()
905 int used = cmpxchg(buf_priv->in_use, I810_BUF_HARDWARE, in i810_flush_queue() local
908 if (used == I810_BUF_HARDWARE) in i810_flush_queue()
910 if (used == I810_BUF_CLIENT) in i810_flush_queue()
934 int used = cmpxchg(buf_priv->in_use, I810_BUF_CLIENT, in i810_reclaim_buffers() local
937 if (used == I810_BUF_CLIENT) in i810_reclaim_buffers()
985 vertex.discard, vertex.used ); in i810_dma_vertex()
987 atomic_add(vertex.used, &dev->counts[_DRM_STAT_SECONDARY]); in i810_dma_vertex()
1099 static void i810_dma_dispatch_mc(drm_device_t *dev, drm_buf_t *buf, int used, in i810_dma_dispatch_mc() argument
1118 if (used > 4*1024) in i810_dma_dispatch_mc()
1119 used = 0; in i810_dma_dispatch_mc()
1124 address, used); in i810_dma_dispatch_mc()
1130 DRM_DEBUG("used : %d\n", used); in i810_dma_dispatch_mc()
1131 DRM_DEBUG("start + used - 4 : %ld\n", start + used - 4); in i810_dma_dispatch_mc()
1134 if (used & 4) { in i810_dma_dispatch_mc()
1135 *(u32 *)((u32)buf_priv->virtual + used) = 0; in i810_dma_dispatch_mc()
1136 used += 4; in i810_dma_dispatch_mc()
1144 OUT_RING( start + used - 4 ); in i810_dma_dispatch_mc()
1183 i810_dma_dispatch_mc(dev, dma->buflist[mc.idx], mc.used, in i810_dma_mc()
1186 atomic_add(mc.used, &dev->counts[_DRM_STAT_SECONDARY]); in i810_dma_mc()