Lines Matching refs:box
44 struct drm_clip_rect *box) in mga_emit_clip_rect() argument
62 MGA_CXBNDRY, ((box->x2 - 1) << 16) | box->x1, in mga_emit_clip_rect()
63 MGA_YTOP, box->y1 * pitch, MGA_YBOT, (box->y2 - 1) * pitch); in mga_emit_clip_rect()
502 struct drm_clip_rect *box = &pbox[i]; in mga_dma_dispatch_clear() local
503 u32 height = box->y2 - box->y1; in mga_dma_dispatch_clear()
506 box->x1, box->y1, box->x2, box->y2); in mga_dma_dispatch_clear()
513 MGA_YDSTLEN, (box->y1 << 16) | height, in mga_dma_dispatch_clear()
514 MGA_FXBNDRY, (box->x2 << 16) | box->x1); in mga_dma_dispatch_clear()
529 MGA_YDSTLEN, (box->y1 << 16) | height, in mga_dma_dispatch_clear()
530 MGA_FXBNDRY, (box->x2 << 16) | box->x1); in mga_dma_dispatch_clear()
545 MGA_YDSTLEN, (box->y1 << 16) | height, in mga_dma_dispatch_clear()
546 MGA_FXBNDRY, (box->x2 << 16) | box->x1); in mga_dma_dispatch_clear()
600 struct drm_clip_rect *box = &pbox[i]; in mga_dma_dispatch_swap() local
601 u32 height = box->y2 - box->y1; in mga_dma_dispatch_swap()
602 u32 start = box->y1 * dev_priv->front_pitch; in mga_dma_dispatch_swap()
605 box->x1, box->y1, box->x2, box->y2); in mga_dma_dispatch_swap()
607 DMA_BLOCK(MGA_AR0, start + box->x2 - 1, in mga_dma_dispatch_swap()
608 MGA_AR3, start + box->x1, in mga_dma_dispatch_swap()
609 MGA_FXBNDRY, ((box->x2 - 1) << 16) | box->x1, in mga_dma_dispatch_swap()
610 MGA_YDSTLEN + MGA_EXEC, (box->y1 << 16) | height); in mga_dma_dispatch_swap()