Lines Matching refs:box
42 struct drm_clip_rect *box) in mga_emit_clip_rect() argument
60 MGA_CXBNDRY, ((box->x2 - 1) << 16) | box->x1, in mga_emit_clip_rect()
61 MGA_YTOP, box->y1 * pitch, MGA_YBOT, (box->y2 - 1) * pitch); in mga_emit_clip_rect()
500 struct drm_clip_rect *box = &pbox[i]; in mga_dma_dispatch_clear() local
501 u32 height = box->y2 - box->y1; in mga_dma_dispatch_clear()
504 box->x1, box->y1, box->x2, box->y2); in mga_dma_dispatch_clear()
511 MGA_YDSTLEN, (box->y1 << 16) | height, in mga_dma_dispatch_clear()
512 MGA_FXBNDRY, (box->x2 << 16) | box->x1); in mga_dma_dispatch_clear()
527 MGA_YDSTLEN, (box->y1 << 16) | height, in mga_dma_dispatch_clear()
528 MGA_FXBNDRY, (box->x2 << 16) | box->x1); in mga_dma_dispatch_clear()
543 MGA_YDSTLEN, (box->y1 << 16) | height, in mga_dma_dispatch_clear()
544 MGA_FXBNDRY, (box->x2 << 16) | box->x1); in mga_dma_dispatch_clear()
598 struct drm_clip_rect *box = &pbox[i]; in mga_dma_dispatch_swap() local
599 u32 height = box->y2 - box->y1; in mga_dma_dispatch_swap()
600 u32 start = box->y1 * dev_priv->front_pitch; in mga_dma_dispatch_swap()
603 box->x1, box->y1, box->x2, box->y2); in mga_dma_dispatch_swap()
605 DMA_BLOCK(MGA_AR0, start + box->x2 - 1, in mga_dma_dispatch_swap()
606 MGA_AR3, start + box->x1, in mga_dma_dispatch_swap()
607 MGA_FXBNDRY, ((box->x2 - 1) << 16) | box->x1, in mga_dma_dispatch_swap()
608 MGA_YDSTLEN + MGA_EXEC, (box->y1 << 16) | height); in mga_dma_dispatch_swap()