Lines Matching refs:used
110 int used; in i810_freelist_get() local
118 used = cmpxchg(buf_priv->in_use, I810_BUF_FREE, in i810_freelist_get()
120 if(used == I810_BUF_FREE) { in i810_freelist_get()
134 int used; in i810_freelist_put() local
137 used = cmpxchg(buf_priv->in_use, I810_BUF_CLIENT, I810_BUF_FREE); in i810_freelist_put()
138 if(used != I810_BUF_CLIENT) { in i810_freelist_put()
775 int used) in i810_dma_dispatch_vertex() argument
800 if (used > 4*1024) in i810_dma_dispatch_vertex()
801 used = 0; in i810_dma_dispatch_vertex()
807 address, used, nbox); in i810_dma_dispatch_vertex()
813 DRM_DEBUG( "used : %d\n", used); in i810_dma_dispatch_vertex()
814 DRM_DEBUG( "start + used - 4 : %ld\n", start + used - 4); in i810_dma_dispatch_vertex()
819 ((used/4)-2)); in i810_dma_dispatch_vertex()
821 if (used & 4) { in i810_dma_dispatch_vertex()
822 *(u32 *)((u32)buf_priv->virtual + used) = 0; in i810_dma_dispatch_vertex()
823 used += 4; in i810_dma_dispatch_vertex()
829 if (used) { in i810_dma_dispatch_vertex()
844 OUT_RING( start + used - 4 ); in i810_dma_dispatch_vertex()
1126 int used = cmpxchg(buf_priv->in_use, I810_BUF_HARDWARE, in i810_flush_queue() local
1129 if (used == I810_BUF_HARDWARE) in i810_flush_queue()
1131 if (used == I810_BUF_CLIENT) in i810_flush_queue()
1155 int used = cmpxchg(buf_priv->in_use, I810_BUF_CLIENT, in i810_reclaim_buffers() local
1158 if (used == I810_BUF_CLIENT) in i810_reclaim_buffers()
1283 vertex.idx, vertex.used, vertex.discard); in i810_dma_vertex()
1289 vertex.discard, vertex.used ); in i810_dma_vertex()
1291 atomic_add(vertex.used, &dma->total_bytes); in i810_dma_vertex()
1417 if (d.used < 0 || d.used > buf->total) in i810_copybuf()
1420 if (copy_from_user(buf_priv->virtual, d.address, d.used)) in i810_copybuf()