Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/gpu/drm/i915/display/intel_dp.c intel_dp_compute_link_config_wide() -> intel_dp_link_required()

Type Parameter Key Value
PARAM_VALUE 4 link_bpp_x16 s32min-(-16),0,16-s32max
PARAM_VALUE 5 bw_overhead_flags 0
DATA_SOURCE 2 mode_clock r intel_dp_mode_clock
DATA_SOURCE 4 link_bpp_x16 r intel_dp_output_format_link_bpp_x16
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 2 mode_clock->crtc_clock
UNITS 3 mode_hdisplay unit_byte
HALF_LOCKED2 &_state->dev->mode_config.connection_mutex
HALF_LOCKED2 &_state->dev->mode_config.connection_mutex.mutex
HALF_LOCKED2 &client->modeset_mutex
HALF_LOCKED2 &dev->mode_config.connection_mutex
HALF_LOCKED2 &dev->mode_config.connection_mutex.mutex

drivers/gpu/drm/i915/display/intel_dp.c intel_dp_config_required_rate() -> intel_dp_link_required()

Type Parameter Key Value
PARAM_VALUE 4 link_bpp_x16 s32min-(-16),0-s32max
PARAM_VALUE 5 bw_overhead_flags 0
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 2 mode_clock
UNITS 2 mode_clock unit_byte
UNITS 3 mode_hdisplay unit_byte

drivers/gpu/drm/i915/display/intel_dp.c intel_dp_mode_valid_format() -> intel_dp_link_required()

Type Parameter Key Value
PARAM_VALUE 4 link_bpp_x16 s32min-(-16),0,16-s32max
PARAM_VALUE 5 bw_overhead_flags 0
DATA_SOURCE 2 mode_clock $2
DATA_SOURCE 4 link_bpp_x16 r intel_dp_mode_min_link_bpp_x16
RX_PATH
TASK_NOT_RUNNING
UNITS 2 mode_clock unit_byte
UNITS 3 mode_hdisplay unit_byte
HALF_LOCKED2 &_connector->dev->mode_config.connection_mutex
HALF_LOCKED2 &client->modeset_mutex
HALF_LOCKED2 &dev->mode_config.connection_mutex
HALF_LOCKED2 &dev->mode_config.mutex
HALF_LOCKED2 &drm->mode_config.mutex
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->lock

drivers/gpu/drm/i915/display/intel_dp.c is_bw_sufficient_for_dsc_config() -> intel_dp_link_required()

Type Parameter Key Value
PARAM_VALUE 4 link_bpp_x16 1-s32max
PARAM_VALUE 5 bw_overhead_flags 0,5,8,13
CAPPED_DATA 4 link_bpp_x16 1
DATA_SOURCE 0 link_clock $1
DATA_SOURCE 1 lane_count $2
DATA_SOURCE 2 mode_clock $3
DATA_SOURCE 3 mode_hdisplay $4
DATA_SOURCE 4 link_bpp_x16 $6
DATA_SOURCE 5 bw_overhead_flags $7
FUZZY_MAX 5 bw_overhead_flags 8
BIT_INFO 5 bw_overhead_flags 0x0,0xd
BIT_INFO 5 bw_overhead_flags 0x0,0xd
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 2 mode_clock
UNITS 2 mode_clock unit_byte
UNITS 3 mode_hdisplay unit_byte

drivers/gpu/drm/i915/display/intel_dp_link_training.c intel_dp_can_link_train_fallback_for_edp() -> intel_dp_link_required()

Type Parameter Key Value
PARAM_VALUE 4 link_bpp_x16 288
PARAM_VALUE 5 bw_overhead_flags 0
DATA_SOURCE 0 link_clock $1
DATA_SOURCE 1 lane_count $2
RX_PATH
TASK_NOT_RUNNING
UNITS 2 mode_clock unit_byte
UNITS 3 mode_hdisplay unit_byte

drivers/gpu/drm/i915/display/intel_dp_mst.c mst_connector_mode_valid_ctx() -> intel_dp_link_required()

Type Parameter Key Value
PARAM_VALUE 2 mode_clock 10000-s32max
PARAM_VALUE 3 mode_hdisplay 1-u16max
PARAM_VALUE 4 link_bpp_x16 0,128-129,131,135-143,160,192,240,288
PARAM_VALUE 5 bw_overhead_flags 5
CAPPED_DATA 3 mode_hdisplay 1
TASK_NOT_RUNNING
UNITS 2 mode_clock unit_byte
UNITS 3 mode_hdisplay unit_byte
HALF_LOCKED2 &_connector->dev->mode_config.connection_mutex
HALF_LOCKED2 &client->modeset_mutex
HALF_LOCKED2 &dev->mode_config.connection_mutex
HALF_LOCKED2 &dev->mode_config.mutex
HALF_LOCKED2 &drm->mode_config.mutex
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->lock