Lines Matching refs:mdp5_cstate
93 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in crtc_flush() local
94 struct mdp5_ctl *ctl = mdp5_cstate->ctl; in crtc_flush()
95 struct mdp5_pipeline *pipeline = &mdp5_cstate->pipeline; in crtc_flush()
96 bool start = !mdp5_cstate->defer_start; in crtc_flush()
98 mdp5_cstate->defer_start = false; in crtc_flush()
112 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in crtc_flush_all() local
118 if (WARN_ON(!mdp5_cstate->ctl)) in crtc_flush_all()
127 mixer = mdp5_cstate->pipeline.mixer; in crtc_flush_all()
130 r_mixer = mdp5_cstate->pipeline.r_mixer; in crtc_flush_all()
140 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in complete_flip() local
141 struct mdp5_pipeline *pipeline = &mdp5_cstate->pipeline; in complete_flip()
143 struct mdp5_ctl *ctl = mdp5_cstate->ctl; in complete_flip()
214 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in blend_setup() local
215 struct mdp5_pipeline *pipeline = &mdp5_cstate->pipeline; in blend_setup()
224 struct mdp5_ctl *ctl = mdp5_cstate->ctl; in blend_setup()
364 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_mode_set_nofb() local
366 struct mdp5_hw_mixer *mixer = mdp5_cstate->pipeline.mixer; in mdp5_crtc_mode_set_nofb()
367 struct mdp5_hw_mixer *r_mixer = mdp5_cstate->pipeline.r_mixer; in mdp5_crtc_mode_set_nofb()
491 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_atomic_disable() local
504 if (mdp5_cstate->cmd_mode) in mdp5_crtc_atomic_disable()
523 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_vblank_on() local
524 struct mdp5_interface *intf = mdp5_cstate->pipeline.intf; in mdp5_crtc_vblank_on()
537 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_atomic_enable() local
560 mdp5_ctl_set_cursor(mdp5_cstate->ctl, in mdp5_crtc_atomic_enable()
561 &mdp5_cstate->pipeline, 0, true); in mdp5_crtc_atomic_enable()
563 mdp5_ctl_set_cursor(mdp5_cstate->ctl, in mdp5_crtc_atomic_enable()
564 &mdp5_cstate->pipeline, 0, false); in mdp5_crtc_atomic_enable()
575 if (mdp5_cstate->cmd_mode) in mdp5_crtc_atomic_enable()
585 struct mdp5_crtc_state *mdp5_cstate = in mdp5_crtc_setup_pipeline() local
587 struct mdp5_pipeline *pipeline = &mdp5_cstate->pipeline; in mdp5_crtc_setup_pipeline()
633 mdp5_cstate->err_irqmask = intf2err(intf->num); in mdp5_crtc_setup_pipeline()
634 mdp5_cstate->vblank_irqmask = intf2vblank(pipeline->mixer, intf); in mdp5_crtc_setup_pipeline()
638 mdp5_cstate->pp_done_irqmask = lm2ppdone(pipeline->mixer); in mdp5_crtc_setup_pipeline()
639 mdp5_cstate->cmd_mode = true; in mdp5_crtc_setup_pipeline()
641 mdp5_cstate->pp_done_irqmask = 0; in mdp5_crtc_setup_pipeline()
642 mdp5_cstate->cmd_mode = false; in mdp5_crtc_setup_pipeline()
673 struct mdp5_crtc_state *mdp5_cstate = in get_start_stage() local
680 if (mdp5_cstate->pipeline.r_mixer) in get_start_stage()
697 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc_state); in mdp5_crtc_atomic_check() local
698 struct mdp5_interface *intf = mdp5_cstate->pipeline.intf; in mdp5_crtc_atomic_check()
799 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_atomic_flush() local
818 if (unlikely(!mdp5_cstate->ctl)) in mdp5_crtc_atomic_flush()
829 if (mdp5_cstate->cmd_mode) in mdp5_crtc_atomic_flush()
835 mdp5_crtc->vblank.irqmask = mdp5_cstate->vblank_irqmask; in mdp5_crtc_atomic_flush()
836 mdp5_crtc->err.irqmask = mdp5_cstate->err_irqmask; in mdp5_crtc_atomic_flush()
837 mdp5_crtc->pp_done.irqmask = mdp5_cstate->pp_done_irqmask; in mdp5_crtc_atomic_flush()
882 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_restore_cursor() local
893 lm = mdp5_cstate->pipeline.mixer->lm; in mdp5_crtc_restore_cursor()
952 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_cursor_set() local
953 struct mdp5_pipeline *pipeline = &mdp5_cstate->pipeline; in mdp5_crtc_cursor_set()
976 ctl = mdp5_cstate->ctl; in mdp5_crtc_cursor_set()
981 if (mdp5_cstate->pipeline.r_mixer) in mdp5_crtc_cursor_set()
1040 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_cursor_move() local
1054 if (mdp5_cstate->pipeline.r_mixer) in mdp5_crtc_cursor_move()
1084 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(state); in mdp5_crtc_atomic_print_state() local
1085 struct mdp5_pipeline *pipeline = &mdp5_cstate->pipeline; in mdp5_crtc_atomic_print_state()
1091 if (mdp5_cstate->ctl) in mdp5_crtc_atomic_print_state()
1092 drm_printf(p, "\tctl=%d\n", mdp5_ctl_get_ctl_id(mdp5_cstate->ctl)); in mdp5_crtc_atomic_print_state()
1101 drm_printf(p, "\tcmd_mode=%d\n", mdp5_cstate->cmd_mode); in mdp5_crtc_atomic_print_state()
1107 struct mdp5_crtc_state *mdp5_cstate; in mdp5_crtc_duplicate_state() local
1112 mdp5_cstate = kmemdup(to_mdp5_crtc_state(crtc->state), in mdp5_crtc_duplicate_state()
1113 sizeof(*mdp5_cstate), GFP_KERNEL); in mdp5_crtc_duplicate_state()
1114 if (!mdp5_cstate) in mdp5_crtc_duplicate_state()
1117 __drm_atomic_helper_crtc_duplicate_state(crtc, &mdp5_cstate->base); in mdp5_crtc_duplicate_state()
1119 return &mdp5_cstate->base; in mdp5_crtc_duplicate_state()
1124 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(state); in mdp5_crtc_destroy_state() local
1128 kfree(mdp5_cstate); in mdp5_crtc_destroy_state()
1133 struct mdp5_crtc_state *mdp5_cstate = in mdp5_crtc_reset() local
1134 kzalloc(sizeof(*mdp5_cstate), GFP_KERNEL); in mdp5_crtc_reset()
1139 if (mdp5_cstate) in mdp5_crtc_reset()
1140 __drm_atomic_helper_crtc_reset(crtc, &mdp5_cstate->base); in mdp5_crtc_reset()
1221 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_wait_for_pp_done() local
1228 mdp5_cstate->pipeline.mixer->lm); in mdp5_crtc_wait_for_pp_done()
1235 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_wait_for_flush_done() local
1236 struct mdp5_ctl *ctl = mdp5_cstate->ctl; in mdp5_crtc_wait_for_flush_done()
1267 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_set_pipeline() local
1273 mdp5_ctl_set_pipeline(mdp5_cstate->ctl, &mdp5_cstate->pipeline); in mdp5_crtc_set_pipeline()
1278 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_get_ctl() local
1280 return mdp5_cstate->ctl; in mdp5_crtc_get_ctl()
1285 struct mdp5_crtc_state *mdp5_cstate; in mdp5_crtc_get_mixer() local
1290 mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_get_mixer()
1292 return WARN_ON(!mdp5_cstate->pipeline.mixer) ? in mdp5_crtc_get_mixer()
1293 ERR_PTR(-EINVAL) : mdp5_cstate->pipeline.mixer; in mdp5_crtc_get_mixer()
1298 struct mdp5_crtc_state *mdp5_cstate; in mdp5_crtc_get_pipeline() local
1303 mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_get_pipeline()
1305 return &mdp5_cstate->pipeline; in mdp5_crtc_get_pipeline()
1310 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_wait_for_commit_done() local
1312 if (mdp5_cstate->cmd_mode) in mdp5_crtc_wait_for_commit_done()