Lines Matching full:base
16 void exynos4_jpeg_sw_reset(void __iomem *base) in exynos4_jpeg_sw_reset() argument
20 reg = readl(base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_sw_reset()
22 base + EXYNOS4_JPEG_CNTL_REG); 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()
32 void exynos4_jpeg_set_enc_dec_mode(void __iomem *base, unsigned int mode) in exynos4_jpeg_set_enc_dec_mode() argument
36 reg = readl(base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_set_enc_dec_mode()
41 base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_set_enc_dec_mode()
45 base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_set_enc_dec_mode()
48 base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_set_enc_dec_mode()
52 void __exynos4_jpeg_set_img_fmt(void __iomem *base, unsigned int img_fmt, in __exynos4_jpeg_set_img_fmt() argument
67 reg = readl(base + EXYNOS4_IMG_FMT_REG) & in __exynos4_jpeg_set_img_fmt()
133 writel(reg, base + EXYNOS4_IMG_FMT_REG); in __exynos4_jpeg_set_img_fmt()
136 void __exynos4_jpeg_set_enc_out_fmt(void __iomem *base, unsigned int out_fmt, in __exynos4_jpeg_set_enc_out_fmt() argument
141 reg = readl(base + EXYNOS4_IMG_FMT_REG) & in __exynos4_jpeg_set_enc_out_fmt()
166 writel(reg, base + EXYNOS4_IMG_FMT_REG); in __exynos4_jpeg_set_enc_out_fmt()
169 void exynos4_jpeg_set_interrupt(void __iomem *base, unsigned int version) in exynos4_jpeg_set_interrupt() argument
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()
183 unsigned int exynos4_jpeg_get_int_status(void __iomem *base) in exynos4_jpeg_get_int_status() argument
185 return readl(base + EXYNOS4_INT_STATUS_REG); in exynos4_jpeg_get_int_status()
188 unsigned int exynos4_jpeg_get_fifo_status(void __iomem *base) in exynos4_jpeg_get_fifo_status() argument
190 return readl(base + EXYNOS4_FIFO_STATUS_REG); in exynos4_jpeg_get_fifo_status()
193 void exynos4_jpeg_set_huf_table_enable(void __iomem *base, int value) in exynos4_jpeg_set_huf_table_enable() argument
197 reg = readl(base + EXYNOS4_JPEG_CNTL_REG) & ~EXYNOS4_HUF_TBL_EN; in exynos4_jpeg_set_huf_table_enable()
201 base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_set_huf_table_enable()
204 base + EXYNOS4_JPEG_CNTL_REG); in exynos4_jpeg_set_huf_table_enable()
207 void exynos4_jpeg_set_sys_int_enable(void __iomem *base, int value) in exynos4_jpeg_set_sys_int_enable() argument
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()
219 void exynos4_jpeg_set_stream_buf_address(void __iomem *base, in exynos4_jpeg_set_stream_buf_address() argument
222 writel(address, base + EXYNOS4_OUT_MEM_BASE_REG); in exynos4_jpeg_set_stream_buf_address()
225 void exynos4_jpeg_set_stream_size(void __iomem *base, in exynos4_jpeg_set_stream_size() argument
228 writel(0x0, base + EXYNOS4_JPEG_IMG_SIZE_REG); /* clear */ in exynos4_jpeg_set_stream_size()
230 base + EXYNOS4_JPEG_IMG_SIZE_REG); in exynos4_jpeg_set_stream_size()
233 void exynos4_jpeg_set_frame_buf_address(void __iomem *base, in exynos4_jpeg_set_frame_buf_address() argument
236 writel(exynos4_jpeg_addr->y, base + EXYNOS4_IMG_BA_PLANE_1_REG); in exynos4_jpeg_set_frame_buf_address()
237 writel(exynos4_jpeg_addr->cb, base + EXYNOS4_IMG_BA_PLANE_2_REG); in exynos4_jpeg_set_frame_buf_address()
238 writel(exynos4_jpeg_addr->cr, base + EXYNOS4_IMG_BA_PLANE_3_REG); in exynos4_jpeg_set_frame_buf_address()
241 void exynos4_jpeg_set_encode_tbl_select(void __iomem *base, in exynos4_jpeg_set_encode_tbl_select() argument
252 writel(reg, base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_set_encode_tbl_select()
255 void exynos4_jpeg_set_dec_components(void __iomem *base, int n) in exynos4_jpeg_set_dec_components() argument
259 reg = readl(base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_set_dec_components()
262 writel(reg, base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_set_dec_components()
265 void exynos4_jpeg_select_dec_q_tbl(void __iomem *base, char c, char x) in exynos4_jpeg_select_dec_q_tbl() argument
269 reg = readl(base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_select_dec_q_tbl()
272 writel(reg, base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_select_dec_q_tbl()
275 void exynos4_jpeg_select_dec_h_tbl(void __iomem *base, char c, char x) in exynos4_jpeg_select_dec_h_tbl() argument
279 reg = readl(base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_select_dec_h_tbl()
282 writel(reg, base + EXYNOS4_TBL_SEL_REG); in exynos4_jpeg_select_dec_h_tbl()
285 void exynos4_jpeg_set_encode_hoff_cnt(void __iomem *base, unsigned int fmt) in exynos4_jpeg_set_encode_hoff_cnt() argument
288 writel(0xd2, base + EXYNOS4_HUFF_CNT_REG); in exynos4_jpeg_set_encode_hoff_cnt()
290 writel(0x1a2, base + EXYNOS4_HUFF_CNT_REG); in exynos4_jpeg_set_encode_hoff_cnt()
293 unsigned int exynos4_jpeg_get_stream_size(void __iomem *base) in exynos4_jpeg_get_stream_size() argument
295 return readl(base + EXYNOS4_BITSTREAM_SIZE_REG); in exynos4_jpeg_get_stream_size()
298 void exynos4_jpeg_set_dec_bitstream_size(void __iomem *base, unsigned int size) in exynos4_jpeg_set_dec_bitstream_size() argument
300 writel(size, base + EXYNOS4_BITSTREAM_SIZE_REG); in exynos4_jpeg_set_dec_bitstream_size()
303 void exynos4_jpeg_get_frame_size(void __iomem *base, in exynos4_jpeg_get_frame_size() argument
306 *width = (readl(base + EXYNOS4_DECODE_XY_SIZE_REG) & in exynos4_jpeg_get_frame_size()
308 *height = (readl(base + EXYNOS4_DECODE_XY_SIZE_REG) >> 16) & in exynos4_jpeg_get_frame_size()
312 unsigned int exynos4_jpeg_get_frame_fmt(void __iomem *base) in exynos4_jpeg_get_frame_fmt() argument
314 return readl(base + EXYNOS4_DECODE_IMG_FMT_REG) & in exynos4_jpeg_get_frame_fmt()
318 void exynos4_jpeg_set_timer_count(void __iomem *base, unsigned int size) in exynos4_jpeg_set_timer_count() argument
320 writel(size, base + EXYNOS4_INT_TIMER_COUNT_REG); in exynos4_jpeg_set_timer_count()