Lines Matching refs:dsc
68 struct dsc_compression_parameters_entry *dsc; member
2122 devdata->dsc = kmemdup(¶ms->data[index], in parse_compression_parameters()
2123 sizeof(*devdata->dsc), GFP_KERNEL); in parse_compression_parameters()
2671 devdata->dsc != NULL); in print_ddi_port()
3273 kfree(devdata->dsc); in intel_bios_driver_remove()
3487 struct dsc_compression_parameters_entry *dsc, in fill_dsc() argument
3490 struct drm_dsc_config *vdsc_cfg = &crtc_state->dsc.config; in fill_dsc()
3493 vdsc_cfg->dsc_version_major = dsc->version_major; in fill_dsc()
3494 vdsc_cfg->dsc_version_minor = dsc->version_minor; in fill_dsc()
3496 if (dsc->support_12bpc && dsc_max_bpc >= 12) in fill_dsc()
3498 else if (dsc->support_10bpc && dsc_max_bpc >= 10) in fill_dsc()
3500 else if (dsc->support_8bpc && dsc_max_bpc >= 8) in fill_dsc()
3508 crtc_state->dsc.compressed_bpp = min(crtc_state->pipe_bpp, in fill_dsc()
3509 VBT_DSC_MAX_BPP(dsc->max_bpp)); in fill_dsc()
3517 if (dsc->slices_per_line & BIT(2)) { in fill_dsc()
3518 crtc_state->dsc.slice_count = 4; in fill_dsc()
3519 } else if (dsc->slices_per_line & BIT(1)) { in fill_dsc()
3520 crtc_state->dsc.slice_count = 2; in fill_dsc()
3523 if (!(dsc->slices_per_line & BIT(0))) in fill_dsc()
3526 crtc_state->dsc.slice_count = 1; in fill_dsc()
3530 crtc_state->dsc.slice_count != 0) in fill_dsc()
3533 crtc_state->dsc.slice_count); in fill_dsc()
3539 vdsc_cfg->rc_model_size = drm_dsc_dp_rc_buffer_size(dsc->rc_buffer_block_size, in fill_dsc()
3540 dsc->rc_buffer_size); in fill_dsc()
3543 vdsc_cfg->line_buf_depth = VBT_DSC_LINE_BUFFER_DEPTH(dsc->line_buffer_depth); in fill_dsc()
3545 vdsc_cfg->block_pred_enable = dsc->block_prediction_enable; in fill_dsc()
3547 vdsc_cfg->slice_height = dsc->slice_height; in fill_dsc()
3566 if (!devdata->dsc) in intel_bios_get_dsc_params()
3570 fill_dsc(crtc_state, devdata->dsc, dsc_max_bpc); in intel_bios_get_dsc_params()