Lines Matching full:connector

50 	DRM_FORCE_ON_DIGITAL, /* for DVI-I use digital connector */
56 * This enum is used to track the connector status. There are no separate
61 * @connector_status_connected: The connector is definitely connected to
66 * @connector_status_disconnected: The connector isn't connected to a
69 * nothing there. It is driver-dependent whether a connector with this
74 * @connector_status_unknown: The connector's status could not be
76 * flicker (like load-detection when the connector is in use), or when a
78 * free CRTC). It should be possible to light up the connector with one
81 * there's not connector with @connector_status_connected.
90 * This enum is used to track the status of initializing a connector and
96 * @DRM_CONNECTOR_INITIALIZING: The connector has just been created,
98 * additional restrictions to how the state of this connector may be
104 * @DRM_CONNECTOR_REGISTERED: The connector has been fully initialized
107 * state of this connector may be modified.
112 * @DRM_CONNECTOR_UNREGISTERED: The connector has either been exposed
114 * userspace, or the connector was unregistered before it had a chance
116 * @DRM_CONNECTOR_INITIALIZING state). When a connector is
120 * - An unregistered connector may only have its DPMS changed from
125 * disabling a CRTC on an unregistered connector is OK, but enabling
127 * - Removing a CRTC from an unregistered connector is OK, but new
128 * CRTCs may never be assigned to an unregistered connector.
262 * enum drm_link_status - connector's link_status property value
264 * This enum is used as the connector's link status property value.
286 * orientation" connector prop will not be
504 * @panel_orientation: Read only connector property for built-in panels,
600 * struct drm_connector_tv_margins - TV connector related margins
628 * struct drm_tv_connector_state - TV connector related states
652 * struct drm_connector_state - mutable connector state
655 /** @connector: backpointer to the connector */
656 struct drm_connector *connector; member
659 * @crtc: CRTC to connect connector to, NULL if disabled.
685 * @link_status: Connector link_status to keep track of whether link is
700 /** @tv: TV connector state */
706 * This tracks whether a connector is aware of the self refresh state.
707 * It should be set to true for those connector implementations which
718 * @picture_aspect_ratio: Connector property to control the
727 * @content_type: Connector property to control the
735 * @hdcp_content_type: Connector property to pass the type of
741 * @scaling_mode: Connector property to control the
747 * @content_protection: Connector property to request content
753 * @colorspace: State variable for Connector property to request
762 * Holds the framebuffer and out-fence for a writeback connector. As
773 * @max_requested_bpc: Connector property to limit the maximum bit
779 * @max_bpc: Connector max_bpc based on the requested max_bpc property
780 * and the connector bpc limitations obtained from edid.
802 * Legacy entry point to set the per-connector DPMS state. Legacy DPMS
803 * is exposed as a standard property on the connector, but diverted to
805 * implement the 4 level DPMS support on the connector any more, but
815 int (*dpms)(struct drm_connector *connector, int mode);
820 * Reset connector hardware and software state to off. This function isn't
827 void (*reset)(struct drm_connector *connector);
832 * Check to see if anything is attached to the connector. The parameter
834 * connector due to a user request. force can be used by the driver to
837 * This callback is optional, if not implemented the connector will be
844 * core entry point to probe connector state is @fill_modes.
852 * state the connector is in. Drivers that need the underlying
858 * drm_connector_status indicating the connector's status.
860 enum drm_connector_status (*detect)(struct drm_connector *connector,
867 * connector is forced to a certain state by userspace, either through
875 * core entry point to probe connector state is @fill_modes.
877 void (*force)(struct drm_connector *connector);
892 * received for this output connector->edid must be NULL.
902 int (*fill_modes)(struct drm_connector *connector, uint32_t max_width, uint32_t max_height);
908 * connector.
918 int (*set_property)(struct drm_connector *connector, struct drm_property *property,
925 * interfaces attached to the connector, light backlight control, i2c,
928 * core drm connector interfaces. Everything added from this callback
937 int (*late_register)(struct drm_connector *connector);
943 * userspace interfaces attached to the connector from
950 void (*early_unregister)(struct drm_connector *connector);
955 * Clean up connector resources. This is called at driver unload time
957 * when a connector is being hot-unplugged for drivers that support
958 * connector hotplugging (e.g. DisplayPort MST).
960 void (*destroy)(struct drm_connector *connector);
965 * Duplicate the current atomic state for this connector and return it.
993 struct drm_connector_state *(*atomic_duplicate_state)(struct drm_connector *connector);
1003 void (*atomic_destroy_state)(struct drm_connector *connector,
1043 * asks for properties attached to this connector). No other validation
1048 int (*atomic_set_property)(struct drm_connector *connector,
1069 * properties attached to this connector).
1071 int (*atomic_get_property)(struct drm_connector *connector,
1092 * Each connector can have an initial mode with additional options
1187 * Ignore the hotplug state of the connector, and force its
1205 * drm-connector "panel orientation" property override value,
1217 * struct drm_connector - central DRM connector control structure
1219 * Each connector may be connected to one or more CRTCs, or may be clonable by
1220 * another connector if they can share a CRTC. Each connector also has a specific
1249 * @mutex: Lock for general connector state, but currently only protects
1250 * @registered. Most of the connector state is still protected by
1256 * @index: Compacted connector index, which matches the position inside
1259 * connector.
1268 /** @connector_type_id: index into connector type enum */
1272 * Can this connector handle interlaced modes? Only used by
1278 * Can this connector handle doublescan? Only used by
1284 * Can this connector handle stereo modes? Only used by
1290 * @ycbcr_420_allowed : This bool indicates if this connector is
1298 * @registration_state: Is this connector initializing, exposed
1307 * Modes available on this connector (from fill_modes() + user).
1338 /** @funcs: connector control functions */
1348 /** @properties: property tracking for this connector */
1359 * query hardware support for variable refresh rate on a connector.
1360 * connector. Drivers can add the property to a connector by
1369 * @colorspace_property: Connector property to set the suitable
1383 * @max_bpc_property: Default connector property for the max bpc to be
1384 * driven out of the connector.
1395 * Connector polling mode, a combination of
1398 * The connector generates hotplug events and doesn't need to be
1403 * Periodically poll the connector for connection.
1406 * Periodically poll the connector for disconnection, without
1407 * causing flickering even when the connector is in use. DACs should
1426 /** @cmdline_mode: mode line parsed from the kernel cmdline for this connector */
1432 /** @epoch_counter: used to detect any other changes in connector, besides status */
1437 * connector, drm_encoder_index() determines the index into the bitfield
1443 * @encoder: Currently bound encoder driving this connector, if any.
1468 * A connector usually has its associated ddc adapter. If a driver uses
1469 * this field, then an appropriate symbolic link is created in connector
1499 /** @debugfs_entry: debugfs directory for this connector */
1505 * Current atomic state for this connector.
1508 * nonblocking atomic commits access the current connector state without
1535 /** @has_tile: is this connector connected to a tiled monitor */
1556 * connector from any context, in conjunction with
1568 struct drm_connector *connector,
1572 struct drm_connector *connector,
1576 void drm_connector_attach_edid_property(struct drm_connector *connector);
1577 int drm_connector_register(struct drm_connector *connector);
1578 void drm_connector_unregister(struct drm_connector *connector);
1579 int drm_connector_attach_encoder(struct drm_connector *connector,
1582 void drm_connector_cleanup(struct drm_connector *connector);
1584 static inline unsigned int drm_connector_index(const struct drm_connector *connector) in drm_connector_index() argument
1586 return connector->index; in drm_connector_index()
1589 static inline u32 drm_connector_mask(const struct drm_connector *connector) in drm_connector_mask() argument
1591 return 1 << connector->index; in drm_connector_mask()
1595 * drm_connector_lookup - lookup connector object
1598 * @id: connector object id
1600 * This function looks up the connector object specified by id
1613 * drm_connector_get - acquire a connector reference
1614 * @connector: DRM connector
1616 * This function increments the connector's refcount.
1618 static inline void drm_connector_get(struct drm_connector *connector) in drm_connector_get() argument
1620 drm_mode_object_get(&connector->base); in drm_connector_get()
1624 * drm_connector_put - release a connector reference
1625 * @connector: DRM connector
1627 * This function decrements the connector's reference count and frees the
1630 static inline void drm_connector_put(struct drm_connector *connector) in drm_connector_put() argument
1632 drm_mode_object_put(&connector->base); in drm_connector_put()
1636 * drm_connector_is_unregistered - has the connector been unregistered from
1638 * @connector: DRM connector
1640 * Checks whether or not @connector has been unregistered from userspace.
1643 * True if the connector was unregistered, false if the connector is
1647 drm_connector_is_unregistered(struct drm_connector *connector) in drm_connector_is_unregistered() argument
1649 return READ_ONCE(connector->registration_state) == in drm_connector_is_unregistered()
1666 void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector);
1675 int drm_connector_attach_scaling_mode_property(struct drm_connector *connector,
1678 struct drm_connector *connector);
1679 int drm_connector_attach_colorspace_property(struct drm_connector *connector);
1680 int drm_connector_attach_hdr_output_metadata_property(struct drm_connector *connector);
1684 int drm_mode_create_hdmi_colorspace_property(struct drm_connector *connector);
1685 int drm_mode_create_dp_colorspace_property(struct drm_connector *connector);
1692 int drm_connector_set_path_property(struct drm_connector *connector,
1694 int drm_connector_set_tile_property(struct drm_connector *connector);
1695 int drm_connector_update_edid_property(struct drm_connector *connector,
1697 void drm_connector_set_link_status_property(struct drm_connector *connector,
1700 struct drm_connector *connector, bool capable);
1702 struct drm_connector *connector,
1705 struct drm_connector *connector,
1708 int drm_connector_attach_max_bpc_property(struct drm_connector *connector,
1746 * drm_connector_list_iter_end() call. If you want to use the connector later,
1761 bool drm_connector_has_possible_encoder(struct drm_connector *connector,
1766 * @connector: &struct drm_connector pointer used as cursor
1769 * Note that @connector is only valid within the list body, if you want to use
1770 * @connector after calling drm_connector_list_iter_end() then you need to grab
1773 #define drm_for_each_connector_iter(connector, iter) \ argument
1774 while ((connector = drm_connector_list_iter_next(iter)))
1777 * drm_connector_for_each_possible_encoder - iterate connector's possible encoders
1778 * @connector: &struct drm_connector pointer
1781 #define drm_connector_for_each_possible_encoder(connector, encoder) \ argument
1782 drm_for_each_encoder_mask(encoder, (connector)->dev, \
1783 (connector)->possible_encoders)