• Home
  • Raw
  • Download

Lines Matching refs:regs

18 void exynos3250_jpeg_reset(void __iomem *regs)  in exynos3250_jpeg_reset()  argument
23 writel(1, regs + EXYNOS3250_SW_RESET); in exynos3250_jpeg_reset()
28 reg = readl(regs + EXYNOS3250_SW_RESET); in exynos3250_jpeg_reset()
35 writel(1, regs + EXYNOS3250_JPGDRI); in exynos3250_jpeg_reset()
38 reg = readl(regs + EXYNOS3250_JPGDRI); in exynos3250_jpeg_reset()
41 writel(0, regs + EXYNOS3250_JPGDRI); in exynos3250_jpeg_reset()
44 void exynos3250_jpeg_poweron(void __iomem *regs) in exynos3250_jpeg_poweron() argument
46 writel(EXYNOS3250_POWER_ON, regs + EXYNOS3250_JPGCLKCON); in exynos3250_jpeg_poweron()
49 void exynos3250_jpeg_set_dma_num(void __iomem *regs) in exynos3250_jpeg_set_dma_num() argument
57 regs + EXYNOS3250_DMA_ISSUE_NUM); in exynos3250_jpeg_set_dma_num()
69 void exynos3250_jpeg_input_raw_fmt(void __iomem *regs, unsigned int fmt) in exynos3250_jpeg_input_raw_fmt() argument
73 reg = readl(regs + EXYNOS3250_JPGCMOD) & in exynos3250_jpeg_input_raw_fmt()
117 writel(reg, regs + EXYNOS3250_JPGCMOD); in exynos3250_jpeg_input_raw_fmt()
120 void exynos3250_jpeg_set_y16(void __iomem *regs, bool y16) in exynos3250_jpeg_set_y16() argument
124 reg = readl(regs + EXYNOS3250_JPGCMOD); in exynos3250_jpeg_set_y16()
129 writel(reg, regs + EXYNOS3250_JPGCMOD); in exynos3250_jpeg_set_y16()
132 void exynos3250_jpeg_proc_mode(void __iomem *regs, unsigned int mode) in exynos3250_jpeg_proc_mode() argument
140 reg = readl(regs + EXYNOS3250_JPGMOD); in exynos3250_jpeg_proc_mode()
143 writel(reg, regs + EXYNOS3250_JPGMOD); in exynos3250_jpeg_proc_mode()
146 void exynos3250_jpeg_subsampling_mode(void __iomem *regs, unsigned int mode) in exynos3250_jpeg_subsampling_mode() argument
162 reg = readl(regs + EXYNOS3250_JPGMOD); in exynos3250_jpeg_subsampling_mode()
165 writel(reg, regs + EXYNOS3250_JPGMOD); in exynos3250_jpeg_subsampling_mode()
168 unsigned int exynos3250_jpeg_get_subsampling_mode(void __iomem *regs) in exynos3250_jpeg_get_subsampling_mode() argument
170 return readl(regs + EXYNOS3250_JPGMOD) & in exynos3250_jpeg_get_subsampling_mode()
174 void exynos3250_jpeg_dri(void __iomem *regs, unsigned int dri) in exynos3250_jpeg_dri() argument
179 writel(reg, regs + EXYNOS3250_JPGDRI); in exynos3250_jpeg_dri()
182 void exynos3250_jpeg_qtbl(void __iomem *regs, unsigned int t, unsigned int n) in exynos3250_jpeg_qtbl() argument
186 reg = readl(regs + EXYNOS3250_QHTBL); in exynos3250_jpeg_qtbl()
190 writel(reg, regs + EXYNOS3250_QHTBL); in exynos3250_jpeg_qtbl()
193 void exynos3250_jpeg_htbl_ac(void __iomem *regs, unsigned int t) in exynos3250_jpeg_htbl_ac() argument
197 reg = readl(regs + EXYNOS3250_QHTBL); in exynos3250_jpeg_htbl_ac()
202 writel(reg, regs + EXYNOS3250_QHTBL); in exynos3250_jpeg_htbl_ac()
205 void exynos3250_jpeg_htbl_dc(void __iomem *regs, unsigned int t) in exynos3250_jpeg_htbl_dc() argument
209 reg = readl(regs + EXYNOS3250_QHTBL); in exynos3250_jpeg_htbl_dc()
214 writel(reg, regs + EXYNOS3250_QHTBL); in exynos3250_jpeg_htbl_dc()
217 void exynos3250_jpeg_set_y(void __iomem *regs, unsigned int y) in exynos3250_jpeg_set_y() argument
222 writel(reg, regs + EXYNOS3250_JPGY); in exynos3250_jpeg_set_y()
225 void exynos3250_jpeg_set_x(void __iomem *regs, unsigned int x) in exynos3250_jpeg_set_x() argument
230 writel(reg, regs + EXYNOS3250_JPGX); in exynos3250_jpeg_set_x()
234 unsigned int exynos3250_jpeg_get_y(void __iomem *regs)
236 return readl(regs + EXYNOS3250_JPGY);
239 unsigned int exynos3250_jpeg_get_x(void __iomem *regs)
241 return readl(regs + EXYNOS3250_JPGX);
245 void exynos3250_jpeg_interrupts_enable(void __iomem *regs) in exynos3250_jpeg_interrupts_enable() argument
249 reg = readl(regs + EXYNOS3250_JPGINTSE); in exynos3250_jpeg_interrupts_enable()
257 writel(reg, regs + EXYNOS3250_JPGINTSE); in exynos3250_jpeg_interrupts_enable()
260 void exynos3250_jpeg_enc_stream_bound(void __iomem *regs, unsigned int size) in exynos3250_jpeg_enc_stream_bound() argument
265 writel(reg, regs + EXYNOS3250_ENC_STREAM_BOUND); in exynos3250_jpeg_enc_stream_bound()
268 void exynos3250_jpeg_output_raw_fmt(void __iomem *regs, unsigned int fmt) in exynos3250_jpeg_output_raw_fmt() argument
313 writel(reg, regs + EXYNOS3250_OUTFORM); in exynos3250_jpeg_output_raw_fmt()
316 void exynos3250_jpeg_jpgadr(void __iomem *regs, unsigned int addr) in exynos3250_jpeg_jpgadr() argument
318 writel(addr, regs + EXYNOS3250_JPG_JPGADR); in exynos3250_jpeg_jpgadr()
321 void exynos3250_jpeg_imgadr(void __iomem *regs, struct s5p_jpeg_addr *img_addr) in exynos3250_jpeg_imgadr() argument
323 writel(img_addr->y, regs + EXYNOS3250_LUMA_BASE); in exynos3250_jpeg_imgadr()
324 writel(img_addr->cb, regs + EXYNOS3250_CHROMA_BASE); in exynos3250_jpeg_imgadr()
325 writel(img_addr->cr, regs + EXYNOS3250_CHROMA_CR_BASE); in exynos3250_jpeg_imgadr()
328 void exynos3250_jpeg_stride(void __iomem *regs, unsigned int img_fmt, in exynos3250_jpeg_stride() argument
358 writel(reg_luma, regs + EXYNOS3250_LUMA_STRIDE); in exynos3250_jpeg_stride()
359 writel(reg_cb, regs + EXYNOS3250_CHROMA_STRIDE); in exynos3250_jpeg_stride()
360 writel(reg_cr, regs + EXYNOS3250_CHROMA_CR_STRIDE); in exynos3250_jpeg_stride()
363 void exynos3250_jpeg_offset(void __iomem *regs, unsigned int x_offset, in exynos3250_jpeg_offset() argument
373 writel(reg, regs + EXYNOS3250_LUMA_XY_OFFSET); in exynos3250_jpeg_offset()
380 writel(reg, regs + EXYNOS3250_CHROMA_XY_OFFSET); in exynos3250_jpeg_offset()
387 writel(reg, regs + EXYNOS3250_CHROMA_CR_XY_OFFSET); in exynos3250_jpeg_offset()
409 void exynos3250_jpeg_start(void __iomem *regs) in exynos3250_jpeg_start() argument
411 writel(1, regs + EXYNOS3250_JSTART); in exynos3250_jpeg_start()
414 void exynos3250_jpeg_rstart(void __iomem *regs) in exynos3250_jpeg_rstart() argument
416 writel(1, regs + EXYNOS3250_JRSTART); in exynos3250_jpeg_rstart()
419 unsigned int exynos3250_jpeg_get_int_status(void __iomem *regs) in exynos3250_jpeg_get_int_status() argument
421 return readl(regs + EXYNOS3250_JPGINTST); in exynos3250_jpeg_get_int_status()
424 void exynos3250_jpeg_clear_int_status(void __iomem *regs, in exynos3250_jpeg_clear_int_status() argument
427 writel(value, regs + EXYNOS3250_JPGINTST); in exynos3250_jpeg_clear_int_status()
430 unsigned int exynos3250_jpeg_operating(void __iomem *regs) in exynos3250_jpeg_operating() argument
432 return readl(regs + S5P_JPGOPR) & EXYNOS3250_JPGOPR_MASK; in exynos3250_jpeg_operating()
435 unsigned int exynos3250_jpeg_compressed_size(void __iomem *regs) in exynos3250_jpeg_compressed_size() argument
437 return readl(regs + EXYNOS3250_JPGCNT) & EXYNOS3250_JPGCNT_MASK; in exynos3250_jpeg_compressed_size()
440 void exynos3250_jpeg_dec_stream_size(void __iomem *regs, in exynos3250_jpeg_dec_stream_size() argument
444 regs + EXYNOS3250_DEC_STREAM_SIZE); in exynos3250_jpeg_dec_stream_size()
447 void exynos3250_jpeg_dec_scaling_ratio(void __iomem *regs, in exynos3250_jpeg_dec_scaling_ratio() argument
467 regs + EXYNOS3250_DEC_SCALING_RATIO); in exynos3250_jpeg_dec_scaling_ratio()
470 void exynos3250_jpeg_set_timer(void __iomem *regs, unsigned int time_value) in exynos3250_jpeg_set_timer() argument
475 regs + EXYNOS3250_TIMER_SE); in exynos3250_jpeg_set_timer()
478 unsigned int exynos3250_jpeg_get_timer_status(void __iomem *regs) in exynos3250_jpeg_get_timer_status() argument
480 return readl(regs + EXYNOS3250_TIMER_ST); in exynos3250_jpeg_get_timer_status()
483 void exynos3250_jpeg_clear_timer_status(void __iomem *regs) in exynos3250_jpeg_clear_timer_status() argument
485 writel(EXYNOS3250_TIMER_INT_STAT, regs + EXYNOS3250_TIMER_ST); in exynos3250_jpeg_clear_timer_status()