/linux-6.1.9/drivers/gpu/drm/vc4/ |
D | vc4_kms.c | 31 struct drm_color_ctm *ctm; member 163 struct drm_color_ctm *ctm = ctm_state->ctm; in vc4_ctm_commit() local 167 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[0]), in vc4_ctm_commit() 169 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[3]), in vc4_ctm_commit() 171 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[6]), in vc4_ctm_commit() 174 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[1]), in vc4_ctm_commit() 176 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[4]), in vc4_ctm_commit() 178 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[7]), in vc4_ctm_commit() 181 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[2]), in vc4_ctm_commit() 183 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[5]), in vc4_ctm_commit() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_color.c | 182 static void __drm_ctm_to_dc_matrix(const struct drm_color_ctm *ctm, in __drm_ctm_to_dc_matrix() argument 204 val = ctm->matrix[i - (i / 4)]; in __drm_ctm_to_dc_matrix() 400 struct drm_color_ctm *ctm = NULL; in amdgpu_dm_update_crtc_color_mgmt() local 473 if (crtc->base.ctm) { in amdgpu_dm_update_crtc_color_mgmt() 474 ctm = (struct drm_color_ctm *)crtc->base.ctm->data; in amdgpu_dm_update_crtc_color_mgmt() 485 __drm_ctm_to_dc_matrix(ctm, stream->gamut_remap_matrix.matrix); in amdgpu_dm_update_crtc_color_mgmt()
|
D | amdgpu_dm_plane.c | 1357 if (dm_plane_state->ctm) in dm_drm_plane_duplicate_state() 1358 drm_property_blob_get(dm_plane_state->ctm); in dm_drm_plane_duplicate_state() 1432 drm_property_blob_put(dm_plane_state->ctm); in dm_drm_plane_destroy_state() 1491 &dm_plane_state->ctm, in dm_drm_plane_set_property() 1516 *val = (dm_plane_state->ctm) ? dm_plane_state->ctm->base.id : 0; in dm_drm_plane_get_property()
|
/linux-6.1.9/drivers/gpu/drm/omapdrm/ |
D | omap_crtc.c | 381 static void omap_crtc_cpr_coefs_from_ctm(const struct drm_color_ctm *ctm, in omap_crtc_cpr_coefs_from_ctm() argument 384 cpr->rr = omap_crtc_s31_32_to_s2_8(ctm->matrix[0]); in omap_crtc_cpr_coefs_from_ctm() 385 cpr->rg = omap_crtc_s31_32_to_s2_8(ctm->matrix[1]); in omap_crtc_cpr_coefs_from_ctm() 386 cpr->rb = omap_crtc_s31_32_to_s2_8(ctm->matrix[2]); in omap_crtc_cpr_coefs_from_ctm() 387 cpr->gr = omap_crtc_s31_32_to_s2_8(ctm->matrix[3]); in omap_crtc_cpr_coefs_from_ctm() 388 cpr->gg = omap_crtc_s31_32_to_s2_8(ctm->matrix[4]); in omap_crtc_cpr_coefs_from_ctm() 389 cpr->gb = omap_crtc_s31_32_to_s2_8(ctm->matrix[5]); in omap_crtc_cpr_coefs_from_ctm() 390 cpr->br = omap_crtc_s31_32_to_s2_8(ctm->matrix[6]); in omap_crtc_cpr_coefs_from_ctm() 391 cpr->bg = omap_crtc_s31_32_to_s2_8(ctm->matrix[7]); in omap_crtc_cpr_coefs_from_ctm() 392 cpr->bb = omap_crtc_s31_32_to_s2_8(ctm->matrix[8]); in omap_crtc_cpr_coefs_from_ctm() [all …]
|
/linux-6.1.9/drivers/gpu/drm/arm/ |
D | malidp_crtc.c | 209 struct drm_color_ctm *ctm; in malidp_crtc_atomic_check_ctm() local 215 if (!state->ctm) in malidp_crtc_atomic_check_ctm() 218 if (crtc->state->ctm && (crtc->state->ctm->base.id == in malidp_crtc_atomic_check_ctm() 219 state->ctm->base.id)) in malidp_crtc_atomic_check_ctm() 226 ctm = (struct drm_color_ctm *)state->ctm->data; in malidp_crtc_atomic_check_ctm() 227 for (i = 0; i < ARRAY_SIZE(ctm->matrix); ++i) { in malidp_crtc_atomic_check_ctm() 229 s64 val = ctm->matrix[i]; in malidp_crtc_atomic_check_ctm()
|
D | malidp_drv.c | 97 if (!crtc->state->ctm) { in malidp_atomic_commit_update_coloradj() 104 if (!old_state->ctm || (crtc->state->ctm->base.id != in malidp_atomic_commit_update_coloradj() 105 old_state->ctm->base.id)) in malidp_atomic_commit_update_coloradj()
|
/linux-6.1.9/drivers/gpu/drm/arm/display/komeda/ |
D | komeda_color_mgmt.c | 123 struct drm_color_ctm *ctm; in drm_ctm_to_coeffs() local 129 ctm = ctm_blob->data; in drm_ctm_to_coeffs() 132 coeffs[i] = drm_color_ctm_s31_32_to_qm_n(ctm->matrix[i], 3, 12); in drm_ctm_to_coeffs()
|
D | komeda_pipeline_state.c | 808 drm_ctm_to_coeffs(kcrtc_st->base.ctm, st->ctm_coeffs); in komeda_improc_validate()
|
/linux-6.1.9/drivers/gpu/drm/mediatek/ |
D | mtk_disp_ccorr.c | 112 struct drm_property_blob *blob = state->ctm; in mtk_ccorr_ctm_set() 113 struct drm_color_ctm *ctm; in mtk_ccorr_ctm_set() local 123 ctm = (struct drm_color_ctm *)blob->data; in mtk_ccorr_ctm_set() 124 input = ctm->matrix; in mtk_ccorr_ctm_set()
|
/linux-6.1.9/drivers/gpu/drm/tidss/ |
D | tidss_dispc.c | 2393 static void dispc_k2g_cpr_from_ctm(const struct drm_color_ctm *ctm, in dispc_k2g_cpr_from_ctm() argument 2399 cpr->m[CSC_RR] = dispc_S31_32_to_s2_8(ctm->matrix[0]); in dispc_k2g_cpr_from_ctm() 2400 cpr->m[CSC_RG] = dispc_S31_32_to_s2_8(ctm->matrix[1]); in dispc_k2g_cpr_from_ctm() 2401 cpr->m[CSC_RB] = dispc_S31_32_to_s2_8(ctm->matrix[2]); in dispc_k2g_cpr_from_ctm() 2402 cpr->m[CSC_GR] = dispc_S31_32_to_s2_8(ctm->matrix[3]); in dispc_k2g_cpr_from_ctm() 2403 cpr->m[CSC_GG] = dispc_S31_32_to_s2_8(ctm->matrix[4]); in dispc_k2g_cpr_from_ctm() 2404 cpr->m[CSC_GB] = dispc_S31_32_to_s2_8(ctm->matrix[5]); in dispc_k2g_cpr_from_ctm() 2405 cpr->m[CSC_BR] = dispc_S31_32_to_s2_8(ctm->matrix[6]); in dispc_k2g_cpr_from_ctm() 2406 cpr->m[CSC_BG] = dispc_S31_32_to_s2_8(ctm->matrix[7]); in dispc_k2g_cpr_from_ctm() 2407 cpr->m[CSC_BB] = dispc_S31_32_to_s2_8(ctm->matrix[8]); in dispc_k2g_cpr_from_ctm() [all …]
|
/linux-6.1.9/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_crtc.c | 718 struct drm_color_ctm *ctm; in _dpu_crtc_get_pcc_coeff() local 722 ctm = (struct drm_color_ctm *)state->ctm->data; in _dpu_crtc_get_pcc_coeff() 724 if (!ctm) in _dpu_crtc_get_pcc_coeff() 727 cfg->r.r = CONVERT_S3_15(ctm->matrix[0]); in _dpu_crtc_get_pcc_coeff() 728 cfg->g.r = CONVERT_S3_15(ctm->matrix[1]); in _dpu_crtc_get_pcc_coeff() 729 cfg->b.r = CONVERT_S3_15(ctm->matrix[2]); in _dpu_crtc_get_pcc_coeff() 731 cfg->r.g = CONVERT_S3_15(ctm->matrix[3]); in _dpu_crtc_get_pcc_coeff() 732 cfg->g.g = CONVERT_S3_15(ctm->matrix[4]); in _dpu_crtc_get_pcc_coeff() 733 cfg->b.g = CONVERT_S3_15(ctm->matrix[5]); in _dpu_crtc_get_pcc_coeff() 735 cfg->r.b = CONVERT_S3_15(ctm->matrix[6]); in _dpu_crtc_get_pcc_coeff() [all …]
|
/linux-6.1.9/drivers/gpu/drm/i915/display/ |
D | intel_color.c | 153 !crtc_state->hw.ctm && in crtc_state_is_legacy_gamma() 266 const struct drm_color_ctm *ctm = crtc_state->hw.ctm->data; in ilk_csc_convert_ctm() local 272 input = ctm_mult_by_limited(temp, ctm->matrix); in ilk_csc_convert_ctm() 274 input = ctm->matrix; in ilk_csc_convert_ctm() 321 if (crtc_state->hw.ctm) { in ilk_load_csc_matrix() 356 if (crtc_state->hw.ctm) { in icl_load_csc_matrix() 379 const struct drm_color_ctm *ctm = blob->data; in chv_load_cgm_csc() local 385 u64 abs_coeff = ((1ULL << 63) - 1) & ctm->matrix[i]; in chv_load_cgm_csc() 395 if (ctm->matrix[i] & (1ULL << 63)) in chv_load_cgm_csc() 1150 const struct drm_property_blob *ctm = crtc_state->hw.ctm; in chv_load_luts() local [all …]
|
D | intel_atomic.c | 250 if (crtc_state->hw.ctm) in intel_crtc_duplicate_state() 251 drm_property_blob_get(crtc_state->hw.ctm); in intel_crtc_duplicate_state() 276 drm_property_blob_put(crtc_state->hw.ctm); in intel_crtc_put_color_blobs()
|
D | intel_modeset_setup.c | 162 drm_property_replace_blob(&crtc_state->uapi.ctm, in intel_crtc_copy_hw_to_uapi_state() 163 crtc_state->hw.ctm); in intel_crtc_copy_hw_to_uapi_state()
|
D | intel_display_types.h | 1004 struct drm_property_blob *degamma_lut, *gamma_lut, *ctm; member
|
D | intel_display.c | 5070 drm_property_replace_blob(&crtc_state->hw.ctm, in intel_crtc_copy_uapi_to_hw_state_nomodeset() 5071 crtc_state->uapi.ctm); in intel_crtc_copy_uapi_to_hw_state_nomodeset() 5108 drm_property_replace_blob(&slave_crtc_state->hw.ctm, in copy_bigjoiner_crtc_state_nomodeset() 5109 master_crtc_state->hw.ctm); in copy_bigjoiner_crtc_state_nomodeset()
|
/linux-6.1.9/drivers/gpu/drm/ |
D | drm_atomic_state_helper.c | 142 if (state->ctm) in __drm_atomic_helper_crtc_duplicate_state() 143 drm_property_blob_get(state->ctm); in __drm_atomic_helper_crtc_duplicate_state() 216 drm_property_blob_put(state->ctm); in __drm_atomic_helper_crtc_destroy_state()
|
D | drm_atomic_uapi.c | 427 &state->ctm, in drm_atomic_crtc_set_property() 483 *val = (state->ctm) ? state->ctm->base.id : 0; in drm_atomic_crtc_get_property()
|
D | drm_color_mgmt.c | 332 replaced |= drm_property_replace_blob(&crtc_state->ctm, NULL); in drm_crtc_legacy_gamma_set()
|
/linux-6.1.9/drivers/gpu/drm/nouveau/dispnv50/ |
D | base907c.c | 138 const struct drm_color_ctm *ctm) in base907c_csc() argument 150 *val = csc_drm_to_base(ctm->matrix[j * 3 + i]); in base907c_csc()
|
D | wndw.c | 421 if (wndw->func->csc && asyh->state.ctm) { in nv50_wndw_atomic_check_lut() 422 const struct drm_color_ctm *ctm = asyh->state.ctm->data; in nv50_wndw_atomic_check_lut() local 423 wndw->func->csc(wndw, asyw, ctm); in nv50_wndw_atomic_check_lut()
|
/linux-6.1.9/include/drm/ |
D | drm_crtc.h | 267 struct drm_property_blob *ctm; member
|
/linux-6.1.9/Documentation/devicetree/bindings/arm/ |
D | arm,coresight-cti.yaml | 104 arm,cti-ctm-id: 264 arm,cti-ctm-id = <1>;
|
/linux-6.1.9/Documentation/gpu/ |
D | komeda-kms.rst | 357 Like set mode, gamma, ctm for KMS all target on CRTC-obj, but komeda needs
|
/linux-6.1.9/drivers/gpu/drm/arm/display/komeda/d71/ |
D | d71_component.c | 1070 if (crtc_st->ctm) { in d71_improc_update()
|