Lines Matching refs:reg
20 u32 reg = 1; in exynos3250_jpeg_reset() local
25 while (reg != 0 && --count > 0) { in exynos3250_jpeg_reset()
28 reg = readl(regs + EXYNOS3250_SW_RESET); in exynos3250_jpeg_reset()
31 reg = 0; in exynos3250_jpeg_reset()
34 while (reg != 1 && --count > 0) { in exynos3250_jpeg_reset()
38 reg = readl(regs + EXYNOS3250_JPGDRI); in exynos3250_jpeg_reset()
62 u32 reg; in exynos3250_jpeg_clk_set() local
64 reg = readl(base + EXYNOS3250_JPGCMOD) & ~EXYNOS3250_HALF_EN_MASK; in exynos3250_jpeg_clk_set()
66 writel(reg | EXYNOS3250_HALF_EN, base + EXYNOS3250_JPGCMOD); in exynos3250_jpeg_clk_set()
71 u32 reg; in exynos3250_jpeg_input_raw_fmt() local
73 reg = readl(regs + EXYNOS3250_JPGCMOD) & in exynos3250_jpeg_input_raw_fmt()
78 reg |= EXYNOS3250_MODE_SEL_ARGB8888; in exynos3250_jpeg_input_raw_fmt()
81 reg |= EXYNOS3250_MODE_SEL_ARGB8888 | EXYNOS3250_SRC_SWAP_RGB; in exynos3250_jpeg_input_raw_fmt()
84 reg |= EXYNOS3250_MODE_SEL_RGB565; in exynos3250_jpeg_input_raw_fmt()
87 reg |= EXYNOS3250_MODE_SEL_RGB565 | EXYNOS3250_SRC_SWAP_RGB; in exynos3250_jpeg_input_raw_fmt()
90 reg |= EXYNOS3250_MODE_SEL_422_1P_LUM_CHR; in exynos3250_jpeg_input_raw_fmt()
93 reg |= EXYNOS3250_MODE_SEL_422_1P_LUM_CHR | in exynos3250_jpeg_input_raw_fmt()
97 reg |= EXYNOS3250_MODE_SEL_422_1P_CHR_LUM; in exynos3250_jpeg_input_raw_fmt()
100 reg |= EXYNOS3250_MODE_SEL_422_1P_CHR_LUM | in exynos3250_jpeg_input_raw_fmt()
104 reg |= EXYNOS3250_MODE_SEL_420_2P | EXYNOS3250_SRC_NV12; in exynos3250_jpeg_input_raw_fmt()
107 reg |= EXYNOS3250_MODE_SEL_420_2P | EXYNOS3250_SRC_NV21; in exynos3250_jpeg_input_raw_fmt()
110 reg |= EXYNOS3250_MODE_SEL_420_3P; in exynos3250_jpeg_input_raw_fmt()
117 writel(reg, regs + EXYNOS3250_JPGCMOD); in exynos3250_jpeg_input_raw_fmt()
122 u32 reg; in exynos3250_jpeg_set_y16() local
124 reg = readl(regs + EXYNOS3250_JPGCMOD); in exynos3250_jpeg_set_y16()
126 reg |= EXYNOS3250_MODE_Y16; in exynos3250_jpeg_set_y16()
128 reg &= ~EXYNOS3250_MODE_Y16_MASK; in exynos3250_jpeg_set_y16()
129 writel(reg, regs + EXYNOS3250_JPGCMOD); in exynos3250_jpeg_set_y16()
134 u32 reg, m; in exynos3250_jpeg_proc_mode() local
140 reg = readl(regs + EXYNOS3250_JPGMOD); in exynos3250_jpeg_proc_mode()
141 reg &= ~EXYNOS3250_PROC_MODE_MASK; in exynos3250_jpeg_proc_mode()
142 reg |= m; in exynos3250_jpeg_proc_mode()
143 writel(reg, regs + EXYNOS3250_JPGMOD); in exynos3250_jpeg_proc_mode()
148 u32 reg, m = 0; in exynos3250_jpeg_subsampling_mode() local
162 reg = readl(regs + EXYNOS3250_JPGMOD); in exynos3250_jpeg_subsampling_mode()
163 reg &= ~EXYNOS3250_SUBSAMPLING_MODE_MASK; in exynos3250_jpeg_subsampling_mode()
164 reg |= m; in exynos3250_jpeg_subsampling_mode()
165 writel(reg, regs + EXYNOS3250_JPGMOD); in exynos3250_jpeg_subsampling_mode()
176 u32 reg; in exynos3250_jpeg_dri() local
178 reg = dri & EXYNOS3250_JPGDRI_MASK; in exynos3250_jpeg_dri()
179 writel(reg, regs + EXYNOS3250_JPGDRI); in exynos3250_jpeg_dri()
184 unsigned long reg; in exynos3250_jpeg_qtbl() local
186 reg = readl(regs + EXYNOS3250_QHTBL); in exynos3250_jpeg_qtbl()
187 reg &= ~EXYNOS3250_QT_NUM_MASK(t); in exynos3250_jpeg_qtbl()
188 reg |= (n << EXYNOS3250_QT_NUM_SHIFT(t)) & in exynos3250_jpeg_qtbl()
190 writel(reg, regs + EXYNOS3250_QHTBL); in exynos3250_jpeg_qtbl()
195 unsigned long reg; in exynos3250_jpeg_htbl_ac() local
197 reg = readl(regs + EXYNOS3250_QHTBL); in exynos3250_jpeg_htbl_ac()
198 reg &= ~EXYNOS3250_HT_NUM_AC_MASK(t); in exynos3250_jpeg_htbl_ac()
200 reg |= (0 << EXYNOS3250_HT_NUM_AC_SHIFT(t)) & in exynos3250_jpeg_htbl_ac()
202 writel(reg, regs + EXYNOS3250_QHTBL); in exynos3250_jpeg_htbl_ac()
207 unsigned long reg; in exynos3250_jpeg_htbl_dc() local
209 reg = readl(regs + EXYNOS3250_QHTBL); in exynos3250_jpeg_htbl_dc()
210 reg &= ~EXYNOS3250_HT_NUM_DC_MASK(t); in exynos3250_jpeg_htbl_dc()
212 reg |= (0 << EXYNOS3250_HT_NUM_DC_SHIFT(t)) & in exynos3250_jpeg_htbl_dc()
214 writel(reg, regs + EXYNOS3250_QHTBL); in exynos3250_jpeg_htbl_dc()
219 u32 reg; in exynos3250_jpeg_set_y() local
221 reg = y & EXYNOS3250_JPGY_MASK; in exynos3250_jpeg_set_y()
222 writel(reg, regs + EXYNOS3250_JPGY); in exynos3250_jpeg_set_y()
227 u32 reg; in exynos3250_jpeg_set_x() local
229 reg = x & EXYNOS3250_JPGX_MASK; in exynos3250_jpeg_set_x()
230 writel(reg, regs + EXYNOS3250_JPGX); in exynos3250_jpeg_set_x()
247 u32 reg; in exynos3250_jpeg_interrupts_enable() local
249 reg = readl(regs + EXYNOS3250_JPGINTSE); in exynos3250_jpeg_interrupts_enable()
250 reg |= (EXYNOS3250_JPEG_DONE_EN | in exynos3250_jpeg_interrupts_enable()
257 writel(reg, regs + EXYNOS3250_JPGINTSE); in exynos3250_jpeg_interrupts_enable()
262 u32 reg; in exynos3250_jpeg_enc_stream_bound() local
264 reg = size & EXYNOS3250_ENC_STREAM_BOUND_MASK; in exynos3250_jpeg_enc_stream_bound()
265 writel(reg, regs + EXYNOS3250_ENC_STREAM_BOUND); in exynos3250_jpeg_enc_stream_bound()
270 u32 reg; in exynos3250_jpeg_output_raw_fmt() local
274 reg = EXYNOS3250_OUT_FMT_ARGB8888; in exynos3250_jpeg_output_raw_fmt()
277 reg = EXYNOS3250_OUT_FMT_ARGB8888 | EXYNOS3250_OUT_SWAP_RGB; in exynos3250_jpeg_output_raw_fmt()
280 reg = EXYNOS3250_OUT_FMT_RGB565; in exynos3250_jpeg_output_raw_fmt()
283 reg = EXYNOS3250_OUT_FMT_RGB565 | EXYNOS3250_OUT_SWAP_RGB; in exynos3250_jpeg_output_raw_fmt()
286 reg = EXYNOS3250_OUT_FMT_422_1P_LUM_CHR; in exynos3250_jpeg_output_raw_fmt()
289 reg = EXYNOS3250_OUT_FMT_422_1P_LUM_CHR | in exynos3250_jpeg_output_raw_fmt()
293 reg = EXYNOS3250_OUT_FMT_422_1P_CHR_LUM; in exynos3250_jpeg_output_raw_fmt()
296 reg = EXYNOS3250_OUT_FMT_422_1P_CHR_LUM | in exynos3250_jpeg_output_raw_fmt()
300 reg = EXYNOS3250_OUT_FMT_420_2P | EXYNOS3250_OUT_NV12; in exynos3250_jpeg_output_raw_fmt()
303 reg = EXYNOS3250_OUT_FMT_420_2P | EXYNOS3250_OUT_NV21; in exynos3250_jpeg_output_raw_fmt()
306 reg = EXYNOS3250_OUT_FMT_420_3P; in exynos3250_jpeg_output_raw_fmt()
309 reg = 0; in exynos3250_jpeg_output_raw_fmt()
313 writel(reg, regs + EXYNOS3250_OUTFORM); in exynos3250_jpeg_output_raw_fmt()
366 u32 reg; in exynos3250_jpeg_offset() local
368 reg = (y_offset << EXYNOS3250_LUMA_YY_OFFSET_SHIFT) & in exynos3250_jpeg_offset()
370 reg |= (x_offset << EXYNOS3250_LUMA_YX_OFFSET_SHIFT) & in exynos3250_jpeg_offset()
373 writel(reg, regs + EXYNOS3250_LUMA_XY_OFFSET); in exynos3250_jpeg_offset()
375 reg = (y_offset << EXYNOS3250_CHROMA_YY_OFFSET_SHIFT) & in exynos3250_jpeg_offset()
377 reg |= (x_offset << EXYNOS3250_CHROMA_YX_OFFSET_SHIFT) & in exynos3250_jpeg_offset()
380 writel(reg, regs + EXYNOS3250_CHROMA_XY_OFFSET); in exynos3250_jpeg_offset()
382 reg = (y_offset << EXYNOS3250_CHROMA_CR_YY_OFFSET_SHIFT) & in exynos3250_jpeg_offset()
384 reg |= (x_offset << EXYNOS3250_CHROMA_CR_YX_OFFSET_SHIFT) & in exynos3250_jpeg_offset()
387 writel(reg, regs + EXYNOS3250_CHROMA_CR_XY_OFFSET); in exynos3250_jpeg_offset()