drivers/gpu/drm/amd/display/dc/dc_stream_priv.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/dc/dc_stream_priv.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/display/dc/dc_stream_priv.h- Extension
.h- Size
- 2746 bytes
- Lines
- 76
- 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
dc_stream.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#ifndef _DC_STREAM_PRIV_H_
#define _DC_STREAM_PRIV_H_
#include "dc_stream.h"
bool dc_stream_construct(struct dc_stream_state *stream,
struct dc_sink *dc_sink_data);
void dc_stream_destruct(struct dc_stream_state *stream);
void dc_stream_assign_stream_id(struct dc_stream_state *stream);
/*
* Finds the highest refresh rate that can be achieved
* from starting_freq while staying within flicker criteria
*/
int dc_stream_calculate_max_flickerless_refresh_rate(struct dc_stream_state *stream,
int starting_refresh_hz,
bool is_gaming);
/*
* Finds the lowest refresh rate that can be achieved
* from starting_freq while staying within flicker criteria
*/
int dc_stream_calculate_min_flickerless_refresh_rate(struct dc_stream_state *stream,
int starting_refresh_hz,
bool is_gaming);
/*
* Determines if there will be a flicker when moving between 2 refresh rates
*/
bool dc_stream_is_refresh_rate_range_flickerless(struct dc_stream_state *stream,
int hz1,
int hz2,
bool is_gaming);
/*
* Determines the max instant vtotal delta increase that can be applied without
* flickering for a given stream
*/
unsigned int dc_stream_get_max_flickerless_instant_vtotal_decrease(struct dc_stream_state *stream,
bool is_gaming);
/*
* Determines the max instant vtotal delta decrease that can be applied without
* flickering for a given stream
*/
unsigned int dc_stream_get_max_flickerless_instant_vtotal_increase(struct dc_stream_state *stream,
bool is_gaming);
#endif // _DC_STREAM_PRIV_H_
Annotation
- Immediate include surface: `dc_stream.h`.
- 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.