drivers/gpu/drm/msm/dp/dp_drm.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/msm/dp/dp_drm.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/msm/dp/dp_drm.c- Extension
.c- Size
- 9658 bytes
- Lines
- 330
- Domain
- Driver Families
- Bucket
- drivers/gpu
- Inferred role
- Driver Families: implementation source
- Status
- source 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/string_choices.hdrm/drm_atomic_helper.hdrm/drm_atomic.hdrm/drm_bridge.hdrm/drm_bridge_connector.hdrm/drm_crtc.hmsm_drv.hmsm_kms.hdp_audio.hdp_drm.h
Detected Declarations
function Copyrightfunction msm_dp_bridge_debugfs_initfunction msm_edp_bridge_atomic_checkfunction msm_edp_bridge_atomic_enablefunction msm_edp_bridge_atomic_disablefunction msm_edp_bridge_atomic_post_disablefunction msm_edp_bridge_mode_validfunction msm_edp_bridge_debugfs_initfunction msm_dp_bridge_init
Annotated Snippet
if (rc < 0) {
DRM_ERROR("failed to attach panel bridge: %d\n", rc);
return rc;
}
}
msm_dp_display->bridge = bridge;
return 0;
}
/* connector initialization */
struct drm_connector *msm_dp_drm_connector_init(struct msm_dp *msm_dp_display,
struct drm_encoder *encoder)
{
struct drm_connector *connector = NULL;
connector = drm_bridge_connector_init(msm_dp_display->drm_dev, encoder);
if (IS_ERR(connector))
return connector;
if (!msm_dp_display->is_edp)
drm_connector_attach_dp_subconnector_property(connector);
return connector;
}
Annotation
- Immediate include surface: `linux/string_choices.h`, `drm/drm_atomic_helper.h`, `drm/drm_atomic.h`, `drm/drm_bridge.h`, `drm/drm_bridge_connector.h`, `drm/drm_crtc.h`, `msm_drv.h`, `msm_kms.h`.
- Detected declarations: `function Copyright`, `function msm_dp_bridge_debugfs_init`, `function msm_edp_bridge_atomic_check`, `function msm_edp_bridge_atomic_enable`, `function msm_edp_bridge_atomic_disable`, `function msm_edp_bridge_atomic_post_disable`, `function msm_edp_bridge_mode_valid`, `function msm_edp_bridge_debugfs_init`, `function msm_dp_bridge_init`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source 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.