Lines Matching refs:pipe
68 int pipe) in rockchip_register_crtc_funcs() argument
72 if (pipe > ROCKCHIP_MAX_CRTC) in rockchip_register_crtc_funcs()
75 priv->crtc_funcs[pipe] = crtc_funcs; in rockchip_register_crtc_funcs()
81 void rockchip_unregister_crtc_funcs(struct drm_device *dev, int pipe) in rockchip_unregister_crtc_funcs() argument
85 if (pipe > ROCKCHIP_MAX_CRTC) in rockchip_unregister_crtc_funcs()
88 priv->crtc_funcs[pipe] = NULL; in rockchip_unregister_crtc_funcs()
93 int pipe) in rockchip_crtc_from_pipe() argument
99 if (i++ == pipe) in rockchip_crtc_from_pipe()
105 static int rockchip_drm_crtc_enable_vblank(struct drm_device *dev, int pipe) in rockchip_drm_crtc_enable_vblank() argument
108 struct drm_crtc *crtc = rockchip_crtc_from_pipe(dev, pipe); in rockchip_drm_crtc_enable_vblank()
110 if (crtc && priv->crtc_funcs[pipe] && in rockchip_drm_crtc_enable_vblank()
111 priv->crtc_funcs[pipe]->enable_vblank) in rockchip_drm_crtc_enable_vblank()
112 return priv->crtc_funcs[pipe]->enable_vblank(crtc); in rockchip_drm_crtc_enable_vblank()
117 static void rockchip_drm_crtc_disable_vblank(struct drm_device *dev, int pipe) in rockchip_drm_crtc_disable_vblank() argument
120 struct drm_crtc *crtc = rockchip_crtc_from_pipe(dev, pipe); in rockchip_drm_crtc_disable_vblank()
122 if (crtc && priv->crtc_funcs[pipe] && in rockchip_drm_crtc_disable_vblank()
123 priv->crtc_funcs[pipe]->enable_vblank) in rockchip_drm_crtc_disable_vblank()
124 priv->crtc_funcs[pipe]->disable_vblank(crtc); in rockchip_drm_crtc_disable_vblank()