drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/display/dc/dce/dmub_abm.c- Extension
.c- Size
- 6531 bytes
- Lines
- 246
- 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
dmub_abm.hdmub_abm_lcd.hdc.hcore_types.hdmub_cmd.hdc_dmub_srv.hdmub/dmub_srv.h
Detected Declarations
function filesfunction dmub_abm_init_exfunction dmub_abm_get_current_backlight_exfunction dmub_abm_get_target_backlight_exfunction dmub_abm_set_level_exfunction dmub_abm_init_config_exfunction dmub_abm_set_pause_exfunction dmub_abm_save_restore_exfunction dmub_abm_set_pipe_exfunction dmub_abm_set_backlight_level_pwm_exfunction dmub_abm_constructfunction dmub_abm_destroy
Annotated Snippet
if (abm_dce == NULL) {
BREAK_TO_DEBUGGER();
return NULL;
}
dmub_abm_construct(abm_dce, ctx, regs, abm_shift, abm_mask);
return &abm_dce->base;
}
return NULL;
}
void dmub_abm_destroy(struct abm **abm)
{
struct dce_abm *abm_dce = TO_DMUB_ABM(*abm);
kfree(abm_dce);
*abm = NULL;
}
Annotation
- Immediate include surface: `dmub_abm.h`, `dmub_abm_lcd.h`, `dc.h`, `core_types.h`, `dmub_cmd.h`, `dc_dmub_srv.h`, `dmub/dmub_srv.h`.
- Detected declarations: `function files`, `function dmub_abm_init_ex`, `function dmub_abm_get_current_backlight_ex`, `function dmub_abm_get_target_backlight_ex`, `function dmub_abm_set_level_ex`, `function dmub_abm_init_config_ex`, `function dmub_abm_set_pause_ex`, `function dmub_abm_save_restore_ex`, `function dmub_abm_set_pipe_ex`, `function dmub_abm_set_backlight_level_pwm_ex`.
- 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.