Atomic Modeset Support

The functions here implement the state management and hardware programming dispatch required by the atomic modeset infrastructure. See intel_plane.c for the plane-specific atomic functionality.

int intel_digital_connector_atomic_get_property(struct drm_connector *connector, const struct drm_connector_state *state, struct drm_property *property, u64 *val)

hook for connector->atomic_get_property.

Parameters

struct drm_connector *connector

Connector to get the property for.

const struct drm_connector_state *state

Connector state to retrieve the property from.

struct drm_property *property

Property to retrieve.

u64 *val

Return value for the property.

Description

Returns the atomic property value for a digital connector.

int intel_digital_connector_atomic_set_property(struct drm_connector *connector, struct drm_connector_state *state, struct drm_property *property, u64 val)

hook for connector->atomic_set_property.

Parameters

struct drm_connector *connector

Connector to set the property for.

struct drm_connector_state *state

Connector state to set the property on.

struct drm_property *property

Property to set.

u64 val

New value for the property.

Description

Sets the atomic property value for a digital connector.

struct drm_connector_state *intel_digital_connector_duplicate_state(struct drm_connector *connector)

duplicate connector state

Parameters

struct drm_connector *connector

digital connector

Description

Allocates and returns a copy of the connector state (both common and digital connector specific) for the specified connector.

Return

The newly allocated connector state, or NULL on failure.

bool intel_connector_needs_modeset(struct intel_atomic_state *state, struct drm_connector *connector)

check if connector needs a modeset

Parameters

struct intel_atomic_state *state

the atomic state corresponding to this modeset

struct drm_connector *connector

the connector

bool intel_any_crtc_needs_modeset(struct intel_atomic_state *state)

check if any CRTC needs a modeset

Parameters

struct intel_atomic_state *state

the atomic state corresponding to this modeset

Description

Returns true if any CRTC in state needs a modeset.

struct drm_crtc_state *intel_crtc_duplicate_state(struct drm_crtc *crtc)

duplicate crtc state

Parameters

struct drm_crtc *crtc

drm crtc

Description

Allocates and returns a copy of the crtc state (both common and Intel-specific) for the specified crtc.

Return

The newly allocated crtc state, or NULL on failure.

void intel_crtc_destroy_state(struct drm_crtc *crtc, struct drm_crtc_state *state)

destroy crtc state

Parameters

struct drm_crtc *crtc

drm crtc

struct drm_crtc_state *state

the state to destroy

Description

Destroys the crtc state (both common and Intel-specific) for the specified crtc.