• Home
  • Raw
  • Download

Lines Matching refs:regs

17 void s5p_jpeg_reset(void __iomem *regs)  in s5p_jpeg_reset()  argument
21 writel(1, regs + S5P_JPG_SW_RESET); in s5p_jpeg_reset()
22 reg = readl(regs + S5P_JPG_SW_RESET); in s5p_jpeg_reset()
26 reg = readl(regs + S5P_JPG_SW_RESET); in s5p_jpeg_reset()
30 void s5p_jpeg_poweron(void __iomem *regs) in s5p_jpeg_poweron() argument
32 writel(S5P_POWER_ON, regs + S5P_JPGCLKCON); in s5p_jpeg_poweron()
35 void s5p_jpeg_input_raw_mode(void __iomem *regs, unsigned long mode) in s5p_jpeg_input_raw_mode() argument
45 reg = readl(regs + S5P_JPGCMOD); in s5p_jpeg_input_raw_mode()
48 writel(reg, regs + S5P_JPGCMOD); in s5p_jpeg_input_raw_mode()
51 void s5p_jpeg_proc_mode(void __iomem *regs, unsigned long mode) in s5p_jpeg_proc_mode() argument
59 reg = readl(regs + S5P_JPGMOD); in s5p_jpeg_proc_mode()
62 writel(reg, regs + S5P_JPGMOD); in s5p_jpeg_proc_mode()
65 void s5p_jpeg_subsampling_mode(void __iomem *regs, unsigned int mode) in s5p_jpeg_subsampling_mode() argument
74 reg = readl(regs + S5P_JPGMOD); in s5p_jpeg_subsampling_mode()
77 writel(reg, regs + S5P_JPGMOD); in s5p_jpeg_subsampling_mode()
80 unsigned int s5p_jpeg_get_subsampling_mode(void __iomem *regs) in s5p_jpeg_get_subsampling_mode() argument
82 return readl(regs + S5P_JPGMOD) & S5P_SUBSAMPLING_MODE_MASK; in s5p_jpeg_get_subsampling_mode()
85 void s5p_jpeg_dri(void __iomem *regs, unsigned int dri) in s5p_jpeg_dri() argument
89 reg = readl(regs + S5P_JPGDRI_U); in s5p_jpeg_dri()
92 writel(reg, regs + S5P_JPGDRI_U); in s5p_jpeg_dri()
94 reg = readl(regs + S5P_JPGDRI_L); in s5p_jpeg_dri()
97 writel(reg, regs + S5P_JPGDRI_L); in s5p_jpeg_dri()
100 void s5p_jpeg_qtbl(void __iomem *regs, unsigned int t, unsigned int n) in s5p_jpeg_qtbl() argument
104 reg = readl(regs + S5P_JPG_QTBL); in s5p_jpeg_qtbl()
107 writel(reg, regs + S5P_JPG_QTBL); in s5p_jpeg_qtbl()
110 void s5p_jpeg_htbl_ac(void __iomem *regs, unsigned int t) in s5p_jpeg_htbl_ac() argument
114 reg = readl(regs + S5P_JPG_HTBL); in s5p_jpeg_htbl_ac()
118 writel(reg, regs + S5P_JPG_HTBL); in s5p_jpeg_htbl_ac()
121 void s5p_jpeg_htbl_dc(void __iomem *regs, unsigned int t) in s5p_jpeg_htbl_dc() argument
125 reg = readl(regs + S5P_JPG_HTBL); in s5p_jpeg_htbl_dc()
129 writel(reg, regs + S5P_JPG_HTBL); in s5p_jpeg_htbl_dc()
132 void s5p_jpeg_y(void __iomem *regs, unsigned int y) in s5p_jpeg_y() argument
136 reg = readl(regs + S5P_JPGY_U); in s5p_jpeg_y()
139 writel(reg, regs + S5P_JPGY_U); in s5p_jpeg_y()
141 reg = readl(regs + S5P_JPGY_L); in s5p_jpeg_y()
144 writel(reg, regs + S5P_JPGY_L); in s5p_jpeg_y()
147 void s5p_jpeg_x(void __iomem *regs, unsigned int x) in s5p_jpeg_x() argument
151 reg = readl(regs + S5P_JPGX_U); in s5p_jpeg_x()
154 writel(reg, regs + S5P_JPGX_U); in s5p_jpeg_x()
156 reg = readl(regs + S5P_JPGX_L); in s5p_jpeg_x()
159 writel(reg, regs + S5P_JPGX_L); in s5p_jpeg_x()
162 void s5p_jpeg_rst_int_enable(void __iomem *regs, bool enable) in s5p_jpeg_rst_int_enable() argument
166 reg = readl(regs + S5P_JPGINTSE); in s5p_jpeg_rst_int_enable()
170 writel(reg, regs + S5P_JPGINTSE); in s5p_jpeg_rst_int_enable()
173 void s5p_jpeg_data_num_int_enable(void __iomem *regs, bool enable) in s5p_jpeg_data_num_int_enable() argument
177 reg = readl(regs + S5P_JPGINTSE); in s5p_jpeg_data_num_int_enable()
181 writel(reg, regs + S5P_JPGINTSE); in s5p_jpeg_data_num_int_enable()
184 void s5p_jpeg_final_mcu_num_int_enable(void __iomem *regs, bool enbl) in s5p_jpeg_final_mcu_num_int_enable() argument
188 reg = readl(regs + S5P_JPGINTSE); in s5p_jpeg_final_mcu_num_int_enable()
192 writel(reg, regs + S5P_JPGINTSE); in s5p_jpeg_final_mcu_num_int_enable()
195 int s5p_jpeg_timer_stat(void __iomem *regs) in s5p_jpeg_timer_stat() argument
197 return (int)((readl(regs + S5P_JPG_TIMER_ST) & S5P_TIMER_INT_STAT_MASK) in s5p_jpeg_timer_stat()
201 void s5p_jpeg_clear_timer_stat(void __iomem *regs) in s5p_jpeg_clear_timer_stat() argument
205 reg = readl(regs + S5P_JPG_TIMER_SE); in s5p_jpeg_clear_timer_stat()
207 writel(reg, regs + S5P_JPG_TIMER_SE); in s5p_jpeg_clear_timer_stat()
210 void s5p_jpeg_enc_stream_int(void __iomem *regs, unsigned long size) in s5p_jpeg_enc_stream_int() argument
214 reg = readl(regs + S5P_JPG_ENC_STREAM_INTSE); in s5p_jpeg_enc_stream_int()
218 writel(reg, regs + S5P_JPG_ENC_STREAM_INTSE); in s5p_jpeg_enc_stream_int()
221 int s5p_jpeg_enc_stream_stat(void __iomem *regs) in s5p_jpeg_enc_stream_stat() argument
223 return (int)(readl(regs + S5P_JPG_ENC_STREAM_INTST) & in s5p_jpeg_enc_stream_stat()
227 void s5p_jpeg_clear_enc_stream_stat(void __iomem *regs) in s5p_jpeg_clear_enc_stream_stat() argument
231 reg = readl(regs + S5P_JPG_ENC_STREAM_INTSE); in s5p_jpeg_clear_enc_stream_stat()
233 writel(reg, regs + S5P_JPG_ENC_STREAM_INTSE); in s5p_jpeg_clear_enc_stream_stat()
236 void s5p_jpeg_outform_raw(void __iomem *regs, unsigned long format) in s5p_jpeg_outform_raw() argument
245 reg = readl(regs + S5P_JPG_OUTFORM); in s5p_jpeg_outform_raw()
248 writel(reg, regs + S5P_JPG_OUTFORM); in s5p_jpeg_outform_raw()
251 void s5p_jpeg_jpgadr(void __iomem *regs, unsigned long addr) in s5p_jpeg_jpgadr() argument
253 writel(addr, regs + S5P_JPG_JPGADR); in s5p_jpeg_jpgadr()
256 void s5p_jpeg_imgadr(void __iomem *regs, unsigned long addr) in s5p_jpeg_imgadr() argument
258 writel(addr, regs + S5P_JPG_IMGADR); in s5p_jpeg_imgadr()
261 void s5p_jpeg_coef(void __iomem *regs, unsigned int i, in s5p_jpeg_coef() argument
266 reg = readl(regs + S5P_JPG_COEF(i)); in s5p_jpeg_coef()
269 writel(reg, regs + S5P_JPG_COEF(i)); in s5p_jpeg_coef()
272 void s5p_jpeg_start(void __iomem *regs) in s5p_jpeg_start() argument
274 writel(1, regs + S5P_JSTART); in s5p_jpeg_start()
277 int s5p_jpeg_result_stat_ok(void __iomem *regs) in s5p_jpeg_result_stat_ok() argument
279 return (int)((readl(regs + S5P_JPGINTST) & S5P_RESULT_STAT_MASK) in s5p_jpeg_result_stat_ok()
283 int s5p_jpeg_stream_stat_ok(void __iomem *regs) in s5p_jpeg_stream_stat_ok() argument
285 return !(int)((readl(regs + S5P_JPGINTST) & S5P_STREAM_STAT_MASK) in s5p_jpeg_stream_stat_ok()
289 void s5p_jpeg_clear_int(void __iomem *regs) in s5p_jpeg_clear_int() argument
291 readl(regs + S5P_JPGINTST); in s5p_jpeg_clear_int()
292 writel(S5P_INT_RELEASE, regs + S5P_JPGCOM); in s5p_jpeg_clear_int()
293 readl(regs + S5P_JPGOPR); in s5p_jpeg_clear_int()
296 unsigned int s5p_jpeg_compressed_size(void __iomem *regs) in s5p_jpeg_compressed_size() argument
300 jpeg_size |= (readl(regs + S5P_JPGCNT_U) & 0xff) << 16; in s5p_jpeg_compressed_size()
301 jpeg_size |= (readl(regs + S5P_JPGCNT_M) & 0xff) << 8; in s5p_jpeg_compressed_size()
302 jpeg_size |= (readl(regs + S5P_JPGCNT_L) & 0xff); in s5p_jpeg_compressed_size()