Lines Matching refs:scrtc

50 	struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc);  in sun4i_crtc_atomic_check()  local
51 struct sunxi_engine *engine = scrtc->engine; in sun4i_crtc_atomic_check()
63 struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc); in sun4i_crtc_atomic_begin() local
65 struct sunxi_engine *engine = scrtc->engine; in sun4i_crtc_atomic_begin()
72 scrtc->event = crtc->state->event; in sun4i_crtc_atomic_begin()
84 struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc); in sun4i_crtc_atomic_flush() local
89 sunxi_engine_commit(scrtc->engine); in sun4i_crtc_atomic_flush()
107 struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc); in sun4i_crtc_atomic_disable() local
113 sun4i_tcon_set_status(scrtc->tcon, encoder, false); in sun4i_crtc_atomic_disable()
128 struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc); in sun4i_crtc_atomic_enable() local
132 sun4i_tcon_set_status(scrtc->tcon, encoder, true); in sun4i_crtc_atomic_enable()
141 struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc); in sun4i_crtc_mode_set_nofb() local
143 sun4i_tcon_mode_set(scrtc->tcon, encoder, mode); in sun4i_crtc_mode_set_nofb()
157 struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc); in sun4i_crtc_enable_vblank() local
161 sun4i_tcon_enable_vblank(scrtc->tcon, true); in sun4i_crtc_enable_vblank()
168 struct sun4i_crtc *scrtc = drm_crtc_to_sun4i_crtc(crtc); in sun4i_crtc_disable_vblank() local
172 sun4i_tcon_enable_vblank(scrtc->tcon, false); in sun4i_crtc_disable_vblank()
190 struct sun4i_crtc *scrtc; in sun4i_crtc_init() local
195 scrtc = devm_kzalloc(drm->dev, sizeof(*scrtc), GFP_KERNEL); in sun4i_crtc_init()
196 if (!scrtc) in sun4i_crtc_init()
198 scrtc->engine = engine; in sun4i_crtc_init()
199 scrtc->tcon = tcon; in sun4i_crtc_init()
224 ret = drm_crtc_init_with_planes(drm, &scrtc->crtc, in sun4i_crtc_init()
234 drm_crtc_helper_add(&scrtc->crtc, &sun4i_crtc_helper_funcs); in sun4i_crtc_init()
237 scrtc->crtc.port = of_graph_get_port_by_id(scrtc->tcon->dev->of_node, in sun4i_crtc_init()
242 uint32_t possible_crtcs = drm_crtc_mask(&scrtc->crtc); in sun4i_crtc_init()
249 return scrtc; in sun4i_crtc_init()