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 *connectorConnector to get the property for.
const struct drm_connector_state *stateConnector state to retrieve the property from.
struct drm_property *propertyProperty to retrieve.
u64 *valReturn 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 *connectorConnector to set the property for.
struct drm_connector_state *stateConnector state to set the property on.
struct drm_property *propertyProperty to set.
u64 valNew 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 *connectordigital 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 *statethe atomic state corresponding to this modeset
struct drm_connector *connectorthe connector
-
bool intel_any_crtc_needs_modeset(struct intel_atomic_state *state)¶
check if any CRTC needs a modeset
Parameters
struct intel_atomic_state *statethe 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 *crtcdrm 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 *crtcdrm crtc
struct drm_crtc_state *statethe state to destroy
Description
Destroys the crtc state (both common and Intel-specific) for the specified crtc.