Lines Matching defs: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.
213 * enum drm_link_status - connector's link_status property value
215 * This enum is used as the connector's link status property value.
237 * orientation" connector prop will not be
455 * @panel_orientation: Read only connector property for built-in panels,
551 * struct drm_connector_tv_margins - TV connector related margins
579 * struct drm_tv_connector_state - TV connector related states
603 * struct drm_connector_state - mutable connector state
606 /** @connector: backpointer to the connector */
607 struct drm_connector *connector;
610 * @crtc: CRTC to connect connector to, NULL if disabled.
651 /** @tv: TV connector state */
657 * This tracks whether a connector is aware of the self refresh state.
658 * It should be set to true for those connector implementations which
713 * Holds the framebuffer and out-fence for a writeback connector. As
731 * and the connector bpc limitations obtained from edid.
753 * Legacy entry point to set the per-connector DPMS state. Legacy DPMS
754 * is exposed as a standard property on the connector, but diverted to
756 * implement the 4 level DPMS support on the connector any more, but
766 int (*dpms)(struct drm_connector *connector, int mode);
771 * Reset connector hardware and software state to off. This function isn't
778 void (*reset)(struct drm_connector *connector);
783 * Check to see if anything is attached to the connector. The parameter
785 * connector due to a user request. force can be used by the driver to
788 * This callback is optional, if not implemented the connector will be
795 * core entry point to probe connector state is @fill_modes.
804 * drm_connector_status indicating the connector's status.
806 enum drm_connector_status (*detect)(struct drm_connector *connector,
813 * connector is forced to a certain state by userspace, either through
821 * core entry point to probe connector state is @fill_modes.
823 void (*force)(struct drm_connector *connector);
838 * received for this output connector->edid must be NULL.
848 int (*fill_modes)(struct drm_connector *connector, uint32_t max_width, uint32_t max_height);
854 * connector.
864 int (*set_property)(struct drm_connector *connector, struct drm_property *property,
871 * interfaces attached to the connector, light backlight control, i2c,
874 * core drm connector interfaces. Everything added from this callback
883 int (*late_register)(struct drm_connector *connector);
889 * userspace interfaces attached to the connector from
896 void (*early_unregister)(struct drm_connector *connector);
901 * Clean up connector resources. This is called at driver unload time
903 * when a connector is being hot-unplugged for drivers that support
904 * connector hotplugging (e.g. DisplayPort MST).
906 void (*destroy)(struct drm_connector *connector);
911 * Duplicate the current atomic state for this connector and return it.
939 struct drm_connector_state *(*atomic_duplicate_state)(struct drm_connector *connector);
949 void (*atomic_destroy_state)(struct drm_connector *connector,
989 * asks for properties attached to this connector). No other validation
994 int (*atomic_set_property)(struct drm_connector *connector,
1015 * properties attached to this connector).
1017 int (*atomic_get_property)(struct drm_connector *connector,
1037 * This will get called when a hotplug-event for a drm-connector
1040 void (*oob_hotplug_event)(struct drm_connector *connector);
1046 * Each connector can have an initial mode with additional options
1141 * Ignore the hotplug state of the connector, and force its
1159 * drm-connector "panel orientation" property override value,
1171 * struct drm_connector - central DRM connector control structure
1173 * Each connector may be connected to one or more CRTCs, or may be clonable by
1174 * another connector if they can share a CRTC. Each connector also has a specific
1188 * Drivers can set this to associate a fwnode with a connector, drivers
1207 * Connector entry in the global connector-list, used by
1219 * @mutex: Lock for general connector state, but currently only protects
1220 * @registered. Most of the connector state is still protected by
1226 * @index: Compacted connector index, which matches the position inside
1229 * connector.
1238 /** @connector_type_id: index into connector type enum */
1242 * Can this connector handle interlaced modes? Only used by
1248 * Can this connector handle doublescan? Only used by
1254 * Can this connector handle stereo modes? Only used by
1260 * @ycbcr_420_allowed : This bool indicates if this connector is
1268 * @registration_state: Is this connector initializing, exposed
1277 * Modes available on this connector (from fill_modes() + user).
1308 /** @funcs: connector control functions */
1318 /** @properties: property tracking for this connector */
1329 * query hardware support for variable refresh rate on a connector.
1330 * connector. Drivers can add the property to a connector by
1353 * @max_bpc_property: Default connector property for the max bpc to be
1354 * driven out of the connector.
1368 * The connector generates hotplug events and doesn't need to be
1373 * Periodically poll the connector for connection.
1376 * Periodically poll the connector for disconnection, without
1377 * causing flickering even when the connector is in use. DACs should
1396 /** @cmdline_mode: mode line parsed from the kernel cmdline for this connector */
1402 /** @epoch_counter: used to detect any other changes in connector, besides status */
1407 * connector, drm_encoder_index() determines the index into the bitfield
1413 * @encoder: Currently bound encoder driving this connector, if any.
1438 * A connector usually has its associated ddc adapter. If a driver uses
1439 * this field, then an appropriate symbolic link is created in connector
1469 /** @debugfs_entry: debugfs directory for this connector */
1475 * Current atomic state for this connector.
1478 * nonblocking atomic commits access the current connector state without
1505 /** @has_tile: is this connector connected to a tiled monitor */
1526 * connector from any context, in conjunction with
1538 struct drm_connector *connector,
1542 struct drm_connector *connector,
1546 void drm_connector_attach_edid_property(struct drm_connector *connector);
1547 int drm_connector_register(struct drm_connector *connector);
1548 void drm_connector_unregister(struct drm_connector *connector);
1549 int drm_connector_attach_encoder(struct drm_connector *connector,
1552 void drm_connector_cleanup(struct drm_connector *connector);
1554 static inline unsigned int drm_connector_index(const struct drm_connector *connector)
1556 return connector->index;
1559 static inline u32 drm_connector_mask(const struct drm_connector *connector)
1561 return 1 << connector->index;
1565 * drm_connector_lookup - lookup connector object
1568 * @id: connector object id
1570 * This function looks up the connector object specified by id
1583 * drm_connector_get - acquire a connector reference
1584 * @connector: DRM connector
1586 * This function increments the connector's refcount.
1588 static inline void drm_connector_get(struct drm_connector *connector)
1590 drm_mode_object_get(&connector->base);
1594 * drm_connector_put - release a connector reference
1595 * @connector: DRM connector
1597 * This function decrements the connector's reference count and frees the
1600 static inline void drm_connector_put(struct drm_connector *connector)
1602 drm_mode_object_put(&connector->base);
1606 * drm_connector_is_unregistered - has the connector been unregistered from
1608 * @connector: DRM connector
1610 * Checks whether or not @connector has been unregistered from userspace.
1613 * True if the connector was unregistered, false if the connector is
1617 drm_connector_is_unregistered(struct drm_connector *connector)
1619 return READ_ONCE(connector->registration_state) ==
1637 void drm_connector_attach_dp_subconnector_property(struct drm_connector *connector);
1646 int drm_connector_attach_scaling_mode_property(struct drm_connector *connector,
1649 struct drm_connector *connector);
1651 int drm_mode_create_hdmi_colorspace_property(struct drm_connector *connector);
1652 int drm_mode_create_dp_colorspace_property(struct drm_connector *connector);
1659 int drm_connector_set_path_property(struct drm_connector *connector,
1661 int drm_connector_set_tile_property(struct drm_connector *connector);
1662 int drm_connector_update_edid_property(struct drm_connector *connector,
1664 void drm_connector_set_link_status_property(struct drm_connector *connector,
1667 struct drm_connector *connector, bool capable);
1669 struct drm_connector *connector,
1672 struct drm_connector *connector,
1675 int drm_connector_attach_max_bpc_property(struct drm_connector *connector,
1723 bool drm_connector_has_possible_encoder(struct drm_connector *connector,
1728 * @connector: &struct drm_connector pointer used as cursor
1731 * Note that @connector is only valid within the list body, if you want to use
1732 * @connector after calling drm_connector_list_iter_end() then you need to grab
1735 #define drm_for_each_connector_iter(connector, iter) \
1736 while ((connector = drm_connector_list_iter_next(iter)))
1739 * drm_connector_for_each_possible_encoder - iterate connector's possible encoders
1740 * @connector: &struct drm_connector pointer
1743 #define drm_connector_for_each_possible_encoder(connector, encoder) \
1744 drm_for_each_encoder_mask(encoder, (connector)->dev, \
1745 (connector)->possible_encoders)