drivers/gpu/drm/sun4i/sun4i_layer.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/sun4i/sun4i_layer.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/sun4i/sun4i_layer.c- Extension
.c- Size
- 7393 bytes
- Lines
- 263
- 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.
- 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
drm/drm_atomic.hdrm/drm_atomic_helper.hdrm/drm_blend.hdrm/drm_gem_atomic_helper.hsun4i_backend.hsun4i_frontend.hsun4i_layer.hsunxi_engine.h
Detected Declarations
function Copyrightfunction sun4i_backend_layer_duplicate_statefunction sun4i_backend_layer_destroy_statefunction sun4i_backend_layer_atomic_disablefunction sun4i_backend_layer_atomic_updatefunction sun4i_layer_format_mod_supported
Annotated Snippet
if (IS_ERR(layer)) {
dev_err(drm->dev, "Couldn't initialize %s plane\n",
i ? "overlay" : "primary");
return ERR_CAST(layer);
}
planes[i] = &layer->plane;
}
return planes;
}
Annotation
- Immediate include surface: `drm/drm_atomic.h`, `drm/drm_atomic_helper.h`, `drm/drm_blend.h`, `drm/drm_gem_atomic_helper.h`, `sun4i_backend.h`, `sun4i_frontend.h`, `sun4i_layer.h`, `sunxi_engine.h`.
- Detected declarations: `function Copyright`, `function sun4i_backend_layer_duplicate_state`, `function sun4i_backend_layer_destroy_state`, `function sun4i_backend_layer_atomic_disable`, `function sun4i_backend_layer_atomic_update`, `function sun4i_layer_format_mod_supported`.
- 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.