Lines Matching refs:rcrtc

35 static u32 rcar_du_crtc_read(struct rcar_du_crtc *rcrtc, u32 reg)  in rcar_du_crtc_read()  argument
37 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_read()
39 return rcar_du_read(rcdu, rcrtc->mmio_offset + reg); in rcar_du_crtc_read()
42 static void rcar_du_crtc_write(struct rcar_du_crtc *rcrtc, u32 reg, u32 data) in rcar_du_crtc_write() argument
44 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_write()
46 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, data); in rcar_du_crtc_write()
49 static void rcar_du_crtc_clr(struct rcar_du_crtc *rcrtc, u32 reg, u32 clr) in rcar_du_crtc_clr() argument
51 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_clr()
53 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, in rcar_du_crtc_clr()
54 rcar_du_read(rcdu, rcrtc->mmio_offset + reg) & ~clr); in rcar_du_crtc_clr()
57 static void rcar_du_crtc_set(struct rcar_du_crtc *rcrtc, u32 reg, u32 set) in rcar_du_crtc_set() argument
59 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_set()
61 rcar_du_write(rcdu, rcrtc->mmio_offset + reg, in rcar_du_crtc_set()
62 rcar_du_read(rcdu, rcrtc->mmio_offset + reg) | set); in rcar_du_crtc_set()
65 void rcar_du_crtc_dsysr_clr_set(struct rcar_du_crtc *rcrtc, u32 clr, u32 set) in rcar_du_crtc_dsysr_clr_set() argument
67 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_dsysr_clr_set()
69 rcrtc->dsysr = (rcrtc->dsysr & ~clr) | set; in rcar_du_crtc_dsysr_clr_set()
70 rcar_du_write(rcdu, rcrtc->mmio_offset + DSYSR, rcrtc->dsysr); in rcar_du_crtc_dsysr_clr_set()
84 static void rcar_du_dpll_divider(struct rcar_du_crtc *rcrtc, in rcar_du_dpll_divider() argument
162 dev_dbg(rcrtc->dev->dev, in rcar_du_dpll_divider()
213 static void rcar_du_crtc_set_display_timing(struct rcar_du_crtc *rcrtc) in rcar_du_crtc_set_display_timing() argument
215 const struct drm_display_mode *mode = &rcrtc->crtc.state->adjusted_mode; in rcar_du_crtc_set_display_timing()
216 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_set_display_timing()
221 if (rcdu->info->dpll_mask & (1 << rcrtc->index)) { in rcar_du_crtc_set_display_timing()
246 extclk = clk_get_rate(rcrtc->extclock); in rcar_du_crtc_set_display_timing()
247 rcar_du_dpll_divider(rcrtc, &dpll, extclk, target); in rcar_du_crtc_set_display_timing()
254 if (rcrtc->index == 1) in rcar_du_crtc_set_display_timing()
261 rcar_du_group_write(rcrtc->group, DPLLCR, dpllcr); in rcar_du_crtc_set_display_timing()
264 } else if (rcdu->info->lvds_clk_mask & BIT(rcrtc->index)) { in rcar_du_crtc_set_display_timing()
275 rcar_du_escr_divider(rcrtc->clock, mode_clock, in rcar_du_crtc_set_display_timing()
277 if (rcrtc->extclock) in rcar_du_crtc_set_display_timing()
278 rcar_du_escr_divider(rcrtc->extclock, mode_clock, in rcar_du_crtc_set_display_timing()
281 dev_dbg(rcrtc->dev->dev, "mode clock %lu %s rate %lu\n", in rcar_du_crtc_set_display_timing()
282 mode_clock, params.clk == rcrtc->clock ? "cpg" : "ext", in rcar_du_crtc_set_display_timing()
289 dev_dbg(rcrtc->dev->dev, "%s: ESCR 0x%08x\n", __func__, escr); in rcar_du_crtc_set_display_timing()
291 rcar_du_crtc_write(rcrtc, rcrtc->index % 2 ? ESCR13 : ESCR02, escr); in rcar_du_crtc_set_display_timing()
292 rcar_du_crtc_write(rcrtc, rcrtc->index % 2 ? OTAR13 : OTAR02, 0); in rcar_du_crtc_set_display_timing()
299 rcar_du_crtc_write(rcrtc, DSMR, dsmr); in rcar_du_crtc_set_display_timing()
302 rcar_du_crtc_write(rcrtc, HDSR, mode->htotal - mode->hsync_start - 19); in rcar_du_crtc_set_display_timing()
303 rcar_du_crtc_write(rcrtc, HDER, mode->htotal - mode->hsync_start + in rcar_du_crtc_set_display_timing()
305 rcar_du_crtc_write(rcrtc, HSWR, mode->hsync_end - in rcar_du_crtc_set_display_timing()
307 rcar_du_crtc_write(rcrtc, HCR, mode->htotal - 1); in rcar_du_crtc_set_display_timing()
309 rcar_du_crtc_write(rcrtc, VDSR, mode->crtc_vtotal - in rcar_du_crtc_set_display_timing()
311 rcar_du_crtc_write(rcrtc, VDER, mode->crtc_vtotal - in rcar_du_crtc_set_display_timing()
314 rcar_du_crtc_write(rcrtc, VSPR, mode->crtc_vtotal - in rcar_du_crtc_set_display_timing()
317 rcar_du_crtc_write(rcrtc, VCR, mode->crtc_vtotal - 1); in rcar_du_crtc_set_display_timing()
319 rcar_du_crtc_write(rcrtc, DESR, mode->htotal - mode->hsync_start - 1); in rcar_du_crtc_set_display_timing()
320 rcar_du_crtc_write(rcrtc, DEWR, mode->hdisplay); in rcar_du_crtc_set_display_timing()
334 static void rcar_du_crtc_update_planes(struct rcar_du_crtc *rcrtc) in rcar_du_crtc_update_planes() argument
337 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_update_planes()
345 for (i = 0; i < rcrtc->group->num_planes; ++i) { in rcar_du_crtc_update_planes()
346 struct rcar_du_plane *plane = &rcrtc->group->planes[i]; in rcar_du_crtc_update_planes()
349 if (plane->plane.state->crtc != &rcrtc->crtc || in rcar_du_crtc_update_planes()
385 dspr = (rcrtc->index % 2) + 1; in rcar_du_crtc_update_planes()
386 hwplanes = 1 << (rcrtc->index % 2); in rcar_du_crtc_update_planes()
388 dspr = (rcrtc->index % 2) ? 3 : 1; in rcar_du_crtc_update_planes()
389 hwplanes = 1 << ((rcrtc->index % 2) ? 2 : 0); in rcar_du_crtc_update_planes()
402 mutex_lock(&rcrtc->group->lock); in rcar_du_crtc_update_planes()
404 dptsr_planes = rcrtc->index % 2 ? rcrtc->group->dptsr_planes | hwplanes in rcar_du_crtc_update_planes()
405 : rcrtc->group->dptsr_planes & ~hwplanes; in rcar_du_crtc_update_planes()
407 if (dptsr_planes != rcrtc->group->dptsr_planes) { in rcar_du_crtc_update_planes()
408 rcar_du_group_write(rcrtc->group, DPTSR, in rcar_du_crtc_update_planes()
410 rcrtc->group->dptsr_planes = dptsr_planes; in rcar_du_crtc_update_planes()
412 if (rcrtc->group->used_crtcs) in rcar_du_crtc_update_planes()
413 rcar_du_group_restart(rcrtc->group); in rcar_du_crtc_update_planes()
417 if (rcrtc->group->need_restart) in rcar_du_crtc_update_planes()
418 rcar_du_group_restart(rcrtc->group); in rcar_du_crtc_update_planes()
420 mutex_unlock(&rcrtc->group->lock); in rcar_du_crtc_update_planes()
422 rcar_du_group_write(rcrtc->group, rcrtc->index % 2 ? DS2PR : DS1PR, in rcar_du_crtc_update_planes()
430 void rcar_du_crtc_finish_page_flip(struct rcar_du_crtc *rcrtc) in rcar_du_crtc_finish_page_flip() argument
433 struct drm_device *dev = rcrtc->crtc.dev; in rcar_du_crtc_finish_page_flip()
437 event = rcrtc->event; in rcar_du_crtc_finish_page_flip()
438 rcrtc->event = NULL; in rcar_du_crtc_finish_page_flip()
445 drm_crtc_send_vblank_event(&rcrtc->crtc, event); in rcar_du_crtc_finish_page_flip()
446 wake_up(&rcrtc->flip_wait); in rcar_du_crtc_finish_page_flip()
449 drm_crtc_vblank_put(&rcrtc->crtc); in rcar_du_crtc_finish_page_flip()
452 static bool rcar_du_crtc_page_flip_pending(struct rcar_du_crtc *rcrtc) in rcar_du_crtc_page_flip_pending() argument
454 struct drm_device *dev = rcrtc->crtc.dev; in rcar_du_crtc_page_flip_pending()
459 pending = rcrtc->event != NULL; in rcar_du_crtc_page_flip_pending()
465 static void rcar_du_crtc_wait_page_flip(struct rcar_du_crtc *rcrtc) in rcar_du_crtc_wait_page_flip() argument
467 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_wait_page_flip()
469 if (wait_event_timeout(rcrtc->flip_wait, in rcar_du_crtc_wait_page_flip()
470 !rcar_du_crtc_page_flip_pending(rcrtc), in rcar_du_crtc_wait_page_flip()
476 rcar_du_crtc_finish_page_flip(rcrtc); in rcar_du_crtc_wait_page_flip()
487 struct rcar_du_crtc *rcrtc = to_rcar_crtc(crtc); in rcar_du_cmm_check() local
488 struct device *dev = rcrtc->dev->dev; in rcar_du_cmm_check()
506 struct rcar_du_crtc *rcrtc = to_rcar_crtc(crtc); in rcar_du_cmm_setup() local
509 if (!rcrtc->cmm) in rcar_du_cmm_setup()
515 rcar_cmm_setup(rcrtc->cmm, &cmm_config); in rcar_du_cmm_setup()
522 static void rcar_du_crtc_setup(struct rcar_du_crtc *rcrtc) in rcar_du_crtc_setup() argument
525 rcar_du_crtc_write(rcrtc, DOOR, DOOR_RGB(0, 0, 0)); in rcar_du_crtc_setup()
526 rcar_du_crtc_write(rcrtc, BPOR, BPOR_RGB(0, 0, 0)); in rcar_du_crtc_setup()
529 rcar_du_crtc_set_display_timing(rcrtc); in rcar_du_crtc_setup()
530 rcar_du_group_set_routing(rcrtc->group); in rcar_du_crtc_setup()
533 rcar_du_group_write(rcrtc->group, rcrtc->index % 2 ? DS2PR : DS1PR, 0); in rcar_du_crtc_setup()
536 if (rcar_du_has(rcrtc->dev, RCAR_DU_FEATURE_VSP1_SOURCE)) in rcar_du_crtc_setup()
537 rcar_du_vsp_enable(rcrtc); in rcar_du_crtc_setup()
540 drm_crtc_vblank_on(&rcrtc->crtc); in rcar_du_crtc_setup()
543 static int rcar_du_crtc_get(struct rcar_du_crtc *rcrtc) in rcar_du_crtc_get() argument
551 if (rcrtc->initialized) in rcar_du_crtc_get()
554 ret = clk_prepare_enable(rcrtc->clock); in rcar_du_crtc_get()
558 ret = clk_prepare_enable(rcrtc->extclock); in rcar_du_crtc_get()
562 ret = rcar_du_group_get(rcrtc->group); in rcar_du_crtc_get()
566 rcar_du_crtc_setup(rcrtc); in rcar_du_crtc_get()
567 rcrtc->initialized = true; in rcar_du_crtc_get()
572 clk_disable_unprepare(rcrtc->extclock); in rcar_du_crtc_get()
574 clk_disable_unprepare(rcrtc->clock); in rcar_du_crtc_get()
578 static void rcar_du_crtc_put(struct rcar_du_crtc *rcrtc) in rcar_du_crtc_put() argument
580 rcar_du_group_put(rcrtc->group); in rcar_du_crtc_put()
582 clk_disable_unprepare(rcrtc->extclock); in rcar_du_crtc_put()
583 clk_disable_unprepare(rcrtc->clock); in rcar_du_crtc_put()
585 rcrtc->initialized = false; in rcar_du_crtc_put()
588 static void rcar_du_crtc_start(struct rcar_du_crtc *rcrtc) in rcar_du_crtc_start() argument
597 interlaced = rcrtc->crtc.mode.flags & DRM_MODE_FLAG_INTERLACE; in rcar_du_crtc_start()
598 rcar_du_crtc_dsysr_clr_set(rcrtc, DSYSR_TVM_MASK | DSYSR_SCM_MASK, in rcar_du_crtc_start()
602 rcar_du_group_start_stop(rcrtc->group, true); in rcar_du_crtc_start()
605 static void rcar_du_crtc_disable_planes(struct rcar_du_crtc *rcrtc) in rcar_du_crtc_disable_planes() argument
607 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_disable_planes()
608 struct drm_crtc *crtc = &rcrtc->crtc; in rcar_du_crtc_disable_planes()
621 spin_lock_irq(&rcrtc->vblank_lock); in rcar_du_crtc_disable_planes()
622 rcar_du_group_write(rcrtc->group, rcrtc->index % 2 ? DS2PR : DS1PR, 0); in rcar_du_crtc_disable_planes()
623 status = rcar_du_crtc_read(rcrtc, DSSR); in rcar_du_crtc_disable_planes()
624 rcrtc->vblank_count = status & DSSR_VBK ? 2 : 1; in rcar_du_crtc_disable_planes()
625 spin_unlock_irq(&rcrtc->vblank_lock); in rcar_du_crtc_disable_planes()
627 if (!wait_event_timeout(rcrtc->vblank_wait, rcrtc->vblank_count == 0, in rcar_du_crtc_disable_planes()
634 static void rcar_du_crtc_stop(struct rcar_du_crtc *rcrtc) in rcar_du_crtc_stop() argument
636 struct drm_crtc *crtc = &rcrtc->crtc; in rcar_du_crtc_stop()
649 rcar_du_crtc_disable_planes(rcrtc); in rcar_du_crtc_stop()
656 rcar_du_crtc_wait_page_flip(rcrtc); in rcar_du_crtc_stop()
660 if (rcar_du_has(rcrtc->dev, RCAR_DU_FEATURE_VSP1_SOURCE)) in rcar_du_crtc_stop()
661 rcar_du_vsp_disable(rcrtc); in rcar_du_crtc_stop()
663 if (rcrtc->cmm) in rcar_du_crtc_stop()
664 rcar_cmm_disable(rcrtc->cmm); in rcar_du_crtc_stop()
673 if (rcar_du_has(rcrtc->dev, RCAR_DU_FEATURE_TVM_SYNC)) in rcar_du_crtc_stop()
674 rcar_du_crtc_dsysr_clr_set(rcrtc, DSYSR_TVM_MASK, in rcar_du_crtc_stop()
677 rcar_du_group_start_stop(rcrtc->group, false); in rcar_du_crtc_stop()
715 struct rcar_du_crtc *rcrtc = to_rcar_crtc(crtc); in rcar_du_crtc_atomic_enable() local
717 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_atomic_enable()
719 if (rcrtc->cmm) in rcar_du_crtc_atomic_enable()
720 rcar_cmm_enable(rcrtc->cmm); in rcar_du_crtc_atomic_enable()
721 rcar_du_crtc_get(rcrtc); in rcar_du_crtc_atomic_enable()
728 if (rcdu->info->lvds_clk_mask & BIT(rcrtc->index) && in rcar_du_crtc_atomic_enable()
731 rcdu->encoders[RCAR_DU_OUTPUT_LVDS0 + rcrtc->index]; in rcar_du_crtc_atomic_enable()
740 rcar_du_crtc_start(rcrtc); in rcar_du_crtc_atomic_enable()
753 struct rcar_du_crtc *rcrtc = to_rcar_crtc(crtc); in rcar_du_crtc_atomic_disable() local
755 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_atomic_disable()
757 rcar_du_crtc_stop(rcrtc); in rcar_du_crtc_atomic_disable()
758 rcar_du_crtc_put(rcrtc); in rcar_du_crtc_atomic_disable()
760 if (rcdu->info->lvds_clk_mask & BIT(rcrtc->index) && in rcar_du_crtc_atomic_disable()
763 rcdu->encoders[RCAR_DU_OUTPUT_LVDS0 + rcrtc->index]; in rcar_du_crtc_atomic_disable()
785 struct rcar_du_crtc *rcrtc = to_rcar_crtc(crtc); in rcar_du_crtc_atomic_begin() local
801 rcar_du_crtc_get(rcrtc); in rcar_du_crtc_atomic_begin()
807 if (rcar_du_has(rcrtc->dev, RCAR_DU_FEATURE_VSP1_SOURCE)) in rcar_du_crtc_atomic_begin()
808 rcar_du_vsp_atomic_begin(rcrtc); in rcar_du_crtc_atomic_begin()
814 struct rcar_du_crtc *rcrtc = to_rcar_crtc(crtc); in rcar_du_crtc_atomic_flush() local
815 struct drm_device *dev = rcrtc->crtc.dev; in rcar_du_crtc_atomic_flush()
818 rcar_du_crtc_update_planes(rcrtc); in rcar_du_crtc_atomic_flush()
824 rcrtc->event = crtc->state->event; in rcar_du_crtc_atomic_flush()
829 if (rcar_du_has(rcrtc->dev, RCAR_DU_FEATURE_VSP1_SOURCE)) in rcar_du_crtc_atomic_flush()
830 rcar_du_vsp_atomic_flush(rcrtc); in rcar_du_crtc_atomic_flush()
837 struct rcar_du_crtc *rcrtc = to_rcar_crtc(crtc); in rcar_du_crtc_mode_valid() local
838 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_mode_valid()
868 static void rcar_du_crtc_crc_init(struct rcar_du_crtc *rcrtc) in rcar_du_crtc_crc_init() argument
870 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_crc_init()
880 count = rcrtc->vsp->num_planes + 1; in rcar_du_crtc_crc_init()
890 for (i = 0; i < rcrtc->vsp->num_planes; ++i) { in rcar_du_crtc_crc_init()
891 struct drm_plane *plane = &rcrtc->vsp->planes[i].plane; in rcar_du_crtc_crc_init()
900 rcrtc->sources = sources; in rcar_du_crtc_crc_init()
901 rcrtc->sources_count = count; in rcar_du_crtc_crc_init()
912 static void rcar_du_crtc_crc_cleanup(struct rcar_du_crtc *rcrtc) in rcar_du_crtc_crc_cleanup() argument
916 if (!rcrtc->sources) in rcar_du_crtc_crc_cleanup()
919 for (i = 0; i < rcrtc->sources_count; i++) in rcar_du_crtc_crc_cleanup()
920 kfree(rcrtc->sources[i]); in rcar_du_crtc_crc_cleanup()
921 kfree(rcrtc->sources); in rcar_du_crtc_crc_cleanup()
923 rcrtc->sources = NULL; in rcar_du_crtc_crc_cleanup()
924 rcrtc->sources_count = 0; in rcar_du_crtc_crc_cleanup()
955 struct rcar_du_crtc *rcrtc = to_rcar_crtc(crtc); in rcar_du_crtc_cleanup() local
957 rcar_du_crtc_crc_cleanup(rcrtc); in rcar_du_crtc_cleanup()
983 struct rcar_du_crtc *rcrtc = to_rcar_crtc(crtc); in rcar_du_crtc_enable_vblank() local
985 rcar_du_crtc_write(rcrtc, DSRCR, DSRCR_VBCL); in rcar_du_crtc_enable_vblank()
986 rcar_du_crtc_set(rcrtc, DIER, DIER_VBE); in rcar_du_crtc_enable_vblank()
987 rcrtc->vblank_enable = true; in rcar_du_crtc_enable_vblank()
994 struct rcar_du_crtc *rcrtc = to_rcar_crtc(crtc); in rcar_du_crtc_disable_vblank() local
996 rcar_du_crtc_clr(rcrtc, DIER, DIER_VBE); in rcar_du_crtc_disable_vblank()
997 rcrtc->vblank_enable = false; in rcar_du_crtc_disable_vblank()
1000 static int rcar_du_crtc_parse_crc_source(struct rcar_du_crtc *rcrtc, in rcar_du_crtc_parse_crc_source() argument
1028 for (i = 0; i < rcrtc->vsp->num_planes; ++i) { in rcar_du_crtc_parse_crc_source()
1029 if (index == rcrtc->vsp->planes[i].plane.base.id) in rcar_du_crtc_parse_crc_source()
1041 struct rcar_du_crtc *rcrtc = to_rcar_crtc(crtc); in rcar_du_crtc_verify_crc_source() local
1044 if (rcar_du_crtc_parse_crc_source(rcrtc, source_name, &source) < 0) { in rcar_du_crtc_verify_crc_source()
1056 struct rcar_du_crtc *rcrtc = to_rcar_crtc(crtc); in rcar_du_crtc_get_crc_sources() local
1058 *count = rcrtc->sources_count; in rcar_du_crtc_get_crc_sources()
1059 return rcrtc->sources; in rcar_du_crtc_get_crc_sources()
1065 struct rcar_du_crtc *rcrtc = to_rcar_crtc(crtc); in rcar_du_crtc_set_crc_source() local
1073 ret = rcar_du_crtc_parse_crc_source(rcrtc, source_name, &source); in rcar_du_crtc_set_crc_source()
1151 struct rcar_du_crtc *rcrtc = arg; in rcar_du_crtc_irq() local
1152 struct rcar_du_device *rcdu = rcrtc->dev; in rcar_du_crtc_irq()
1156 spin_lock(&rcrtc->vblank_lock); in rcar_du_crtc_irq()
1158 status = rcar_du_crtc_read(rcrtc, DSSR); in rcar_du_crtc_irq()
1159 rcar_du_crtc_write(rcrtc, DSRCR, status & DSRCR_MASK); in rcar_du_crtc_irq()
1167 if (rcrtc->vblank_count) { in rcar_du_crtc_irq()
1168 if (--rcrtc->vblank_count == 0) in rcar_du_crtc_irq()
1169 wake_up(&rcrtc->vblank_wait); in rcar_du_crtc_irq()
1173 spin_unlock(&rcrtc->vblank_lock); in rcar_du_crtc_irq()
1177 drm_crtc_handle_vblank(&rcrtc->crtc); in rcar_du_crtc_irq()
1178 rcar_du_crtc_finish_page_flip(rcrtc); in rcar_du_crtc_irq()
1200 struct rcar_du_crtc *rcrtc = &rcdu->crtcs[swindex]; in rcar_du_crtc_create() local
1201 struct drm_crtc *crtc = &rcrtc->crtc; in rcar_du_crtc_create()
1218 rcrtc->clock = devm_clk_get(rcdu->dev, name); in rcar_du_crtc_create()
1219 if (IS_ERR(rcrtc->clock)) { in rcar_du_crtc_create()
1221 return PTR_ERR(rcrtc->clock); in rcar_du_crtc_create()
1227 rcrtc->extclock = clk; in rcar_du_crtc_create()
1240 init_waitqueue_head(&rcrtc->flip_wait); in rcar_du_crtc_create()
1241 init_waitqueue_head(&rcrtc->vblank_wait); in rcar_du_crtc_create()
1242 spin_lock_init(&rcrtc->vblank_lock); in rcar_du_crtc_create()
1244 rcrtc->dev = rcdu; in rcar_du_crtc_create()
1245 rcrtc->group = rgrp; in rcar_du_crtc_create()
1246 rcrtc->mmio_offset = mmio_offsets[hwindex]; in rcar_du_crtc_create()
1247 rcrtc->index = hwindex; in rcar_du_crtc_create()
1248 rcrtc->dsysr = (rcrtc->index % 2 ? 0 : DSYSR_DRES) | DSYSR_TVM_TVSYNC; in rcar_du_crtc_create()
1251 primary = &rcrtc->vsp->planes[rcrtc->vsp_pipe].plane; in rcar_du_crtc_create()
1264 rcrtc->cmm = rcdu->cmms[swindex]; in rcar_du_crtc_create()
1289 dev_name(rcdu->dev), rcrtc); in rcar_du_crtc_create()
1296 rcar_du_crtc_crc_init(rcrtc); in rcar_du_crtc_create()