Lines Matching full:connector
54 DRM_FORCE_ON_DIGITAL, /* for DVI-I use digital connector */
60 * This enum is used to track the connector status. There are no separate
65 * @connector_status_connected: The connector is definitely connected to
70 * @connector_status_disconnected: The connector isn't connected to a
73 * nothing there. It is driver-dependent whether a connector with this
78 * @connector_status_unknown: The connector's status could not be
80 * flicker (like load-detection when the connector is in use), or when a
82 * free CRTC). It should be possible to light up the connector with one
85 * there's not connector with @connector_status_connected.
94 * This enum is used to track the status of initializing a connector and
100 * @DRM_CONNECTOR_INITIALIZING: The connector has just been created,
102 * additional restrictions to how the state of this connector may be
108 * @DRM_CONNECTOR_REGISTERED: The connector has been fully initialized
111 * state of this connector may be modified.
116 * @DRM_CONNECTOR_UNREGISTERED: The connector has either been exposed
118 * userspace, or the connector was unregistered before it had a chance
120 * @DRM_CONNECTOR_INITIALIZING state). When a connector is
124 * - An unregistered connector may only have its DPMS changed from
129 * disabling a CRTC on an unregistered connector is OK, but enabling
131 * - Removing a CRTC from an unregistered connector is OK, but new
132 * CRTCs may never be assigned to an unregistered connector.
151 * connector.
154 * "TV mode" connector property.
327 * enum drm_link_status - connector's link_status property value
329 * This enum is used as the connector's link status property value.
351 * orientation" connector prop will not be
678 * @panel_orientation: Read only connector property for built-in panels,
826 * struct drm_connector_tv_margins - TV connector related margins
854 * struct drm_tv_connector_state - TV connector related states
882 * struct drm_connector_state - mutable connector state
885 /** @connector: backpointer to the connector */
886 struct drm_connector *connector; member
889 * @crtc: CRTC to connect connector to, NULL if disabled.
915 * @link_status: Connector link_status to keep track of whether link is
930 /** @tv: TV connector state */
936 * This tracks whether a connector is aware of the self refresh state.
937 * It should be set to true for those connector implementations which
948 * @picture_aspect_ratio: Connector property to control the
957 * @content_type: Connector property to control the
965 * @hdcp_content_type: Connector property to pass the type of
971 * @scaling_mode: Connector property to control the
977 * @content_protection: Connector property to request content
983 * @colorspace: State variable for Connector property to request
992 * Holds the framebuffer and out-fence for a writeback connector. As
1003 * @max_requested_bpc: Connector property to limit the maximum bit
1009 * @max_bpc: Connector max_bpc based on the requested max_bpc property
1010 * and the connector bpc limitations obtained from edid.
1015 * @privacy_screen_sw_state: See :ref:`Standard Connector
1038 * Legacy entry point to set the per-connector DPMS state. Legacy DPMS
1039 * is exposed as a standard property on the connector, but diverted to
1041 * implement the 4 level DPMS support on the connector any more, but
1051 int (*dpms)(struct drm_connector *connector, int mode);
1056 * Reset connector hardware and software state to off. This function isn't
1063 void (*reset)(struct drm_connector *connector);
1068 * Check to see if anything is attached to the connector. The parameter
1070 * connector due to a user request. force can be used by the driver to
1073 * This callback is optional, if not implemented the connector will be
1080 * core entry point to probe connector state is @fill_modes.
1088 * state the connector is in. Drivers that need the underlying
1094 * drm_connector_status indicating the connector's status.
1096 enum drm_connector_status (*detect)(struct drm_connector *connector,
1103 * connector is forced to a certain state by userspace, either through
1111 * core entry point to probe connector state is @fill_modes.
1113 void (*force)(struct drm_connector *connector);
1128 * received for this output connector->edid must be NULL.
1138 int (*fill_modes)(struct drm_connector *connector, uint32_t max_width, uint32_t max_height);
1144 * connector.
1154 int (*set_property)(struct drm_connector *connector, struct drm_property *property,
1161 * interfaces attached to the connector, light backlight control, i2c,
1164 * core drm connector interfaces. Everything added from this callback
1173 int (*late_register)(struct drm_connector *connector);
1179 * userspace interfaces attached to the connector from
1186 void (*early_unregister)(struct drm_connector *connector);
1191 * Clean up connector resources. This is called at driver unload time
1193 * when a connector is being hot-unplugged for drivers that support
1194 * connector hotplugging (e.g. DisplayPort MST).
1196 void (*destroy)(struct drm_connector *connector);
1201 * Duplicate the current atomic state for this connector and return it.
1229 struct drm_connector_state *(*atomic_duplicate_state)(struct drm_connector *connector);
1239 void (*atomic_destroy_state)(struct drm_connector *connector,
1279 * asks for properties attached to this connector). No other validation
1284 int (*atomic_set_property)(struct drm_connector *connector,
1305 * properties attached to this connector).
1307 int (*atomic_get_property)(struct drm_connector *connector,
1327 * This will get called when a hotplug-event for a drm-connector
1330 void (*oob_hotplug_event)(struct drm_connector *connector);
1335 * Allows connectors to create connector-specific debugfs files.
1337 void (*debugfs_init)(struct drm_connector *connector, struct dentry *root);
1343 * Each connector can have an initial mode with additional options
1445 * Ignore the hotplug state of the connector, and force its
1463 * drm-connector "panel orientation" property override value,
1487 * struct drm_connector - central DRM connector control structure
1489 * Each connector may be connected to one or more CRTCs, or may be clonable by
1490 * another connector if they can share a CRTC. Each connector also has a specific
1504 * Drivers can set this to associate a fwnode with a connector, drivers
1523 * Connector entry in the global connector-list, used by
1535 * @mutex: Lock for general connector state, but currently only protects
1536 * @registered. Most of the connector state is still protected by
1542 * @index: Compacted connector index, which matches the position inside
1545 * connector.
1554 /** @connector_type_id: index into connector type enum */
1558 * Can this connector handle interlaced modes? Only used by
1564 * Can this connector handle doublescan? Only used by
1570 * Can this connector handle stereo modes? Only used by
1576 * @ycbcr_420_allowed : This bool indicates if this connector is
1584 * @registration_state: Is this connector initializing, exposed
1593 * Modes available on this connector (from fill_modes() + user).
1624 /** @funcs: connector control functions */
1634 /** @properties: property tracking for this connector */
1645 * query hardware support for variable refresh rate on a connector.
1646 * connector. Drivers can add the property to a connector by
1655 * @colorspace_property: Connector property to set the suitable
1669 * @max_bpc_property: Default connector property for the max bpc to be
1670 * driven out of the connector.
1674 /** @privacy_screen: drm_privacy_screen for this connector, or NULL. */
1682 * connector to control the integrated privacy screen.
1688 * connector to report the actual integrated privacy screen state.
1699 * Connector polling mode, a combination of
1702 * The connector generates hotplug events and doesn't need to be
1707 * Periodically poll the connector for connection.
1710 * Periodically poll the connector for disconnection, without
1711 * causing flickering even when the connector is in use. DACs should
1730 /** @cmdline_mode: mode line parsed from the kernel cmdline for this connector */
1748 /** @epoch_counter: used to detect any other changes in connector, besides status */
1753 * connector, drm_encoder_index() determines the index into the bitfield
1759 * @encoder: Currently bound encoder driving this connector, if any.
1787 * A connector usually has its associated ddc adapter. If a driver uses
1788 * this field, then an appropriate symbolic link is created in connector
1818 /** @debugfs_entry: debugfs directory for this connector */
1824 * Current atomic state for this connector.
1827 * nonblocking atomic commits access the current connector state without
1854 /** @has_tile: is this connector connected to a tiled monitor */
1875 * connector from any context, in conjunction with
1887 struct drm_connector *connector,
1891 struct drm_connector *connector,
1896 struct drm_connector *connector,
1900 void drm_connector_attach_edid_property(struct drm_connector *connector);
1901 int drm_connector_register(struct drm_connector *connector);
1902 void drm_connector_unregister(struct drm_connector *connector);
1903 int drm_connector_attach_encoder(struct drm_connector *connector,
1906 void drm_connector_cleanup(struct drm_connector *connector);
1908 static inline unsigned int drm_connector_index(const struct drm_connector *connector) in drm_connector_index() argument
1910 return connector->index; in drm_connector_index()
1913 static inline u32 drm_connector_mask(const struct drm_connector *connector) in drm_connector_mask() argument
1915 return 1 << connector->index; in drm_connector_mask()
1919 * drm_connector_lookup - lookup connector object
1922 * @id: connector object id
1924 * This function looks up the connector object specified by id
1937 * drm_connector_get - acquire a connector reference
1938 * @connector: DRM connector
1940 * This function increments the connector's refcount.
1942 static inline void drm_connector_get(struct drm_connector *connector) in drm_connector_get() argument
1944 drm_mode_object_get(&connector->base); in drm_connector_get()
1948 * drm_connector_put - release a connector reference
1949 * @connector: DRM connector
1951 * This function decrements the connector's reference count and frees the
1954 static inline void drm_connector_put(struct drm_connector *connector) in drm_connector_put() argument
1956 drm_mode_object_put(&connector->base); in drm_connector_put()
1960 * drm_connector_is_unregistered - has the connector been unregistered from
1962 * @connector: DRM connector
1964 * Checks whether or not @connector has been unregistered from userspace.
1967 * True if the connector was unregistered, false if the connector is
1971 drm_connector_is_unregistered(struct drm_connector *connector) in drm_connector_is_unregistered() argument
1973 return READ_ONCE(connector->registration_state) == in drm_connector_is_unregistered()
1994 void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector);
2005 int drm_connector_attach_scaling_mode_property(struct drm_connector *connector,
2008 struct drm_connector *connector);
2009 int drm_connector_attach_colorspace_property(struct drm_connector *connector);
2010 int drm_connector_attach_hdr_output_metadata_property(struct drm_connector *connector);
2014 int drm_mode_create_hdmi_colorspace_property(struct drm_connector *connector,
2016 int drm_mode_create_dp_colorspace_property(struct drm_connector *connector,
2021 int drm_connector_set_path_property(struct drm_connector *connector,
2023 int drm_connector_set_tile_property(struct drm_connector *connector);
2024 int drm_connector_update_edid_property(struct drm_connector *connector,
2026 void drm_connector_set_link_status_property(struct drm_connector *connector,
2029 struct drm_connector *connector, bool capable);
2031 struct drm_connector *connector,
2034 struct drm_connector *connector,
2038 struct drm_connector *connector,
2040 int drm_connector_attach_max_bpc_property(struct drm_connector *connector,
2045 struct drm_connector *connector, struct drm_privacy_screen *priv);
2083 * drm_connector_list_iter_end() call. If you want to use the connector later,
2098 bool drm_connector_has_possible_encoder(struct drm_connector *connector,
2104 * @connector: &struct drm_connector pointer used as cursor
2107 * Note that @connector is only valid within the list body, if you want to use
2108 * @connector after calling drm_connector_list_iter_end() then you need to grab
2111 #define drm_for_each_connector_iter(connector, iter) \ argument
2112 while ((connector = drm_connector_list_iter_next(iter)))
2115 * drm_connector_for_each_possible_encoder - iterate connector's possible encoders
2116 * @connector: &struct drm_connector pointer
2119 #define drm_connector_for_each_possible_encoder(connector, encoder) \ argument
2120 drm_for_each_encoder_mask(encoder, (connector)->dev, \
2121 (connector)->possible_encoders)