Lines Matching full: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
59 reg = readl(regs + S5P_JPGMOD); in s5p_jpeg_proc_mode()
60 reg &= ~S5P_PROC_MODE_MASK; in s5p_jpeg_proc_mode()
61 reg |= m; in s5p_jpeg_proc_mode()
62 writel(reg, regs + S5P_JPGMOD); in s5p_jpeg_proc_mode()
67 unsigned long reg, m; in s5p_jpeg_subsampling_mode() local
74 reg = readl(regs + S5P_JPGMOD); in s5p_jpeg_subsampling_mode()
75 reg &= ~S5P_SUBSAMPLING_MODE_MASK; in s5p_jpeg_subsampling_mode()
76 reg |= m; in s5p_jpeg_subsampling_mode()
77 writel(reg, regs + S5P_JPGMOD); in s5p_jpeg_subsampling_mode()
87 unsigned long reg; in s5p_jpeg_dri() local
89 reg = readl(regs + S5P_JPGDRI_U); in s5p_jpeg_dri()
90 reg &= ~0xff; in s5p_jpeg_dri()
91 reg |= (dri >> 8) & 0xff; 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()
95 reg &= ~0xff; in s5p_jpeg_dri()
96 reg |= dri & 0xff; in s5p_jpeg_dri()
97 writel(reg, regs + S5P_JPGDRI_L); in s5p_jpeg_dri()
102 unsigned long reg; in s5p_jpeg_qtbl() local
104 reg = readl(regs + S5P_JPG_QTBL); in s5p_jpeg_qtbl()
105 reg &= ~S5P_QT_NUMt_MASK(t); in s5p_jpeg_qtbl()
106 reg |= (n << S5P_QT_NUMt_SHIFT(t)) & S5P_QT_NUMt_MASK(t); in s5p_jpeg_qtbl()
107 writel(reg, regs + S5P_JPG_QTBL); in s5p_jpeg_qtbl()
112 unsigned long reg; in s5p_jpeg_htbl_ac() local
114 reg = readl(regs + S5P_JPG_HTBL); in s5p_jpeg_htbl_ac()
115 reg &= ~S5P_HT_NUMt_AC_MASK(t); in s5p_jpeg_htbl_ac()
117 reg |= (0 << S5P_HT_NUMt_AC_SHIFT(t)) & S5P_HT_NUMt_AC_MASK(t); in s5p_jpeg_htbl_ac()
118 writel(reg, regs + S5P_JPG_HTBL); in s5p_jpeg_htbl_ac()
123 unsigned long reg; in s5p_jpeg_htbl_dc() local
125 reg = readl(regs + S5P_JPG_HTBL); in s5p_jpeg_htbl_dc()
126 reg &= ~S5P_HT_NUMt_DC_MASK(t); in s5p_jpeg_htbl_dc()
128 reg |= (0 << S5P_HT_NUMt_DC_SHIFT(t)) & S5P_HT_NUMt_DC_MASK(t); in s5p_jpeg_htbl_dc()
129 writel(reg, regs + S5P_JPG_HTBL); in s5p_jpeg_htbl_dc()
134 unsigned long reg; in s5p_jpeg_y() local
136 reg = readl(regs + S5P_JPGY_U); in s5p_jpeg_y()
137 reg &= ~0xff; in s5p_jpeg_y()
138 reg |= (y >> 8) & 0xff; 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()
142 reg &= ~0xff; in s5p_jpeg_y()
143 reg |= y & 0xff; in s5p_jpeg_y()
144 writel(reg, regs + S5P_JPGY_L); in s5p_jpeg_y()
149 unsigned long reg; in s5p_jpeg_x() local
151 reg = readl(regs + S5P_JPGX_U); in s5p_jpeg_x()
152 reg &= ~0xff; in s5p_jpeg_x()
153 reg |= (x >> 8) & 0xff; 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()
157 reg &= ~0xff; in s5p_jpeg_x()
158 reg |= x & 0xff; in s5p_jpeg_x()
159 writel(reg, regs + S5P_JPGX_L); in s5p_jpeg_x()
164 unsigned long reg; in s5p_jpeg_rst_int_enable() local
166 reg = readl(regs + S5P_JPGINTSE); in s5p_jpeg_rst_int_enable()
167 reg &= ~S5P_RSTm_INT_EN_MASK; in s5p_jpeg_rst_int_enable()
169 reg |= S5P_RSTm_INT_EN; in s5p_jpeg_rst_int_enable()
170 writel(reg, regs + S5P_JPGINTSE); in s5p_jpeg_rst_int_enable()
175 unsigned long reg; in s5p_jpeg_data_num_int_enable() local
177 reg = readl(regs + S5P_JPGINTSE); in s5p_jpeg_data_num_int_enable()
178 reg &= ~S5P_DATA_NUM_INT_EN_MASK; in s5p_jpeg_data_num_int_enable()
180 reg |= S5P_DATA_NUM_INT_EN; in s5p_jpeg_data_num_int_enable()
181 writel(reg, regs + S5P_JPGINTSE); in s5p_jpeg_data_num_int_enable()
186 unsigned long reg; in s5p_jpeg_final_mcu_num_int_enable() local
188 reg = readl(regs + S5P_JPGINTSE); in s5p_jpeg_final_mcu_num_int_enable()
189 reg &= ~S5P_FINAL_MCU_NUM_INT_EN_MASK; in s5p_jpeg_final_mcu_num_int_enable()
191 reg |= S5P_FINAL_MCU_NUM_INT_EN; in s5p_jpeg_final_mcu_num_int_enable()
192 writel(reg, regs + S5P_JPGINTSE); in s5p_jpeg_final_mcu_num_int_enable()
203 unsigned long reg; in s5p_jpeg_clear_timer_stat() local
205 reg = readl(regs + S5P_JPG_TIMER_SE); in s5p_jpeg_clear_timer_stat()
206 reg &= ~S5P_TIMER_INT_STAT_MASK; in s5p_jpeg_clear_timer_stat()
207 writel(reg, regs + S5P_JPG_TIMER_SE); in s5p_jpeg_clear_timer_stat()
212 unsigned long reg; in s5p_jpeg_enc_stream_int() local
214 reg = readl(regs + S5P_JPG_ENC_STREAM_INTSE); in s5p_jpeg_enc_stream_int()
215 reg &= ~S5P_ENC_STREAM_BOUND_MASK; in s5p_jpeg_enc_stream_int()
216 reg |= S5P_ENC_STREAM_INT_EN; in s5p_jpeg_enc_stream_int()
217 reg |= size & S5P_ENC_STREAM_BOUND_MASK; in s5p_jpeg_enc_stream_int()
218 writel(reg, regs + S5P_JPG_ENC_STREAM_INTSE); in s5p_jpeg_enc_stream_int()
229 unsigned long reg; in s5p_jpeg_clear_enc_stream_stat() local
231 reg = readl(regs + S5P_JPG_ENC_STREAM_INTSE); in s5p_jpeg_clear_enc_stream_stat()
232 reg &= ~S5P_ENC_STREAM_INT_MASK; in s5p_jpeg_clear_enc_stream_stat()
233 writel(reg, regs + S5P_JPG_ENC_STREAM_INTSE); in s5p_jpeg_clear_enc_stream_stat()
238 unsigned long reg, f; in s5p_jpeg_outform_raw() local
245 reg = readl(regs + S5P_JPG_OUTFORM); in s5p_jpeg_outform_raw()
246 reg &= ~S5P_DEC_OUT_FORMAT_MASK; in s5p_jpeg_outform_raw()
247 reg |= f; in s5p_jpeg_outform_raw()
248 writel(reg, regs + S5P_JPG_OUTFORM); in s5p_jpeg_outform_raw()
264 unsigned long reg; in s5p_jpeg_coef() local
266 reg = readl(regs + S5P_JPG_COEF(i)); in s5p_jpeg_coef()
267 reg &= ~S5P_COEFn_MASK(j); in s5p_jpeg_coef()
268 reg |= (coef << S5P_COEFn_SHIFT(j)) & S5P_COEFn_MASK(j); in s5p_jpeg_coef()
269 writel(reg, regs + S5P_JPG_COEF(i)); in s5p_jpeg_coef()