Lines Matching refs:regvalue

68 	register u32 regvalue;  in nx_mipi_set_interrupt_enable()  local
72 regvalue = pregister->csis_intmsk; in nx_mipi_set_interrupt_enable()
73 regvalue &= ~(1ul << int_num); in nx_mipi_set_interrupt_enable()
74 regvalue |= (u32)enable << int_num; in nx_mipi_set_interrupt_enable()
75 writel(regvalue, &pregister->csis_intmsk); in nx_mipi_set_interrupt_enable()
77 regvalue = pregister->dsim_intmsk; in nx_mipi_set_interrupt_enable()
78 regvalue &= ~(1ul << (int_num - 32)); in nx_mipi_set_interrupt_enable()
79 regvalue |= (u32)enable << (int_num - 32); in nx_mipi_set_interrupt_enable()
80 writel(regvalue, &pregister->dsim_intmsk); in nx_mipi_set_interrupt_enable()
97 register u32 regvalue; in nx_mipi_get_interrupt_pending() local
102 regvalue = pregister->csis_intmsk; in nx_mipi_get_interrupt_pending()
103 regvalue &= pregister->csis_intsrc; in nx_mipi_get_interrupt_pending()
104 ret = (int)((regvalue >> int_num) & 0x01); in nx_mipi_get_interrupt_pending()
106 regvalue = pregister->dsim_intmsk; in nx_mipi_get_interrupt_pending()
107 regvalue &= pregister->dsim_intsrc; in nx_mipi_get_interrupt_pending()
108 ret = (int)((regvalue >> (int_num - 32)) & 0x01); in nx_mipi_get_interrupt_pending()
150 register u32 regvalue; in nx_mipi_get_interrupt_pending_all() local
153 regvalue = pregister->csis_intmsk; in nx_mipi_get_interrupt_pending_all()
154 regvalue &= pregister->csis_intsrc; in nx_mipi_get_interrupt_pending_all()
156 if (regvalue) in nx_mipi_get_interrupt_pending_all()
159 regvalue = pregister->dsim_intmsk; in nx_mipi_get_interrupt_pending_all()
160 regvalue &= pregister->dsim_intsrc; in nx_mipi_get_interrupt_pending_all()
162 if (regvalue) in nx_mipi_get_interrupt_pending_all()
179 register u32 regvalue; in nx_mipi_get_interrupt_pending_number() local
183 regvalue = pregister->csis_intmsk; in nx_mipi_get_interrupt_pending_number()
184 regvalue &= pregister->csis_intsrc; in nx_mipi_get_interrupt_pending_number()
185 if (regvalue != 0) { in nx_mipi_get_interrupt_pending_number()
187 if (regvalue & 1ul) in nx_mipi_get_interrupt_pending_number()
189 regvalue >>= 1; in nx_mipi_get_interrupt_pending_number()
193 regvalue = pregister->dsim_intmsk; in nx_mipi_get_interrupt_pending_number()
194 regvalue &= pregister->dsim_intsrc; in nx_mipi_get_interrupt_pending_number()
195 if (regvalue != 0) { in nx_mipi_get_interrupt_pending_number()
197 if (regvalue & 1ul) in nx_mipi_get_interrupt_pending_number()
199 regvalue >>= 1; in nx_mipi_get_interrupt_pending_number()
206 regvalue = pregister->(regname); \
207 regvalue = (regvalue & (~(mask))) | (value); \
208 writel(regvalue, &pregister->(regname))
215 register u32 regvalue; in nx_mipi_dsi_get_status() local
218 regvalue = pregister->dsim_status; in nx_mipi_dsi_get_status()
221 if (regvalue & (1 << 4)) in nx_mipi_dsi_get_status()
223 if (regvalue & (1 << 5)) in nx_mipi_dsi_get_status()
225 if (regvalue & (1 << 6)) in nx_mipi_dsi_get_status()
227 if (regvalue & (1 << 7)) in nx_mipi_dsi_get_status()
229 if (regvalue & (1 << 9)) in nx_mipi_dsi_get_status()
235 if (regvalue & (1 << 0)) in nx_mipi_dsi_get_status()
237 if (regvalue & (1 << 1)) in nx_mipi_dsi_get_status()
239 if (regvalue & (1 << 2)) in nx_mipi_dsi_get_status()
241 if (regvalue & (1 << 3)) in nx_mipi_dsi_get_status()
243 if (regvalue & (1 << 8)) in nx_mipi_dsi_get_status()
248 *pispllstable = (regvalue >> 31) & 1; in nx_mipi_dsi_get_status()
251 *pisinreset = ((regvalue >> 20) & 1) ? 0 : 1; in nx_mipi_dsi_get_status()
254 *pisbackward = (regvalue >> 16) & 1; in nx_mipi_dsi_get_status()
257 *pishsclockready = (regvalue >> 10) & 1; in nx_mipi_dsi_get_status()
284 register u32 regvalue; in nx_mipi_dsi_set_clock() local
287 regvalue = 0; in nx_mipi_dsi_set_clock()
288 regvalue |= (enable_txhsclock << 31); in nx_mipi_dsi_set_clock()
289 regvalue |= (use_external_clock << 27); in nx_mipi_dsi_set_clock()
290 regvalue |= (enable_byte_clock << 24); in nx_mipi_dsi_set_clock()
291 regvalue |= (enable_escclock_clock_lane << 19); in nx_mipi_dsi_set_clock()
292 regvalue |= (enable_escclock_data_lane0 << 20); in nx_mipi_dsi_set_clock()
293 regvalue |= (enable_escclock_data_lane1 << 21); in nx_mipi_dsi_set_clock()
294 regvalue |= (enable_escclock_data_lane2 << 22); in nx_mipi_dsi_set_clock()
295 regvalue |= (enable_escclock_data_lane3 << 23); in nx_mipi_dsi_set_clock()
296 regvalue |= (enable_escprescaler << 28); in nx_mipi_dsi_set_clock()
297 regvalue |= escprescalervalue; in nx_mipi_dsi_set_clock()
299 writel(regvalue, &pregister->dsim_clkctrl); in nx_mipi_dsi_set_clock()
305 register u32 regvalue; in nx_mipi_dsi_set_timeout() local
308 regvalue = 0; in nx_mipi_dsi_set_timeout()
309 regvalue |= (bta_tout << 16); in nx_mipi_dsi_set_timeout()
310 regvalue |= (lpdrtout << 0); in nx_mipi_dsi_set_timeout()
312 writel(regvalue, &pregister->dsim_timeout); in nx_mipi_dsi_set_timeout()
335 register u32 regvalue; in nx_mipi_dsi_set_config_video_mode() local
379 register u32 regvalue; in nx_mipi_dsi_set_config_command_mode() local
397 register u32 regvalue; in nx_mipi_dsi_set_escape_mode() local
414 register u32 regvalue; in nx_mipi_dsi_set_escape_lp() local
426 register u32 regvalue; in nx_mipi_dsi_remote_reset_trigger() local
440 register u32 regvalue; in nx_mipi_dsi_set_ulps() local
443 regvalue = pregister->dsim_escmode; in nx_mipi_dsi_set_ulps()
446 regvalue &= ~(1 << 0); in nx_mipi_dsi_set_ulps()
447 regvalue |= (1 << 1); in nx_mipi_dsi_set_ulps()
449 regvalue |= (1 << 0); in nx_mipi_dsi_set_ulps()
453 regvalue &= ~(1 << 2); in nx_mipi_dsi_set_ulps()
454 regvalue |= (1 << 3); in nx_mipi_dsi_set_ulps()
456 regvalue |= (1 << 2); in nx_mipi_dsi_set_ulps()
459 writel(regvalue, &pregister->dsim_escmode); in nx_mipi_dsi_set_ulps()
478 regvalue &= (3 << 0); in nx_mipi_dsi_set_ulps()
481 regvalue |= (3 << 2); in nx_mipi_dsi_set_ulps()
483 writel(regvalue, &pregister->dsim_escmode); in nx_mipi_dsi_set_ulps()
489 register u32 regvalue; in nx_mipi_dsi_set_size() local
501 register u32 regvalue; in nx_mipi_dsi_set_enable() local
514 register u32 regvalue; in nx_mipi_dsi_set_phy() local
535 register u32 regvalue; in nx_mipi_dsi_set_pll() local