Lines Matching refs:reg
23 u32 reg = 1; in exynos3250_jpeg_reset() local
28 while (reg != 0 && --count > 0) { in exynos3250_jpeg_reset()
31 reg = readl(regs + EXYNOS3250_SW_RESET); in exynos3250_jpeg_reset()
34 reg = 0; in exynos3250_jpeg_reset()
37 while (reg != 1 && --count > 0) { in exynos3250_jpeg_reset()
41 reg = readl(regs + EXYNOS3250_JPGDRI); in exynos3250_jpeg_reset()
65 u32 reg; in exynos3250_jpeg_clk_set() local
67 reg = readl(base + EXYNOS3250_JPGCMOD) & ~EXYNOS3250_HALF_EN_MASK; in exynos3250_jpeg_clk_set()
69 writel(reg | EXYNOS3250_HALF_EN, base + EXYNOS3250_JPGCMOD); in exynos3250_jpeg_clk_set()
74 u32 reg; in exynos3250_jpeg_input_raw_fmt() local
76 reg = readl(regs + EXYNOS3250_JPGCMOD) & in exynos3250_jpeg_input_raw_fmt()
81 reg |= EXYNOS3250_MODE_SEL_ARGB8888; in exynos3250_jpeg_input_raw_fmt()
84 reg |= EXYNOS3250_MODE_SEL_ARGB8888 | EXYNOS3250_SRC_SWAP_RGB; in exynos3250_jpeg_input_raw_fmt()
87 reg |= EXYNOS3250_MODE_SEL_RGB565; in exynos3250_jpeg_input_raw_fmt()
90 reg |= EXYNOS3250_MODE_SEL_RGB565 | EXYNOS3250_SRC_SWAP_RGB; in exynos3250_jpeg_input_raw_fmt()
93 reg |= EXYNOS3250_MODE_SEL_422_1P_LUM_CHR; in exynos3250_jpeg_input_raw_fmt()
96 reg |= EXYNOS3250_MODE_SEL_422_1P_LUM_CHR | in exynos3250_jpeg_input_raw_fmt()
100 reg |= EXYNOS3250_MODE_SEL_422_1P_CHR_LUM; in exynos3250_jpeg_input_raw_fmt()
103 reg |= EXYNOS3250_MODE_SEL_422_1P_CHR_LUM | in exynos3250_jpeg_input_raw_fmt()
107 reg |= EXYNOS3250_MODE_SEL_420_2P | EXYNOS3250_SRC_NV12; in exynos3250_jpeg_input_raw_fmt()
110 reg |= EXYNOS3250_MODE_SEL_420_2P | EXYNOS3250_SRC_NV21; in exynos3250_jpeg_input_raw_fmt()
113 reg |= EXYNOS3250_MODE_SEL_420_3P; in exynos3250_jpeg_input_raw_fmt()
120 writel(reg, regs + EXYNOS3250_JPGCMOD); in exynos3250_jpeg_input_raw_fmt()
125 u32 reg; in exynos3250_jpeg_set_y16() local
127 reg = readl(regs + EXYNOS3250_JPGCMOD); in exynos3250_jpeg_set_y16()
129 reg |= EXYNOS3250_MODE_Y16; in exynos3250_jpeg_set_y16()
131 reg &= ~EXYNOS3250_MODE_Y16_MASK; in exynos3250_jpeg_set_y16()
132 writel(reg, regs + EXYNOS3250_JPGCMOD); in exynos3250_jpeg_set_y16()
137 u32 reg, m; in exynos3250_jpeg_proc_mode() local
143 reg = readl(regs + EXYNOS3250_JPGMOD); in exynos3250_jpeg_proc_mode()
144 reg &= ~EXYNOS3250_PROC_MODE_MASK; in exynos3250_jpeg_proc_mode()
145 reg |= m; in exynos3250_jpeg_proc_mode()
146 writel(reg, regs + EXYNOS3250_JPGMOD); in exynos3250_jpeg_proc_mode()
151 u32 reg, m = 0; in exynos3250_jpeg_subsampling_mode() local
165 reg = readl(regs + EXYNOS3250_JPGMOD); in exynos3250_jpeg_subsampling_mode()
166 reg &= ~EXYNOS3250_SUBSAMPLING_MODE_MASK; in exynos3250_jpeg_subsampling_mode()
167 reg |= m; in exynos3250_jpeg_subsampling_mode()
168 writel(reg, regs + EXYNOS3250_JPGMOD); in exynos3250_jpeg_subsampling_mode()
179 u32 reg; in exynos3250_jpeg_dri() local
181 reg = dri & EXYNOS3250_JPGDRI_MASK; in exynos3250_jpeg_dri()
182 writel(reg, regs + EXYNOS3250_JPGDRI); in exynos3250_jpeg_dri()
187 unsigned long reg; in exynos3250_jpeg_qtbl() local
189 reg = readl(regs + EXYNOS3250_QHTBL); in exynos3250_jpeg_qtbl()
190 reg &= ~EXYNOS3250_QT_NUM_MASK(t); in exynos3250_jpeg_qtbl()
191 reg |= (n << EXYNOS3250_QT_NUM_SHIFT(t)) & in exynos3250_jpeg_qtbl()
193 writel(reg, regs + EXYNOS3250_QHTBL); in exynos3250_jpeg_qtbl()
198 unsigned long reg; in exynos3250_jpeg_htbl_ac() local
200 reg = readl(regs + EXYNOS3250_QHTBL); in exynos3250_jpeg_htbl_ac()
201 reg &= ~EXYNOS3250_HT_NUM_AC_MASK(t); in exynos3250_jpeg_htbl_ac()
203 reg |= (0 << EXYNOS3250_HT_NUM_AC_SHIFT(t)) & in exynos3250_jpeg_htbl_ac()
205 writel(reg, regs + EXYNOS3250_QHTBL); in exynos3250_jpeg_htbl_ac()
210 unsigned long reg; in exynos3250_jpeg_htbl_dc() local
212 reg = readl(regs + EXYNOS3250_QHTBL); in exynos3250_jpeg_htbl_dc()
213 reg &= ~EXYNOS3250_HT_NUM_DC_MASK(t); in exynos3250_jpeg_htbl_dc()
215 reg |= (0 << EXYNOS3250_HT_NUM_DC_SHIFT(t)) & in exynos3250_jpeg_htbl_dc()
217 writel(reg, regs + EXYNOS3250_QHTBL); in exynos3250_jpeg_htbl_dc()
222 u32 reg; in exynos3250_jpeg_set_y() local
224 reg = y & EXYNOS3250_JPGY_MASK; in exynos3250_jpeg_set_y()
225 writel(reg, regs + EXYNOS3250_JPGY); in exynos3250_jpeg_set_y()
230 u32 reg; in exynos3250_jpeg_set_x() local
232 reg = x & EXYNOS3250_JPGX_MASK; in exynos3250_jpeg_set_x()
233 writel(reg, regs + EXYNOS3250_JPGX); in exynos3250_jpeg_set_x()
250 u32 reg; in exynos3250_jpeg_interrupts_enable() local
252 reg = readl(regs + EXYNOS3250_JPGINTSE); in exynos3250_jpeg_interrupts_enable()
253 reg |= (EXYNOS3250_JPEG_DONE_EN | in exynos3250_jpeg_interrupts_enable()
260 writel(reg, regs + EXYNOS3250_JPGINTSE); in exynos3250_jpeg_interrupts_enable()
265 u32 reg; in exynos3250_jpeg_enc_stream_bound() local
267 reg = size & EXYNOS3250_ENC_STREAM_BOUND_MASK; in exynos3250_jpeg_enc_stream_bound()
268 writel(reg, regs + EXYNOS3250_ENC_STREAM_BOUND); in exynos3250_jpeg_enc_stream_bound()
273 u32 reg; in exynos3250_jpeg_output_raw_fmt() local
277 reg = EXYNOS3250_OUT_FMT_ARGB8888; in exynos3250_jpeg_output_raw_fmt()
280 reg = EXYNOS3250_OUT_FMT_ARGB8888 | EXYNOS3250_OUT_SWAP_RGB; in exynos3250_jpeg_output_raw_fmt()
283 reg = EXYNOS3250_OUT_FMT_RGB565; in exynos3250_jpeg_output_raw_fmt()
286 reg = EXYNOS3250_OUT_FMT_RGB565 | EXYNOS3250_OUT_SWAP_RGB; in exynos3250_jpeg_output_raw_fmt()
289 reg = EXYNOS3250_OUT_FMT_422_1P_LUM_CHR; in exynos3250_jpeg_output_raw_fmt()
292 reg = EXYNOS3250_OUT_FMT_422_1P_LUM_CHR | in exynos3250_jpeg_output_raw_fmt()
296 reg = EXYNOS3250_OUT_FMT_422_1P_CHR_LUM; in exynos3250_jpeg_output_raw_fmt()
299 reg = EXYNOS3250_OUT_FMT_422_1P_CHR_LUM | in exynos3250_jpeg_output_raw_fmt()
303 reg = EXYNOS3250_OUT_FMT_420_2P | EXYNOS3250_OUT_NV12; in exynos3250_jpeg_output_raw_fmt()
306 reg = EXYNOS3250_OUT_FMT_420_2P | EXYNOS3250_OUT_NV21; in exynos3250_jpeg_output_raw_fmt()
309 reg = EXYNOS3250_OUT_FMT_420_3P; in exynos3250_jpeg_output_raw_fmt()
312 reg = 0; in exynos3250_jpeg_output_raw_fmt()
316 writel(reg, regs + EXYNOS3250_OUTFORM); in exynos3250_jpeg_output_raw_fmt()
369 u32 reg; in exynos3250_jpeg_offset() local
371 reg = (y_offset << EXYNOS3250_LUMA_YY_OFFSET_SHIFT) & in exynos3250_jpeg_offset()
373 reg |= (x_offset << EXYNOS3250_LUMA_YX_OFFSET_SHIFT) & in exynos3250_jpeg_offset()
376 writel(reg, regs + EXYNOS3250_LUMA_XY_OFFSET); in exynos3250_jpeg_offset()
378 reg = (y_offset << EXYNOS3250_CHROMA_YY_OFFSET_SHIFT) & in exynos3250_jpeg_offset()
380 reg |= (x_offset << EXYNOS3250_CHROMA_YX_OFFSET_SHIFT) & in exynos3250_jpeg_offset()
383 writel(reg, regs + EXYNOS3250_CHROMA_XY_OFFSET); in exynos3250_jpeg_offset()
385 reg = (y_offset << EXYNOS3250_CHROMA_CR_YY_OFFSET_SHIFT) & in exynos3250_jpeg_offset()
387 reg |= (x_offset << EXYNOS3250_CHROMA_CR_YX_OFFSET_SHIFT) & in exynos3250_jpeg_offset()
390 writel(reg, regs + EXYNOS3250_CHROMA_CR_XY_OFFSET); in exynos3250_jpeg_offset()