drivers/gpu/drm/i915/display/intel_color_pipeline.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/display/intel_color_pipeline.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/i915/display/intel_color_pipeline.c- Extension
.c- Size
- 4881 bytes
- Lines
- 183
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
drm/drm_print.hintel_color.hintel_colorop.hintel_color_pipeline.hintel_de.hintel_display_types.hskl_universal_plane.h
Detected Declarations
function plane_has_3dlutfunction _intel_color_pipeline_plane_initfunction intel_color_pipeline_plane_init
Annotated Snippet
if (IS_ERR(colorop[i])) {
ret = PTR_ERR(colorop[i]);
goto cleanup;
}
prev = colorop[i];
}
list->type = colorop[0]->base.base.id;
list->name = kasprintf(GFP_KERNEL, "Color Pipeline %d", colorop[0]->base.base.id);
return 0;
cleanup:
while (--i >= 0)
intel_colorop_destroy(&colorop[i]->base);
return ret;
}
int intel_color_pipeline_plane_init(struct drm_plane *plane, enum pipe pipe)
{
struct drm_device *dev = plane->dev;
struct intel_display *display = to_intel_display(dev);
struct drm_prop_enum_list pipelines[MAX_COLOR_PIPELINES] = {};
int len = 0;
int ret = 0;
int i;
/* Currently expose pipeline only for HDR planes */
if (!icl_is_hdr_plane(display, to_intel_plane(plane)->id))
return 0;
/* Add pipeline consisting of transfer functions */
ret = _intel_color_pipeline_plane_init(plane, &pipelines[len], pipe);
if (ret)
goto out;
len++;
ret = drm_plane_create_color_pipeline_property(plane, pipelines, len);
for (i = 0; i < len; i++)
kfree(pipelines[i].name);
out:
return ret;
}
Annotation
- Immediate include surface: `drm/drm_print.h`, `intel_color.h`, `intel_colorop.h`, `intel_color_pipeline.h`, `intel_de.h`, `intel_display_types.h`, `skl_universal_plane.h`.
- Detected declarations: `function plane_has_3dlut`, `function _intel_color_pipeline_plane_init`, `function intel_color_pipeline_plane_init`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
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.