• Home
  • Raw
  • Download

Lines Matching refs:reg

21 	unsigned int reg;  in exynos4_jpeg_sw_reset()  local
23 reg = readl(base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_sw_reset()
24 writel(reg & ~EXYNOS4_SOFT_RESET_HI, base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_sw_reset()
28 writel(reg | EXYNOS4_SOFT_RESET_HI, base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_sw_reset()
33 unsigned int reg; in exynos4_jpeg_set_enc_dec_mode() local
35 reg = readl(base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_set_enc_dec_mode()
38 writel((reg & EXYNOS4_ENC_DEC_MODE_MASK) | in exynos4_jpeg_set_enc_dec_mode()
42 writel((reg & EXYNOS4_ENC_DEC_MODE_MASK) | in exynos4_jpeg_set_enc_dec_mode()
51 unsigned int reg; in __exynos4_jpeg_set_img_fmt() local
63 reg = readl(base + EXYNOS4_IMG_FMT_REG) & in __exynos4_jpeg_set_img_fmt()
68 reg = reg | EXYNOS4_ENC_GRAY_IMG | EXYNOS4_GRAY_IMG_IP; in __exynos4_jpeg_set_img_fmt()
71 reg = reg | EXYNOS4_ENC_RGB_IMG | in __exynos4_jpeg_set_img_fmt()
75 reg = reg | EXYNOS4_ENC_RGB_IMG | in __exynos4_jpeg_set_img_fmt()
79 reg = reg | EXYNOS4_ENC_YUV_444_IMG | in __exynos4_jpeg_set_img_fmt()
84 reg = reg | EXYNOS4_ENC_YUV_444_IMG | in __exynos4_jpeg_set_img_fmt()
89 reg = reg | EXYNOS4_DEC_YUV_422_IMG | in __exynos4_jpeg_set_img_fmt()
95 reg = reg | EXYNOS4_DEC_YUV_422_IMG | in __exynos4_jpeg_set_img_fmt()
100 reg = reg | EXYNOS4_DEC_YUV_422_IMG | in __exynos4_jpeg_set_img_fmt()
105 reg = reg | EXYNOS4_DEC_YUV_422_IMG | in __exynos4_jpeg_set_img_fmt()
110 reg = reg | EXYNOS4_DEC_YUV_420_IMG | in __exynos4_jpeg_set_img_fmt()
115 reg = reg | EXYNOS4_DEC_YUV_420_IMG | in __exynos4_jpeg_set_img_fmt()
120 reg = reg | EXYNOS4_DEC_YUV_420_IMG | in __exynos4_jpeg_set_img_fmt()
129 writel(reg, base + EXYNOS4_IMG_FMT_REG); in __exynos4_jpeg_set_img_fmt()
135 unsigned int reg; in __exynos4_jpeg_set_enc_out_fmt() local
137 reg = readl(base + EXYNOS4_IMG_FMT_REG) & in __exynos4_jpeg_set_enc_out_fmt()
143 reg = reg | EXYNOS4_ENC_FMT_GRAY; in __exynos4_jpeg_set_enc_out_fmt()
147 reg = reg | EXYNOS4_ENC_FMT_YUV_444; in __exynos4_jpeg_set_enc_out_fmt()
151 reg = reg | EXYNOS4_ENC_FMT_YUV_422; in __exynos4_jpeg_set_enc_out_fmt()
155 reg = reg | EXYNOS4_ENC_FMT_YUV_420; in __exynos4_jpeg_set_enc_out_fmt()
162 writel(reg, base + EXYNOS4_IMG_FMT_REG); in __exynos4_jpeg_set_enc_out_fmt()
167 unsigned int reg; in exynos4_jpeg_set_interrupt() local
170 reg = readl(base + EXYNOS4_INT_EN_REG) & ~EXYNOS4_INT_EN_MASK; in exynos4_jpeg_set_interrupt()
171 writel(reg | EXYNOS4_INT_EN_ALL, base + EXYNOS4_INT_EN_REG); in exynos4_jpeg_set_interrupt()
173 reg = readl(base + EXYNOS4_INT_EN_REG) & in exynos4_jpeg_set_interrupt()
175 writel(reg | EXYNOS5433_INT_EN_ALL, base + EXYNOS4_INT_EN_REG); in exynos4_jpeg_set_interrupt()
199 unsigned int reg; in exynos4_jpeg_set_huf_table_enable() local
201 reg = readl(base + EXYNOS4_JPEG_CNTL_REG) & ~EXYNOS4_HUF_TBL_EN; in exynos4_jpeg_set_huf_table_enable()
204 writel(reg | EXYNOS4_HUF_TBL_EN, in exynos4_jpeg_set_huf_table_enable()
207 writel(reg & ~EXYNOS4_HUF_TBL_EN, in exynos4_jpeg_set_huf_table_enable()
213 unsigned int reg; in exynos4_jpeg_set_sys_int_enable() local
215 reg = readl(base + EXYNOS4_JPEG_CNTL_REG) & ~(EXYNOS4_SYS_INT_EN); in exynos4_jpeg_set_sys_int_enable()
218 writel(reg | EXYNOS4_SYS_INT_EN, base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_set_sys_int_enable()
220 writel(reg & ~EXYNOS4_SYS_INT_EN, base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_set_sys_int_enable()
248 unsigned int reg; in exynos4_jpeg_set_encode_tbl_select() local
250 reg = EXYNOS4_Q_TBL_COMP1_0 | EXYNOS4_Q_TBL_COMP2_1 | in exynos4_jpeg_set_encode_tbl_select()
256 writel(reg, base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_set_encode_tbl_select()
261 unsigned int reg; in exynos4_jpeg_set_dec_components() local
263 reg = readl(base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_set_dec_components()
265 reg |= EXYNOS4_NF(n); in exynos4_jpeg_set_dec_components()
266 writel(reg, base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_set_dec_components()
271 unsigned int reg; in exynos4_jpeg_select_dec_q_tbl() local
273 reg = readl(base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_select_dec_q_tbl()
275 reg |= EXYNOS4_Q_TBL_COMP(c, x); in exynos4_jpeg_select_dec_q_tbl()
276 writel(reg, base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_select_dec_q_tbl()
281 unsigned int reg; in exynos4_jpeg_select_dec_h_tbl() local
283 reg = readl(base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_select_dec_h_tbl()
285 reg |= EXYNOS4_HUFF_TBL_COMP(c, x); in exynos4_jpeg_select_dec_h_tbl()
286 writel(reg, base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_select_dec_h_tbl()