drivers/media/platform/mediatek/mdp3/mdp_cfg_data.c
Source file repositories/reference/linux-study-clean/drivers/media/platform/mediatek/mdp3/mdp_cfg_data.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/platform/mediatek/mdp3/mdp_cfg_data.c- Extension
.c- Size
- 41149 bytes
- Lines
- 1419
- Domain
- Driver Families
- Bucket
- drivers/media
- 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
mtk-img-ipi.hmtk-mdp3-cfg.hmtk-mdp3-core.hmtk-mdp3-comp.hmtk-mdp3-regs.h
Detected Declarations
enum mt8183_mdp_comp_idenum mt8188_mdp_comp_idenum mt8195_mdp_comp_idfunction mdp_cfg_get_id_innerfunction mdp_cfg_get_id_publicfunction mdp_cfg_comp_is_dummy
Annotated Snippet
if (mdp_dev->mdp_data->comp_data[i].match.inner_id == inner_id) {
public_id = i;
return public_id;
}
}
err_public_id:
return public_id;
}
bool mdp_cfg_comp_is_dummy(struct mdp_dev *mdp_dev, s32 inner_id)
{
enum mtk_mdp_comp_id id = mdp_cfg_get_id_public(mdp_dev, inner_id);
enum mdp_comp_type type = mdp_dev->mdp_data->comp_data[id].match.type;
return (type == MDP_COMP_TYPE_DUMMY);
}
Annotation
- Immediate include surface: `mtk-img-ipi.h`, `mtk-mdp3-cfg.h`, `mtk-mdp3-core.h`, `mtk-mdp3-comp.h`, `mtk-mdp3-regs.h`.
- Detected declarations: `enum mt8183_mdp_comp_id`, `enum mt8188_mdp_comp_id`, `enum mt8195_mdp_comp_id`, `function mdp_cfg_get_id_inner`, `function mdp_cfg_get_id_public`, `function mdp_cfg_comp_is_dummy`.
- Atlas domain: Driver Families / drivers/media.
- 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.