Lines Matching refs:sarea_priv
44 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_emit_clip_rect() local
45 drm_mga_context_regs_t *ctx = &sarea_priv->context_state; in mga_emit_clip_rect()
68 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_g200_emit_context() local
69 drm_mga_context_regs_t *ctx = &sarea_priv->context_state; in mga_g200_emit_context()
91 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_g400_emit_context() local
92 drm_mga_context_regs_t *ctx = &sarea_priv->context_state; in mga_g400_emit_context()
118 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_g200_emit_tex0() local
119 drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[0]; in mga_g200_emit_tex0()
146 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_g400_emit_tex0() local
147 drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[0]; in mga_g400_emit_tex0()
186 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_g400_emit_tex1() local
187 drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[1]; in mga_g400_emit_tex1()
225 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_g200_emit_pipe() local
226 unsigned int pipe = sarea_priv->warp_pipe; in mga_g200_emit_pipe()
252 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_g400_emit_pipe() local
253 unsigned int pipe = sarea_priv->warp_pipe; in mga_g400_emit_pipe()
329 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_g200_emit_state() local
330 unsigned int dirty = sarea_priv->dirty; in mga_g200_emit_state()
332 if (sarea_priv->warp_pipe != dev_priv->warp_pipe) { in mga_g200_emit_state()
334 dev_priv->warp_pipe = sarea_priv->warp_pipe; in mga_g200_emit_state()
339 sarea_priv->dirty &= ~MGA_UPLOAD_CONTEXT; in mga_g200_emit_state()
344 sarea_priv->dirty &= ~MGA_UPLOAD_TEX0; in mga_g200_emit_state()
350 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_g400_emit_state() local
351 unsigned int dirty = sarea_priv->dirty; in mga_g400_emit_state()
352 int multitex = sarea_priv->warp_pipe & MGA_T2; in mga_g400_emit_state()
354 if (sarea_priv->warp_pipe != dev_priv->warp_pipe) { in mga_g400_emit_state()
356 dev_priv->warp_pipe = sarea_priv->warp_pipe; in mga_g400_emit_state()
361 sarea_priv->dirty &= ~MGA_UPLOAD_CONTEXT; in mga_g400_emit_state()
366 sarea_priv->dirty &= ~MGA_UPLOAD_TEX0; in mga_g400_emit_state()
371 sarea_priv->dirty &= ~MGA_UPLOAD_TEX1; in mga_g400_emit_state()
383 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_verify_context() local
384 drm_mga_context_regs_t *ctx = &sarea_priv->context_state; in mga_verify_context()
402 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_verify_tex() local
403 drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[unit]; in mga_verify_tex()
419 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_verify_state() local
420 unsigned int dirty = sarea_priv->dirty; in mga_verify_state()
423 if (sarea_priv->nbox > MGA_NR_SAREA_CLIPRECTS) in mga_verify_state()
424 sarea_priv->nbox = MGA_NR_SAREA_CLIPRECTS; in mga_verify_state()
437 ret |= (sarea_priv->warp_pipe > MGA_MAX_G400_PIPES); in mga_verify_state()
440 ret |= (sarea_priv->warp_pipe > MGA_MAX_G200_PIPES); in mga_verify_state()
483 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_dma_dispatch_clear() local
484 drm_mga_context_regs_t *ctx = &sarea_priv->context_state; in mga_dma_dispatch_clear()
485 struct drm_clip_rect *pbox = sarea_priv->boxes; in mga_dma_dispatch_clear()
486 int nbox = sarea_priv->nbox; in mga_dma_dispatch_clear()
571 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_dma_dispatch_swap() local
572 drm_mga_context_regs_t *ctx = &sarea_priv->context_state; in mga_dma_dispatch_swap()
573 struct drm_clip_rect *pbox = sarea_priv->boxes; in mga_dma_dispatch_swap()
574 int nbox = sarea_priv->nbox; in mga_dma_dispatch_swap()
579 sarea_priv->last_frame.head = dev_priv->prim.tail; in mga_dma_dispatch_swap()
580 sarea_priv->last_frame.wrap = dev_priv->prim.last_wrap; in mga_dma_dispatch_swap()
626 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_dma_dispatch_vertex() local
636 MGA_EMIT_STATE(dev_priv, sarea_priv->dirty); in mga_dma_dispatch_vertex()
639 if (i < sarea_priv->nbox) { in mga_dma_dispatch_vertex()
641 &sarea_priv->boxes[i]); in mga_dma_dispatch_vertex()
654 } while (++i < sarea_priv->nbox); in mga_dma_dispatch_vertex()
674 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_dma_dispatch_indices() local
683 MGA_EMIT_STATE(dev_priv, sarea_priv->dirty); in mga_dma_dispatch_indices()
686 if (i < sarea_priv->nbox) { in mga_dma_dispatch_indices()
688 &sarea_priv->boxes[i]); in mga_dma_dispatch_indices()
700 } while (++i < sarea_priv->nbox); in mga_dma_dispatch_indices()
723 drm_mga_context_regs_t *ctx = &dev_priv->sarea_priv->context_state; in mga_dma_dispatch_iload()
769 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_dma_dispatch_blit() local
770 drm_mga_context_regs_t *ctx = &sarea_priv->context_state; in mga_dma_dispatch_blit()
771 struct drm_clip_rect *pbox = sarea_priv->boxes; in mga_dma_dispatch_blit()
772 int nbox = sarea_priv->nbox; in mga_dma_dispatch_blit()
830 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_dma_clear() local
835 if (sarea_priv->nbox > MGA_NR_SAREA_CLIPRECTS) in mga_dma_clear()
836 sarea_priv->nbox = MGA_NR_SAREA_CLIPRECTS; in mga_dma_clear()
844 dev_priv->sarea_priv->dirty |= MGA_UPLOAD_CONTEXT; in mga_dma_clear()
852 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_dma_swap() local
856 if (sarea_priv->nbox > MGA_NR_SAREA_CLIPRECTS) in mga_dma_swap()
857 sarea_priv->nbox = MGA_NR_SAREA_CLIPRECTS; in mga_dma_swap()
865 dev_priv->sarea_priv->dirty |= MGA_UPLOAD_CONTEXT; in mga_dma_swap()
973 dev_priv->sarea_priv->dirty |= MGA_UPLOAD_CONTEXT; in mga_dma_iload()
981 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_dma_blit() local
987 if (sarea_priv->nbox > MGA_NR_SAREA_CLIPRECTS) in mga_dma_blit()
988 sarea_priv->nbox = MGA_NR_SAREA_CLIPRECTS; in mga_dma_blit()
999 dev_priv->sarea_priv->dirty |= MGA_UPLOAD_CONTEXT; in mga_dma_blit()