drivers/gpu/drm/amd/display/dc/dwb/dcn30/dcn30_dwb_cm.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/dc/dwb/dcn30/dcn30_dwb_cm.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/display/dc/dwb/dcn30/dcn30_dwb_cm.c- Extension
.c- Size
- 13488 bytes
- Lines
- 396
- 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.
- 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
reg_helper.hfixed31_32.hresource.hbasics/conversion.hdwb.hdcn30_dwb.hdcn30_cm_common.hdcn10/dcn10_cm_common.h
Detected Declarations
function filesfunction dwb3_program_ogam_luta_settingsfunction dwb3_program_ogam_lutb_settingsfunction dwb3_get_ogam_currentfunction dwb3_configure_ogam_lutfunction dwb3_program_ogam_pwlfunction dwb3_program_ogam_lutfunction dwb3_ogam_set_input_transfer_funcfunction dwb3_program_gamut_remapfunction dwb3_set_gamut_remapfunction dwb3_program_hdr_mult
Annotated Snippet
if (current_mode == CM_GAMUT_REMAP_MODE_RAMA_COEFF) {
dwb3_program_gamut_remap(dwbc, arr_reg_val,
adjust.gamut_coef_format, CM_GAMUT_REMAP_MODE_RAMB_COEFF);
} else {
dwb3_program_gamut_remap(dwbc, arr_reg_val,
adjust.gamut_coef_format, CM_GAMUT_REMAP_MODE_RAMA_COEFF);
}
}
}
void dwb3_program_hdr_mult(
struct dwbc *dwbc,
const struct dc_dwb_params *params)
{
struct dcn30_dwbc *dwbc30 = TO_DCN30_DWBC(dwbc);
REG_UPDATE(DWB_HDR_MULT_COEF, DWB_HDR_MULT_COEF, params->hdr_mult);
}
Annotation
- Immediate include surface: `reg_helper.h`, `fixed31_32.h`, `resource.h`, `basics/conversion.h`, `dwb.h`, `dcn30_dwb.h`, `dcn30_cm_common.h`, `dcn10/dcn10_cm_common.h`.
- Detected declarations: `function files`, `function dwb3_program_ogam_luta_settings`, `function dwb3_program_ogam_lutb_settings`, `function dwb3_get_ogam_current`, `function dwb3_configure_ogam_lut`, `function dwb3_program_ogam_pwl`, `function dwb3_program_ogam_lut`, `function dwb3_ogam_set_input_transfer_func`, `function dwb3_program_gamut_remap`, `function dwb3_set_gamut_remap`.
- 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.