drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_standalone_libraries/lib_frl_cap_check.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_standalone_libraries/lib_frl_cap_check.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_standalone_libraries/lib_frl_cap_check.h- Extension
.h- Size
- 2199 bytes
- Lines
- 91
- 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
dml2_external_lib_deps.h
Detected Declarations
struct lib_frl_cap_check_intermediatesstruct lib_frl_cap_check_paramsenum lib_frl_cap_check_pixel_encodingenum lib_frl_cap_check_borrow_modeenum lib_frl_cap_check_status
Annotated Snippet
struct lib_frl_cap_check_intermediates {
int c_frl_sb;
double overhead_sb;
double overhead_rs;
double overhead_map;
double overhead_min;
double overhead_max;
double f_pixel_clock_max;
double t_line;
double r_bit_min;
double r_frl_char_min;
double c_frl_line;
double ap;
double r_ap;
double avg_audio_packets_line;
int audio_packets_line;
int blank_audio_min;
};
struct lib_frl_cap_check_params {
int lanes;
double f_pixel_clock_nominal; /* Pixel Clock rate (Hz) */
double r_bit_nominal; /* FRL bitrate (bps) */
int audio_packet_type;
double f_audio; /* Audio rate (Hz) */
int h_active; /* Active pixels per line */
int h_blank; /* Blanking pixels per line */
int bpc; /* Bits per component */
enum lib_frl_cap_check_pixel_encoding pixel_encoding;
bool compressed;
bool bypass_hc_target_calc;
/* DSC parameters */
int slices;
int slice_width;
double bpp_target;
int layout; /* not supported */
int acat; /* not supported */
/* outputs */
int audio_packets_line;
/* inputs or outputs */
int hc_active_target;
int hc_blank_target;
enum lib_frl_cap_check_borrow_mode borrow_mode;
};
enum lib_frl_cap_check_status frl_cap_check(struct lib_frl_cap_check_params *params);
enum lib_frl_cap_check_status frl_cap_check_intermediates(struct lib_frl_cap_check_params *params, struct lib_frl_cap_check_intermediates *inter);
#endif
Annotation
- Immediate include surface: `dml2_external_lib_deps.h`.
- Detected declarations: `struct lib_frl_cap_check_intermediates`, `struct lib_frl_cap_check_params`, `enum lib_frl_cap_check_pixel_encoding`, `enum lib_frl_cap_check_borrow_mode`, `enum lib_frl_cap_check_status`.
- 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.