Lines Matching refs:sc_encoder
136 struct sunxi_lcdc_encoder sc_encoder;
358 const int crtc_index = ffs32(sc->sc_encoder.base.possible_crtcs) - 1;
377 const int crtc_index = ffs32(sc->sc_encoder.base.possible_crtcs) - 1;
378 struct drm_device *ddev = sc->sc_encoder.base.dev;
409 sc->sc_encoder.sc = sc;
410 sc->sc_encoder.base.possible_crtcs = 1 << drm_crtc_index(crtc);
414 drm_encoder_init(crtc->dev, &sc->sc_encoder.base, &sunxi_lcdc_funcs,
416 drm_encoder_helper_add(&sc->sc_encoder.base, &sunxi_lcdc_tcon0_helper_funcs);
425 drm_encoder_init(crtc->dev, &sc->sc_encoder.base, &sunxi_lcdc_funcs,
427 drm_encoder_helper_add(&sc->sc_encoder.base, &sunxi_lcdc_tcon1_helper_funcs);
442 return &sc->sc_encoder;
452 const int crtc_index = ffs32(sc->sc_encoder.base.possible_crtcs) - 1;
460 drm_handle_vblank(sc->sc_encoder.base.dev, crtc_index);