drivers/gpu/drm/display/drm_bridge_connector.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/display/drm_bridge_connector.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/display/drm_bridge_connector.c- Extension
.c- Size
- 32390 bytes
- Lines
- 1068
- Domain
- Driver Families
- Bucket
- drivers/gpu
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/export.hlinux/kernel.hlinux/module.hlinux/of.hlinux/property.hlinux/slab.hdrm/drm_atomic_state_helper.hdrm/drm_bridge.hdrm/drm_bridge_connector.hdrm/drm_connector.hdrm/drm_device.hdrm/drm_edid.hdrm/drm_managed.hdrm/drm_modeset_helper_vtables.hdrm/drm_print.hdrm/drm_probe_helper.hdrm/display/drm_hdcp_helper.hdrm/display/drm_hdmi_audio_helper.hdrm/display/drm_hdmi_cec_helper.hdrm/display/drm_hdmi_helper.hdrm/display/drm_hdmi_state_helper.h
Detected Declarations
struct drm_bridge_connectorfunction drm_bridge_connector_hpd_notifyfunction drm_bridge_connector_handle_hpdfunction drm_bridge_connector_hpd_cbfunction drm_bridge_connector_oob_hotplug_eventfunction drm_bridge_connector_enable_hpdfunction drm_bridge_connector_disable_hpdfunction drm_bridge_connector_detectfunction drm_bridge_connector_forcefunction drm_bridge_connector_debugfs_initfunction list_for_each_entryfunction drm_bridge_connector_resetfunction drm_bridge_connector_get_modes_edidfunction drm_bridge_connector_get_modesfunction drm_bridge_connector_mode_validfunction drm_bridge_connector_atomic_checkfunction drm_bridge_connector_tmds_char_rate_validfunction drm_bridge_connector_clear_avi_infoframefunction drm_bridge_connector_write_avi_infoframefunction drm_bridge_connector_clear_hdmi_infoframefunction drm_bridge_connector_write_hdmi_infoframefunction drm_bridge_connector_clear_audio_infoframefunction drm_bridge_connector_write_audio_infoframefunction drm_bridge_connector_clear_hdr_drm_infoframefunction drm_bridge_connector_write_hdr_drm_infoframefunction drm_bridge_connector_clear_spd_infoframefunction drm_bridge_connector_write_spd_infoframefunction drm_bridge_connector_read_edidfunction drm_bridge_connector_audio_startupfunction drm_bridge_connector_audio_preparefunction drm_bridge_connector_audio_shutdownfunction drm_bridge_connector_audio_mute_streamfunction drm_bridge_connector_hdmi_cec_enablefunction drm_bridge_connector_hdmi_cec_log_addrfunction drm_bridge_connector_hdmi_cec_transmitfunction drm_bridge_connector_hdmi_cec_initfunction drm_bridge_connector_put_bridgesexport drm_bridge_connector_init
Annotated Snippet
struct drm_bridge_connector {
/**
* @base: The base DRM connector
*/
struct drm_connector base;
/**
* @encoder:
*
* The encoder at the start of the bridges chain.
*/
struct drm_encoder *encoder;
/**
* @bridge_edid:
*
* The last bridge in the chain (closest to the connector) that provides
* EDID read support, if any (see &DRM_BRIDGE_OP_EDID).
*/
struct drm_bridge *bridge_edid;
/**
* @bridge_hpd:
*
* The last bridge in the chain (closest to the connector) that provides
* hot-plug detection notification, if any (see &DRM_BRIDGE_OP_HPD).
*/
struct drm_bridge *bridge_hpd;
/**
* @bridge_detect:
*
* The last bridge in the chain (closest to the connector) that provides
* connector detection, if any (see &DRM_BRIDGE_OP_DETECT).
*/
struct drm_bridge *bridge_detect;
/**
* @bridge_modes:
*
* The last bridge in the chain (closest to the connector) that provides
* connector modes detection, if any (see &DRM_BRIDGE_OP_MODES).
*/
struct drm_bridge *bridge_modes;
/**
* @bridge_hdmi:
*
* The bridge in the chain that implements necessary support for the
* HDMI connector infrastructure, if any (see &DRM_BRIDGE_OP_HDMI).
*/
struct drm_bridge *bridge_hdmi;
/**
* @bridge_hdmi_audio:
*
* The bridge in the chain that implements necessary support for the
* HDMI Audio infrastructure, if any (see &DRM_BRIDGE_OP_HDMI_AUDIO).
*/
struct drm_bridge *bridge_hdmi_audio;
/**
* @bridge_dp_audio:
*
* The bridge in the chain that implements necessary support for the
* DisplayPort Audio infrastructure, if any (see
* &DRM_BRIDGE_OP_DP_AUDIO).
*/
struct drm_bridge *bridge_dp_audio;
/**
* @bridge_hdmi_cec:
*
* The bridge in the chain that implements CEC support, if any (see
* DRM_BRIDGE_OP_HDMI_CEC_NOTIFIER).
*/
struct drm_bridge *bridge_hdmi_cec;
/**
* @hdmi_funcs:
*
* The particular &drm_connector_hdmi_funcs implementation for this
* bridge connector.
*/
struct drm_connector_hdmi_funcs hdmi_funcs;
};
#define to_drm_bridge_connector(x) \
container_of(x, struct drm_bridge_connector, base)
/* -----------------------------------------------------------------------------
* Bridge Connector Hot-Plug Handling
*/
static void drm_bridge_connector_hpd_notify(struct drm_connector *connector,
enum drm_connector_status status)
{
struct drm_bridge_connector *bridge_connector =
to_drm_bridge_connector(connector);
Annotation
- Immediate include surface: `linux/export.h`, `linux/kernel.h`, `linux/module.h`, `linux/of.h`, `linux/property.h`, `linux/slab.h`, `drm/drm_atomic_state_helper.h`, `drm/drm_bridge.h`.
- Detected declarations: `struct drm_bridge_connector`, `function drm_bridge_connector_hpd_notify`, `function drm_bridge_connector_handle_hpd`, `function drm_bridge_connector_hpd_cb`, `function drm_bridge_connector_oob_hotplug_event`, `function drm_bridge_connector_enable_hpd`, `function drm_bridge_connector_disable_hpd`, `function drm_bridge_connector_detect`, `function drm_bridge_connector_force`, `function drm_bridge_connector_debugfs_init`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.