Lines Matching full:bridge

49 	 * @DRM_BRIDGE_ATTACH_NO_CONNECTOR: When this flag is set the bridge
62 * This callback is invoked whenever our bridge is being attached to a
72 int (*attach)(struct drm_bridge *bridge,
78 * This callback is invoked whenever our bridge is being detached from a
83 void (*detach)(struct drm_bridge *bridge);
89 * bridge. This should be implemented if the bridge has some sort of
90 * restriction in the modes it can display. For example, a given bridge
116 enum drm_mode_status (*mode_valid)(struct drm_bridge *bridge,
126 * &drm_bridge. The parameter adjusted_mode is the input mode the bridge
130 * This is the only hook that allows a bridge to reject a modeset. If
149 * that modes are filtered consistently put any bridge constraints and
157 bool (*mode_fixup)(struct drm_bridge *bridge,
163 * This callback should disable the bridge. It is called right before
165 * preceding element is a bridge this means it's called before that
166 * bridge's @disable vfunc. If the preceding element is a &drm_encoder
171 * The bridge can assume that the display pipe (i.e. clocks and timing
181 void (*disable)(struct drm_bridge *bridge);
186 * This callback should disable the bridge. It is called right after the
188 * element is a bridge this means it's called after that bridge's
194 * The bridge must assume that the display pipe (i.e. clocks and timing
205 void (*post_disable)(struct drm_bridge *bridge);
210 * This callback should set the given mode on the bridge. It is called
212 * pipeline has been called already. If the bridge is the first element
218 * first bridge in the chain. It can be different from the mode
220 * of the bridges chain, for instance when the first bridge in the chain
222 * bridge in the chain and is likely irrelevant for the other bridges.
233 void (*mode_set)(struct drm_bridge *bridge,
239 * This callback should enable the bridge. It is called right before
241 * preceding element is a bridge this means it's called before that
242 * bridge's @pre_enable function. If the preceding element is a
247 * The display pipe (i.e. clocks and timing signals) feeding this bridge
248 * will not yet be running when this callback is called. The bridge must
249 * not enable the display link feeding the next bridge in the chain (if
259 void (*pre_enable)(struct drm_bridge *bridge);
264 * This callback should enable the bridge. It is called right after
266 * preceding element is a bridge this means it's called after that
267 * bridge's @enable function. If the preceding element is a
272 * The bridge can assume that the display pipe (i.e. clocks and timing
274 * callback must enable the display link feeding the next bridge in the
284 void (*enable)(struct drm_bridge *bridge);
289 * This callback should enable the bridge. It is called right before
291 * preceding element is a bridge this means it's called before that
292 * bridge's @atomic_pre_enable or @pre_enable function. If the preceding
296 * The display pipe (i.e. clocks and timing signals) feeding this bridge
297 * will not yet be running when this callback is called. The bridge must
298 * not enable the display link feeding the next bridge in the chain (if
303 void (*atomic_pre_enable)(struct drm_bridge *bridge,
309 * This callback should enable the bridge. It is called right after
311 * preceding element is a bridge this means it's called after that
312 * bridge's @atomic_enable or @enable function. If the preceding element
316 * The bridge can assume that the display pipe (i.e. clocks and timing
318 * callback must enable the display link feeding the next bridge in the
323 void (*atomic_enable)(struct drm_bridge *bridge,
328 * This callback should disable the bridge. It is called right before
330 * preceding element is a bridge this means it's called before that
331 * bridge's @atomic_disable or @disable vfunc. If the preceding element
335 * The bridge can assume that the display pipe (i.e. clocks and timing
340 void (*atomic_disable)(struct drm_bridge *bridge,
346 * This callback should disable the bridge. It is called right after the
348 * element is a bridge this means it's called after that bridge's
353 * The bridge must assume that the display pipe (i.e. clocks and timing
359 void (*atomic_post_disable)(struct drm_bridge *bridge,
365 * Duplicate the current bridge state object (which is guaranteed to be
368 * The atomic_duplicate_state hook is mandatory if the bridge
377 struct drm_bridge_state *(*atomic_duplicate_state)(struct drm_bridge *bridge);
382 * Destroy a bridge state object previously allocated by
385 * The atomic_destroy_state hook is mandatory if the bridge implements
391 void (*atomic_destroy_state)(struct drm_bridge *bridge,
397 * Return the supported bus formats on the output end of a bridge.
405 * This method is only called on the last element of the bridge chain
413 u32 *(*atomic_get_output_bus_fmts)(struct drm_bridge *bridge,
422 * Return the supported bus formats on the input end of a bridge for
433 * This method is called on all elements of the bridge chain as part of
437 * bus format negotiation on this element of the bridge without
441 * Bridge drivers that need to support being linked to bridges that are
447 * Note: Even if input format selection on the first bridge has no
453 u32 *(*atomic_get_input_bus_fmts)(struct drm_bridge *bridge,
463 * This method is responsible for checking bridge state correctness.
468 * order (from the last to the first bridge).
477 * field is set to the next bridge
479 * &drm_connector.display_info.bus_flags if the bridge is the last
485 int (*atomic_check)(struct drm_bridge *bridge,
493 * Reset the bridge to a predefined state (or retrieve its current
497 * The atomic_reset hook is mandatory if the bridge implements any of
506 * 1. The reset operation happens when the bridge is attached, not when
515 struct drm_bridge_state *(*atomic_reset)(struct drm_bridge *bridge);
520 * Check if anything is attached to the bridge output.
522 * This callback is optional, if not implemented the bridge will be
529 * drm_connector_status indicating the bridge output status.
531 enum drm_connector_status (*detect)(struct drm_bridge *bridge);
548 * filling modes, and shall not be stored internally by bridge drivers
555 int (*get_modes)(struct drm_bridge *bridge,
564 * information for a display connected to the bridge output. Bridges
576 * retrieval, and shall not be stored internally by bridge drivers for
586 const struct drm_edid *(*edid_read)(struct drm_bridge *bridge,
595 * information for a display connected to the bridge output. Bridges
607 * retrieval and parsing, and shall not be stored internally by bridge
616 struct edid *(*get_edid)(struct drm_bridge *bridge,
622 * Notify the bridge of hot plug detection.
629 void (*hpd_notify)(struct drm_bridge *bridge,
635 * Enable hot plug detection. From now on the bridge shall call
645 void (*hpd_enable)(struct drm_bridge *bridge);
650 * Disable hot plug detection. Once this function returns the bridge
659 void (*hpd_disable)(struct drm_bridge *bridge);
664 * Allows bridges to create bridge-specific debugfs files.
666 void (*debugfs_init)(struct drm_bridge *bridge, struct dentry *root);
670 * struct drm_bridge_timings - timing information for the bridge
677 * this bridge requires (like pixel signal polarity). See also
691 * Defines the time in picoseconds taken for the bridge to sample the
706 * enum drm_bridge_ops - Bitmask of operations supported by the bridge
710 * @DRM_BRIDGE_OP_DETECT: The bridge can detect displays connected to
716 * @DRM_BRIDGE_OP_EDID: The bridge can retrieve the EDID of the display
722 * @DRM_BRIDGE_OP_HPD: The bridge can detect hot-plug and hot-unplug
730 * @DRM_BRIDGE_OP_MODES: The bridge can retrieve the modes supported
739 * struct drm_bridge - central DRM bridge control structure
744 /** @dev: DRM device this bridge belongs to */
746 /** @encoder: encoder to which this bridge is connected */
748 /** @chain_node: used to form a bridge chain */
751 /** @of_node: device node pointer to the bridge */
759 * the timing specification for the bridge, if any (may be NULL)
764 /** @driver_private: pointer to the bridge driver's internal context */
766 /** @ops: bitmask of operations supported by the bridge */
769 * @type: Type of the connection at the bridge output
775 * @interlace_allowed: Indicate that the bridge can handle interlaced
780 * @pre_enable_prev_first: The bridge requires that the prev
781 * bridge @pre_enable function is called before its @pre_enable,
814 void drm_bridge_add(struct drm_bridge *bridge);
815 int devm_drm_bridge_add(struct device *dev, struct drm_bridge *bridge);
816 void drm_bridge_remove(struct drm_bridge *bridge);
817 int drm_bridge_attach(struct drm_encoder *encoder, struct drm_bridge *bridge,
831 * drm_bridge_get_next_bridge() - Get the next bridge in the chain
832 * @bridge: bridge object
835 * the next bridge in the chain after @bridge, or NULL if @bridge is the last.
838 drm_bridge_get_next_bridge(struct drm_bridge *bridge) in drm_bridge_get_next_bridge() argument
840 if (list_is_last(&bridge->chain_node, &bridge->encoder->bridge_chain)) in drm_bridge_get_next_bridge()
843 return list_next_entry(bridge, chain_node); in drm_bridge_get_next_bridge()
847 * drm_bridge_get_prev_bridge() - Get the previous bridge in the chain
848 * @bridge: bridge object
851 * the previous bridge in the chain, or NULL if @bridge is the first.
854 drm_bridge_get_prev_bridge(struct drm_bridge *bridge) in drm_bridge_get_prev_bridge() argument
856 if (list_is_first(&bridge->chain_node, &bridge->encoder->bridge_chain)) in drm_bridge_get_prev_bridge()
859 return list_prev_entry(bridge, chain_node); in drm_bridge_get_prev_bridge()
863 * drm_bridge_chain_get_first_bridge() - Get the first bridge in the chain
867 * the first bridge in the chain, or NULL if @encoder has no bridge attached
880 * @bridge: a bridge pointer updated to point to the current bridge at each
883 * Iterate over all bridges present in the bridge chain attached to @encoder.
885 #define drm_for_each_bridge_in_chain(encoder, bridge) \ argument
886 list_for_each_entry(bridge, &(encoder)->bridge_chain, chain_node)
888 bool drm_bridge_chain_mode_fixup(struct drm_bridge *bridge,
892 drm_bridge_chain_mode_valid(struct drm_bridge *bridge,
895 void drm_bridge_chain_mode_set(struct drm_bridge *bridge,
899 int drm_atomic_bridge_chain_check(struct drm_bridge *bridge,
902 void drm_atomic_bridge_chain_disable(struct drm_bridge *bridge,
904 void drm_atomic_bridge_chain_post_disable(struct drm_bridge *bridge,
906 void drm_atomic_bridge_chain_pre_enable(struct drm_bridge *bridge,
908 void drm_atomic_bridge_chain_enable(struct drm_bridge *bridge,
912 drm_atomic_helper_bridge_propagate_bus_fmt(struct drm_bridge *bridge,
919 enum drm_connector_status drm_bridge_detect(struct drm_bridge *bridge);
920 int drm_bridge_get_modes(struct drm_bridge *bridge,
922 const struct drm_edid *drm_bridge_edid_read(struct drm_bridge *bridge,
924 struct edid *drm_bridge_get_edid(struct drm_bridge *bridge,
926 void drm_bridge_hpd_enable(struct drm_bridge *bridge,
930 void drm_bridge_hpd_disable(struct drm_bridge *bridge);
931 void drm_bridge_hpd_notify(struct drm_bridge *bridge,
935 bool drm_bridge_is_panel(const struct drm_bridge *bridge);
939 void drm_panel_bridge_remove(struct drm_bridge *bridge);
941 struct drm_bridge *bridge);
949 struct drm_connector *drm_panel_bridge_connector(struct drm_bridge *bridge);
951 static inline bool drm_bridge_is_panel(const struct drm_bridge *bridge) in drm_bridge_is_panel() argument
957 struct drm_bridge *bridge) in drm_panel_bridge_set_orientation() argument