Lines Matching refs:crtc
41 struct logicvc_crtc *crtc = logicvc_crtc(drm_crtc); in logicvc_crtc_atomic_begin() local
55 crtc->event = drm_crtc->state->event; in logicvc_crtc_atomic_begin()
65 struct logicvc_crtc *crtc = logicvc_crtc(drm_crtc); in logicvc_crtc_atomic_enable() local
146 crtc->event = drm_crtc->state->event; in logicvc_crtc_atomic_enable()
229 struct logicvc_crtc *crtc = logicvc->crtc; in logicvc_crtc_vblank_handler() local
232 if (!crtc) in logicvc_crtc_vblank_handler()
235 drm_crtc_handle_vblank(&crtc->drm_crtc); in logicvc_crtc_vblank_handler()
237 if (crtc->event) { in logicvc_crtc_vblank_handler()
239 drm_crtc_send_vblank_event(&crtc->drm_crtc, crtc->event); in logicvc_crtc_vblank_handler()
240 drm_crtc_vblank_put(&crtc->drm_crtc); in logicvc_crtc_vblank_handler()
241 crtc->event = NULL; in logicvc_crtc_vblank_handler()
251 struct logicvc_crtc *crtc; in logicvc_crtc_init() local
255 crtc = devm_kzalloc(dev, sizeof(*crtc), GFP_KERNEL); in logicvc_crtc_init()
256 if (!crtc) in logicvc_crtc_init()
265 ret = drm_crtc_init_with_planes(drm_dev, &crtc->drm_crtc, in logicvc_crtc_init()
273 drm_crtc_helper_add(&crtc->drm_crtc, &logicvc_crtc_helper_funcs); in logicvc_crtc_init()
275 crtc->drm_crtc.port = of_graph_get_port_by_id(of_node, 1); in logicvc_crtc_init()
277 logicvc->crtc = crtc; in logicvc_crtc_init()