Lines Matching full:connector
53 DRM_FORCE_ON_DIGITAL, /* for DVI-I use digital connector */
59 * This enum is used to track the connector status. There are no separate
64 * @connector_status_connected: The connector is definitely connected to
69 * @connector_status_disconnected: The connector isn't connected to a
72 * nothing there. It is driver-dependent whether a connector with this
77 * @connector_status_unknown: The connector's status could not be
79 * flicker (like load-detection when the connector is in use), or when a
81 * free CRTC). It should be possible to light up the connector with one
84 * there's not connector with @connector_status_connected.
93 * This enum is used to track the status of initializing a connector and
99 * @DRM_CONNECTOR_INITIALIZING: The connector has just been created,
101 * additional restrictions to how the state of this connector may be
107 * @DRM_CONNECTOR_REGISTERED: The connector has been fully initialized
110 * state of this connector may be modified.
115 * @DRM_CONNECTOR_UNREGISTERED: The connector has either been exposed
117 * userspace, or the connector was unregistered before it had a chance
119 * @DRM_CONNECTOR_INITIALIZING state). When a connector is
123 * - An unregistered connector may only have its DPMS changed from
128 * disabling a CRTC on an unregistered connector is OK, but enabling
130 * - Removing a CRTC from an unregistered connector is OK, but new
131 * CRTCs may never be assigned to an unregistered connector.
265 * enum drm_link_status - connector's link_status property value
267 * This enum is used as the connector's link status property value.
289 * orientation" connector prop will not be
547 * @panel_orientation: Read only connector property for built-in panels,
666 * struct drm_connector_tv_margins - TV connector related margins
694 * struct drm_tv_connector_state - TV connector related states
718 * struct drm_connector_state - mutable connector state
721 /** @connector: backpointer to the connector */
722 struct drm_connector *connector; member
725 * @crtc: CRTC to connect connector to, NULL if disabled.
751 * @link_status: Connector link_status to keep track of whether link is
766 /** @tv: TV connector state */
772 * This tracks whether a connector is aware of the self refresh state.
773 * It should be set to true for those connector implementations which
784 * @picture_aspect_ratio: Connector property to control the
793 * @content_type: Connector property to control the
801 * @hdcp_content_type: Connector property to pass the type of
807 * @scaling_mode: Connector property to control the
813 * @content_protection: Connector property to request content
819 * @colorspace: State variable for Connector property to request
828 * Holds the framebuffer and out-fence for a writeback connector. As
839 * @max_requested_bpc: Connector property to limit the maximum bit
845 * @max_bpc: Connector max_bpc based on the requested max_bpc property
846 * and the connector bpc limitations obtained from edid.
851 * @privacy_screen_sw_state: See :ref:`Standard Connector
874 * Legacy entry point to set the per-connector DPMS state. Legacy DPMS
875 * is exposed as a standard property on the connector, but diverted to
877 * implement the 4 level DPMS support on the connector any more, but
887 int (*dpms)(struct drm_connector *connector, int mode);
892 * Reset connector hardware and software state to off. This function isn't
899 void (*reset)(struct drm_connector *connector);
904 * Check to see if anything is attached to the connector. The parameter
906 * connector due to a user request. force can be used by the driver to
909 * This callback is optional, if not implemented the connector will be
916 * core entry point to probe connector state is @fill_modes.
924 * state the connector is in. Drivers that need the underlying
930 * drm_connector_status indicating the connector's status.
932 enum drm_connector_status (*detect)(struct drm_connector *connector,
939 * connector is forced to a certain state by userspace, either through
947 * core entry point to probe connector state is @fill_modes.
949 void (*force)(struct drm_connector *connector);
964 * received for this output connector->edid must be NULL.
974 int (*fill_modes)(struct drm_connector *connector, uint32_t max_width, uint32_t max_height);
980 * connector.
990 int (*set_property)(struct drm_connector *connector, struct drm_property *property,
997 * interfaces attached to the connector, light backlight control, i2c,
1000 * core drm connector interfaces. Everything added from this callback
1009 int (*late_register)(struct drm_connector *connector);
1015 * userspace interfaces attached to the connector from
1022 void (*early_unregister)(struct drm_connector *connector);
1027 * Clean up connector resources. This is called at driver unload time
1029 * when a connector is being hot-unplugged for drivers that support
1030 * connector hotplugging (e.g. DisplayPort MST).
1032 void (*destroy)(struct drm_connector *connector);
1037 * Duplicate the current atomic state for this connector and return it.
1065 struct drm_connector_state *(*atomic_duplicate_state)(struct drm_connector *connector);
1075 void (*atomic_destroy_state)(struct drm_connector *connector,
1115 * asks for properties attached to this connector). No other validation
1120 int (*atomic_set_property)(struct drm_connector *connector,
1141 * properties attached to this connector).
1143 int (*atomic_get_property)(struct drm_connector *connector,
1163 * This will get called when a hotplug-event for a drm-connector
1166 void (*oob_hotplug_event)(struct drm_connector *connector);
1171 * Allows connectors to create connector-specific debugfs files.
1173 void (*debugfs_init)(struct drm_connector *connector, struct dentry *root);
1179 * Each connector can have an initial mode with additional options
1274 * Ignore the hotplug state of the connector, and force its
1292 * drm-connector "panel orientation" property override value,
1304 * struct drm_connector - central DRM connector control structure
1306 * Each connector may be connected to one or more CRTCs, or may be clonable by
1307 * another connector if they can share a CRTC. Each connector also has a specific
1321 * Drivers can set this to associate a fwnode with a connector, drivers
1340 * Connector entry in the global connector-list, used by
1352 * @mutex: Lock for general connector state, but currently only protects
1353 * @registered. Most of the connector state is still protected by
1359 * @index: Compacted connector index, which matches the position inside
1362 * connector.
1371 /** @connector_type_id: index into connector type enum */
1375 * Can this connector handle interlaced modes? Only used by
1381 * Can this connector handle doublescan? Only used by
1387 * Can this connector handle stereo modes? Only used by
1393 * @ycbcr_420_allowed : This bool indicates if this connector is
1401 * @registration_state: Is this connector initializing, exposed
1410 * Modes available on this connector (from fill_modes() + user).
1441 /** @funcs: connector control functions */
1451 /** @properties: property tracking for this connector */
1462 * query hardware support for variable refresh rate on a connector.
1463 * connector. Drivers can add the property to a connector by
1472 * @colorspace_property: Connector property to set the suitable
1486 * @max_bpc_property: Default connector property for the max bpc to be
1487 * driven out of the connector.
1491 /** @privacy_screen: drm_privacy_screen for this connector, or NULL. */
1499 * connector to control the integrated privacy screen.
1505 * connector to report the actual integrated privacy screen state.
1516 * Connector polling mode, a combination of
1519 * The connector generates hotplug events and doesn't need to be
1524 * Periodically poll the connector for connection.
1527 * Periodically poll the connector for disconnection, without
1528 * causing flickering even when the connector is in use. DACs should
1547 /** @cmdline_mode: mode line parsed from the kernel cmdline for this connector */
1557 /** @epoch_counter: used to detect any other changes in connector, besides status */
1562 * connector, drm_encoder_index() determines the index into the bitfield
1568 * @encoder: Currently bound encoder driving this connector, if any.
1593 * A connector usually has its associated ddc adapter. If a driver uses
1594 * this field, then an appropriate symbolic link is created in connector
1624 /** @debugfs_entry: debugfs directory for this connector */
1630 * Current atomic state for this connector.
1633 * nonblocking atomic commits access the current connector state without
1660 /** @has_tile: is this connector connected to a tiled monitor */
1681 * connector from any context, in conjunction with
1693 struct drm_connector *connector,
1697 struct drm_connector *connector,
1702 struct drm_connector *connector,
1706 void drm_connector_attach_edid_property(struct drm_connector *connector);
1707 int drm_connector_register(struct drm_connector *connector);
1708 void drm_connector_unregister(struct drm_connector *connector);
1709 int drm_connector_attach_encoder(struct drm_connector *connector,
1712 void drm_connector_cleanup(struct drm_connector *connector);
1714 static inline unsigned int drm_connector_index(const struct drm_connector *connector) in drm_connector_index() argument
1716 return connector->index; in drm_connector_index()
1719 static inline u32 drm_connector_mask(const struct drm_connector *connector) in drm_connector_mask() argument
1721 return 1 << connector->index; in drm_connector_mask()
1725 * drm_connector_lookup - lookup connector object
1728 * @id: connector object id
1730 * This function looks up the connector object specified by id
1743 * drm_connector_get - acquire a connector reference
1744 * @connector: DRM connector
1746 * This function increments the connector's refcount.
1748 static inline void drm_connector_get(struct drm_connector *connector) in drm_connector_get() argument
1750 drm_mode_object_get(&connector->base); in drm_connector_get()
1754 * drm_connector_put - release a connector reference
1755 * @connector: DRM connector
1757 * This function decrements the connector's reference count and frees the
1760 static inline void drm_connector_put(struct drm_connector *connector) in drm_connector_put() argument
1762 drm_mode_object_put(&connector->base); in drm_connector_put()
1766 * drm_connector_is_unregistered - has the connector been unregistered from
1768 * @connector: DRM connector
1770 * Checks whether or not @connector has been unregistered from userspace.
1773 * True if the connector was unregistered, false if the connector is
1777 drm_connector_is_unregistered(struct drm_connector *connector) in drm_connector_is_unregistered() argument
1779 return READ_ONCE(connector->registration_state) == in drm_connector_is_unregistered()
1797 void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector);
1806 int drm_connector_attach_scaling_mode_property(struct drm_connector *connector,
1809 struct drm_connector *connector);
1810 int drm_connector_attach_colorspace_property(struct drm_connector *connector);
1811 int drm_connector_attach_hdr_output_metadata_property(struct drm_connector *connector);
1815 int drm_mode_create_hdmi_colorspace_property(struct drm_connector *connector);
1816 int drm_mode_create_dp_colorspace_property(struct drm_connector *connector);
1820 int drm_connector_set_path_property(struct drm_connector *connector,
1822 int drm_connector_set_tile_property(struct drm_connector *connector);
1823 int drm_connector_update_edid_property(struct drm_connector *connector,
1825 void drm_connector_set_link_status_property(struct drm_connector *connector,
1828 struct drm_connector *connector, bool capable);
1830 struct drm_connector *connector,
1833 struct drm_connector *connector,
1837 struct drm_connector *connector,
1839 int drm_connector_attach_max_bpc_property(struct drm_connector *connector,
1844 struct drm_connector *connector, struct drm_privacy_screen *priv);
1882 * drm_connector_list_iter_end() call. If you want to use the connector later,
1897 bool drm_connector_has_possible_encoder(struct drm_connector *connector,
1902 * @connector: &struct drm_connector pointer used as cursor
1905 * Note that @connector is only valid within the list body, if you want to use
1906 * @connector after calling drm_connector_list_iter_end() then you need to grab
1909 #define drm_for_each_connector_iter(connector, iter) \ argument
1910 while ((connector = drm_connector_list_iter_next(iter)))
1913 * drm_connector_for_each_possible_encoder - iterate connector's possible encoders
1914 * @connector: &struct drm_connector pointer
1917 #define drm_connector_for_each_possible_encoder(connector, encoder) \ argument
1918 drm_for_each_encoder_mask(encoder, (connector)->dev, \
1919 (connector)->possible_encoders)