Lines Matching +full:0 +full:v

17 #define SCALER_STATUS			0x0	/* no shadow */
18 #define SCALER_CFG 0x4
21 #define SCALER_INT_EN 0x8 /* no shadow */
22 #define SCALER_INT_STATUS 0xc /* no shadow */
25 #define SCALER_SRC_CFG 0x10
26 #define SCALER_SRC_Y_BASE 0x14
27 #define SCALER_SRC_CB_BASE 0x18
28 #define SCALER_SRC_CR_BASE 0x294
29 #define SCALER_SRC_SPAN 0x1c
30 #define SCALER_SRC_Y_POS 0x20
31 #define SCALER_SRC_WH 0x24
32 #define SCALER_SRC_C_POS 0x28
35 #define SCALER_DST_CFG 0x30
36 #define SCALER_DST_Y_BASE 0x34
37 #define SCALER_DST_CB_BASE 0x38
38 #define SCALER_DST_CR_BASE 0x298
39 #define SCALER_DST_SPAN 0x3c
40 #define SCALER_DST_WH 0x40
41 #define SCALER_DST_POS 0x44
44 #define SCALER_H_RATIO 0x50
45 #define SCALER_V_RATIO 0x54
48 #define SCALER_ROT_CFG 0x58
55 * 0 60 64 68 6c 140 144 148 14c
69 * 0 f0 f4 1d0 1d4
79 #define _SCALER_HCOEF_DELTA(r, c) ((r) * 0x10 + (c) * 0x4)
80 #define _SCALER_VCOEF_DELTA(r, c) ((r) * 0x8 + (c) * 0x4)
82 #define SCALER_YHCOEF(r, c) (0x60 + _SCALER_HCOEF_DELTA((r), (c)))
83 #define SCALER_YVCOEF(r, c) (0xf0 + _SCALER_VCOEF_DELTA((r), (c)))
84 #define SCALER_CHCOEF(r, c) (0x140 + _SCALER_HCOEF_DELTA((r), (c)))
85 #define SCALER_CVCOEF(r, c) (0x1d0 + _SCALER_VCOEF_DELTA((r), (c)))
89 #define SCALER_CSC_COEF(x, y) (0x220 + (y) * 0xc + (x) * 0x4)
92 #define SCALER_DITH_CFG 0x250
95 #define SCALER_VER 0x260 /* no shadow */
98 #define SCALER_CYCLE_COUNT 0x278 /* no shadow */
99 #define SCALER_TIMEOUT_CTRL 0x2c0 /* no shadow */
100 #define SCALER_TIMEOUT_CNT 0x2c4 /* no shadow */
103 #define SCALER_SRC_BLEND_COLOR 0x280
104 #define SCALER_SRC_BLEND_ALPHA 0x284
105 #define SCALER_DST_BLEND_COLOR 0x288
106 #define SCALER_DST_BLEND_ALPHA 0x28c
109 #define SCALER_FILL_COLOR 0x290
112 #define SCALER_ADDR_Q_CONFIG 0x2a0 /* no shadow */
113 #define SCALER_SRC_ADDR_Q_STATUS 0x2a4 /* no shadow */
114 #define SCALER_SRC_ADDR_Q 0x2a8 /* no shadow */
117 #define SCALER_CRC_COLOR00_10 0x2b0 /* no shadow */
118 #define SCALER_CRC_COLOR20_30 0x2b4 /* no shadow */
119 #define SCALER_CRC_COLOR01_11 0x2b8 /* no shadow */
120 #define SCALER_CRC_COLOR21_31 0x2bc /* no shadow */
123 #define SCALER_SHADOW_OFFSET 0x1000
135 #define SCALER_STATUS_SCALER_READY_CLK_DOWN (1 << 0)
145 #define SCALER_CFG_START_CMD (1 << 0)
173 #define SCALER_INT_EN_FRAME_END (1 << 0)
201 #define SCALER_INT_STATUS_FRAME_END (1 << 0)
206 #define SCALER_SRC_CFG_SET_BYTE_SWAP(v) SCALER_SET(v, 6, 5) argument
207 #define SCALER_SRC_CFG_GET_COLOR_FORMAT(r) SCALER_GET(r, 4, 0)
208 #define SCALER_SRC_CFG_SET_COLOR_FORMAT(v) SCALER_SET(v, 4, 0) argument
209 #define SCALER_YUV420_2P_UV 0
232 #define SCALER_SRC_SPAN_SET_C_SPAN(v) SCALER_SET(v, 29, 16) argument
233 #define SCALER_SRC_SPAN_GET_Y_SPAN(r) SCALER_GET(r, 13, 0)
234 #define SCALER_SRC_SPAN_SET_Y_SPAN(v) SCALER_SET(v, 13, 0) argument
238 #define SCALER_SRC_Y_POS_SET_YH_POS(v) SCALER_SET(v, 31, 16) argument
239 #define SCALER_SRC_Y_POS_GET_YV_POS(r) SCALER_GET(r, 15, 0)
240 #define SCALER_SRC_Y_POS_SET_YV_POS(v) SCALER_SET(v, 15, 0) argument
244 #define SCALER_SRC_WH_SET_WIDTH(v) SCALER_SET(v, 29, 16) argument
245 #define SCALER_SRC_WH_GET_HEIGHT(r) SCALER_GET(r, 13, 0)
246 #define SCALER_SRC_WH_SET_HEIGHT(v) SCALER_SET(v, 13, 0) argument
250 #define SCALER_SRC_C_POS_SET_CH_POS(v) SCALER_SET(v, 31, 16) argument
251 #define SCALER_SRC_C_POS_GET_CV_POS(r) SCALER_GET(r, 15, 0)
252 #define SCALER_SRC_C_POS_SET_CV_POS(v) SCALER_SET(v, 15, 0) argument
256 #define SCALER_DST_CFG_SET_BYTE_SWAP(v) SCALER_SET(v, 6, 5) argument
257 #define SCALER_DST_CFG_GET_COLOR_FORMAT(r) SCALER_GET(r, 4, 0)
258 #define SCALER_DST_CFG_SET_COLOR_FORMAT(v) SCALER_SET(v, 4, 0) argument
262 #define SCALER_DST_SPAN_SET_C_SPAN(v) SCALER_SET(v, 29, 16) argument
263 #define SCALER_DST_SPAN_GET_Y_SPAN(r) SCALER_GET(r, 13, 0)
264 #define SCALER_DST_SPAN_SET_Y_SPAN(v) SCALER_SET(v, 13, 0) argument
268 #define SCALER_DST_WH_SET_WIDTH(v) SCALER_SET(v, 29, 16) argument
269 #define SCALER_DST_WH_GET_HEIGHT(r) SCALER_GET(r, 13, 0)
270 #define SCALER_DST_WH_SET_HEIGHT(v) SCALER_SET(v, 13, 0) argument
274 #define SCALER_DST_POS_SET_H_POS(v) SCALER_SET(v, 29, 16) argument
275 #define SCALER_DST_POS_GET_V_POS(r) SCALER_GET(r, 13, 0)
276 #define SCALER_DST_POS_SET_V_POS(v) SCALER_SET(v, 13, 0) argument
279 #define SCALER_H_RATIO_GET(r) SCALER_GET(r, 18, 0)
280 #define SCALER_H_RATIO_SET(v) SCALER_SET(v, 18, 0) argument
283 #define SCALER_V_RATIO_GET(r) SCALER_GET(r, 18, 0)
284 #define SCALER_V_RATIO_SET(v) SCALER_SET(v, 18, 0) argument
289 #define SCALER_ROT_CFG_GET_ROTMODE(r) SCALER_GET(r, 1, 0)
290 #define SCALER_ROT_CFG_SET_ROTMODE(v) SCALER_SET(v, 1, 0) argument
298 (((r) >> SCALER_COEF_SHIFT(i)) & 0x1ff)
299 #define SCALER_COEF_SET(v, i) \ argument
300 (((v) & 0x1ff) << SCALER_COEF_SHIFT(i))
303 #define SCALER_CSC_COEF_GET(r) SCALER_GET(r, 11, 0)
304 #define SCALER_CSC_COEF_SET(v) SCALER_SET(v, 11, 0) argument
308 #define SCALER_DITH_CFG_SET_R_TYPE(v) SCALER_SET(v, 8, 6) argument
310 #define SCALER_DITH_CFG_SET_G_TYPE(v) SCALER_SET(v, 5, 3) argument
311 #define SCALER_DITH_CFG_GET_B_TYPE(r) SCALER_GET(r, 2, 0)
312 #define SCALER_DITH_CFG_SET_B_TYPE(v) SCALER_SET(v, 2, 0) argument
316 #define SCALER_TIMEOUT_CTRL_SET_TIMER_VALUE(v) SCALER_SET(v, 31, 16) argument
318 #define SCALER_TIMEOUT_CTRL_SET_TIMER_DIV(v) SCALER_SET(v, 7, 4) argument
319 #define SCALER_TIMEOUT_CTRL_TIMER_ENABLE (1 << 0)
327 #define SCALER_SRC_BLEND_COLOR_SET_SEL(v) SCALER_SET(v, 30, 29) argument
330 #define SCALER_SRC_BLEND_COLOR_SET_OP_SEL(v) SCALER_SET(v, 27, 24) argument
332 #define SCALER_SRC_BLEND_COLOR_SET_COLOR0(v) SCALER_SET(v, 23, 16) argument
334 #define SCALER_SRC_BLEND_COLOR_SET_COLOR1(v) SCALER_SET(v, 15, 8) argument
335 #define SCALER_SRC_BLEND_COLOR_GET_COLOR2(r) SCALER_GET(r, 7, 0)
336 #define SCALER_SRC_BLEND_COLOR_SET_COLOR2(v) SCALER_SET(v, 7, 0) argument
341 #define SCALER_SRC_BLEND_ALPHA_SET_SEL(v) SCALER_SET(v, 30, 29) argument
344 #define SCALER_SRC_BLEND_ALPHA_SET_OP_SEL(v) SCALER_SET(v, 27, 24) argument
345 #define SCALER_SRC_BLEND_ALPHA_GET_ALPHA(r) SCALER_GET(r, 7, 0)
346 #define SCALER_SRC_BLEND_ALPHA_SET_ALPHA(v) SCALER_SET(v, 7, 0) argument
351 #define SCALER_DST_BLEND_COLOR_SET_SEL(v) SCALER_SET(v, 30, 29) argument
354 #define SCALER_DST_BLEND_COLOR_SET_OP_SEL(v) SCALER_SET(v, 27, 24) argument
356 #define SCALER_DST_BLEND_COLOR_SET_COLOR0(v) SCALER_SET(v, 23, 16) argument
358 #define SCALER_DST_BLEND_COLOR_SET_COLOR1(v) SCALER_SET(v, 15, 8) argument
359 #define SCALER_DST_BLEND_COLOR_GET_COLOR2(r) SCALER_GET(r, 7, 0)
360 #define SCALER_DST_BLEND_COLOR_SET_COLOR2(v) SCALER_SET(v, 7, 0) argument
365 #define SCALER_DST_BLEND_ALPHA_SET_SEL(v) SCALER_SET(v, 30, 29) argument
368 #define SCALER_DST_BLEND_ALPHA_SET_OP_SEL(v) SCALER_SET(v, 27, 24) argument
369 #define SCALER_DST_BLEND_ALPHA_GET_ALPHA(r) SCALER_GET(r, 7, 0)
370 #define SCALER_DST_BLEND_ALPHA_SET_ALPHA(v) SCALER_SET(v, 7, 0) argument
374 #define SCALER_FILL_COLOR_SET_ALPHA(v) SCALER_SET(v, 31, 24) argument
376 #define SCALER_FILL_COLOR_SET_FILL_COLOR0(v) SCALER_SET(v, 23, 16) argument
378 #define SCALER_FILL_COLOR_SET_FILL_COLOR1(v) SCALER_SET(v, 15, 8) argument
379 #define SCALER_FILL_COLOR_GET_FILL_COLOR2(r) SCALER_GET(r, 7, 0)
380 #define SCALER_FILL_COLOR_SET_FILL_COLOR2(v) SCALER_SET(v, 7, 0) argument
383 #define SCALER_ADDR_Q_CONFIG_RST (1 << 0)
394 #define SCALER_SRC_ADDR_Q_STATUS_GET_CR_WR_IDX(r) SCALER_GET(r, 5, 0)
405 #define SCALER_DST_ADDR_Q_STATUS_GET_CR_WR_IDX(r) SCALER_GET(r, 5, 0)
409 #define SCALER_CRC_COLOR00_10_GET_10(r) SCALER_GET(r, 15, 0)
413 #define SCALER_CRC_COLOR20_30_GET_30(r) SCALER_GET(r, 15, 0)
417 #define SCALER_CRC_COLOR01_11_GET_11(r) SCALER_GET(r, 15, 0)
421 #define SCALER_CRC_COLOR21_31_GET_31(r) SCALER_GET(r, 15, 0)