• Home
  • Raw
  • Download

Lines Matching refs:reg

22 	unsigned long reg;  in s5p_jpeg_reset()  local
25 reg = readl(regs + S5P_JPG_SW_RESET); in s5p_jpeg_reset()
27 while (reg != 0) { in s5p_jpeg_reset()
29 reg = readl(regs + S5P_JPG_SW_RESET); in s5p_jpeg_reset()
40 unsigned long reg, m; in s5p_jpeg_input_raw_mode() local
48 reg = readl(regs + S5P_JPGCMOD); in s5p_jpeg_input_raw_mode()
49 reg &= ~S5P_MOD_SEL_MASK; in s5p_jpeg_input_raw_mode()
50 reg |= m; in s5p_jpeg_input_raw_mode()
51 writel(reg, regs + S5P_JPGCMOD); in s5p_jpeg_input_raw_mode()
56 unsigned long reg, m; in s5p_jpeg_proc_mode() local
63 reg = readl(regs + S5P_JPGMOD); in s5p_jpeg_proc_mode()
64 reg &= ~S5P_PROC_MODE_MASK; in s5p_jpeg_proc_mode()
65 reg |= m; in s5p_jpeg_proc_mode()
66 writel(reg, regs + S5P_JPGMOD); in s5p_jpeg_proc_mode()
71 unsigned long reg, m; in s5p_jpeg_subsampling_mode() local
78 reg = readl(regs + S5P_JPGMOD); in s5p_jpeg_subsampling_mode()
79 reg &= ~S5P_SUBSAMPLING_MODE_MASK; in s5p_jpeg_subsampling_mode()
80 reg |= m; in s5p_jpeg_subsampling_mode()
81 writel(reg, regs + S5P_JPGMOD); in s5p_jpeg_subsampling_mode()
91 unsigned long reg; in s5p_jpeg_dri() local
93 reg = readl(regs + S5P_JPGDRI_U); in s5p_jpeg_dri()
94 reg &= ~0xff; in s5p_jpeg_dri()
95 reg |= (dri >> 8) & 0xff; in s5p_jpeg_dri()
96 writel(reg, regs + S5P_JPGDRI_U); in s5p_jpeg_dri()
98 reg = readl(regs + S5P_JPGDRI_L); in s5p_jpeg_dri()
99 reg &= ~0xff; in s5p_jpeg_dri()
100 reg |= dri & 0xff; in s5p_jpeg_dri()
101 writel(reg, regs + S5P_JPGDRI_L); in s5p_jpeg_dri()
106 unsigned long reg; in s5p_jpeg_qtbl() local
108 reg = readl(regs + S5P_JPG_QTBL); in s5p_jpeg_qtbl()
109 reg &= ~S5P_QT_NUMt_MASK(t); in s5p_jpeg_qtbl()
110 reg |= (n << S5P_QT_NUMt_SHIFT(t)) & S5P_QT_NUMt_MASK(t); in s5p_jpeg_qtbl()
111 writel(reg, regs + S5P_JPG_QTBL); in s5p_jpeg_qtbl()
116 unsigned long reg; in s5p_jpeg_htbl_ac() local
118 reg = readl(regs + S5P_JPG_HTBL); in s5p_jpeg_htbl_ac()
119 reg &= ~S5P_HT_NUMt_AC_MASK(t); in s5p_jpeg_htbl_ac()
121 reg |= (0 << S5P_HT_NUMt_AC_SHIFT(t)) & S5P_HT_NUMt_AC_MASK(t); in s5p_jpeg_htbl_ac()
122 writel(reg, regs + S5P_JPG_HTBL); in s5p_jpeg_htbl_ac()
127 unsigned long reg; in s5p_jpeg_htbl_dc() local
129 reg = readl(regs + S5P_JPG_HTBL); in s5p_jpeg_htbl_dc()
130 reg &= ~S5P_HT_NUMt_DC_MASK(t); in s5p_jpeg_htbl_dc()
132 reg |= (0 << S5P_HT_NUMt_DC_SHIFT(t)) & S5P_HT_NUMt_DC_MASK(t); in s5p_jpeg_htbl_dc()
133 writel(reg, regs + S5P_JPG_HTBL); in s5p_jpeg_htbl_dc()
138 unsigned long reg; in s5p_jpeg_y() local
140 reg = readl(regs + S5P_JPGY_U); in s5p_jpeg_y()
141 reg &= ~0xff; in s5p_jpeg_y()
142 reg |= (y >> 8) & 0xff; in s5p_jpeg_y()
143 writel(reg, regs + S5P_JPGY_U); in s5p_jpeg_y()
145 reg = readl(regs + S5P_JPGY_L); in s5p_jpeg_y()
146 reg &= ~0xff; in s5p_jpeg_y()
147 reg |= y & 0xff; in s5p_jpeg_y()
148 writel(reg, regs + S5P_JPGY_L); in s5p_jpeg_y()
153 unsigned long reg; in s5p_jpeg_x() local
155 reg = readl(regs + S5P_JPGX_U); in s5p_jpeg_x()
156 reg &= ~0xff; in s5p_jpeg_x()
157 reg |= (x >> 8) & 0xff; in s5p_jpeg_x()
158 writel(reg, regs + S5P_JPGX_U); in s5p_jpeg_x()
160 reg = readl(regs + S5P_JPGX_L); in s5p_jpeg_x()
161 reg &= ~0xff; in s5p_jpeg_x()
162 reg |= x & 0xff; in s5p_jpeg_x()
163 writel(reg, regs + S5P_JPGX_L); in s5p_jpeg_x()
168 unsigned long reg; in s5p_jpeg_rst_int_enable() local
170 reg = readl(regs + S5P_JPGINTSE); in s5p_jpeg_rst_int_enable()
171 reg &= ~S5P_RSTm_INT_EN_MASK; in s5p_jpeg_rst_int_enable()
173 reg |= S5P_RSTm_INT_EN; in s5p_jpeg_rst_int_enable()
174 writel(reg, regs + S5P_JPGINTSE); in s5p_jpeg_rst_int_enable()
179 unsigned long reg; in s5p_jpeg_data_num_int_enable() local
181 reg = readl(regs + S5P_JPGINTSE); in s5p_jpeg_data_num_int_enable()
182 reg &= ~S5P_DATA_NUM_INT_EN_MASK; in s5p_jpeg_data_num_int_enable()
184 reg |= S5P_DATA_NUM_INT_EN; in s5p_jpeg_data_num_int_enable()
185 writel(reg, regs + S5P_JPGINTSE); in s5p_jpeg_data_num_int_enable()
190 unsigned long reg; in s5p_jpeg_final_mcu_num_int_enable() local
192 reg = readl(regs + S5P_JPGINTSE); in s5p_jpeg_final_mcu_num_int_enable()
193 reg &= ~S5P_FINAL_MCU_NUM_INT_EN_MASK; in s5p_jpeg_final_mcu_num_int_enable()
195 reg |= S5P_FINAL_MCU_NUM_INT_EN; in s5p_jpeg_final_mcu_num_int_enable()
196 writel(reg, regs + S5P_JPGINTSE); in s5p_jpeg_final_mcu_num_int_enable()
207 unsigned long reg; in s5p_jpeg_clear_timer_stat() local
209 reg = readl(regs + S5P_JPG_TIMER_SE); in s5p_jpeg_clear_timer_stat()
210 reg &= ~S5P_TIMER_INT_STAT_MASK; in s5p_jpeg_clear_timer_stat()
211 writel(reg, regs + S5P_JPG_TIMER_SE); in s5p_jpeg_clear_timer_stat()
216 unsigned long reg; in s5p_jpeg_enc_stream_int() local
218 reg = readl(regs + S5P_JPG_ENC_STREAM_INTSE); in s5p_jpeg_enc_stream_int()
219 reg &= ~S5P_ENC_STREAM_BOUND_MASK; in s5p_jpeg_enc_stream_int()
220 reg |= S5P_ENC_STREAM_INT_EN; in s5p_jpeg_enc_stream_int()
221 reg |= size & S5P_ENC_STREAM_BOUND_MASK; in s5p_jpeg_enc_stream_int()
222 writel(reg, regs + S5P_JPG_ENC_STREAM_INTSE); in s5p_jpeg_enc_stream_int()
233 unsigned long reg; in s5p_jpeg_clear_enc_stream_stat() local
235 reg = readl(regs + S5P_JPG_ENC_STREAM_INTSE); in s5p_jpeg_clear_enc_stream_stat()
236 reg &= ~S5P_ENC_STREAM_INT_MASK; in s5p_jpeg_clear_enc_stream_stat()
237 writel(reg, regs + S5P_JPG_ENC_STREAM_INTSE); in s5p_jpeg_clear_enc_stream_stat()
242 unsigned long reg, f; in s5p_jpeg_outform_raw() local
249 reg = readl(regs + S5P_JPG_OUTFORM); in s5p_jpeg_outform_raw()
250 reg &= ~S5P_DEC_OUT_FORMAT_MASK; in s5p_jpeg_outform_raw()
251 reg |= f; in s5p_jpeg_outform_raw()
252 writel(reg, regs + S5P_JPG_OUTFORM); in s5p_jpeg_outform_raw()
268 unsigned long reg; in s5p_jpeg_coef() local
270 reg = readl(regs + S5P_JPG_COEF(i)); in s5p_jpeg_coef()
271 reg &= ~S5P_COEFn_MASK(j); in s5p_jpeg_coef()
272 reg |= (coef << S5P_COEFn_SHIFT(j)) & S5P_COEFn_MASK(j); in s5p_jpeg_coef()
273 writel(reg, regs + S5P_JPG_COEF(i)); in s5p_jpeg_coef()