Lines Matching +full:v +full:- +full:bit
1 /* SPDX-License-Identifier: GPL-2.0 */
11 #include <media/v4l2-device.h>
12 #include <media/v4l2-mem2mem.h>
13 #include <media/videobuf2-v4l2.h>
14 #include <media/videobuf2-dma-contig.h>
18 #define DEINTERLACE_NAME "sun8i-di"
21 #define DEINTERLACE_MOD_ENABLE_EN BIT(0)
24 #define DEINTERLACE_FRM_CTRL_REG_READY BIT(0)
25 #define DEINTERLACE_FRM_CTRL_WB_EN BIT(2)
26 #define DEINTERLACE_FRM_CTRL_OUT_CTRL BIT(11)
27 #define DEINTERLACE_FRM_CTRL_START BIT(16)
28 #define DEINTERLACE_FRM_CTRL_COEF_ACCESS BIT(23)
31 #define DEINTERLACE_BYPASS_CSC BIT(1)
34 #define DEINTERLACE_AGTH_SEL_LINEBUF BIT(8)
43 #define DEINTERLACE_FIELD_CTRL_FIELD_CNT(v) ((v) & 0xff) argument
55 #define DEINTERLACE_IN_FMT_PS(v) ((v) & 3) argument
56 #define DEINTERLACE_IN_FMT_FMT(v) (((v) & 7) << 4) argument
57 #define DEINTERLACE_IN_FMT_MOD(v) (((v) & 7) << 8) argument
64 #define DEINTERLACE_OUT_FMT_FMT(v) ((v) & 0xf) argument
65 #define DEINTERLACE_OUT_FMT_PS(v) (((v) & 3) << 5) argument
68 #define DEINTERLACE_INT_ENABLE_WB_EN BIT(7)
71 #define DEINTERLACE_INT_STATUS_WRITEBACK BIT(7)
74 #define DEINTERLACE_STATUS_COEF_STATUS BIT(11)
75 #define DEINTERLACE_STATUS_WB_ERROR BIT(12)
80 #define DEINTERLACE_CTRL_EN BIT(0)
81 #define DEINTERLACE_CTRL_FLAG_OUT_EN BIT(8)
86 #define DEINTERLACE_CTRL_DIAG_INTP_EN BIT(24)
87 #define DEINTERLACE_CTRL_TEMP_DIFF_EN BIT(25)
90 #define DEINTERLACE_DIAG_INTP_TH0(v) ((v) & 0x7f) argument
92 #define DEINTERLACE_DIAG_INTP_TH1(v) (((v) & 0x7f) << 8) argument
94 #define DEINTERLACE_DIAG_INTP_TH3(v) (((v) & 0xff) << 24) argument
98 #define DEINTERLACE_TEMP_DIFF_SAD_CENTRAL_TH(v) ((v) & 0x7f) argument
100 #define DEINTERLACE_TEMP_DIFF_AMBIGUITY_TH(v) (((v) & 0x7f) << 8) argument
102 #define DEINTERLACE_TEMP_DIFF_DIRECT_DITHER_TH(v) (((v) & 0x7ff) << 16) argument
106 #define DEINTERLACE_LUMA_TH_MIN_LUMA(v) ((v) & 0xff) argument
108 #define DEINTERLACE_LUMA_TH_MAX_LUMA(v) (((v) & 0xff) << 8) argument
110 #define DEINTERLACE_LUMA_TH_AVG_LUMA_SHIFT(v) (((v) & 0xff) << 16) argument
112 #define DEINTERLACE_LUMA_TH_PIXEL_STATIC(v) (((v) & 3) << 24) argument
116 #define DEINTERLACE_SPAT_COMP_TH2(v) ((v) & 0xff) argument
118 #define DEINTERLACE_SPAT_COMP_TH3(v) (((v) & 0xff) << 16) argument
122 #define DEINTERLACE_CHROMA_DIFF_TH(v) ((v) & 0xff) argument
124 #define DEINTERLACE_CHROMA_DIFF_LUMA(v) (((v) & 0x3f) << 16) argument
126 #define DEINTERLACE_CHROMA_DIFF_CHROMA(v) (((v) & 0x3f) << 24) argument
137 #define DEINTERLACE_WB_LINE_STRIDE_CTRL_EN BIT(0)
196 #define DEINTERLACE_SIZE(w, h) (((h) - 1) << 16 | ((w) - 1))