Lines Matching +full:bridge +full:- +full:enable

47  * enum drm_bridge_attach_flags - Flags for &drm_bridge_funcs.attach
51 * @DRM_BRIDGE_ATTACH_NO_CONNECTOR: When this flag is set the bridge
58 * struct drm_bridge_funcs - drm_bridge control functions
64 * This callback is invoked whenever our bridge is being attached to a
74 int (*attach)(struct drm_bridge *bridge,
80 * This callback is invoked whenever our bridge is being detached from a
85 void (*detach)(struct drm_bridge *bridge);
91 * bridge. This should be implemented if the bridge has some sort of
92 * restriction in the modes it can display. For example, a given bridge
109 * to look at anything else but the passed-in mode, and validate it
110 * against configuration-invariant hardward constraints. Any further
118 enum drm_mode_status (*mode_valid)(struct drm_bridge *bridge,
128 * &drm_bridge. The parameter adjusted_mode is the input mode the bridge
132 * This is the only hook that allows a bridge to reject a modeset. If
151 * that modes are filtered consistently put any bridge constraints and
159 bool (*mode_fixup)(struct drm_bridge *bridge,
165 * This callback should disable the bridge. It is called right before
167 * preceding element is a bridge this means it's called before that
168 * bridge's @disable vfunc. If the preceding element is a &drm_encoder
173 * The bridge can assume that the display pipe (i.e. clocks and timing
183 void (*disable)(struct drm_bridge *bridge);
188 * This callback should disable the bridge. It is called right after the
190 * element is a bridge this means it's called after that bridge's
196 * The bridge must assume that the display pipe (i.e. clocks and timing
207 void (*post_disable)(struct drm_bridge *bridge);
212 * This callback should set the given mode on the bridge. It is called
214 * pipeline has been called already. If the bridge is the first element
220 * first bridge in the chain. It can be different from the mode
222 * of the bridges chain, for instance when the first bridge in the chain
224 * bridge in the chain and is likely irrelevant for the other bridges.
235 void (*mode_set)(struct drm_bridge *bridge,
241 * This callback should enable the bridge. It is called right before
243 * preceding element is a bridge this means it's called before that
244 * bridge's @pre_enable function. If the preceding element is a
246 * &drm_encoder_helper_funcs.enable, &drm_encoder_helper_funcs.commit or
249 * The display pipe (i.e. clocks and timing signals) feeding this bridge
250 * will not yet be running when this callback is called. The bridge must
251 * not enable the display link feeding the next bridge in the chain (if
261 void (*pre_enable)(struct drm_bridge *bridge);
264 * @enable:
266 * This callback should enable the bridge. It is called right after
268 * preceding element is a bridge this means it's called after that
269 * bridge's @enable function. If the preceding element is a
271 * &drm_encoder_helper_funcs.enable, &drm_encoder_helper_funcs.commit or
274 * The bridge can assume that the display pipe (i.e. clocks and timing
276 * callback must enable the display link feeding the next bridge in the
279 * The @enable callback is optional.
286 void (*enable)(struct drm_bridge *bridge); member
291 * This callback should enable the bridge. It is called right before
293 * preceding element is a bridge this means it's called before that
294 * bridge's @atomic_pre_enable or @pre_enable function. If the preceding
298 * The display pipe (i.e. clocks and timing signals) feeding this bridge
299 * will not yet be running when this callback is called. The bridge must
300 * not enable the display link feeding the next bridge in the chain (if
305 void (*atomic_pre_enable)(struct drm_bridge *bridge,
311 * This callback should enable the bridge. It is called right after
313 * preceding element is a bridge this means it's called after that
314 * bridge's @atomic_enable or @enable function. If the preceding element
318 * The bridge can assume that the display pipe (i.e. clocks and timing
320 * callback must enable the display link feeding the next bridge in the
325 void (*atomic_enable)(struct drm_bridge *bridge,
330 * This callback should disable the bridge. It is called right before
332 * preceding element is a bridge this means it's called before that
333 * bridge's @atomic_disable or @disable vfunc. If the preceding element
337 * The bridge can assume that the display pipe (i.e. clocks and timing
342 void (*atomic_disable)(struct drm_bridge *bridge,
348 * This callback should disable the bridge. It is called right after the
350 * element is a bridge this means it's called after that bridge's
355 * The bridge must assume that the display pipe (i.e. clocks and timing
361 void (*atomic_post_disable)(struct drm_bridge *bridge,
367 * Duplicate the current bridge state object (which is guaranteed to be
368 * non-NULL).
370 * The atomic_duplicate_state hook is mandatory if the bridge
379 struct drm_bridge_state *(*atomic_duplicate_state)(struct drm_bridge *bridge);
384 * Destroy a bridge state object previously allocated by
387 * The atomic_destroy_state hook is mandatory if the bridge implements
393 void (*atomic_destroy_state)(struct drm_bridge *bridge,
399 * Return the supported bus formats on the output end of a bridge.
407 * This method is only called on the last element of the bridge chain
415 u32 *(*atomic_get_output_bus_fmts)(struct drm_bridge *bridge,
424 * Return the supported bus formats on the input end of a bridge for
435 * This method is called on all elements of the bridge chain as part of
439 * bus format negotiation on this element of the bridge without
443 * Bridge drivers that need to support being linked to bridges that are
449 * Note: Even if input format selection on the first bridge has no
455 u32 *(*atomic_get_input_bus_fmts)(struct drm_bridge *bridge,
465 * This method is responsible for checking bridge state correctness.
470 * order (from the last to the first bridge).
479 * field is set to the next bridge
481 * &drm_connector.display_info.bus_flags if the bridge is the last
487 int (*atomic_check)(struct drm_bridge *bridge,
495 * Reset the bridge to a predefined state (or retrieve its current
499 * The atomic_reset hook is mandatory if the bridge implements any of
508 * 1. The reset operation happens when the bridge is attached, not when
517 struct drm_bridge_state *(*atomic_reset)(struct drm_bridge *bridge);
522 * Check if anything is attached to the bridge output.
524 * This callback is optional, if not implemented the bridge will be
527 * DRM_BRIDGE_OP_DETECT flag in their &drm_bridge->ops.
531 * drm_connector_status indicating the bridge output status.
533 enum drm_connector_status (*detect)(struct drm_bridge *bridge);
541 * The @get_modes callback is mostly intended to support non-probeable
544 * &drm_bridge_funcs->get_edid callback instead.
547 * DRM_BRIDGE_OP_MODES flag in their &drm_bridge->ops.
550 * filling modes, and shall not be stored internally by bridge drivers
557 int (*get_modes)(struct drm_bridge *bridge,
566 * information for a display connected to the bridge output. Bridges
575 * DRM_BRIDGE_OP_EDID flag in their &drm_bridge->ops.
578 * retrieval and parsing, and shall not be stored internally by bridge
587 struct edid *(*get_edid)(struct drm_bridge *bridge,
593 * Notify the bridge of hot plug detection.
600 void (*hpd_notify)(struct drm_bridge *bridge,
606 * Enable hot plug detection. From now on the bridge shall call
612 * that support hot-plug notification without polling. Bridges that
614 * the DRM_BRIDGE_OP_HPD flag in their &drm_bridge->ops.
616 void (*hpd_enable)(struct drm_bridge *bridge);
621 * Disable hot plug detection. Once this function returns the bridge
626 * that support hot-plug notification without polling. Bridges that
628 * the DRM_BRIDGE_OP_HPD flag in their &drm_bridge->ops.
630 void (*hpd_disable)(struct drm_bridge *bridge);
635 * Allows bridges to create bridge-specific debugfs files.
637 void (*debugfs_init)(struct drm_bridge *bridge, struct dentry *root);
641 * struct drm_bridge_timings - timing information for the bridge
648 * this bridge requires (like pixel signal polarity). See also
649 * &drm_display_info->bus_flags.
662 * Defines the time in picoseconds taken for the bridge to sample the
669 * True if the bus operates in dual-link mode. The exact meaning is
670 * dependent on the bus type. For LVDS buses, this indicates that even-
671 * and odd-numbered pixels are received on separate links.
677 * enum drm_bridge_ops - Bitmask of operations supported by the bridge
681 * @DRM_BRIDGE_OP_DETECT: The bridge can detect displays connected to
683 * &drm_bridge_funcs->detect callback.
687 * @DRM_BRIDGE_OP_EDID: The bridge can retrieve the EDID of the display
689 * the &drm_bridge_funcs->get_edid callback.
693 * @DRM_BRIDGE_OP_HPD: The bridge can detect hot-plug and hot-unplug
695 * implement the &drm_bridge_funcs->hpd_enable and
696 * &drm_bridge_funcs->hpd_disable callbacks if they support enabling
697 * and disabling hot-plug detection dynamically.
701 * @DRM_BRIDGE_OP_MODES: The bridge can retrieve the modes supported
704 * this flag shall implement the &drm_bridge_funcs->get_modes callback.
710 * struct drm_bridge - central DRM bridge control structure
715 /** @dev: DRM device this bridge belongs to */
717 /** @encoder: encoder to which this bridge is connected */
719 /** @chain_node: used to form a bridge chain */
721 /** @of_node: device node pointer to the bridge */
728 * the timing specification for the bridge, if any (may be NULL)
733 /** @driver_private: pointer to the bridge driver's internal context */
735 /** @ops: bitmask of operations supported by the bridge */
738 * @type: Type of the connection at the bridge output
744 * @interlace_allowed: Indicate that the bridge can handle interlaced
749 * @pre_enable_prev_first: The bridge requires that the prev
750 * bridge @pre_enable function is called before its @pre_enable,
783 void drm_bridge_add(struct drm_bridge *bridge);
784 int devm_drm_bridge_add(struct device *dev, struct drm_bridge *bridge);
785 void drm_bridge_remove(struct drm_bridge *bridge);
786 int drm_bridge_attach(struct drm_encoder *encoder, struct drm_bridge *bridge,
800 * drm_bridge_get_next_bridge() - Get the next bridge in the chain
801 * @bridge: bridge object
804 * the next bridge in the chain after @bridge, or NULL if @bridge is the last.
807 drm_bridge_get_next_bridge(struct drm_bridge *bridge) in drm_bridge_get_next_bridge() argument
809 if (list_is_last(&bridge->chain_node, &bridge->encoder->bridge_chain)) in drm_bridge_get_next_bridge()
812 return list_next_entry(bridge, chain_node); in drm_bridge_get_next_bridge()
816 * drm_bridge_get_prev_bridge() - Get the previous bridge in the chain
817 * @bridge: bridge object
820 * the previous bridge in the chain, or NULL if @bridge is the first.
823 drm_bridge_get_prev_bridge(struct drm_bridge *bridge) in drm_bridge_get_prev_bridge() argument
825 if (list_is_first(&bridge->chain_node, &bridge->encoder->bridge_chain)) in drm_bridge_get_prev_bridge()
828 return list_prev_entry(bridge, chain_node); in drm_bridge_get_prev_bridge()
832 * drm_bridge_chain_get_first_bridge() - Get the first bridge in the chain
836 * the first bridge in the chain, or NULL if @encoder has no bridge attached
842 return list_first_entry_or_null(&encoder->bridge_chain, in drm_bridge_chain_get_first_bridge()
847 * drm_for_each_bridge_in_chain() - Iterate over all bridges present in a chain
849 * @bridge: a bridge pointer updated to point to the current bridge at each
852 * Iterate over all bridges present in the bridge chain attached to @encoder.
854 #define drm_for_each_bridge_in_chain(encoder, bridge) \ argument
855 list_for_each_entry(bridge, &(encoder)->bridge_chain, chain_node)
857 bool drm_bridge_chain_mode_fixup(struct drm_bridge *bridge,
861 drm_bridge_chain_mode_valid(struct drm_bridge *bridge,
864 void drm_bridge_chain_mode_set(struct drm_bridge *bridge,
868 int drm_atomic_bridge_chain_check(struct drm_bridge *bridge,
871 void drm_atomic_bridge_chain_disable(struct drm_bridge *bridge,
873 void drm_atomic_bridge_chain_post_disable(struct drm_bridge *bridge,
875 void drm_atomic_bridge_chain_pre_enable(struct drm_bridge *bridge,
877 void drm_atomic_bridge_chain_enable(struct drm_bridge *bridge,
881 drm_atomic_helper_bridge_propagate_bus_fmt(struct drm_bridge *bridge,
888 enum drm_connector_status drm_bridge_detect(struct drm_bridge *bridge);
889 int drm_bridge_get_modes(struct drm_bridge *bridge,
891 struct edid *drm_bridge_get_edid(struct drm_bridge *bridge,
893 void drm_bridge_hpd_enable(struct drm_bridge *bridge,
897 void drm_bridge_hpd_disable(struct drm_bridge *bridge);
898 void drm_bridge_hpd_notify(struct drm_bridge *bridge,
902 bool drm_bridge_is_panel(const struct drm_bridge *bridge);
906 void drm_panel_bridge_remove(struct drm_bridge *bridge);
908 struct drm_bridge *bridge);
916 struct drm_connector *drm_panel_bridge_connector(struct drm_bridge *bridge);
918 static inline bool drm_bridge_is_panel(const struct drm_bridge *bridge) in drm_bridge_is_panel() argument
924 struct drm_bridge *bridge) in drm_panel_bridge_set_orientation() argument
926 return -EINVAL; in drm_panel_bridge_set_orientation()
941 return ERR_PTR(-ENODEV); in devm_drm_of_get_bridge()
949 return ERR_PTR(-ENODEV); in drmm_of_get_bridge()