28#ifndef DRM_ATOMIC_HELPER_H_
29#define DRM_ATOMIC_HELPER_H_
44#define DRM_PLANE_NO_SCALING (1<<16)
59 bool can_update_disabled);
124#define DRM_PLANE_COMMIT_ACTIVE_ONLY BIT(0)
125#define DRM_PLANE_COMMIT_NO_DISABLE_AFTER_MODESET BIT(1)
152 int crtc_x,
int crtc_y,
153 unsigned int crtc_w,
unsigned int crtc_h,
200#define drm_atomic_crtc_for_each_plane(plane, crtc) \
201 drm_for_each_plane_mask(plane, (crtc)->dev, (crtc)->state->plane_mask)
213#define drm_atomic_crtc_state_for_each_plane(plane, crtc_state) \
214 drm_for_each_plane_mask(plane, (crtc_state)->state->dev, (crtc_state)->plane_mask)
231#define drm_atomic_crtc_state_for_each_plane_state(plane, plane_state, crtc_state) \
232 drm_for_each_plane_mask(plane, (crtc_state)->state->dev, (crtc_state)->plane_mask) \
233 for_each_if ((plane_state = \
234 __drm_atomic_get_current_plane_state((crtc_state)->state, \
249static inline bool drm_atomic_plane_enabling(
struct drm_plane_state *old_plane_state,
257 WARN_ON((!new_plane_state->
crtc && new_plane_state->
fb) ||
258 (new_plane_state->
crtc && !new_plane_state->
fb));
260 return !old_plane_state->
crtc && new_plane_state->
crtc;
284 WARN_ON((new_plane_state->
crtc ==
NULL && new_plane_state->
fb !=
NULL) ||
287 return old_plane_state->
crtc && !new_plane_state->
crtc;
296 unsigned int *num_input_fmts);
uint8_t flags
Definition virtio.h:0
unsigned int uint32_t
Definition acefiex.h:163
#define NULL
Definition actypes.h:561
#define __must_check
Definition compiler.h:114
void drm_atomic_helper_commit_hw_done(struct drm_atomic_commit *state)
void drm_atomic_helper_commit_planes_on_crtc(struct drm_crtc_state *old_crtc_state)
void drm_atomic_helper_commit_planes(struct drm_device *dev, struct drm_atomic_commit *state, uint32_t flags)
void drm_atomic_helper_commit_tail_rpm(struct drm_atomic_commit *state)
void drm_atomic_helper_commit_encoder_bridge_post_disable(struct drm_device *dev, struct drm_atomic_commit *state)
void drm_atomic_helper_commit_writebacks(struct drm_device *dev, struct drm_atomic_commit *state)
void drm_atomic_helper_fake_vblank(struct drm_atomic_commit *state)
int drm_atomic_helper_resume(struct drm_device *dev, struct drm_atomic_commit *state)
void drm_atomic_helper_commit_encoder_bridge_disable(struct drm_device *dev, struct drm_atomic_commit *state)
void drm_atomic_helper_unprepare_planes(struct drm_device *dev, struct drm_atomic_commit *state)
int drm_atomic_helper_commit_duplicated_state(struct drm_atomic_commit *state, struct drm_modeset_acquire_ctx *ctx)
int drm_atomic_helper_check_crtc_primary_plane(struct drm_crtc_state *crtc_state)
void drm_atomic_helper_disable_planes_on_crtc(struct drm_crtc_state *old_crtc_state, bool atomic)
void drm_atomic_helper_wait_for_flip_done(struct drm_device *dev, struct drm_atomic_commit *old_state)
int drm_atomic_helper_update_plane(struct drm_plane *plane, struct drm_crtc *crtc, struct drm_framebuffer *fb, int crtc_x, int crtc_y, unsigned int crtc_w, unsigned int crtc_h, uint32_t src_x, uint32_t src_y, uint32_t src_w, uint32_t src_h, struct drm_modeset_acquire_ctx *ctx)
void drm_atomic_helper_commit_cleanup_done(struct drm_atomic_commit *state)
void drm_atomic_helper_commit_modeset_enables(struct drm_device *dev, struct drm_atomic_commit *old_state)
void drm_atomic_helper_shutdown(struct drm_device *dev)
void drm_atomic_helper_commit_encoder_bridge_pre_enable(struct drm_device *dev, struct drm_atomic_commit *state)
int drm_atomic_helper_setup_commit(struct drm_atomic_commit *state, bool nonblock)
int drm_atomic_helper_check_planes(struct drm_device *dev, struct drm_atomic_commit *state)
void drm_atomic_helper_cleanup_planes(struct drm_device *dev, struct drm_atomic_commit *old_state)
u32 * drm_atomic_helper_bridge_propagate_bus_fmt(struct drm_bridge *bridge, struct drm_bridge_state *bridge_state, struct drm_crtc_state *crtc_state, struct drm_connector_state *conn_state, u32 output_fmt, unsigned int *num_input_fmts)
int drm_atomic_helper_page_flip_target(struct drm_crtc *crtc, struct drm_framebuffer *fb, struct drm_pending_vblank_event *event, uint32_t flags, uint32_t target, struct drm_modeset_acquire_ctx *ctx)
int drm_atomic_helper_commit(struct drm_device *dev, struct drm_atomic_commit *state, bool nonblock)
int drm_atomic_helper_disable_all(struct drm_device *dev, struct drm_modeset_acquire_ctx *ctx)
int drm_atomic_helper_page_flip(struct drm_crtc *crtc, struct drm_framebuffer *fb, struct drm_pending_vblank_event *event, uint32_t flags, struct drm_modeset_acquire_ctx *ctx)
int drm_atomic_helper_async_check(struct drm_device *dev, struct drm_atomic_commit *state)
int drm_atomic_helper_check_plane_state(struct drm_plane_state *plane_state, const struct drm_crtc_state *crtc_state, int min_scale, int max_scale, bool can_position, bool can_update_disabled)
void drm_atomic_helper_commit_crtc_set_mode(struct drm_device *dev, struct drm_atomic_commit *state)
int drm_atomic_helper_reset_crtc(struct drm_crtc *crtc, struct drm_modeset_acquire_ctx *ctx)
void drm_atomic_helper_commit_encoder_bridge_enable(struct drm_device *dev, struct drm_atomic_commit *state)
int drm_atomic_helper_disable_plane(struct drm_plane *plane, struct drm_modeset_acquire_ctx *ctx)
void drm_atomic_helper_commit_tail(struct drm_atomic_commit *state)
void drm_atomic_helper_commit_crtc_disable(struct drm_device *dev, struct drm_atomic_commit *state)
void drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev, struct drm_atomic_commit *old_state)
int __must_check drm_atomic_helper_swap_state(struct drm_atomic_commit *state, bool stall)
void drm_atomic_helper_wait_for_dependencies(struct drm_atomic_commit *state)
int drm_atomic_helper_check_modeset(struct drm_device *dev, struct drm_atomic_commit *state)
int drm_atomic_helper_set_config(struct drm_mode_set *set, struct drm_modeset_acquire_ctx *ctx)
void drm_atomic_helper_commit_crtc_enable(struct drm_device *dev, struct drm_atomic_commit *state)
int drm_atomic_helper_check_wb_connector_state(struct drm_connector *connector, struct drm_atomic_commit *state)
void drm_atomic_helper_wait_for_vblanks(struct drm_device *dev, struct drm_atomic_commit *old_state)
int drm_atomic_helper_check(struct drm_device *dev, struct drm_atomic_commit *state)
int drm_atomic_helper_prepare_planes(struct drm_device *dev, struct drm_atomic_commit *state)
void drm_atomic_helper_async_commit(struct drm_device *dev, struct drm_atomic_commit *state)
struct drm_atomic_commit * drm_atomic_helper_duplicate_state(struct drm_device *dev, struct drm_modeset_acquire_ctx *ctx)
void drm_atomic_helper_calc_timestamping_constants(struct drm_atomic_commit *state)
struct drm_atomic_commit * drm_atomic_helper_suspend(struct drm_device *dev)
void drm_atomic_helper_commit_modeset_disables(struct drm_device *dev, struct drm_atomic_commit *state)
int drm_atomic_helper_wait_for_fences(struct drm_device *dev, struct drm_atomic_commit *state, bool pre_swap)
struct drm_crtc * crtc
Definition drm_crtc.h:1238
struct drm_plane * plane
Definition drm_plane.h:828
const struct device * dev
Definition drm_print.h:519
uint32_t u32
Definition kernel.h:16
Definition drm_atomic.h:480
Definition drm_atomic.h:1339
Definition drm_bridge.h:1100
Definition drm_connector.h:1065
Definition drm_connector.h:1998
Definition drm_crtc.h:955
Definition drm_device.h:75
Definition drm_framebuffer.h:120
Definition drm_crtc.h:1222
Definition drm_modeset_lock.h:46
Definition drm_vblank.h:43
Definition drm_plane.h:54
struct drm_crtc * crtc
Definition drm_plane.h:64
struct drm_framebuffer * fb
Definition drm_plane.h:72
Definition drm_plane.h:641
Definition drm_atomic.h:353
Definition drm_atomic.h:403