Lines Matching refs:scrtc
53 struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc); in sun4i_crtc_atomic_check() local
54 struct sunxi_engine *engine = scrtc->engine; in sun4i_crtc_atomic_check()
68 struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc); in sun4i_crtc_atomic_begin() local
70 struct sunxi_engine *engine = scrtc->engine; in sun4i_crtc_atomic_begin()
77 scrtc->event = crtc->state->event; in sun4i_crtc_atomic_begin()
89 struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc); in sun4i_crtc_atomic_flush() local
94 sunxi_engine_commit(scrtc->engine); in sun4i_crtc_atomic_flush()
112 struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc); in sun4i_crtc_atomic_disable() local
118 sun4i_tcon_set_status(scrtc->tcon, encoder, false); in sun4i_crtc_atomic_disable()
133 struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc); in sun4i_crtc_atomic_enable() local
137 sun4i_tcon_set_status(scrtc->tcon, encoder, true); in sun4i_crtc_atomic_enable()
146 struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc); in sun4i_crtc_mode_set_nofb() local
148 sun4i_tcon_mode_set(scrtc->tcon, encoder, mode); in sun4i_crtc_mode_set_nofb()
149 sunxi_engine_mode_set(scrtc->engine, mode); in sun4i_crtc_mode_set_nofb()
163 struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc); in sun4i_crtc_enable_vblank() local
167 sun4i_tcon_enable_vblank(scrtc->tcon, true); in sun4i_crtc_enable_vblank()
174 struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc); in sun4i_crtc_disable_vblank() local
178 sun4i_tcon_enable_vblank(scrtc->tcon, false); in sun4i_crtc_disable_vblank()
196 struct sun4i_crtc *scrtc; in sun4i_crtc_init() local
201 scrtc = devm_kzalloc(drm->dev, sizeof(*scrtc), GFP_KERNEL); in sun4i_crtc_init()
202 if (!scrtc) in sun4i_crtc_init()
204 scrtc->engine = engine; in sun4i_crtc_init()
205 scrtc->tcon = tcon; in sun4i_crtc_init()
230 ret = drm_crtc_init_with_planes(drm, &scrtc->crtc, in sun4i_crtc_init()
240 drm_crtc_helper_add(&scrtc->crtc, &sun4i_crtc_helper_funcs); in sun4i_crtc_init()
243 scrtc->crtc.port = of_graph_get_port_by_id(scrtc->tcon->dev->of_node, in sun4i_crtc_init()
248 uint32_t possible_crtcs = drm_crtc_mask(&scrtc->crtc); in sun4i_crtc_init()
255 return scrtc; in sun4i_crtc_init()