Lines Matching defs:pipe

103 	struct drm_simple_display_pipe pipe;
136 static void imx_lcdc_update_hw_registers(struct drm_simple_display_pipe *pipe,
140 struct drm_crtc *crtc = &pipe->crtc;
141 struct drm_plane_state *new_state = pipe->plane.state;
143 struct imx_lcdc *lcdc = imx_lcdc_from_drmdev(pipe->crtc.dev);
189 static void imx_lcdc_pipe_enable(struct drm_simple_display_pipe *pipe,
196 struct imx_lcdc *lcdc = imx_lcdc_from_drmdev(pipe->crtc.dev);
197 struct drm_display_mode *mode = &pipe->crtc.mode;
232 dev_err(pipe->crtc.dev->dev, "Cannot enable ipg clock: %pe\n", ERR_PTR(ret));
237 dev_err(pipe->crtc.dev->dev, "Cannot enable ahb clock: %pe\n", ERR_PTR(ret));
244 imx_lcdc_update_hw_registers(pipe, NULL, true);
250 static void imx_lcdc_pipe_disable(struct drm_simple_display_pipe *pipe)
252 struct imx_lcdc *lcdc = imx_lcdc_from_drmdev(pipe->crtc.dev);
253 struct drm_crtc *crtc = &lcdc->pipe.crtc;
259 if (pipe->crtc.enabled)
274 static int imx_lcdc_pipe_check(struct drm_simple_display_pipe *pipe,
279 const struct drm_display_mode *old_mode = &pipe->crtc.state->mode;
284 drm_err(pipe->crtc.dev, "unsupported display mode (%u x %u)\n",
296 static void imx_lcdc_pipe_update(struct drm_simple_display_pipe *pipe,
299 struct drm_crtc *crtc = &pipe->crtc;
301 struct drm_plane_state *new_state = pipe->plane.state;
312 imx_lcdc_update_hw_registers(pipe, old_state, mode_changed);
370 struct drm_crtc *crtc = &lcdc->pipe.crtc;
430 ret = drm_simple_display_pipe_init(drm, &lcdc->pipe,
435 return dev_err_probe(drm->dev, ret, "Cannot setup simple display pipe\n");
441 ret = drm_bridge_attach(&lcdc->pipe.encoder, bridge, NULL, DRM_BRIDGE_ATTACH_NO_CONNECTOR);
445 lcdc->connector = drm_bridge_connector_init(drm, &lcdc->pipe.encoder);
449 drm_connector_attach_encoder(lcdc->connector, &lcdc->pipe.encoder);