Lines Matching full:connector
380 * __drm_atomic_helper_connector_state_reset - reset the connector state
381 * @conn_state: atomic connector state, must not be NULL
382 * @connector: connectotr object, must not be NULL
385 * values. This is useful for drivers that subclass the connector state.
389 struct drm_connector *connector) in __drm_atomic_helper_connector_state_reset() argument
391 conn_state->connector = connector; in __drm_atomic_helper_connector_state_reset()
396 * __drm_atomic_helper_connector_reset - reset state on connector
397 * @connector: drm connector
398 * @conn_state: connector state to assign
401 * the &drm_connector->state pointer of @connector, usually required when
405 * This is useful for drivers that subclass the connector state.
408 __drm_atomic_helper_connector_reset(struct drm_connector *connector, in __drm_atomic_helper_connector_reset() argument
412 __drm_atomic_helper_connector_state_reset(conn_state, connector); in __drm_atomic_helper_connector_reset()
414 connector->state = conn_state; in __drm_atomic_helper_connector_reset()
420 * @connector: drm connector
422 * Resets the atomic state for @connector by freeing the state pointer (which
426 void drm_atomic_helper_connector_reset(struct drm_connector *connector) in drm_atomic_helper_connector_reset() argument
431 if (connector->state) in drm_atomic_helper_connector_reset()
432 __drm_atomic_helper_connector_destroy_state(connector->state); in drm_atomic_helper_connector_reset()
434 kfree(connector->state); in drm_atomic_helper_connector_reset()
435 __drm_atomic_helper_connector_reset(connector, conn_state); in drm_atomic_helper_connector_reset()
440 * drm_atomic_helper_connector_tv_reset - Resets TV connector properties
441 * @connector: DRM connector
443 * Resets the TV-related properties attached to a connector.
445 void drm_atomic_helper_connector_tv_reset(struct drm_connector *connector) in drm_atomic_helper_connector_tv_reset() argument
447 struct drm_cmdline_mode *cmdline = &connector->cmdline_mode; in drm_atomic_helper_connector_tv_reset()
448 struct drm_connector_state *state = connector->state; in drm_atomic_helper_connector_tv_reset()
458 * __drm_atomic_helper_connector_duplicate_state - copy atomic connector state
459 * @connector: connector object
460 * @state: atomic connector state
462 * Copies atomic state from a connector's current state. This is useful for
463 * drivers that subclass the connector state.
466 __drm_atomic_helper_connector_duplicate_state(struct drm_connector *connector, in __drm_atomic_helper_connector_duplicate_state() argument
469 memcpy(state, connector->state, sizeof(*state)); in __drm_atomic_helper_connector_duplicate_state()
471 drm_connector_get(connector); in __drm_atomic_helper_connector_duplicate_state()
484 * @connector: drm connector
486 * Default connector state duplicate hook for drivers which don't have their own
487 * subclassed connector state structure.
490 drm_atomic_helper_connector_duplicate_state(struct drm_connector *connector) in drm_atomic_helper_connector_duplicate_state() argument
494 if (WARN_ON(!connector->state)) in drm_atomic_helper_connector_duplicate_state()
499 __drm_atomic_helper_connector_duplicate_state(connector, state); in drm_atomic_helper_connector_duplicate_state()
506 * __drm_atomic_helper_connector_destroy_state - release connector state
507 * @state: connector state object to release
509 * Releases all resources stored in the connector state without actually
510 * freeing the memory of the connector state. This is useful for drivers that
511 * subclass the connector state.
517 drm_connector_put(state->connector); in __drm_atomic_helper_connector_destroy_state()
531 * @connector: drm connector
532 * @state: connector state object to release
534 * Default connector state destroy hook for drivers which don't have their own
535 * subclassed connector state structure.
537 void drm_atomic_helper_connector_destroy_state(struct drm_connector *connector, in drm_atomic_helper_connector_destroy_state() argument