Lines Matching refs:pipe
53 struct drm_simple_display_pipe *pipe; in drm_simple_kms_crtc_enable() local
55 pipe = container_of(crtc, struct drm_simple_display_pipe, crtc); in drm_simple_kms_crtc_enable()
56 if (!pipe->funcs || !pipe->funcs->enable) in drm_simple_kms_crtc_enable()
59 pipe->funcs->enable(pipe, crtc->state); in drm_simple_kms_crtc_enable()
65 struct drm_simple_display_pipe *pipe; in drm_simple_kms_crtc_disable() local
67 pipe = container_of(crtc, struct drm_simple_display_pipe, crtc); in drm_simple_kms_crtc_disable()
68 if (!pipe->funcs || !pipe->funcs->disable) in drm_simple_kms_crtc_disable()
71 pipe->funcs->disable(pipe); in drm_simple_kms_crtc_disable()
93 struct drm_simple_display_pipe *pipe; in drm_simple_kms_plane_atomic_check() local
97 pipe = container_of(plane, struct drm_simple_display_pipe, plane); in drm_simple_kms_plane_atomic_check()
99 &pipe->crtc); in drm_simple_kms_plane_atomic_check()
116 if (!pipe->funcs || !pipe->funcs->check) in drm_simple_kms_plane_atomic_check()
119 return pipe->funcs->check(pipe, plane_state, crtc_state); in drm_simple_kms_plane_atomic_check()
125 struct drm_simple_display_pipe *pipe; in drm_simple_kms_plane_atomic_update() local
127 pipe = container_of(plane, struct drm_simple_display_pipe, plane); in drm_simple_kms_plane_atomic_update()
128 if (!pipe->funcs || !pipe->funcs->update) in drm_simple_kms_plane_atomic_update()
131 pipe->funcs->update(pipe, old_pstate); in drm_simple_kms_plane_atomic_update()
137 struct drm_simple_display_pipe *pipe; in drm_simple_kms_plane_prepare_fb() local
139 pipe = container_of(plane, struct drm_simple_display_pipe, plane); in drm_simple_kms_plane_prepare_fb()
140 if (!pipe->funcs || !pipe->funcs->prepare_fb) in drm_simple_kms_plane_prepare_fb()
143 return pipe->funcs->prepare_fb(pipe, state); in drm_simple_kms_plane_prepare_fb()
149 struct drm_simple_display_pipe *pipe; in drm_simple_kms_plane_cleanup_fb() local
151 pipe = container_of(plane, struct drm_simple_display_pipe, plane); in drm_simple_kms_plane_cleanup_fb()
152 if (!pipe->funcs || !pipe->funcs->cleanup_fb) in drm_simple_kms_plane_cleanup_fb()
155 pipe->funcs->cleanup_fb(pipe, state); in drm_simple_kms_plane_cleanup_fb()
188 int drm_simple_display_pipe_attach_bridge(struct drm_simple_display_pipe *pipe, in drm_simple_display_pipe_attach_bridge() argument
191 return drm_bridge_attach(&pipe->encoder, bridge, NULL); in drm_simple_display_pipe_attach_bridge()
220 struct drm_simple_display_pipe *pipe, in drm_simple_display_pipe_init() argument
226 struct drm_encoder *encoder = &pipe->encoder; in drm_simple_display_pipe_init()
227 struct drm_plane *plane = &pipe->plane; in drm_simple_display_pipe_init()
228 struct drm_crtc *crtc = &pipe->crtc; in drm_simple_display_pipe_init()
231 pipe->connector = connector; in drm_simple_display_pipe_init()
232 pipe->funcs = funcs; in drm_simple_display_pipe_init()