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.

Dependency Surface

Detected Declarations

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

Implementation Notes