Lines Matching refs:pipe

90 	struct drm_simple_display_pipe *pipe;  in drm_simple_kms_crtc_mode_valid()  local
92 pipe = container_of(crtc, struct drm_simple_display_pipe, crtc); in drm_simple_kms_crtc_mode_valid()
93 if (!pipe->funcs || !pipe->funcs->mode_valid) in drm_simple_kms_crtc_mode_valid()
97 return pipe->funcs->mode_valid(pipe, mode); in drm_simple_kms_crtc_mode_valid()
119 struct drm_simple_display_pipe *pipe; in drm_simple_kms_crtc_enable() local
121 pipe = container_of(crtc, struct drm_simple_display_pipe, crtc); in drm_simple_kms_crtc_enable()
122 if (!pipe->funcs || !pipe->funcs->enable) in drm_simple_kms_crtc_enable()
125 plane = &pipe->plane; in drm_simple_kms_crtc_enable()
126 pipe->funcs->enable(pipe, crtc->state, plane->state); in drm_simple_kms_crtc_enable()
132 struct drm_simple_display_pipe *pipe; in drm_simple_kms_crtc_disable() local
134 pipe = container_of(crtc, struct drm_simple_display_pipe, crtc); in drm_simple_kms_crtc_disable()
135 if (!pipe->funcs || !pipe->funcs->disable) in drm_simple_kms_crtc_disable()
138 pipe->funcs->disable(pipe); in drm_simple_kms_crtc_disable()
150 struct drm_simple_display_pipe *pipe; in drm_simple_kms_crtc_reset() local
152 pipe = container_of(crtc, struct drm_simple_display_pipe, crtc); in drm_simple_kms_crtc_reset()
153 if (!pipe->funcs || !pipe->funcs->reset_crtc) in drm_simple_kms_crtc_reset()
156 return pipe->funcs->reset_crtc(pipe); in drm_simple_kms_crtc_reset()
161 struct drm_simple_display_pipe *pipe; in drm_simple_kms_crtc_duplicate_state() local
163 pipe = container_of(crtc, struct drm_simple_display_pipe, crtc); in drm_simple_kms_crtc_duplicate_state()
164 if (!pipe->funcs || !pipe->funcs->duplicate_crtc_state) in drm_simple_kms_crtc_duplicate_state()
167 return pipe->funcs->duplicate_crtc_state(pipe); in drm_simple_kms_crtc_duplicate_state()
172 struct drm_simple_display_pipe *pipe; in drm_simple_kms_crtc_destroy_state() local
174 pipe = container_of(crtc, struct drm_simple_display_pipe, crtc); in drm_simple_kms_crtc_destroy_state()
175 if (!pipe->funcs || !pipe->funcs->destroy_crtc_state) in drm_simple_kms_crtc_destroy_state()
178 pipe->funcs->destroy_crtc_state(pipe, state); in drm_simple_kms_crtc_destroy_state()
183 struct drm_simple_display_pipe *pipe; in drm_simple_kms_crtc_enable_vblank() local
185 pipe = container_of(crtc, struct drm_simple_display_pipe, crtc); in drm_simple_kms_crtc_enable_vblank()
186 if (!pipe->funcs || !pipe->funcs->enable_vblank) in drm_simple_kms_crtc_enable_vblank()
189 return pipe->funcs->enable_vblank(pipe); in drm_simple_kms_crtc_enable_vblank()
194 struct drm_simple_display_pipe *pipe; in drm_simple_kms_crtc_disable_vblank() local
196 pipe = container_of(crtc, struct drm_simple_display_pipe, crtc); in drm_simple_kms_crtc_disable_vblank()
197 if (!pipe->funcs || !pipe->funcs->disable_vblank) in drm_simple_kms_crtc_disable_vblank()
200 pipe->funcs->disable_vblank(pipe); in drm_simple_kms_crtc_disable_vblank()
219 struct drm_simple_display_pipe *pipe; in drm_simple_kms_plane_atomic_check() local
223 pipe = container_of(plane, struct drm_simple_display_pipe, plane); in drm_simple_kms_plane_atomic_check()
225 &pipe->crtc); in drm_simple_kms_plane_atomic_check()
237 if (!pipe->funcs || !pipe->funcs->check) in drm_simple_kms_plane_atomic_check()
240 return pipe->funcs->check(pipe, plane_state, crtc_state); in drm_simple_kms_plane_atomic_check()
248 struct drm_simple_display_pipe *pipe; in drm_simple_kms_plane_atomic_update() local
250 pipe = container_of(plane, struct drm_simple_display_pipe, plane); in drm_simple_kms_plane_atomic_update()
251 if (!pipe->funcs || !pipe->funcs->update) in drm_simple_kms_plane_atomic_update()
254 pipe->funcs->update(pipe, old_pstate); in drm_simple_kms_plane_atomic_update()
260 struct drm_simple_display_pipe *pipe; in drm_simple_kms_plane_prepare_fb() local
262 pipe = container_of(plane, struct drm_simple_display_pipe, plane); in drm_simple_kms_plane_prepare_fb()
263 if (!pipe->funcs || !pipe->funcs->prepare_fb) { in drm_simple_kms_plane_prepare_fb()
267 WARN_ON_ONCE(pipe->funcs && pipe->funcs->cleanup_fb); in drm_simple_kms_plane_prepare_fb()
269 return drm_gem_simple_display_pipe_prepare_fb(pipe, state); in drm_simple_kms_plane_prepare_fb()
272 return pipe->funcs->prepare_fb(pipe, state); in drm_simple_kms_plane_prepare_fb()
278 struct drm_simple_display_pipe *pipe; in drm_simple_kms_plane_cleanup_fb() local
280 pipe = container_of(plane, struct drm_simple_display_pipe, plane); in drm_simple_kms_plane_cleanup_fb()
281 if (!pipe->funcs || !pipe->funcs->cleanup_fb) in drm_simple_kms_plane_cleanup_fb()
284 pipe->funcs->cleanup_fb(pipe, state); in drm_simple_kms_plane_cleanup_fb()
303 struct drm_simple_display_pipe *pipe; in drm_simple_kms_plane_reset() local
305 pipe = container_of(plane, struct drm_simple_display_pipe, plane); in drm_simple_kms_plane_reset()
306 if (!pipe->funcs || !pipe->funcs->reset_plane) in drm_simple_kms_plane_reset()
309 return pipe->funcs->reset_plane(pipe); in drm_simple_kms_plane_reset()
314 struct drm_simple_display_pipe *pipe; in drm_simple_kms_plane_duplicate_state() local
316 pipe = container_of(plane, struct drm_simple_display_pipe, plane); in drm_simple_kms_plane_duplicate_state()
317 if (!pipe->funcs || !pipe->funcs->duplicate_plane_state) in drm_simple_kms_plane_duplicate_state()
320 return pipe->funcs->duplicate_plane_state(pipe); in drm_simple_kms_plane_duplicate_state()
326 struct drm_simple_display_pipe *pipe; in drm_simple_kms_plane_destroy_state() local
328 pipe = container_of(plane, struct drm_simple_display_pipe, plane); in drm_simple_kms_plane_destroy_state()
329 if (!pipe->funcs || !pipe->funcs->destroy_plane_state) in drm_simple_kms_plane_destroy_state()
332 pipe->funcs->destroy_plane_state(pipe, state); in drm_simple_kms_plane_destroy_state()
359 int drm_simple_display_pipe_attach_bridge(struct drm_simple_display_pipe *pipe, in drm_simple_display_pipe_attach_bridge() argument
362 return drm_bridge_attach(&pipe->encoder, bridge, NULL, 0); in drm_simple_display_pipe_attach_bridge()
391 struct drm_simple_display_pipe *pipe, in drm_simple_display_pipe_init() argument
397 struct drm_encoder *encoder = &pipe->encoder; in drm_simple_display_pipe_init()
398 struct drm_plane *plane = &pipe->plane; in drm_simple_display_pipe_init()
399 struct drm_crtc *crtc = &pipe->crtc; in drm_simple_display_pipe_init()
402 pipe->connector = connector; in drm_simple_display_pipe_init()
403 pipe->funcs = funcs; in drm_simple_display_pipe_init()