Lines Matching refs:g2d_add_cmd
245 static void g2d_add_cmd(struct g2d_context *ctx, unsigned long cmd, in g2d_add_cmd() function
285 g2d_add_cmd(ctx, cmd | G2D_BUF_USERPTR, in g2d_add_base_addr()
288 g2d_add_cmd(ctx, cmd, img->bo[0]); in g2d_add_base_addr()
300 g2d_add_cmd(ctx, SRC_MASK_DIRECT_REG, dir->val[0]); in g2d_set_direction()
301 g2d_add_cmd(ctx, DST_PAT_DIRECT_REG, dir->val[1]); in g2d_set_direction()
456 g2d_add_cmd(ctx, DST_SELECT_REG, G2D_SELECT_MODE_NORMAL); in g2d_solid_fill()
457 g2d_add_cmd(ctx, DST_COLOR_MODE_REG, img->color_mode); in g2d_solid_fill()
459 g2d_add_cmd(ctx, DST_STRIDE_REG, img->stride); in g2d_solid_fill()
468 g2d_add_cmd(ctx, DST_LEFT_TOP_REG, pt.val); in g2d_solid_fill()
472 g2d_add_cmd(ctx, DST_RIGHT_BOTTOM_REG, pt.val); in g2d_solid_fill()
474 g2d_add_cmd(ctx, SF_COLOR_REG, img->color); in g2d_solid_fill()
478 g2d_add_cmd(ctx, BITBLT_COMMAND_REG, bitblt.val); in g2d_solid_fill()
533 g2d_add_cmd(ctx, DST_SELECT_REG, G2D_SELECT_MODE_BGCOLOR); in g2d_copy()
534 g2d_add_cmd(ctx, DST_COLOR_MODE_REG, dst->color_mode); in g2d_copy()
536 g2d_add_cmd(ctx, DST_STRIDE_REG, dst->stride); in g2d_copy()
538 g2d_add_cmd(ctx, SRC_SELECT_REG, G2D_SELECT_MODE_NORMAL); in g2d_copy()
539 g2d_add_cmd(ctx, SRC_COLOR_MODE_REG, src->color_mode); in g2d_copy()
541 g2d_add_cmd(ctx, SRC_STRIDE_REG, src->stride); in g2d_copy()
545 g2d_add_cmd(ctx, SRC_LEFT_TOP_REG, pt.val); in g2d_copy()
548 g2d_add_cmd(ctx, SRC_RIGHT_BOTTOM_REG, pt.val); in g2d_copy()
552 g2d_add_cmd(ctx, DST_LEFT_TOP_REG, pt.val); in g2d_copy()
555 g2d_add_cmd(ctx, DST_RIGHT_BOTTOM_REG, pt.val); in g2d_copy()
559 g2d_add_cmd(ctx, ROP4_REG, rop4.val); in g2d_copy()
617 g2d_add_cmd(ctx, DST_SELECT_REG, G2D_SELECT_MODE_BGCOLOR); in g2d_move()
618 g2d_add_cmd(ctx, SRC_SELECT_REG, G2D_SELECT_MODE_NORMAL); in g2d_move()
620 g2d_add_cmd(ctx, DST_COLOR_MODE_REG, img->color_mode); in g2d_move()
621 g2d_add_cmd(ctx, SRC_COLOR_MODE_REG, img->color_mode); in g2d_move()
626 g2d_add_cmd(ctx, DST_STRIDE_REG, img->stride); in g2d_move()
627 g2d_add_cmd(ctx, SRC_STRIDE_REG, img->stride); in g2d_move()
640 g2d_add_cmd(ctx, SRC_LEFT_TOP_REG, pt.val); in g2d_move()
643 g2d_add_cmd(ctx, SRC_RIGHT_BOTTOM_REG, pt.val); in g2d_move()
647 g2d_add_cmd(ctx, DST_LEFT_TOP_REG, pt.val); in g2d_move()
650 g2d_add_cmd(ctx, DST_RIGHT_BOTTOM_REG, pt.val); in g2d_move()
654 g2d_add_cmd(ctx, ROP4_REG, rop4.val); in g2d_move()
724 g2d_add_cmd(ctx, DST_SELECT_REG, G2D_SELECT_MODE_BGCOLOR); in g2d_copy_with_scale()
725 g2d_add_cmd(ctx, DST_COLOR_MODE_REG, dst->color_mode); in g2d_copy_with_scale()
727 g2d_add_cmd(ctx, DST_STRIDE_REG, dst->stride); in g2d_copy_with_scale()
729 g2d_add_cmd(ctx, SRC_SELECT_REG, G2D_SELECT_MODE_NORMAL); in g2d_copy_with_scale()
730 g2d_add_cmd(ctx, SRC_COLOR_MODE_REG, src->color_mode); in g2d_copy_with_scale()
732 g2d_add_cmd(ctx, SRC_REPEAT_MODE_REG, src->repeat_mode); in g2d_copy_with_scale()
734 g2d_add_cmd(ctx, SRC_PAD_VALUE_REG, dst->color); in g2d_copy_with_scale()
737 g2d_add_cmd(ctx, SRC_STRIDE_REG, src->stride); in g2d_copy_with_scale()
743 g2d_add_cmd(ctx, BG_COLOR_REG, 0x00FFFFFF); in g2d_copy_with_scale()
747 g2d_add_cmd(ctx, ROP4_REG, rop4.val); in g2d_copy_with_scale()
750 g2d_add_cmd(ctx, SRC_SCALE_CTRL_REG, G2D_SCALE_MODE_BILINEAR); in g2d_copy_with_scale()
751 g2d_add_cmd(ctx, SRC_XSCALE_REG, scale_x); in g2d_copy_with_scale()
752 g2d_add_cmd(ctx, SRC_YSCALE_REG, scale_y); in g2d_copy_with_scale()
757 g2d_add_cmd(ctx, SRC_LEFT_TOP_REG, pt.val); in g2d_copy_with_scale()
760 g2d_add_cmd(ctx, SRC_RIGHT_BOTTOM_REG, pt.val); in g2d_copy_with_scale()
764 g2d_add_cmd(ctx, DST_LEFT_TOP_REG, pt.val); in g2d_copy_with_scale()
767 g2d_add_cmd(ctx, DST_RIGHT_BOTTOM_REG, pt.val); in g2d_copy_with_scale()
841 g2d_add_cmd(ctx, DST_SELECT_REG, G2D_SELECT_MODE_BGCOLOR); in g2d_blend()
843 g2d_add_cmd(ctx, DST_SELECT_REG, G2D_SELECT_MODE_NORMAL); in g2d_blend()
845 g2d_add_cmd(ctx, DST_COLOR_MODE_REG, dst->color_mode); in g2d_blend()
847 g2d_add_cmd(ctx, DST_STRIDE_REG, dst->stride); in g2d_blend()
849 g2d_add_cmd(ctx, SRC_SELECT_REG, src->select_mode); in g2d_blend()
850 g2d_add_cmd(ctx, SRC_COLOR_MODE_REG, src->color_mode); in g2d_blend()
855 g2d_add_cmd(ctx, SRC_STRIDE_REG, src->stride); in g2d_blend()
858 g2d_add_cmd(ctx, FG_COLOR_REG, src->color); in g2d_blend()
861 g2d_add_cmd(ctx, BG_COLOR_REG, src->color); in g2d_blend()
867 g2d_add_cmd(ctx, BITBLT_COMMAND_REG, bitblt.val); in g2d_blend()
868 g2d_add_cmd(ctx, BLEND_FUNCTION_REG, blend.val); in g2d_blend()
872 g2d_add_cmd(ctx, SRC_LEFT_TOP_REG, pt.val); in g2d_blend()
875 g2d_add_cmd(ctx, SRC_RIGHT_BOTTOM_REG, pt.val); in g2d_blend()
879 g2d_add_cmd(ctx, DST_LEFT_TOP_REG, pt.val); in g2d_blend()
882 g2d_add_cmd(ctx, DST_RIGHT_BOTTOM_REG, pt.val); in g2d_blend()
960 g2d_add_cmd(ctx, DST_SELECT_REG, G2D_SELECT_MODE_BGCOLOR); in g2d_scale_and_blend()
962 g2d_add_cmd(ctx, DST_SELECT_REG, G2D_SELECT_MODE_NORMAL); in g2d_scale_and_blend()
964 g2d_add_cmd(ctx, DST_COLOR_MODE_REG, dst->color_mode); in g2d_scale_and_blend()
966 g2d_add_cmd(ctx, DST_STRIDE_REG, dst->stride); in g2d_scale_and_blend()
968 g2d_add_cmd(ctx, SRC_SELECT_REG, src->select_mode); in g2d_scale_and_blend()
969 g2d_add_cmd(ctx, SRC_COLOR_MODE_REG, src->color_mode); in g2d_scale_and_blend()
974 g2d_add_cmd(ctx, SRC_STRIDE_REG, src->stride); in g2d_scale_and_blend()
977 g2d_add_cmd(ctx, FG_COLOR_REG, src->color); in g2d_scale_and_blend()
980 g2d_add_cmd(ctx, BG_COLOR_REG, src->color); in g2d_scale_and_blend()
985 g2d_add_cmd(ctx, SRC_SCALE_CTRL_REG, G2D_SCALE_MODE_BILINEAR); in g2d_scale_and_blend()
986 g2d_add_cmd(ctx, SRC_XSCALE_REG, scale_x); in g2d_scale_and_blend()
987 g2d_add_cmd(ctx, SRC_YSCALE_REG, scale_y); in g2d_scale_and_blend()
992 g2d_add_cmd(ctx, BITBLT_COMMAND_REG, bitblt.val); in g2d_scale_and_blend()
993 g2d_add_cmd(ctx, BLEND_FUNCTION_REG, blend.val); in g2d_scale_and_blend()
997 g2d_add_cmd(ctx, SRC_LEFT_TOP_REG, pt.val); in g2d_scale_and_blend()
1000 g2d_add_cmd(ctx, SRC_RIGHT_BOTTOM_REG, pt.val); in g2d_scale_and_blend()
1004 g2d_add_cmd(ctx, DST_LEFT_TOP_REG, pt.val); in g2d_scale_and_blend()
1007 g2d_add_cmd(ctx, DST_RIGHT_BOTTOM_REG, pt.val); in g2d_scale_and_blend()