• Home
  • Raw
  • Download

Lines Matching refs:sarea_priv

46 	drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv;  in mga_emit_clip_rect()  local
47 drm_mga_context_regs_t *ctx = &sarea_priv->context_state; in mga_emit_clip_rect()
70 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_g200_emit_context() local
71 drm_mga_context_regs_t *ctx = &sarea_priv->context_state; in mga_g200_emit_context()
93 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_g400_emit_context() local
94 drm_mga_context_regs_t *ctx = &sarea_priv->context_state; in mga_g400_emit_context()
120 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_g200_emit_tex0() local
121 drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[0]; in mga_g200_emit_tex0()
148 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_g400_emit_tex0() local
149 drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[0]; in mga_g400_emit_tex0()
188 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_g400_emit_tex1() local
189 drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[1]; in mga_g400_emit_tex1()
227 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_g200_emit_pipe() local
228 unsigned int pipe = sarea_priv->warp_pipe; in mga_g200_emit_pipe()
254 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_g400_emit_pipe() local
255 unsigned int pipe = sarea_priv->warp_pipe; in mga_g400_emit_pipe()
331 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_g200_emit_state() local
332 unsigned int dirty = sarea_priv->dirty; in mga_g200_emit_state()
334 if (sarea_priv->warp_pipe != dev_priv->warp_pipe) { in mga_g200_emit_state()
336 dev_priv->warp_pipe = sarea_priv->warp_pipe; in mga_g200_emit_state()
341 sarea_priv->dirty &= ~MGA_UPLOAD_CONTEXT; in mga_g200_emit_state()
346 sarea_priv->dirty &= ~MGA_UPLOAD_TEX0; in mga_g200_emit_state()
352 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_g400_emit_state() local
353 unsigned int dirty = sarea_priv->dirty; in mga_g400_emit_state()
354 int multitex = sarea_priv->warp_pipe & MGA_T2; in mga_g400_emit_state()
356 if (sarea_priv->warp_pipe != dev_priv->warp_pipe) { in mga_g400_emit_state()
358 dev_priv->warp_pipe = sarea_priv->warp_pipe; in mga_g400_emit_state()
363 sarea_priv->dirty &= ~MGA_UPLOAD_CONTEXT; in mga_g400_emit_state()
368 sarea_priv->dirty &= ~MGA_UPLOAD_TEX0; in mga_g400_emit_state()
373 sarea_priv->dirty &= ~MGA_UPLOAD_TEX1; in mga_g400_emit_state()
385 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_verify_context() local
386 drm_mga_context_regs_t *ctx = &sarea_priv->context_state; in mga_verify_context()
404 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_verify_tex() local
405 drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[unit]; in mga_verify_tex()
421 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_verify_state() local
422 unsigned int dirty = sarea_priv->dirty; in mga_verify_state()
425 if (sarea_priv->nbox > MGA_NR_SAREA_CLIPRECTS) in mga_verify_state()
426 sarea_priv->nbox = MGA_NR_SAREA_CLIPRECTS; in mga_verify_state()
439 ret |= (sarea_priv->warp_pipe > MGA_MAX_G400_PIPES); in mga_verify_state()
442 ret |= (sarea_priv->warp_pipe > MGA_MAX_G200_PIPES); in mga_verify_state()
485 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_dma_dispatch_clear() local
486 drm_mga_context_regs_t *ctx = &sarea_priv->context_state; in mga_dma_dispatch_clear()
487 struct drm_clip_rect *pbox = sarea_priv->boxes; in mga_dma_dispatch_clear()
488 int nbox = sarea_priv->nbox; in mga_dma_dispatch_clear()
573 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_dma_dispatch_swap() local
574 drm_mga_context_regs_t *ctx = &sarea_priv->context_state; in mga_dma_dispatch_swap()
575 struct drm_clip_rect *pbox = sarea_priv->boxes; in mga_dma_dispatch_swap()
576 int nbox = sarea_priv->nbox; in mga_dma_dispatch_swap()
581 sarea_priv->last_frame.head = dev_priv->prim.tail; in mga_dma_dispatch_swap()
582 sarea_priv->last_frame.wrap = dev_priv->prim.last_wrap; in mga_dma_dispatch_swap()
628 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_dma_dispatch_vertex() local
638 MGA_EMIT_STATE(dev_priv, sarea_priv->dirty); in mga_dma_dispatch_vertex()
641 if (i < sarea_priv->nbox) { in mga_dma_dispatch_vertex()
643 &sarea_priv->boxes[i]); in mga_dma_dispatch_vertex()
656 } while (++i < sarea_priv->nbox); in mga_dma_dispatch_vertex()
676 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_dma_dispatch_indices() local
685 MGA_EMIT_STATE(dev_priv, sarea_priv->dirty); in mga_dma_dispatch_indices()
688 if (i < sarea_priv->nbox) { in mga_dma_dispatch_indices()
690 &sarea_priv->boxes[i]); in mga_dma_dispatch_indices()
702 } while (++i < sarea_priv->nbox); in mga_dma_dispatch_indices()
725 drm_mga_context_regs_t *ctx = &dev_priv->sarea_priv->context_state; in mga_dma_dispatch_iload()
771 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_dma_dispatch_blit() local
772 drm_mga_context_regs_t *ctx = &sarea_priv->context_state; in mga_dma_dispatch_blit()
773 struct drm_clip_rect *pbox = sarea_priv->boxes; in mga_dma_dispatch_blit()
774 int nbox = sarea_priv->nbox; in mga_dma_dispatch_blit()
832 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_dma_clear() local
837 if (sarea_priv->nbox > MGA_NR_SAREA_CLIPRECTS) in mga_dma_clear()
838 sarea_priv->nbox = MGA_NR_SAREA_CLIPRECTS; in mga_dma_clear()
846 dev_priv->sarea_priv->dirty |= MGA_UPLOAD_CONTEXT; in mga_dma_clear()
854 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_dma_swap() local
858 if (sarea_priv->nbox > MGA_NR_SAREA_CLIPRECTS) in mga_dma_swap()
859 sarea_priv->nbox = MGA_NR_SAREA_CLIPRECTS; in mga_dma_swap()
867 dev_priv->sarea_priv->dirty |= MGA_UPLOAD_CONTEXT; in mga_dma_swap()
977 dev_priv->sarea_priv->dirty |= MGA_UPLOAD_CONTEXT; in mga_dma_iload()
985 drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv; in mga_dma_blit() local
991 if (sarea_priv->nbox > MGA_NR_SAREA_CLIPRECTS) in mga_dma_blit()
992 sarea_priv->nbox = MGA_NR_SAREA_CLIPRECTS; in mga_dma_blit()
1003 dev_priv->sarea_priv->dirty |= MGA_UPLOAD_CONTEXT; in mga_dma_blit()