Lines Matching refs:regw
25 #define regw(value, reg) writel(value, (reg + vpif_base)) macro
131 regw((regr(reg)) | (0x01 << bit), reg); in vpif_set_bit()
136 regw(((regr(reg)) & ~(0x01 << bit)), reg); in vpif_clr_bit()
213 #define channel0_intr_assert() (regw((regr(VPIF_CH0_CTRL)|\
217 #define channel1_intr_assert() (regw((regr(VPIF_CH1_CTRL)|\
221 #define channel2_intr_assert() (regw((regr(VPIF_CH2_CTRL)|\
225 #define channel3_intr_assert() (regw((regr(VPIF_CH3_CTRL)|\
266 regw((regr(VPIF_CH0_CTRL) | (VPIF_CH0_EN)), VPIF_CH0_CTRL); in enable_channel0()
268 regw((regr(VPIF_CH0_CTRL) & (~VPIF_CH0_EN)), VPIF_CH0_CTRL); in enable_channel0()
275 regw((regr(VPIF_CH1_CTRL) | (VPIF_CH1_EN)), VPIF_CH1_CTRL); in enable_channel1()
277 regw((regr(VPIF_CH1_CTRL) & (~VPIF_CH1_EN)), VPIF_CH1_CTRL); in enable_channel1()
288 regw((regr(VPIF_INTEN) | 0x10), VPIF_INTEN); in channel0_intr_enable()
289 regw((regr(VPIF_INTEN_SET) | 0x10), VPIF_INTEN_SET); in channel0_intr_enable()
291 regw((regr(VPIF_INTEN) | VPIF_INTEN_FRAME_CH0), VPIF_INTEN); in channel0_intr_enable()
292 regw((regr(VPIF_INTEN_SET) | VPIF_INTEN_FRAME_CH0), in channel0_intr_enable()
295 regw((regr(VPIF_INTEN) & (~VPIF_INTEN_FRAME_CH0)), VPIF_INTEN); in channel0_intr_enable()
296 regw((regr(VPIF_INTEN_SET) | VPIF_INTEN_FRAME_CH0), in channel0_intr_enable()
310 regw((regr(VPIF_INTEN) | 0x10), VPIF_INTEN); in channel1_intr_enable()
311 regw((regr(VPIF_INTEN_SET) | 0x10), VPIF_INTEN_SET); in channel1_intr_enable()
313 regw((regr(VPIF_INTEN) | VPIF_INTEN_FRAME_CH1), VPIF_INTEN); in channel1_intr_enable()
314 regw((regr(VPIF_INTEN_SET) | VPIF_INTEN_FRAME_CH1), in channel1_intr_enable()
317 regw((regr(VPIF_INTEN) & (~VPIF_INTEN_FRAME_CH1)), VPIF_INTEN); in channel1_intr_enable()
318 regw((regr(VPIF_INTEN_SET) | VPIF_INTEN_FRAME_CH1), in channel1_intr_enable()
330 regw(top_strt_luma, VPIF_CH0_TOP_STRT_ADD_LUMA); in ch0_set_video_buf_addr_yc_nmux()
331 regw(btm_strt_luma, VPIF_CH0_BTM_STRT_ADD_LUMA); in ch0_set_video_buf_addr_yc_nmux()
332 regw(top_strt_chroma, VPIF_CH1_TOP_STRT_ADD_CHROMA); in ch0_set_video_buf_addr_yc_nmux()
333 regw(btm_strt_chroma, VPIF_CH1_BTM_STRT_ADD_CHROMA); in ch0_set_video_buf_addr_yc_nmux()
342 regw(top_strt_luma, VPIF_CH0_TOP_STRT_ADD_LUMA); in ch0_set_video_buf_addr()
343 regw(btm_strt_luma, VPIF_CH0_BTM_STRT_ADD_LUMA); in ch0_set_video_buf_addr()
344 regw(top_strt_chroma, VPIF_CH0_TOP_STRT_ADD_CHROMA); in ch0_set_video_buf_addr()
345 regw(btm_strt_chroma, VPIF_CH0_BTM_STRT_ADD_CHROMA); in ch0_set_video_buf_addr()
354 regw(top_strt_luma, VPIF_CH1_TOP_STRT_ADD_LUMA); in ch1_set_video_buf_addr()
355 regw(btm_strt_luma, VPIF_CH1_BTM_STRT_ADD_LUMA); in ch1_set_video_buf_addr()
356 regw(top_strt_chroma, VPIF_CH1_TOP_STRT_ADD_CHROMA); in ch1_set_video_buf_addr()
357 regw(btm_strt_chroma, VPIF_CH1_BTM_STRT_ADD_CHROMA); in ch1_set_video_buf_addr()
363 regw(top_vbi, VPIF_CH0_TOP_STRT_ADD_VANC); in ch0_set_vbi_addr()
364 regw(btm_vbi, VPIF_CH0_BTM_STRT_ADD_VANC); in ch0_set_vbi_addr()
370 regw(top_vbi, VPIF_CH0_TOP_STRT_ADD_HANC); in ch0_set_hbi_addr()
371 regw(btm_vbi, VPIF_CH0_BTM_STRT_ADD_HANC); in ch0_set_hbi_addr()
377 regw(top_vbi, VPIF_CH1_TOP_STRT_ADD_VANC); in ch1_set_vbi_addr()
378 regw(btm_vbi, VPIF_CH1_BTM_STRT_ADD_VANC); in ch1_set_vbi_addr()
384 regw(top_vbi, VPIF_CH1_TOP_STRT_ADD_HANC); in ch1_set_hbi_addr()
385 regw(btm_vbi, VPIF_CH1_BTM_STRT_ADD_HANC); in ch1_set_hbi_addr()
421 regw((regr(VPIF_CH2_CTRL) | (VPIF_CH2_CLK_EN)), VPIF_CH2_CTRL); in enable_channel2()
422 regw((regr(VPIF_CH2_CTRL) | (VPIF_CH2_EN)), VPIF_CH2_CTRL); in enable_channel2()
424 regw((regr(VPIF_CH2_CTRL) & (~VPIF_CH2_CLK_EN)), VPIF_CH2_CTRL); in enable_channel2()
425 regw((regr(VPIF_CH2_CTRL) & (~VPIF_CH2_EN)), VPIF_CH2_CTRL); in enable_channel2()
433 regw((regr(VPIF_CH3_CTRL) | (VPIF_CH3_CLK_EN)), VPIF_CH3_CTRL); in enable_channel3()
434 regw((regr(VPIF_CH3_CTRL) | (VPIF_CH3_EN)), VPIF_CH3_CTRL); in enable_channel3()
436 regw((regr(VPIF_CH3_CTRL) & (~VPIF_CH3_CLK_EN)), VPIF_CH3_CTRL); in enable_channel3()
437 regw((regr(VPIF_CH3_CTRL) & (~VPIF_CH3_EN)), VPIF_CH3_CTRL); in enable_channel3()
449 regw((regr(VPIF_INTEN) | 0x10), VPIF_INTEN); in channel2_intr_enable()
450 regw((regr(VPIF_INTEN_SET) | 0x10), VPIF_INTEN_SET); in channel2_intr_enable()
451 regw((regr(VPIF_INTEN) | VPIF_INTEN_FRAME_CH2), VPIF_INTEN); in channel2_intr_enable()
452 regw((regr(VPIF_INTEN_SET) | VPIF_INTEN_FRAME_CH2), in channel2_intr_enable()
455 regw((regr(VPIF_INTEN) & (~VPIF_INTEN_FRAME_CH2)), VPIF_INTEN); in channel2_intr_enable()
456 regw((regr(VPIF_INTEN_SET) | VPIF_INTEN_FRAME_CH2), in channel2_intr_enable()
470 regw((regr(VPIF_INTEN) | 0x10), VPIF_INTEN); in channel3_intr_enable()
471 regw((regr(VPIF_INTEN_SET) | 0x10), VPIF_INTEN_SET); in channel3_intr_enable()
473 regw((regr(VPIF_INTEN) | VPIF_INTEN_FRAME_CH3), VPIF_INTEN); in channel3_intr_enable()
474 regw((regr(VPIF_INTEN_SET) | VPIF_INTEN_FRAME_CH3), in channel3_intr_enable()
477 regw((regr(VPIF_INTEN) & (~VPIF_INTEN_FRAME_CH3)), VPIF_INTEN); in channel3_intr_enable()
478 regw((regr(VPIF_INTEN_SET) | VPIF_INTEN_FRAME_CH3), in channel3_intr_enable()
546 regw(top_strt_luma, VPIF_CH2_TOP_STRT_ADD_LUMA); in ch2_set_video_buf_addr_yc_nmux()
547 regw(btm_strt_luma, VPIF_CH2_BTM_STRT_ADD_LUMA); in ch2_set_video_buf_addr_yc_nmux()
548 regw(top_strt_chroma, VPIF_CH3_TOP_STRT_ADD_CHROMA); in ch2_set_video_buf_addr_yc_nmux()
549 regw(btm_strt_chroma, VPIF_CH3_BTM_STRT_ADD_CHROMA); in ch2_set_video_buf_addr_yc_nmux()
558 regw(top_strt_luma, VPIF_CH2_TOP_STRT_ADD_LUMA); in ch2_set_video_buf_addr()
559 regw(btm_strt_luma, VPIF_CH2_BTM_STRT_ADD_LUMA); in ch2_set_video_buf_addr()
560 regw(top_strt_chroma, VPIF_CH2_TOP_STRT_ADD_CHROMA); in ch2_set_video_buf_addr()
561 regw(btm_strt_chroma, VPIF_CH2_BTM_STRT_ADD_CHROMA); in ch2_set_video_buf_addr()
569 regw(top_strt_luma, VPIF_CH3_TOP_STRT_ADD_LUMA); in ch3_set_video_buf_addr()
570 regw(btm_strt_luma, VPIF_CH3_BTM_STRT_ADD_LUMA); in ch3_set_video_buf_addr()
571 regw(top_strt_chroma, VPIF_CH3_TOP_STRT_ADD_CHROMA); in ch3_set_video_buf_addr()
572 regw(btm_strt_chroma, VPIF_CH3_BTM_STRT_ADD_CHROMA); in ch3_set_video_buf_addr()
581 regw(top_strt_luma, VPIF_CH2_TOP_STRT_ADD_VANC); in ch2_set_vbi_addr()
582 regw(btm_strt_luma, VPIF_CH2_BTM_STRT_ADD_VANC); in ch2_set_vbi_addr()
590 regw(top_strt_luma, VPIF_CH3_TOP_STRT_ADD_VANC); in ch3_set_vbi_addr()
591 regw(btm_strt_luma, VPIF_CH3_BTM_STRT_ADD_VANC); in ch3_set_vbi_addr()
604 regw(status, VPIF_STATUS_CLR); in vpif_intr_status()