drivers/gpu/drm/amd/display/dc/dwb/dcn35/dcn35_dwb.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/dc/dwb/dcn35/dcn35_dwb.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/display/dc/dwb/dcn35/dcn35_dwb.c- Extension
.c- Size
- 2100 bytes
- Lines
- 58
- 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
reg_helper.hdcn35_dwb.h
Detected Declarations
function filesfunction dcn35_dwbc_set_fgcg
Annotated Snippet
#include "reg_helper.h"
#include "dcn35_dwb.h"
#define REG(reg)\
dwbc30->dwbc_regs->reg
#define CTX \
dwbc30->base.ctx
#undef FN
#define FN(reg_name, field_name) \
((const struct dcn35_dwbc_shift *)(dwbc30->dwbc_shift))->field_name, \
((const struct dcn35_dwbc_mask *)(dwbc30->dwbc_mask)) \
->field_name
#define DC_LOGGER \
dwbc30->base.ctx->logger
void dcn35_dwbc_construct(struct dcn30_dwbc *dwbc30,
struct dc_context *ctx,
const struct dcn30_dwbc_registers *dwbc_regs,
const struct dcn35_dwbc_shift *dwbc_shift,
const struct dcn35_dwbc_mask *dwbc_mask,
int inst)
{
dcn30_dwbc_construct(dwbc30, ctx, dwbc_regs,
(const struct dcn30_dwbc_shift *)dwbc_shift,
(const struct dcn30_dwbc_mask *)dwbc_mask, inst);
}
void dcn35_dwbc_set_fgcg(struct dcn30_dwbc *dwbc30, bool enable)
{
REG_UPDATE(DWB_ENABLE_CLK_CTRL, DWB_FGCG_REP_DIS, !enable);
}
Annotation
- Immediate include surface: `reg_helper.h`, `dcn35_dwb.h`.
- Detected declarations: `function files`, `function dcn35_dwbc_set_fgcg`.
- 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.