Lines Matching refs:crtc

41 	struct imx_drm_crtc			*crtc[MAX_CRTC];  member
47 struct drm_crtc *crtc; member
55 int imx_drm_crtc_id(struct imx_drm_crtc *crtc) in imx_drm_crtc_id() argument
57 return crtc->pipe; in imx_drm_crtc_id()
94 static struct imx_drm_crtc *imx_drm_find_crtc(struct drm_crtc *crtc) in imx_drm_find_crtc() argument
96 struct imx_drm_device *imxdrm = crtc->dev->dev_private; in imx_drm_find_crtc()
100 if (imxdrm->crtc[i] && imxdrm->crtc[i]->crtc == crtc) in imx_drm_find_crtc()
101 return imxdrm->crtc[i]; in imx_drm_find_crtc()
112 imx_crtc = imx_drm_find_crtc(encoder->crtc); in imx_drm_set_bus_format_pins()
118 return helper->set_interface_pix_fmt(encoder->crtc, in imx_drm_set_bus_format_pins()
132 return drm_vblank_get(imx_drm_crtc->crtc->dev, imx_drm_crtc->pipe); in imx_drm_crtc_vblank_get()
138 drm_vblank_put(imx_drm_crtc->crtc->dev, imx_drm_crtc->pipe); in imx_drm_crtc_vblank_put()
144 drm_handle_vblank(imx_drm_crtc->crtc->dev, imx_drm_crtc->pipe); in imx_drm_handle_vblank()
148 static int imx_drm_enable_vblank(struct drm_device *drm, int crtc) in imx_drm_enable_vblank() argument
151 struct imx_drm_crtc *imx_drm_crtc = imxdrm->crtc[crtc]; in imx_drm_enable_vblank()
161 imx_drm_crtc->crtc); in imx_drm_enable_vblank()
166 static void imx_drm_disable_vblank(struct drm_device *drm, int crtc) in imx_drm_disable_vblank() argument
169 struct imx_drm_crtc *imx_drm_crtc = imxdrm->crtc[crtc]; in imx_drm_disable_vblank()
177 imx_drm_crtc->imx_drm_helper_funcs.disable_vblank(imx_drm_crtc->crtc); in imx_drm_disable_vblank()
342 int imx_drm_add_crtc(struct drm_device *drm, struct drm_crtc *crtc, in imx_drm_add_crtc() argument
367 imx_drm_crtc->crtc = crtc; in imx_drm_add_crtc()
369 crtc->port = port; in imx_drm_add_crtc()
371 imxdrm->crtc[imx_drm_crtc->pipe] = imx_drm_crtc; in imx_drm_add_crtc()
375 ret = drm_mode_crtc_set_gamma_size(imx_drm_crtc->crtc, 256); in imx_drm_add_crtc()
379 drm_crtc_helper_add(crtc, in imx_drm_add_crtc()
382 drm_crtc_init(drm, crtc, in imx_drm_add_crtc()
388 imxdrm->crtc[imx_drm_crtc->pipe] = NULL; in imx_drm_add_crtc()
399 struct imx_drm_device *imxdrm = imx_drm_crtc->crtc->dev->dev_private; in imx_drm_remove_crtc()
401 drm_crtc_cleanup(imx_drm_crtc->crtc); in imx_drm_remove_crtc()
403 imxdrm->crtc[imx_drm_crtc->pipe] = NULL; in imx_drm_remove_crtc()
441 struct imx_drm_crtc *imx_crtc = imx_drm_find_crtc(encoder->crtc); in imx_drm_encoder_get_mux_id()
453 if (port == imx_crtc->crtc->port) { in imx_drm_encoder_get_mux_id()