Lines Matching full:connector

422  * __drm_atomic_helper_connector_state_reset - reset the connector state
423 * @conn_state: atomic connector state, must not be NULL
424 * @connector: connectotr object, must not be NULL
427 * values. This is useful for drivers that subclass the connector state.
431 struct drm_connector *connector) in __drm_atomic_helper_connector_state_reset() argument
433 conn_state->connector = connector; in __drm_atomic_helper_connector_state_reset()
438 * __drm_atomic_helper_connector_reset - reset state on connector
439 * @connector: drm connector
440 * @conn_state: connector state to assign
443 * the &drm_connector->state pointer of @connector, usually required when
447 * This is useful for drivers that subclass the connector state.
450 __drm_atomic_helper_connector_reset(struct drm_connector *connector, in __drm_atomic_helper_connector_reset() argument
454 __drm_atomic_helper_connector_state_reset(conn_state, connector); in __drm_atomic_helper_connector_reset()
456 connector->state = conn_state; in __drm_atomic_helper_connector_reset()
462 * @connector: drm connector
464 * Resets the atomic state for @connector by freeing the state pointer (which
468 void drm_atomic_helper_connector_reset(struct drm_connector *connector) in drm_atomic_helper_connector_reset() argument
473 if (connector->state) in drm_atomic_helper_connector_reset()
474 __drm_atomic_helper_connector_destroy_state(connector->state); in drm_atomic_helper_connector_reset()
476 kfree(connector->state); in drm_atomic_helper_connector_reset()
477 __drm_atomic_helper_connector_reset(connector, conn_state); in drm_atomic_helper_connector_reset()
482 * drm_atomic_helper_connector_tv_margins_reset - Resets TV connector properties
483 * @connector: DRM connector
485 * Resets the TV-related properties attached to a connector.
487 void drm_atomic_helper_connector_tv_margins_reset(struct drm_connector *connector) in drm_atomic_helper_connector_tv_margins_reset() argument
489 struct drm_cmdline_mode *cmdline = &connector->cmdline_mode; in drm_atomic_helper_connector_tv_margins_reset()
490 struct drm_connector_state *state = connector->state; in drm_atomic_helper_connector_tv_margins_reset()
500 * drm_atomic_helper_connector_tv_reset - Resets Analog TV connector properties
501 * @connector: DRM connector
503 * Resets the analog TV properties attached to a connector
505 void drm_atomic_helper_connector_tv_reset(struct drm_connector *connector) in drm_atomic_helper_connector_tv_reset() argument
507 struct drm_device *dev = connector->dev; in drm_atomic_helper_connector_tv_reset()
508 struct drm_cmdline_mode *cmdline = &connector->cmdline_mode; in drm_atomic_helper_connector_tv_reset()
509 struct drm_connector_state *state = connector->state; in drm_atomic_helper_connector_tv_reset()
515 if (!drm_object_property_get_default_value(&connector->base, in drm_atomic_helper_connector_tv_reset()
524 if (!drm_object_property_get_default_value(&connector->base, in drm_atomic_helper_connector_tv_reset()
530 if (!drm_object_property_get_default_value(&connector->base, in drm_atomic_helper_connector_tv_reset()
536 if (!drm_object_property_get_default_value(&connector->base, in drm_atomic_helper_connector_tv_reset()
542 if (!drm_object_property_get_default_value(&connector->base, in drm_atomic_helper_connector_tv_reset()
548 if (!drm_object_property_get_default_value(&connector->base, in drm_atomic_helper_connector_tv_reset()
554 if (!drm_object_property_get_default_value(&connector->base, in drm_atomic_helper_connector_tv_reset()
560 if (!drm_object_property_get_default_value(&connector->base, in drm_atomic_helper_connector_tv_reset()
566 if (!drm_object_property_get_default_value(&connector->base, in drm_atomic_helper_connector_tv_reset()
570 drm_atomic_helper_connector_tv_margins_reset(connector); in drm_atomic_helper_connector_tv_reset()
575 * drm_atomic_helper_connector_tv_check - Validate an analog TV connector state
576 * @connector: DRM Connector
580 * analog TV connector.
585 int drm_atomic_helper_connector_tv_check(struct drm_connector *connector, in drm_atomic_helper_connector_tv_check() argument
589 drm_atomic_get_old_connector_state(state, connector); in drm_atomic_helper_connector_tv_check()
591 drm_atomic_get_new_connector_state(state, connector); in drm_atomic_helper_connector_tv_check()
624 * __drm_atomic_helper_connector_duplicate_state - copy atomic connector state
625 * @connector: connector object
626 * @state: atomic connector state
628 * Copies atomic state from a connector's current state. This is useful for
629 * drivers that subclass the connector state.
632 __drm_atomic_helper_connector_duplicate_state(struct drm_connector *connector, in __drm_atomic_helper_connector_duplicate_state() argument
635 memcpy(state, connector->state, sizeof(*state)); in __drm_atomic_helper_connector_duplicate_state()
637 drm_connector_get(connector); in __drm_atomic_helper_connector_duplicate_state()
650 * @connector: drm connector
652 * Default connector state duplicate hook for drivers which don't have their own
653 * subclassed connector state structure.
656 drm_atomic_helper_connector_duplicate_state(struct drm_connector *connector) in drm_atomic_helper_connector_duplicate_state() argument
660 if (WARN_ON(!connector->state)) in drm_atomic_helper_connector_duplicate_state()
665 __drm_atomic_helper_connector_duplicate_state(connector, state); in drm_atomic_helper_connector_duplicate_state()
672 * __drm_atomic_helper_connector_destroy_state - release connector state
673 * @state: connector state object to release
675 * Releases all resources stored in the connector state without actually
676 * freeing the memory of the connector state. This is useful for drivers that
677 * subclass the connector state.
683 drm_connector_put(state->connector); in __drm_atomic_helper_connector_destroy_state()
697 * @connector: drm connector
698 * @state: connector state object to release
700 * Default connector state destroy hook for drivers which don't have their own
701 * subclassed connector state structure.
703 void drm_atomic_helper_connector_destroy_state(struct drm_connector *connector, in drm_atomic_helper_connector_destroy_state() argument