include/drm/drm_atomic_helper.h

Source file repositories/reference/linux-study-clean/include/drm/drm_atomic_helper.h

File Facts

System
Linux kernel
Corpus path
include/drm/drm_atomic_helper.h
Extension
.h
Size
12095 bytes
Lines
299
Domain
Repository Root And Misc
Bucket
include
Inferred role
Repository Root And Misc: implementation source
Status
source implementation candidate

Why This File Exists

Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef DRM_ATOMIC_HELPER_H_
#define DRM_ATOMIC_HELPER_H_

#include <drm/drm_crtc.h>
#include <drm/drm_modeset_helper_vtables.h>
#include <drm/drm_modeset_helper.h>
#include <drm/drm_atomic_state_helper.h>
#include <drm/drm_util.h>

/*
 * Drivers that don't allow primary plane scaling may pass this macro in place
 * of the min/max scale parameters of the plane-state checker function.
 *
 * Due to src being in 16.16 fixed point and dest being in integer pixels,
 * 1<<16 represents no scaling.
 */
#define DRM_PLANE_NO_SCALING (1<<16)

struct drm_atomic_commit;
struct drm_private_obj;
struct drm_private_state;

int drm_atomic_helper_check_modeset(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);
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);
int drm_atomic_helper_check_planes(struct drm_device *dev,
			       struct drm_atomic_commit *state);
int drm_atomic_helper_check_crtc_primary_plane(struct drm_crtc_state *crtc_state);
void drm_atomic_helper_commit_encoder_bridge_disable(struct drm_device *dev,
						     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_commit_encoder_bridge_post_disable(struct drm_device *dev,
							  struct drm_atomic_commit *state);
int drm_atomic_helper_check(struct drm_device *dev,
			    struct drm_atomic_commit *state);
void drm_atomic_helper_commit_tail(struct drm_atomic_commit *state);
void drm_atomic_helper_commit_tail_rpm(struct drm_atomic_commit *state);
int drm_atomic_helper_commit(struct drm_device *dev,
			     struct drm_atomic_commit *state,
			     bool nonblock);
int drm_atomic_helper_async_check(struct drm_device *dev,
				  struct drm_atomic_commit *state);
void drm_atomic_helper_async_commit(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);

void drm_atomic_helper_wait_for_vblanks(struct drm_device *dev,
					struct drm_atomic_commit *old_state);

void drm_atomic_helper_wait_for_flip_done(struct drm_device *dev,
					  struct drm_atomic_commit *old_state);

void
drm_atomic_helper_update_legacy_modeset_state(struct drm_device *dev,
					      struct drm_atomic_commit *old_state);

void
drm_atomic_helper_calc_timestamping_constants(struct drm_atomic_commit *state);

void drm_atomic_helper_commit_crtc_set_mode(struct drm_device *dev,
					    struct drm_atomic_commit *state);

void drm_atomic_helper_commit_modeset_disables(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_commit_encoder_bridge_pre_enable(struct drm_device *dev,
							struct drm_atomic_commit *state);

void drm_atomic_helper_commit_crtc_enable(struct drm_device *dev,
					  struct drm_atomic_commit *state);

void drm_atomic_helper_commit_encoder_bridge_enable(struct drm_device *dev,
						    struct drm_atomic_commit *state);

void drm_atomic_helper_commit_modeset_enables(struct drm_device *dev,
					  struct drm_atomic_commit *old_state);

Annotation

Implementation Notes