Lines Matching full:reg
18 unsigned int reg; in exynos4_jpeg_sw_reset() local
20 reg = readl(base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_sw_reset()
21 writel(reg & ~(EXYNOS4_DEC_MODE | EXYNOS4_ENC_MODE), in exynos4_jpeg_sw_reset()
24 reg = readl(base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_sw_reset()
25 writel(reg & ~EXYNOS4_SOFT_RESET_HI, base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_sw_reset()
29 writel(reg | EXYNOS4_SOFT_RESET_HI, base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_sw_reset()
34 unsigned int reg; in exynos4_jpeg_set_enc_dec_mode() local
36 reg = readl(base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_set_enc_dec_mode()
39 writel((reg & EXYNOS4_ENC_DEC_MODE_MASK) | in exynos4_jpeg_set_enc_dec_mode()
43 writel((reg & EXYNOS4_ENC_DEC_MODE_MASK) | in exynos4_jpeg_set_enc_dec_mode()
47 writel(reg & EXYNOS4_ENC_DEC_MODE_MASK, in exynos4_jpeg_set_enc_dec_mode()
55 unsigned int reg; in __exynos4_jpeg_set_img_fmt() local
67 reg = readl(base + EXYNOS4_IMG_FMT_REG) & in __exynos4_jpeg_set_img_fmt()
72 reg = reg | EXYNOS4_ENC_GRAY_IMG | EXYNOS4_GRAY_IMG_IP; in __exynos4_jpeg_set_img_fmt()
75 reg = reg | EXYNOS4_ENC_RGB_IMG | in __exynos4_jpeg_set_img_fmt()
79 reg = reg | EXYNOS4_ENC_RGB_IMG | in __exynos4_jpeg_set_img_fmt()
83 reg = reg | EXYNOS4_ENC_YUV_444_IMG | in __exynos4_jpeg_set_img_fmt()
88 reg = reg | EXYNOS4_ENC_YUV_444_IMG | in __exynos4_jpeg_set_img_fmt()
93 reg = reg | EXYNOS4_DEC_YUV_422_IMG | in __exynos4_jpeg_set_img_fmt()
99 reg = reg | EXYNOS4_DEC_YUV_422_IMG | in __exynos4_jpeg_set_img_fmt()
104 reg = reg | EXYNOS4_DEC_YUV_422_IMG | in __exynos4_jpeg_set_img_fmt()
109 reg = reg | EXYNOS4_DEC_YUV_422_IMG | in __exynos4_jpeg_set_img_fmt()
114 reg = reg | EXYNOS4_DEC_YUV_420_IMG | in __exynos4_jpeg_set_img_fmt()
119 reg = reg | EXYNOS4_DEC_YUV_420_IMG | in __exynos4_jpeg_set_img_fmt()
124 reg = reg | EXYNOS4_DEC_YUV_420_IMG | in __exynos4_jpeg_set_img_fmt()
133 writel(reg, base + EXYNOS4_IMG_FMT_REG); in __exynos4_jpeg_set_img_fmt()
139 unsigned int reg; in __exynos4_jpeg_set_enc_out_fmt() local
141 reg = readl(base + EXYNOS4_IMG_FMT_REG) & in __exynos4_jpeg_set_enc_out_fmt()
147 reg = reg | EXYNOS4_ENC_FMT_GRAY; in __exynos4_jpeg_set_enc_out_fmt()
151 reg = reg | EXYNOS4_ENC_FMT_YUV_444; in __exynos4_jpeg_set_enc_out_fmt()
155 reg = reg | EXYNOS4_ENC_FMT_YUV_422; in __exynos4_jpeg_set_enc_out_fmt()
159 reg = reg | EXYNOS4_ENC_FMT_YUV_420; in __exynos4_jpeg_set_enc_out_fmt()
166 writel(reg, base + EXYNOS4_IMG_FMT_REG); in __exynos4_jpeg_set_enc_out_fmt()
171 unsigned int reg; in exynos4_jpeg_set_interrupt() local
174 reg = readl(base + EXYNOS4_INT_EN_REG) & ~EXYNOS4_INT_EN_MASK; in exynos4_jpeg_set_interrupt()
175 writel(reg | EXYNOS4_INT_EN_ALL, base + EXYNOS4_INT_EN_REG); in exynos4_jpeg_set_interrupt()
177 reg = readl(base + EXYNOS4_INT_EN_REG) & in exynos4_jpeg_set_interrupt()
179 writel(reg | EXYNOS5433_INT_EN_ALL, base + EXYNOS4_INT_EN_REG); in exynos4_jpeg_set_interrupt()
195 unsigned int reg; in exynos4_jpeg_set_huf_table_enable() local
197 reg = readl(base + EXYNOS4_JPEG_CNTL_REG) & ~EXYNOS4_HUF_TBL_EN; in exynos4_jpeg_set_huf_table_enable()
200 writel(reg | EXYNOS4_HUF_TBL_EN, in exynos4_jpeg_set_huf_table_enable()
203 writel(reg & ~EXYNOS4_HUF_TBL_EN, in exynos4_jpeg_set_huf_table_enable()
209 unsigned int reg; in exynos4_jpeg_set_sys_int_enable() local
211 reg = readl(base + EXYNOS4_JPEG_CNTL_REG) & ~(EXYNOS4_SYS_INT_EN); in exynos4_jpeg_set_sys_int_enable()
214 writel(reg | EXYNOS4_SYS_INT_EN, base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_set_sys_int_enable()
216 writel(reg & ~EXYNOS4_SYS_INT_EN, base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_set_sys_int_enable()
244 unsigned int reg; in exynos4_jpeg_set_encode_tbl_select() local
246 reg = EXYNOS4_Q_TBL_COMP1_0 | EXYNOS4_Q_TBL_COMP2_1 | in exynos4_jpeg_set_encode_tbl_select()
252 writel(reg, base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_set_encode_tbl_select()
257 unsigned int reg; in exynos4_jpeg_set_dec_components() local
259 reg = readl(base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_set_dec_components()
261 reg |= EXYNOS4_NF(n); in exynos4_jpeg_set_dec_components()
262 writel(reg, base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_set_dec_components()
267 unsigned int reg; in exynos4_jpeg_select_dec_q_tbl() local
269 reg = readl(base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_select_dec_q_tbl()
271 reg |= EXYNOS4_Q_TBL_COMP(c, x); in exynos4_jpeg_select_dec_q_tbl()
272 writel(reg, base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_select_dec_q_tbl()
277 unsigned int reg; in exynos4_jpeg_select_dec_h_tbl() local
279 reg = readl(base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_select_dec_h_tbl()
281 reg |= EXYNOS4_HUFF_TBL_COMP(c, x); in exynos4_jpeg_select_dec_h_tbl()
282 writel(reg, base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_select_dec_h_tbl()