Lines Matching refs:reg
19 unsigned long reg; in s5p_jpeg_reset() local
22 reg = readl(regs + S5P_JPG_SW_RESET); in s5p_jpeg_reset()
24 while (reg != 0) { in s5p_jpeg_reset()
26 reg = readl(regs + S5P_JPG_SW_RESET); in s5p_jpeg_reset()
37 unsigned long reg, m; in s5p_jpeg_input_raw_mode() local
45 reg = readl(regs + S5P_JPGCMOD); in s5p_jpeg_input_raw_mode()
46 reg &= ~S5P_MOD_SEL_MASK; in s5p_jpeg_input_raw_mode()
47 reg |= m; in s5p_jpeg_input_raw_mode()
48 writel(reg, regs + S5P_JPGCMOD); in s5p_jpeg_input_raw_mode()
53 unsigned long reg, m; in s5p_jpeg_proc_mode() local
60 reg = readl(regs + S5P_JPGMOD); in s5p_jpeg_proc_mode()
61 reg &= ~S5P_PROC_MODE_MASK; in s5p_jpeg_proc_mode()
62 reg |= m; in s5p_jpeg_proc_mode()
63 writel(reg, regs + S5P_JPGMOD); in s5p_jpeg_proc_mode()
68 unsigned long reg, m; in s5p_jpeg_subsampling_mode() local
75 reg = readl(regs + S5P_JPGMOD); in s5p_jpeg_subsampling_mode()
76 reg &= ~S5P_SUBSAMPLING_MODE_MASK; in s5p_jpeg_subsampling_mode()
77 reg |= m; in s5p_jpeg_subsampling_mode()
78 writel(reg, regs + S5P_JPGMOD); in s5p_jpeg_subsampling_mode()
88 unsigned long reg; in s5p_jpeg_dri() local
90 reg = readl(regs + S5P_JPGDRI_U); in s5p_jpeg_dri()
91 reg &= ~0xff; in s5p_jpeg_dri()
92 reg |= (dri >> 8) & 0xff; in s5p_jpeg_dri()
93 writel(reg, regs + S5P_JPGDRI_U); in s5p_jpeg_dri()
95 reg = readl(regs + S5P_JPGDRI_L); in s5p_jpeg_dri()
96 reg &= ~0xff; in s5p_jpeg_dri()
97 reg |= dri & 0xff; in s5p_jpeg_dri()
98 writel(reg, regs + S5P_JPGDRI_L); in s5p_jpeg_dri()
103 unsigned long reg; in s5p_jpeg_qtbl() local
105 reg = readl(regs + S5P_JPG_QTBL); in s5p_jpeg_qtbl()
106 reg &= ~S5P_QT_NUMt_MASK(t); in s5p_jpeg_qtbl()
107 reg |= (n << S5P_QT_NUMt_SHIFT(t)) & S5P_QT_NUMt_MASK(t); in s5p_jpeg_qtbl()
108 writel(reg, regs + S5P_JPG_QTBL); in s5p_jpeg_qtbl()
113 unsigned long reg; in s5p_jpeg_htbl_ac() local
115 reg = readl(regs + S5P_JPG_HTBL); in s5p_jpeg_htbl_ac()
116 reg &= ~S5P_HT_NUMt_AC_MASK(t); in s5p_jpeg_htbl_ac()
118 reg |= (0 << S5P_HT_NUMt_AC_SHIFT(t)) & S5P_HT_NUMt_AC_MASK(t); in s5p_jpeg_htbl_ac()
119 writel(reg, regs + S5P_JPG_HTBL); in s5p_jpeg_htbl_ac()
124 unsigned long reg; in s5p_jpeg_htbl_dc() local
126 reg = readl(regs + S5P_JPG_HTBL); in s5p_jpeg_htbl_dc()
127 reg &= ~S5P_HT_NUMt_DC_MASK(t); in s5p_jpeg_htbl_dc()
129 reg |= (0 << S5P_HT_NUMt_DC_SHIFT(t)) & S5P_HT_NUMt_DC_MASK(t); in s5p_jpeg_htbl_dc()
130 writel(reg, regs + S5P_JPG_HTBL); in s5p_jpeg_htbl_dc()
135 unsigned long reg; in s5p_jpeg_y() local
137 reg = readl(regs + S5P_JPGY_U); in s5p_jpeg_y()
138 reg &= ~0xff; in s5p_jpeg_y()
139 reg |= (y >> 8) & 0xff; in s5p_jpeg_y()
140 writel(reg, regs + S5P_JPGY_U); in s5p_jpeg_y()
142 reg = readl(regs + S5P_JPGY_L); in s5p_jpeg_y()
143 reg &= ~0xff; in s5p_jpeg_y()
144 reg |= y & 0xff; in s5p_jpeg_y()
145 writel(reg, regs + S5P_JPGY_L); in s5p_jpeg_y()
150 unsigned long reg; in s5p_jpeg_x() local
152 reg = readl(regs + S5P_JPGX_U); in s5p_jpeg_x()
153 reg &= ~0xff; in s5p_jpeg_x()
154 reg |= (x >> 8) & 0xff; in s5p_jpeg_x()
155 writel(reg, regs + S5P_JPGX_U); in s5p_jpeg_x()
157 reg = readl(regs + S5P_JPGX_L); in s5p_jpeg_x()
158 reg &= ~0xff; in s5p_jpeg_x()
159 reg |= x & 0xff; in s5p_jpeg_x()
160 writel(reg, regs + S5P_JPGX_L); in s5p_jpeg_x()
165 unsigned long reg; in s5p_jpeg_rst_int_enable() local
167 reg = readl(regs + S5P_JPGINTSE); in s5p_jpeg_rst_int_enable()
168 reg &= ~S5P_RSTm_INT_EN_MASK; in s5p_jpeg_rst_int_enable()
170 reg |= S5P_RSTm_INT_EN; in s5p_jpeg_rst_int_enable()
171 writel(reg, regs + S5P_JPGINTSE); in s5p_jpeg_rst_int_enable()
176 unsigned long reg; in s5p_jpeg_data_num_int_enable() local
178 reg = readl(regs + S5P_JPGINTSE); in s5p_jpeg_data_num_int_enable()
179 reg &= ~S5P_DATA_NUM_INT_EN_MASK; in s5p_jpeg_data_num_int_enable()
181 reg |= S5P_DATA_NUM_INT_EN; in s5p_jpeg_data_num_int_enable()
182 writel(reg, regs + S5P_JPGINTSE); in s5p_jpeg_data_num_int_enable()
187 unsigned long reg; in s5p_jpeg_final_mcu_num_int_enable() local
189 reg = readl(regs + S5P_JPGINTSE); in s5p_jpeg_final_mcu_num_int_enable()
190 reg &= ~S5P_FINAL_MCU_NUM_INT_EN_MASK; in s5p_jpeg_final_mcu_num_int_enable()
192 reg |= S5P_FINAL_MCU_NUM_INT_EN; in s5p_jpeg_final_mcu_num_int_enable()
193 writel(reg, regs + S5P_JPGINTSE); in s5p_jpeg_final_mcu_num_int_enable()
204 unsigned long reg; in s5p_jpeg_clear_timer_stat() local
206 reg = readl(regs + S5P_JPG_TIMER_SE); in s5p_jpeg_clear_timer_stat()
207 reg &= ~S5P_TIMER_INT_STAT_MASK; in s5p_jpeg_clear_timer_stat()
208 writel(reg, regs + S5P_JPG_TIMER_SE); in s5p_jpeg_clear_timer_stat()
213 unsigned long reg; in s5p_jpeg_enc_stream_int() local
215 reg = readl(regs + S5P_JPG_ENC_STREAM_INTSE); in s5p_jpeg_enc_stream_int()
216 reg &= ~S5P_ENC_STREAM_BOUND_MASK; in s5p_jpeg_enc_stream_int()
217 reg |= S5P_ENC_STREAM_INT_EN; in s5p_jpeg_enc_stream_int()
218 reg |= size & S5P_ENC_STREAM_BOUND_MASK; in s5p_jpeg_enc_stream_int()
219 writel(reg, regs + S5P_JPG_ENC_STREAM_INTSE); in s5p_jpeg_enc_stream_int()
230 unsigned long reg; in s5p_jpeg_clear_enc_stream_stat() local
232 reg = readl(regs + S5P_JPG_ENC_STREAM_INTSE); in s5p_jpeg_clear_enc_stream_stat()
233 reg &= ~S5P_ENC_STREAM_INT_MASK; in s5p_jpeg_clear_enc_stream_stat()
234 writel(reg, regs + S5P_JPG_ENC_STREAM_INTSE); in s5p_jpeg_clear_enc_stream_stat()
239 unsigned long reg, f; in s5p_jpeg_outform_raw() local
246 reg = readl(regs + S5P_JPG_OUTFORM); in s5p_jpeg_outform_raw()
247 reg &= ~S5P_DEC_OUT_FORMAT_MASK; in s5p_jpeg_outform_raw()
248 reg |= f; in s5p_jpeg_outform_raw()
249 writel(reg, regs + S5P_JPG_OUTFORM); in s5p_jpeg_outform_raw()
265 unsigned long reg; in s5p_jpeg_coef() local
267 reg = readl(regs + S5P_JPG_COEF(i)); in s5p_jpeg_coef()
268 reg &= ~S5P_COEFn_MASK(j); in s5p_jpeg_coef()
269 reg |= (coef << S5P_COEFn_SHIFT(j)) & S5P_COEFn_MASK(j); in s5p_jpeg_coef()
270 writel(reg, regs + S5P_JPG_COEF(i)); in s5p_jpeg_coef()