Lines Matching refs:cfg
22 u32 cfg; in gsc_wait_reset() local
25 cfg = readl(dev->regs + GSC_SW_RESET); in gsc_wait_reset()
26 if (!cfg) in gsc_wait_reset()
36 u32 cfg; in gsc_hw_set_frm_done_irq_mask() local
38 cfg = readl(dev->regs + GSC_IRQ); in gsc_hw_set_frm_done_irq_mask()
40 cfg |= GSC_IRQ_FRMDONE_MASK; in gsc_hw_set_frm_done_irq_mask()
42 cfg &= ~GSC_IRQ_FRMDONE_MASK; in gsc_hw_set_frm_done_irq_mask()
43 writel(cfg, dev->regs + GSC_IRQ); in gsc_hw_set_frm_done_irq_mask()
48 u32 cfg; in gsc_hw_set_gsc_irq_enable() local
50 cfg = readl(dev->regs + GSC_IRQ); in gsc_hw_set_gsc_irq_enable()
52 cfg |= GSC_IRQ_ENABLE; in gsc_hw_set_gsc_irq_enable()
54 cfg &= ~GSC_IRQ_ENABLE; in gsc_hw_set_gsc_irq_enable()
55 writel(cfg, dev->regs + GSC_IRQ); in gsc_hw_set_gsc_irq_enable()
61 u32 cfg = readl(dev->regs + GSC_IN_BASE_ADDR_Y_MASK); in gsc_hw_set_input_buf_masking() local
64 cfg &= ~mask; in gsc_hw_set_input_buf_masking()
65 cfg |= enable << shift; in gsc_hw_set_input_buf_masking()
67 writel(cfg, dev->regs + GSC_IN_BASE_ADDR_Y_MASK); in gsc_hw_set_input_buf_masking()
68 writel(cfg, dev->regs + GSC_IN_BASE_ADDR_CB_MASK); in gsc_hw_set_input_buf_masking()
69 writel(cfg, dev->regs + GSC_IN_BASE_ADDR_CR_MASK); in gsc_hw_set_input_buf_masking()
75 u32 cfg = readl(dev->regs + GSC_OUT_BASE_ADDR_Y_MASK); in gsc_hw_set_output_buf_masking() local
78 cfg &= ~mask; in gsc_hw_set_output_buf_masking()
79 cfg |= enable << shift; in gsc_hw_set_output_buf_masking()
81 writel(cfg, dev->regs + GSC_OUT_BASE_ADDR_Y_MASK); in gsc_hw_set_output_buf_masking()
82 writel(cfg, dev->regs + GSC_OUT_BASE_ADDR_CB_MASK); in gsc_hw_set_output_buf_masking()
83 writel(cfg, dev->regs + GSC_OUT_BASE_ADDR_CR_MASK); in gsc_hw_set_output_buf_masking()
111 u32 cfg = readl(dev->regs + GSC_IN_CON); in gsc_hw_set_input_path() local
112 cfg &= ~(GSC_IN_PATH_MASK | GSC_IN_LOCAL_SEL_MASK); in gsc_hw_set_input_path()
115 cfg |= GSC_IN_PATH_MEMORY; in gsc_hw_set_input_path()
117 writel(cfg, dev->regs + GSC_IN_CON); in gsc_hw_set_input_path()
124 u32 cfg; in gsc_hw_set_in_size() local
127 cfg = GSC_SRCIMG_OFFSET_X(frame->crop.left); in gsc_hw_set_in_size()
128 cfg |= GSC_SRCIMG_OFFSET_Y(frame->crop.top); in gsc_hw_set_in_size()
129 writel(cfg, dev->regs + GSC_SRCIMG_OFFSET); in gsc_hw_set_in_size()
132 cfg = GSC_SRCIMG_WIDTH(frame->f_width); in gsc_hw_set_in_size()
133 cfg |= GSC_SRCIMG_HEIGHT(frame->f_height); in gsc_hw_set_in_size()
134 writel(cfg, dev->regs + GSC_SRCIMG_SIZE); in gsc_hw_set_in_size()
137 cfg = GSC_CROPPED_WIDTH(frame->crop.width); in gsc_hw_set_in_size()
138 cfg |= GSC_CROPPED_HEIGHT(frame->crop.height); in gsc_hw_set_in_size()
139 writel(cfg, dev->regs + GSC_CROPPED_SIZE); in gsc_hw_set_in_size()
146 u32 cfg; in gsc_hw_set_in_image_rgb() local
148 cfg = readl(dev->regs + GSC_IN_CON); in gsc_hw_set_in_image_rgb()
150 cfg |= GSC_IN_RGB_HD_WIDE; in gsc_hw_set_in_image_rgb()
152 cfg |= GSC_IN_RGB_SD_WIDE; in gsc_hw_set_in_image_rgb()
155 cfg |= GSC_IN_RGB565; in gsc_hw_set_in_image_rgb()
157 cfg |= GSC_IN_XRGB8888; in gsc_hw_set_in_image_rgb()
159 writel(cfg, dev->regs + GSC_IN_CON); in gsc_hw_set_in_image_rgb()
167 u32 cfg; in gsc_hw_set_in_image_format() local
169 cfg = readl(dev->regs + GSC_IN_CON); in gsc_hw_set_in_image_format()
170 cfg &= ~(GSC_IN_RGB_TYPE_MASK | GSC_IN_YUV422_1P_ORDER_MASK | in gsc_hw_set_in_image_format()
173 writel(cfg, dev->regs + GSC_IN_CON); in gsc_hw_set_in_image_format()
184 cfg |= GSC_IN_YUV422_1P; in gsc_hw_set_in_image_format()
186 cfg |= GSC_IN_YUV422_1P_ORDER_LSB_Y; in gsc_hw_set_in_image_format()
188 cfg |= GSC_IN_YUV422_1P_OEDER_LSB_C; in gsc_hw_set_in_image_format()
190 cfg |= GSC_IN_CHROMA_ORDER_CBCR; in gsc_hw_set_in_image_format()
192 cfg |= GSC_IN_CHROMA_ORDER_CRCB; in gsc_hw_set_in_image_format()
196 cfg |= GSC_IN_YUV420_2P; in gsc_hw_set_in_image_format()
198 cfg |= GSC_IN_YUV422_2P; in gsc_hw_set_in_image_format()
200 cfg |= GSC_IN_CHROMA_ORDER_CBCR; in gsc_hw_set_in_image_format()
202 cfg |= GSC_IN_CHROMA_ORDER_CRCB; in gsc_hw_set_in_image_format()
206 cfg |= GSC_IN_YUV420_3P; in gsc_hw_set_in_image_format()
208 cfg |= GSC_IN_YUV422_3P; in gsc_hw_set_in_image_format()
213 cfg |= GSC_IN_TILE_C_16x8 | GSC_IN_TILE_MODE; in gsc_hw_set_in_image_format()
215 writel(cfg, dev->regs + GSC_IN_CON); in gsc_hw_set_in_image_format()
222 u32 cfg = readl(dev->regs + GSC_OUT_CON); in gsc_hw_set_output_path() local
223 cfg &= ~GSC_OUT_PATH_MASK; in gsc_hw_set_output_path()
226 cfg |= GSC_OUT_PATH_MEMORY; in gsc_hw_set_output_path()
228 cfg |= GSC_OUT_PATH_LOCAL; in gsc_hw_set_output_path()
230 writel(cfg, dev->regs + GSC_OUT_CON); in gsc_hw_set_output_path()
237 u32 cfg; in gsc_hw_set_out_size() local
241 cfg = GSC_DSTIMG_OFFSET_X(frame->crop.left); in gsc_hw_set_out_size()
242 cfg |= GSC_DSTIMG_OFFSET_Y(frame->crop.top); in gsc_hw_set_out_size()
243 writel(cfg, dev->regs + GSC_DSTIMG_OFFSET); in gsc_hw_set_out_size()
245 cfg = GSC_DSTIMG_WIDTH(frame->f_width); in gsc_hw_set_out_size()
246 cfg |= GSC_DSTIMG_HEIGHT(frame->f_height); in gsc_hw_set_out_size()
247 writel(cfg, dev->regs + GSC_DSTIMG_SIZE); in gsc_hw_set_out_size()
253 cfg = GSC_SCALED_WIDTH(frame->crop.height); in gsc_hw_set_out_size()
254 cfg |= GSC_SCALED_HEIGHT(frame->crop.width); in gsc_hw_set_out_size()
256 cfg = GSC_SCALED_WIDTH(frame->crop.width); in gsc_hw_set_out_size()
257 cfg |= GSC_SCALED_HEIGHT(frame->crop.height); in gsc_hw_set_out_size()
259 writel(cfg, dev->regs + GSC_SCALED_SIZE); in gsc_hw_set_out_size()
266 u32 cfg; in gsc_hw_set_out_image_rgb() local
268 cfg = readl(dev->regs + GSC_OUT_CON); in gsc_hw_set_out_image_rgb()
270 cfg |= GSC_OUT_RGB_HD_WIDE; in gsc_hw_set_out_image_rgb()
272 cfg |= GSC_OUT_RGB_SD_WIDE; in gsc_hw_set_out_image_rgb()
275 cfg |= GSC_OUT_RGB565; in gsc_hw_set_out_image_rgb()
277 cfg |= GSC_OUT_XRGB8888; in gsc_hw_set_out_image_rgb()
279 writel(cfg, dev->regs + GSC_OUT_CON); in gsc_hw_set_out_image_rgb()
287 u32 cfg; in gsc_hw_set_out_image_format() local
289 cfg = readl(dev->regs + GSC_OUT_CON); in gsc_hw_set_out_image_format()
290 cfg &= ~(GSC_OUT_RGB_TYPE_MASK | GSC_OUT_YUV422_1P_ORDER_MASK | in gsc_hw_set_out_image_format()
293 writel(cfg, dev->regs + GSC_OUT_CON); in gsc_hw_set_out_image_format()
301 cfg |= GSC_OUT_YUV444; in gsc_hw_set_out_image_format()
310 cfg |= GSC_OUT_YUV422_1P; in gsc_hw_set_out_image_format()
312 cfg |= GSC_OUT_YUV422_1P_ORDER_LSB_Y; in gsc_hw_set_out_image_format()
314 cfg |= GSC_OUT_YUV422_1P_OEDER_LSB_C; in gsc_hw_set_out_image_format()
316 cfg |= GSC_OUT_CHROMA_ORDER_CBCR; in gsc_hw_set_out_image_format()
318 cfg |= GSC_OUT_CHROMA_ORDER_CRCB; in gsc_hw_set_out_image_format()
322 cfg |= GSC_OUT_YUV420_2P; in gsc_hw_set_out_image_format()
324 cfg |= GSC_OUT_YUV422_2P; in gsc_hw_set_out_image_format()
326 cfg |= GSC_OUT_CHROMA_ORDER_CBCR; in gsc_hw_set_out_image_format()
328 cfg |= GSC_OUT_CHROMA_ORDER_CRCB; in gsc_hw_set_out_image_format()
331 cfg |= GSC_OUT_YUV420_3P; in gsc_hw_set_out_image_format()
336 cfg |= GSC_OUT_TILE_C_16x8 | GSC_OUT_TILE_MODE; in gsc_hw_set_out_image_format()
339 writel(cfg, dev->regs + GSC_OUT_CON); in gsc_hw_set_out_image_format()
346 u32 cfg; in gsc_hw_set_prescaler() local
348 cfg = GSC_PRESC_SHFACTOR(sc->pre_shfactor); in gsc_hw_set_prescaler()
349 cfg |= GSC_PRESC_H_RATIO(sc->pre_hratio); in gsc_hw_set_prescaler()
350 cfg |= GSC_PRESC_V_RATIO(sc->pre_vratio); in gsc_hw_set_prescaler()
351 writel(cfg, dev->regs + GSC_PRE_SCALE_RATIO); in gsc_hw_set_prescaler()
358 u32 cfg; in gsc_hw_set_mainscaler() local
360 cfg = GSC_MAIN_H_RATIO_VALUE(sc->main_hratio); in gsc_hw_set_mainscaler()
361 writel(cfg, dev->regs + GSC_MAIN_H_RATIO); in gsc_hw_set_mainscaler()
363 cfg = GSC_MAIN_V_RATIO_VALUE(sc->main_vratio); in gsc_hw_set_mainscaler()
364 writel(cfg, dev->regs + GSC_MAIN_V_RATIO); in gsc_hw_set_mainscaler()
370 u32 cfg; in gsc_hw_set_rotation() local
372 cfg = readl(dev->regs + GSC_IN_CON); in gsc_hw_set_rotation()
373 cfg &= ~GSC_IN_ROT_MASK; in gsc_hw_set_rotation()
377 cfg |= GSC_IN_ROT_270; in gsc_hw_set_rotation()
380 cfg |= GSC_IN_ROT_180; in gsc_hw_set_rotation()
384 cfg |= GSC_IN_ROT_90_XFLIP; in gsc_hw_set_rotation()
386 cfg |= GSC_IN_ROT_90_YFLIP; in gsc_hw_set_rotation()
388 cfg |= GSC_IN_ROT_90; in gsc_hw_set_rotation()
392 cfg |= GSC_IN_ROT_XFLIP; in gsc_hw_set_rotation()
394 cfg |= GSC_IN_ROT_YFLIP; in gsc_hw_set_rotation()
397 writel(cfg, dev->regs + GSC_IN_CON); in gsc_hw_set_rotation()
404 u32 cfg; in gsc_hw_set_global_alpha() local
411 cfg = readl(dev->regs + GSC_OUT_CON); in gsc_hw_set_global_alpha()
412 cfg &= ~GSC_OUT_GLOBAL_ALPHA_MASK; in gsc_hw_set_global_alpha()
414 cfg |= GSC_OUT_GLOBAL_ALPHA(ctx->gsc_ctrls.global_alpha->val); in gsc_hw_set_global_alpha()
415 writel(cfg, dev->regs + GSC_OUT_CON); in gsc_hw_set_global_alpha()
421 u32 cfg; in gsc_hw_set_sfr_update() local
423 cfg = readl(dev->regs + GSC_ENABLE); in gsc_hw_set_sfr_update()
424 cfg |= GSC_ENABLE_SFR_UPDATE; in gsc_hw_set_sfr_update()
425 writel(cfg, dev->regs + GSC_ENABLE); in gsc_hw_set_sfr_update()