drivers/gpu/drm/amd/display/dc/opp/dcn35/dcn35_opp.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/dc/opp/dcn35/dcn35_opp.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/display/dc/opp/dcn35/dcn35_opp.c- Extension
.c- Size
- 2712 bytes
- Lines
- 67
- 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
dcn35_opp.hreg_helper.h
Detected Declarations
function filesfunction dcn35_opp_set_fgcgfunction dcn35_opp_read_reg_state
Annotated Snippet
#include "dcn35_opp.h"
#include "reg_helper.h"
#define REG(reg) ((const struct dcn35_opp_registers *)(oppn20->regs))->reg
#undef FN
#define FN(reg_name, field_name) \
((const struct dcn35_opp_shift *)(oppn20->opp_shift))->field_name, \
((const struct dcn35_opp_mask *)(oppn20->opp_mask))->field_name
#define CTX oppn20->base.ctx
void dcn35_opp_construct(struct dcn20_opp *oppn20, struct dc_context *ctx,
uint32_t inst, const struct dcn35_opp_registers *regs,
const struct dcn35_opp_shift *opp_shift,
const struct dcn35_opp_mask *opp_mask)
{
dcn20_opp_construct(oppn20, ctx, inst,
(const struct dcn20_opp_registers *)regs,
(const struct dcn20_opp_shift *)opp_shift,
(const struct dcn20_opp_mask *)opp_mask);
}
void dcn35_opp_set_fgcg(struct dcn20_opp *oppn20, bool enable)
{
REG_UPDATE(OPP_TOP_CLK_CONTROL, OPP_FGCG_REP_DIS, !enable);
}
void dcn35_opp_read_reg_state(struct output_pixel_processor *opp, struct dcn_opp_reg_state *opp_reg_state)
{
struct dcn20_opp *oppn20 = TO_DCN20_OPP(opp);
opp_reg_state->dpg_control = REG_READ(DPG_CONTROL);
opp_reg_state->fmt_control = REG_READ(FMT_CONTROL);
opp_reg_state->opp_abm_control = REG_READ(OPP_ABM_CONTROL);
opp_reg_state->opp_pipe_control = REG_READ(OPP_PIPE_CONTROL);
opp_reg_state->opp_pipe_crc_control = REG_READ(OPP_PIPE_CRC_CONTROL);
opp_reg_state->oppbuf_control = REG_READ(OPPBUF_CONTROL);
opp_reg_state->dscrm_dsc_forward_config = REG_READ(DSCRM_DSC_FORWARD_CONFIG);
}
Annotation
- Immediate include surface: `dcn35_opp.h`, `reg_helper.h`.
- Detected declarations: `function files`, `function dcn35_opp_set_fgcg`, `function dcn35_opp_read_reg_state`.
- 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.