Lines Matching refs:mdp5_cstate

92 	struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state);  in crtc_flush()  local
93 struct mdp5_ctl *ctl = mdp5_cstate->ctl; in crtc_flush()
94 struct mdp5_pipeline *pipeline = &mdp5_cstate->pipeline; in crtc_flush()
95 bool start = !mdp5_cstate->defer_start; in crtc_flush()
97 mdp5_cstate->defer_start = false; in crtc_flush()
111 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in crtc_flush_all() local
117 if (WARN_ON(!mdp5_cstate->ctl)) in crtc_flush_all()
126 mixer = mdp5_cstate->pipeline.mixer; in crtc_flush_all()
129 r_mixer = mdp5_cstate->pipeline.r_mixer; in crtc_flush_all()
139 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in complete_flip() local
140 struct mdp5_pipeline *pipeline = &mdp5_cstate->pipeline; in complete_flip()
142 struct mdp5_ctl *ctl = mdp5_cstate->ctl; in complete_flip()
216 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in blend_setup() local
217 struct mdp5_pipeline *pipeline = &mdp5_cstate->pipeline; in blend_setup()
226 struct mdp5_ctl *ctl = mdp5_cstate->ctl; in blend_setup()
367 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_mode_set_nofb() local
369 struct mdp5_hw_mixer *mixer = mdp5_cstate->pipeline.mixer; in mdp5_crtc_mode_set_nofb()
370 struct mdp5_hw_mixer *r_mixer = mdp5_cstate->pipeline.r_mixer; in mdp5_crtc_mode_set_nofb()
494 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_atomic_disable() local
507 if (mdp5_cstate->cmd_mode) in mdp5_crtc_atomic_disable()
526 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_vblank_on() local
527 struct mdp5_interface *intf = mdp5_cstate->pipeline.intf; in mdp5_crtc_vblank_on()
540 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_atomic_enable() local
563 mdp5_ctl_set_cursor(mdp5_cstate->ctl, in mdp5_crtc_atomic_enable()
564 &mdp5_cstate->pipeline, 0, true); in mdp5_crtc_atomic_enable()
566 mdp5_ctl_set_cursor(mdp5_cstate->ctl, in mdp5_crtc_atomic_enable()
567 &mdp5_cstate->pipeline, 0, false); in mdp5_crtc_atomic_enable()
578 if (mdp5_cstate->cmd_mode) in mdp5_crtc_atomic_enable()
588 struct mdp5_crtc_state *mdp5_cstate = in mdp5_crtc_setup_pipeline() local
590 struct mdp5_pipeline *pipeline = &mdp5_cstate->pipeline; in mdp5_crtc_setup_pipeline()
636 mdp5_cstate->err_irqmask = intf2err(intf->num); in mdp5_crtc_setup_pipeline()
637 mdp5_cstate->vblank_irqmask = intf2vblank(pipeline->mixer, intf); in mdp5_crtc_setup_pipeline()
641 mdp5_cstate->pp_done_irqmask = lm2ppdone(pipeline->mixer); in mdp5_crtc_setup_pipeline()
642 mdp5_cstate->cmd_mode = true; in mdp5_crtc_setup_pipeline()
644 mdp5_cstate->pp_done_irqmask = 0; in mdp5_crtc_setup_pipeline()
645 mdp5_cstate->cmd_mode = false; in mdp5_crtc_setup_pipeline()
676 struct mdp5_crtc_state *mdp5_cstate = in get_start_stage() local
683 if (mdp5_cstate->pipeline.r_mixer) in get_start_stage()
700 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc_state); in mdp5_crtc_atomic_check() local
701 struct mdp5_interface *intf = mdp5_cstate->pipeline.intf; in mdp5_crtc_atomic_check()
802 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_atomic_flush() local
821 if (unlikely(!mdp5_cstate->ctl)) in mdp5_crtc_atomic_flush()
832 if (mdp5_cstate->cmd_mode) in mdp5_crtc_atomic_flush()
838 mdp5_crtc->vblank.irqmask = mdp5_cstate->vblank_irqmask; in mdp5_crtc_atomic_flush()
839 mdp5_crtc->err.irqmask = mdp5_cstate->err_irqmask; in mdp5_crtc_atomic_flush()
840 mdp5_crtc->pp_done.irqmask = mdp5_cstate->pp_done_irqmask; in mdp5_crtc_atomic_flush()
885 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_restore_cursor() local
896 lm = mdp5_cstate->pipeline.mixer->lm; in mdp5_crtc_restore_cursor()
955 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_cursor_set() local
956 struct mdp5_pipeline *pipeline = &mdp5_cstate->pipeline; in mdp5_crtc_cursor_set()
979 ctl = mdp5_cstate->ctl; in mdp5_crtc_cursor_set()
984 if (mdp5_cstate->pipeline.r_mixer) in mdp5_crtc_cursor_set()
1043 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_cursor_move() local
1057 if (mdp5_cstate->pipeline.r_mixer) in mdp5_crtc_cursor_move()
1087 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(state); in mdp5_crtc_atomic_print_state() local
1088 struct mdp5_pipeline *pipeline = &mdp5_cstate->pipeline; in mdp5_crtc_atomic_print_state()
1094 if (mdp5_cstate->ctl) in mdp5_crtc_atomic_print_state()
1095 drm_printf(p, "\tctl=%d\n", mdp5_ctl_get_ctl_id(mdp5_cstate->ctl)); in mdp5_crtc_atomic_print_state()
1104 drm_printf(p, "\tcmd_mode=%d\n", mdp5_cstate->cmd_mode); in mdp5_crtc_atomic_print_state()
1110 struct mdp5_crtc_state *mdp5_cstate; in mdp5_crtc_duplicate_state() local
1115 mdp5_cstate = kmemdup(to_mdp5_crtc_state(crtc->state), in mdp5_crtc_duplicate_state()
1116 sizeof(*mdp5_cstate), GFP_KERNEL); in mdp5_crtc_duplicate_state()
1117 if (!mdp5_cstate) in mdp5_crtc_duplicate_state()
1120 __drm_atomic_helper_crtc_duplicate_state(crtc, &mdp5_cstate->base); in mdp5_crtc_duplicate_state()
1122 return &mdp5_cstate->base; in mdp5_crtc_duplicate_state()
1127 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(state); in mdp5_crtc_destroy_state() local
1131 kfree(mdp5_cstate); in mdp5_crtc_destroy_state()
1136 struct mdp5_crtc_state *mdp5_cstate = in mdp5_crtc_reset() local
1137 kzalloc(sizeof(*mdp5_cstate), GFP_KERNEL); in mdp5_crtc_reset()
1142 if (mdp5_cstate) in mdp5_crtc_reset()
1143 __drm_atomic_helper_crtc_reset(crtc, &mdp5_cstate->base); in mdp5_crtc_reset()
1226 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_wait_for_pp_done() local
1233 mdp5_cstate->pipeline.mixer->lm); in mdp5_crtc_wait_for_pp_done()
1240 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_wait_for_flush_done() local
1241 struct mdp5_ctl *ctl = mdp5_cstate->ctl; in mdp5_crtc_wait_for_flush_done()
1272 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_set_pipeline() local
1278 mdp5_ctl_set_pipeline(mdp5_cstate->ctl, &mdp5_cstate->pipeline); in mdp5_crtc_set_pipeline()
1283 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_get_ctl() local
1285 return mdp5_cstate->ctl; in mdp5_crtc_get_ctl()
1290 struct mdp5_crtc_state *mdp5_cstate; in mdp5_crtc_get_mixer() local
1295 mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_get_mixer()
1297 return WARN_ON(!mdp5_cstate->pipeline.mixer) ? in mdp5_crtc_get_mixer()
1298 ERR_PTR(-EINVAL) : mdp5_cstate->pipeline.mixer; in mdp5_crtc_get_mixer()
1303 struct mdp5_crtc_state *mdp5_cstate; in mdp5_crtc_get_pipeline() local
1308 mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_get_pipeline()
1310 return &mdp5_cstate->pipeline; in mdp5_crtc_get_pipeline()
1315 struct mdp5_crtc_state *mdp5_cstate = to_mdp5_crtc_state(crtc->state); in mdp5_crtc_wait_for_commit_done() local
1317 if (mdp5_cstate->cmd_mode) in mdp5_crtc_wait_for_commit_done()