Lines Matching refs:crtc

62 static void malidp_atomic_commit_update_gamma(struct drm_crtc *crtc,  in malidp_atomic_commit_update_gamma()  argument
65 struct malidp_drm *malidp = crtc_to_malidp_device(crtc); in malidp_atomic_commit_update_gamma()
68 if (!crtc->state->color_mgmt_changed) in malidp_atomic_commit_update_gamma()
71 if (!crtc->state->gamma_lut) { in malidp_atomic_commit_update_gamma()
77 to_malidp_crtc_state(crtc->state); in malidp_atomic_commit_update_gamma()
79 if (!old_state->gamma_lut || (crtc->state->gamma_lut->base.id != in malidp_atomic_commit_update_gamma()
89 void malidp_atomic_commit_update_coloradj(struct drm_crtc *crtc, in malidp_atomic_commit_update_coloradj() argument
92 struct malidp_drm *malidp = crtc_to_malidp_device(crtc); in malidp_atomic_commit_update_coloradj()
96 if (!crtc->state->color_mgmt_changed) in malidp_atomic_commit_update_coloradj()
99 if (!crtc->state->ctm) { in malidp_atomic_commit_update_coloradj()
104 to_malidp_crtc_state(crtc->state); in malidp_atomic_commit_update_coloradj()
106 if (!old_state->ctm || (crtc->state->ctm->base.id != in malidp_atomic_commit_update_coloradj()
119 static void malidp_atomic_commit_se_config(struct drm_crtc *crtc, in malidp_atomic_commit_se_config() argument
122 struct malidp_crtc_state *cs = to_malidp_crtc_state(crtc->state); in malidp_atomic_commit_se_config()
124 struct malidp_drm *malidp = crtc_to_malidp_device(crtc); in malidp_atomic_commit_se_config()
197 malidp->event = malidp->crtc.state->event; in malidp_atomic_commit_hw_done()
198 malidp->crtc.state->event = NULL; in malidp_atomic_commit_hw_done()
200 if (malidp->crtc.state->active) { in malidp_atomic_commit_hw_done()
207 drm_crtc_vblank_get(&malidp->crtc); in malidp_atomic_commit_hw_done()
225 drm_crtc_send_vblank_event(&malidp->crtc, malidp->event); in malidp_atomic_commit_hw_done()
236 struct drm_crtc *crtc; in malidp_atomic_commit_tail() local
252 for_each_old_crtc_in_state(state, crtc, old_crtc_state, i) { in malidp_atomic_commit_tail()
253 malidp_atomic_commit_update_gamma(crtc, old_crtc_state); in malidp_atomic_commit_tail()
254 malidp_atomic_commit_update_coloradj(crtc, old_crtc_state); in malidp_atomic_commit_tail()
255 malidp_atomic_commit_se_config(crtc, old_crtc_state); in malidp_atomic_commit_tail()
819 malidp->crtc.port = of_graph_get_port_by_id(dev->of_node, 0); in malidp_bind()
869 of_node_put(malidp->crtc.port); in malidp_bind()
870 malidp->crtc.port = NULL; in malidp_bind()
896 of_node_put(malidp->crtc.port); in malidp_unbind()
897 malidp->crtc.port = NULL; in malidp_unbind()