Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_connector.c
- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
Smatch caller information:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c bpp_x16_from_pbn() -> dc_dsc_compute_config()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dsc_sink_caps | 4096-ptr_max |
| PARAM_VALUE | 2 | options | 2348320571981021184 |
| PARAM_VALUE | 2 | options->dsc_force_odm_hslice_override | 0-255 |
| PARAM_VALUE | 2 | options->force_dsc_when_not_needed | 0 |
| PARAM_VALUE | 2 | options->slice_height_granularity | 1 |
| PARAM_VALUE | 5 | link_encoding | 0-4 |
| PARAM_VALUE | 6 | dsc_cfg | 7950902555492519936 |
| DATA_SOURCE | 3 | target_bandwidth_kbps | r div_u64 |
| NOCHECK_CALL |
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c build_frl_mst_dsc_params() -> dc_dsc_compute_config()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dsc_sink_caps | 4096-ptr_max |
| PARAM_VALUE | 1 | dsc_sink_caps->is_dsc_supported | 1 |
| PARAM_VALUE | 1 | dsc_sink_caps->is_frl | 1 |
| PARAM_VALUE | 2 | options | 4155548836644982784 |
| PARAM_VALUE | 2 | options->dsc_force_odm_hslice_override | 0-255 |
| PARAM_VALUE | 2 | options->force_dsc_when_not_needed | 0 |
| PARAM_VALUE | 2 | options->slice_height_granularity | 1 |
| PARAM_VALUE | 3 | target_bandwidth_kbps | 1-u32max |
| PARAM_VALUE | 4 | timing | 4096-ptr_max |
| PARAM_VALUE | 4 | timing->flags.DSC | 0 |
| PARAM_VALUE | 5 | link_encoding | 0-4 |
| PARAM_VALUE | 6 | dsc_cfg | 4096-ptr_max |
| DATA_SOURCE | 3 | target_bandwidth_kbps | $4 |
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c dm_dp_mst_is_port_support_mode() -> dc_dsc_compute_config()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dsc_sink_caps | 4096-ptr_max |
| PARAM_VALUE | 2 | options | 4783083491796647936 |
| PARAM_VALUE | 2 | options->dsc_force_odm_hslice_override | 0-255 |
| PARAM_VALUE | 2 | options->force_dsc_when_not_needed | 0 |
| PARAM_VALUE | 2 | options->slice_height_granularity | 1 |
| PARAM_VALUE | 3 | target_bandwidth_kbps | 0-4320000 |
| PARAM_VALUE | 4 | timing | 4096-ptr_max |
| PARAM_VALUE | 5 | link_encoding | 0-4 |
| PARAM_VALUE | 6 | dsc_cfg | 4096-ptr_max |
| CAPPED_DATA | 3 | target_bandwidth_kbps | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c set_dsc_configs_from_fairness_vars() -> dc_dsc_compute_config()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dsc_sink_caps | 4096-ptr_max |
| PARAM_VALUE | 2 | options | 2847292520583303168 |
| PARAM_VALUE | 2 | options->dsc_force_odm_hslice_override | 0-255 |
| PARAM_VALUE | 2 | options->force_dsc_when_not_needed | 0 |
| PARAM_VALUE | 2 | options->slice_height_granularity | 1 |
| PARAM_VALUE | 3 | target_bandwidth_kbps | 0 |
| PARAM_VALUE | 5 | link_encoding | 0-4 |
| PARAM_VALUE | 6 | dsc_cfg | 4096-ptr_max |
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_connector.c apply_dsc_policy_for_edp() -> dc_dsc_compute_config()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dsc_sink_caps | 2156520120294821888 |
| PARAM_VALUE | 1 | dsc_sink_caps->bpp_increment_div | 0-2,4,8,16 |
| PARAM_VALUE | 1 | dsc_sink_caps->branch_overall_throughput_0_mps | 0,680,700-13350 |
| PARAM_VALUE | 1 | dsc_sink_caps->branch_overall_throughput_1_mps | 0,680,700-13350 |
| PARAM_VALUE | 1 | dsc_sink_caps->edp_max_bits_per_pixel | 0-u16max |
| PARAM_VALUE | 1 | dsc_sink_caps->is_dsc_supported | 1 |
| PARAM_VALUE | 1 | dsc_sink_caps->lb_bit_depth | 0,8-16 |
| PARAM_VALUE | 1 | dsc_sink_caps->slice_caps2.bits.NUM_SLICES_16 | 0 |
| PARAM_VALUE | 1 | dsc_sink_caps->throughput_mode_0_mps | 0-1062 |
| PARAM_VALUE | 1 | dsc_sink_caps->throughput_mode_1_mps | 0,170,340,400,450,500,550,600,650,680,700,750,800,850,900,950,1000,1200,1800 |
| PARAM_VALUE | 2 | options | 8364156206692761600 |
| PARAM_VALUE | 2 | options->dsc_force_odm_hslice_override | 0-255 |
| PARAM_VALUE | 2 | options->force_dsc_when_not_needed | 0 |
| PARAM_VALUE | 2 | options->slice_height_granularity | 1 |
| PARAM_VALUE | 3 | target_bandwidth_kbps | 0 |
| PARAM_VALUE | 4 | timing | 4096-ptr_max |
| PARAM_VALUE | 4 | timing->flags.DSC | 0 |
| PARAM_VALUE | 5 | link_encoding | 0-4 |
| PARAM_VALUE | 6 | dsc_cfg | 4674276849336520704 |
| PARAM_VALUE | 6 | dsc_cfg->bits_per_pixel | 0 |
| PARAM_VALUE | 6 | dsc_cfg->block_pred_enable | 0 |
| PARAM_VALUE | 6 | dsc_cfg->is_dp | 0 |
| PARAM_VALUE | 6 | dsc_cfg->is_frl | 0 |
| PARAM_VALUE | 6 | dsc_cfg->is_vic_all_bpp | 0 |
| PARAM_VALUE | 6 | dsc_cfg->linebuf_depth | 0 |
| PARAM_VALUE | 6 | dsc_cfg->mst_pbn | 0 |
| PARAM_VALUE | 6 | dsc_cfg->num_slices_h | 0 |
| PARAM_VALUE | 6 | dsc_cfg->num_slices_v | 0 |
| PARAM_VALUE | 6 | dsc_cfg->rc_buffer_size | 0 |
| PARAM_VALUE | 6 | dsc_cfg->rc_params_ovrd | 0 |
| PARAM_VALUE | 6 | dsc_cfg->total_chunk_kbytes | 0 |
| PARAM_VALUE | 6 | dsc_cfg->version_minor | 0 |
| PARAM_VALUE | 6 | dsc_cfg->ycbcr422_simple | 0 |
| DATA_SOURCE | 1 | dsc_sink_caps | $3 |
| FUZZY_MAX | 1 | dsc_sink_caps->edp_max_bits_per_pixel | 128 |
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_connector.c apply_dsc_policy_for_edp() -> dc_dsc_compute_config()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dsc_sink_caps | 2156520120294821888 |
| PARAM_VALUE | 1 | dsc_sink_caps->bpp_increment_div | 0-2,4,8,16 |
| PARAM_VALUE | 1 | dsc_sink_caps->branch_overall_throughput_0_mps | 0,680,700-13350 |
| PARAM_VALUE | 1 | dsc_sink_caps->branch_overall_throughput_1_mps | 0,680,700-13350 |
| PARAM_VALUE | 1 | dsc_sink_caps->edp_max_bits_per_pixel | 0-u16max |
| PARAM_VALUE | 1 | dsc_sink_caps->is_dsc_supported | 1 |
| PARAM_VALUE | 1 | dsc_sink_caps->lb_bit_depth | 0,8-16 |
| PARAM_VALUE | 1 | dsc_sink_caps->slice_caps2.bits.NUM_SLICES_16 | 0 |
| PARAM_VALUE | 1 | dsc_sink_caps->throughput_mode_0_mps | 0-1062 |
| PARAM_VALUE | 1 | dsc_sink_caps->throughput_mode_1_mps | 0,170,340,400,450,500,550,600,650,680,700,750,800,850,900,950,1000,1200,1800 |
| PARAM_VALUE | 2 | options | 8364156206692761600 |
| PARAM_VALUE | 2 | options->dsc_force_odm_hslice_override | 0-255 |
| PARAM_VALUE | 2 | options->force_dsc_when_not_needed | 0 |
| PARAM_VALUE | 2 | options->slice_height_granularity | 1 |
| PARAM_VALUE | 3 | target_bandwidth_kbps | 0,4320000 |
| PARAM_VALUE | 4 | timing | 4096-ptr_max |
| PARAM_VALUE | 4 | timing->flags.DSC | 0 |
| PARAM_VALUE | 5 | link_encoding | 0-4 |
| PARAM_VALUE | 6 | dsc_cfg | 4674276849336520704 |
| PARAM_VALUE | 6 | dsc_cfg->bits_per_pixel | 0 |
| PARAM_VALUE | 6 | dsc_cfg->block_pred_enable | 0 |
| PARAM_VALUE | 6 | dsc_cfg->is_dp | 0 |
| PARAM_VALUE | 6 | dsc_cfg->is_frl | 0 |
| PARAM_VALUE | 6 | dsc_cfg->is_vic_all_bpp | 0 |
| PARAM_VALUE | 6 | dsc_cfg->linebuf_depth | 0 |
| PARAM_VALUE | 6 | dsc_cfg->mst_pbn | 0 |
| PARAM_VALUE | 6 | dsc_cfg->num_slices_h | 0 |
| PARAM_VALUE | 6 | dsc_cfg->num_slices_v | 0 |
| PARAM_VALUE | 6 | dsc_cfg->rc_buffer_size | 0 |
| PARAM_VALUE | 6 | dsc_cfg->rc_params_ovrd | 0 |
| PARAM_VALUE | 6 | dsc_cfg->total_chunk_kbytes | 0 |
| PARAM_VALUE | 6 | dsc_cfg->version_minor | 0 |
| PARAM_VALUE | 6 | dsc_cfg->ycbcr422_simple | 0 |
| DATA_SOURCE | 1 | dsc_sink_caps | $3 |
| DATA_SOURCE | 3 | target_bandwidth_kbps | r dc_link_bandwidth_kbps |
| FUZZY_MAX | 1 | dsc_sink_caps->edp_max_bits_per_pixel | 128 |
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_connector.c apply_dsc_policy_for_stream() -> dc_dsc_compute_config()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dsc_sink_caps | 2156520120294821888 |
| PARAM_VALUE | 1 | dsc_sink_caps->bpp_increment_div | 0-2,4,8,16 |
| PARAM_VALUE | 1 | dsc_sink_caps->branch_max_line_width | 0-81600 |
| PARAM_VALUE | 1 | dsc_sink_caps->branch_overall_throughput_0_mps | 0,680,700-13350 |
| PARAM_VALUE | 1 | dsc_sink_caps->branch_overall_throughput_1_mps | 0,680,700-13350 |
| PARAM_VALUE | 1 | dsc_sink_caps->edp_max_bits_per_pixel | 0-u16max |
| PARAM_VALUE | 1 | dsc_sink_caps->is_dsc_supported | 1 |
| PARAM_VALUE | 1 | dsc_sink_caps->lb_bit_depth | 0,8-16 |
| PARAM_VALUE | 1 | dsc_sink_caps->slice_caps2.bits.NUM_SLICES_16 | 0 |
| PARAM_VALUE | 1 | dsc_sink_caps->throughput_mode_0_mps | 0-1062 |
| PARAM_VALUE | 1 | dsc_sink_caps->throughput_mode_1_mps | 0,170,340,400,450,500,550,600,650,680,700,750,800,850,900,950,1000,1200,1800 |
| PARAM_VALUE | 2 | options | 4781615023391191040 |
| PARAM_VALUE | 2 | options->dsc_force_odm_hslice_override | 0-255 |
| PARAM_VALUE | 2 | options->force_dsc_when_not_needed | 0 |
| PARAM_VALUE | 2 | options->slice_height_granularity | 1 |
| PARAM_VALUE | 3 | target_bandwidth_kbps | 0,4320000 |
| PARAM_VALUE | 4 | timing | 4096-ptr_max |
| PARAM_VALUE | 4 | timing->flags.DSC | 0 |
| PARAM_VALUE | 5 | link_encoding | 0-4 |
| PARAM_VALUE | 6 | dsc_cfg | 4096-ptr_max |
| DATA_SOURCE | 1 | dsc_sink_caps | $3 |
| DATA_SOURCE | 3 | target_bandwidth_kbps | r dc_link_bandwidth_kbps |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_connector.c apply_dsc_policy_for_stream() -> dc_dsc_compute_config()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dsc_sink_caps | 2156520120294821888 |
| PARAM_VALUE | 1 | dsc_sink_caps->bpp_increment_div | 0-2,4,8,16 |
| PARAM_VALUE | 1 | dsc_sink_caps->branch_max_line_width | 0-81600 |
| PARAM_VALUE | 1 | dsc_sink_caps->branch_overall_throughput_0_mps | 0,680,700-13350 |
| PARAM_VALUE | 1 | dsc_sink_caps->branch_overall_throughput_1_mps | 0,680,700-13350 |
| PARAM_VALUE | 1 | dsc_sink_caps->edp_max_bits_per_pixel | 0-u16max |
| PARAM_VALUE | 1 | dsc_sink_caps->is_dsc_supported | 1 |
| PARAM_VALUE | 1 | dsc_sink_caps->lb_bit_depth | 0,8-16 |
| PARAM_VALUE | 1 | dsc_sink_caps->slice_caps2.bits.NUM_SLICES_16 | 0 |
| PARAM_VALUE | 1 | dsc_sink_caps->throughput_mode_0_mps | 0-1062 |
| PARAM_VALUE | 1 | dsc_sink_caps->throughput_mode_1_mps | 0,170,340,400,450,500,550,600,650,680,700,750,800,850,900,950,1000,1200,1800 |
| PARAM_VALUE | 2 | options | 4781615023391191040 |
| PARAM_VALUE | 2 | options->dsc_force_odm_hslice_override | 0-255 |
| PARAM_VALUE | 2 | options->force_dsc_when_not_needed | 0 |
| PARAM_VALUE | 2 | options->slice_height_granularity | 1 |
| PARAM_VALUE | 3 | target_bandwidth_kbps | 1-4320000 |
| PARAM_VALUE | 4 | timing | 4096-ptr_max |
| PARAM_VALUE | 4 | timing->flags.DSC | 0 |
| PARAM_VALUE | 5 | link_encoding | 0-4 |
| PARAM_VALUE | 6 | dsc_cfg | 4096-ptr_max |
| CAPPED_DATA | 3 | target_bandwidth_kbps | 1 |
| DATA_SOURCE | 1 | dsc_sink_caps | $3 |
| FUZZY_MAX | 3 | target_bandwidth_kbps | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_connector.c apply_dsc_policy_for_stream() -> dc_dsc_compute_config()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | dsc_sink_caps | 2156520120294821888 |
| PARAM_VALUE | 1 | dsc_sink_caps->bpp_increment_div | 0-2,4,8,16 |
| PARAM_VALUE | 1 | dsc_sink_caps->branch_max_line_width | 0-81600 |
| PARAM_VALUE | 1 | dsc_sink_caps->branch_overall_throughput_0_mps | 0,680,700-13350 |
| PARAM_VALUE | 1 | dsc_sink_caps->branch_overall_throughput_1_mps | 0,680,700-13350 |
| PARAM_VALUE | 1 | dsc_sink_caps->edp_max_bits_per_pixel | 0-u16max |
| PARAM_VALUE | 1 | dsc_sink_caps->is_dsc_supported | 1 |
| PARAM_VALUE | 1 | dsc_sink_caps->lb_bit_depth | 0,8-16 |
| PARAM_VALUE | 1 | dsc_sink_caps->slice_caps2.bits.NUM_SLICES_16 | 0 |
| PARAM_VALUE | 1 | dsc_sink_caps->throughput_mode_0_mps | 0-1062 |
| PARAM_VALUE | 1 | dsc_sink_caps->throughput_mode_1_mps | 0,170,340,400,450,500,550,600,650,680,700,750,800,850,900,950,1000,1200,1800 |
| PARAM_VALUE | 2 | options | 4781615023391191040 |
| PARAM_VALUE | 2 | options->dsc_force_odm_hslice_override | 0-255 |
| PARAM_VALUE | 2 | options->force_dsc_when_not_needed | 0 |
| PARAM_VALUE | 2 | options->slice_height_granularity | 1 |
| PARAM_VALUE | 3 | target_bandwidth_kbps | 0,9000000,18000000,24000000,32000000,40000000,48000000,64000000,80000000,96000000 |
| PARAM_VALUE | 4 | timing | 4096-ptr_max |
| PARAM_VALUE | 4 | timing->flags.DSC | 0 |
| PARAM_VALUE | 5 | link_encoding | 0-4 |
| PARAM_VALUE | 6 | dsc_cfg | 4096-ptr_max |
| DATA_SOURCE | 1 | dsc_sink_caps | $3 |
| DATA_SOURCE | 3 | target_bandwidth_kbps | r dc_link_bw_kbps_from_raw_frl_link_rate_data |
| RX_PATH | |||
| TASK_NOT_RUNNING |