Lines Matching refs:tail

101 	primary->tail = 0;  in mga_do_dma_reset()
161 u32 head, tail; in mga_do_dma_flush() local
174 if ( primary->tail == primary->last_flush ) { in mga_do_dma_flush()
179 tail = primary->tail + dev_priv->primary->offset; in mga_do_dma_flush()
194 primary->last_flush = primary->tail; in mga_do_dma_flush()
198 if ( head <= tail ) { in mga_do_dma_flush()
199 primary->space = primary->size - primary->tail; in mga_do_dma_flush()
201 primary->space = head - tail; in mga_do_dma_flush()
205 DRM_DEBUG( " tail = 0x%06lx\n", tail - dev_priv->primary->offset ); in mga_do_dma_flush()
209 MGA_WRITE( MGA_PRIMEND, tail | MGA_PAGPXFER ); in mga_do_dma_flush()
217 u32 head, tail; in mga_do_dma_wrap_start() local
230 tail = primary->tail + dev_priv->primary->offset; in mga_do_dma_wrap_start()
232 primary->tail = 0; in mga_do_dma_wrap_start()
246 DRM_DEBUG( " tail = 0x%06x\n", primary->tail ); in mga_do_dma_wrap_start()
251 MGA_WRITE( MGA_PRIMEND, tail | MGA_PAGPXFER ); in mga_do_dma_wrap_start()
340 dev_priv->tail = entry; in mga_freelist_init()
366 dev_priv->head = dev_priv->tail = NULL; in mga_freelist_cleanup()
393 drm_mga_freelist_t *tail = dev_priv->tail; in mga_freelist_get() local
401 tail->age.head ? in mga_freelist_get()
402 tail->age.head - dev_priv->primary->offset : 0, in mga_freelist_get()
403 tail->age.wrap ); in mga_freelist_get()
407 if ( TEST_AGE( &tail->age, head, wrap ) ) { in mga_freelist_get()
408 prev = dev_priv->tail->prev; in mga_freelist_get()
409 next = dev_priv->tail; in mga_freelist_get()
412 dev_priv->tail = prev; in mga_freelist_get()
437 prev = dev_priv->tail; in mga_freelist_put()
611 dev_priv->prim.tail = 0; in mga_do_init_dma()