/linux/drivers/gpu/drm/vc4/ |
A D | vc4_kms.c | 31 struct drm_color_ctm *ctm; member 159 struct drm_color_ctm *ctm = ctm_state->ctm; in vc4_ctm_commit() local 163 VC4_SET_FIELD(vc4_ctm_s31_32_to_s0_9(ctm->matrix[0]), in vc4_ctm_commit() 487 struct drm_color_ctm *ctm; in vc4_ctm_atomic_check() local 492 if (!new_crtc_state->ctm && old_crtc_state->ctm) { in vc4_ctm_atomic_check() 501 if (new_crtc_state->ctm == old_crtc_state->ctm) in vc4_ctm_atomic_check() 511 if (new_crtc_state->ctm) { in vc4_ctm_atomic_check() 530 ctm = new_crtc_state->ctm->data; in vc4_ctm_atomic_check() 531 for (i = 0; i < ARRAY_SIZE(ctm->matrix); i++) { in vc4_ctm_atomic_check() 532 u64 val = ctm->matrix[i]; in vc4_ctm_atomic_check() [all …]
|
/linux/drivers/gpu/drm/omapdrm/ |
A D | omap_crtc.c | 385 cpr->rr = omap_crtc_s31_32_to_s2_8(ctm->matrix[0]); in omap_crtc_cpr_coefs_from_ctm() 386 cpr->rg = omap_crtc_s31_32_to_s2_8(ctm->matrix[1]); in omap_crtc_cpr_coefs_from_ctm() 387 cpr->rb = omap_crtc_s31_32_to_s2_8(ctm->matrix[2]); in omap_crtc_cpr_coefs_from_ctm() 388 cpr->gr = omap_crtc_s31_32_to_s2_8(ctm->matrix[3]); in omap_crtc_cpr_coefs_from_ctm() 389 cpr->gg = omap_crtc_s31_32_to_s2_8(ctm->matrix[4]); in omap_crtc_cpr_coefs_from_ctm() 390 cpr->gb = omap_crtc_s31_32_to_s2_8(ctm->matrix[5]); in omap_crtc_cpr_coefs_from_ctm() 391 cpr->br = omap_crtc_s31_32_to_s2_8(ctm->matrix[6]); in omap_crtc_cpr_coefs_from_ctm() 392 cpr->bg = omap_crtc_s31_32_to_s2_8(ctm->matrix[7]); in omap_crtc_cpr_coefs_from_ctm() 393 cpr->bb = omap_crtc_s31_32_to_s2_8(ctm->matrix[8]); in omap_crtc_cpr_coefs_from_ctm() 408 if (crtc->state->ctm) { in omap_crtc_write_crtc_properties() [all …]
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
A D | amdgpu_dm_color.c | 161 static void __drm_ctm_to_dc_matrix(const struct drm_color_ctm *ctm, in __drm_ctm_to_dc_matrix() argument 183 val = ctm->matrix[i - (i / 4)]; in __drm_ctm_to_dc_matrix() 344 struct drm_color_ctm *ctm = NULL; in amdgpu_dm_update_crtc_color_mgmt() local 417 if (crtc->base.ctm) { in amdgpu_dm_update_crtc_color_mgmt() 418 ctm = (struct drm_color_ctm *)crtc->base.ctm->data; in amdgpu_dm_update_crtc_color_mgmt() 429 __drm_ctm_to_dc_matrix(ctm, stream->gamut_remap_matrix.matrix); in amdgpu_dm_update_crtc_color_mgmt()
|
/linux/drivers/gpu/drm/arm/ |
A D | malidp_crtc.c | 208 struct drm_color_ctm *ctm; in malidp_crtc_atomic_check_ctm() local 214 if (!state->ctm) in malidp_crtc_atomic_check_ctm() 217 if (crtc->state->ctm && (crtc->state->ctm->base.id == in malidp_crtc_atomic_check_ctm() 218 state->ctm->base.id)) in malidp_crtc_atomic_check_ctm() 225 ctm = (struct drm_color_ctm *)state->ctm->data; in malidp_crtc_atomic_check_ctm() 226 for (i = 0; i < ARRAY_SIZE(ctm->matrix); ++i) { in malidp_crtc_atomic_check_ctm() 228 s64 val = ctm->matrix[i]; in malidp_crtc_atomic_check_ctm()
|
A 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/drivers/gpu/drm/arm/display/komeda/ |
A 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()
|
A D | komeda_pipeline_state.c | 808 drm_ctm_to_coeffs(kcrtc_st->base.ctm, st->ctm_coeffs); in komeda_improc_validate()
|
/linux/drivers/gpu/drm/mediatek/ |
A 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/drivers/gpu/drm/tidss/ |
A D | tidss_dispc.c | 2438 struct drm_color_ctm *ctm) in dispc_k2g_vp_set_ctm() argument 2442 if (ctm) { in dispc_k2g_vp_set_ctm() 2445 dispc_k2g_cpr_from_ctm(ctm, &cpr); in dispc_k2g_vp_set_ctm() 2504 struct drm_color_ctm *ctm) in dispc_k3_vp_set_ctm() argument 2508 if (ctm) { in dispc_k3_vp_set_ctm() 2511 dispc_csc_from_ctm(ctm, &csc); in dispc_k3_vp_set_ctm() 2526 struct drm_color_ctm *ctm = NULL; in dispc_vp_set_color_mgmt() local 2539 if (state->ctm) in dispc_vp_set_color_mgmt() 2540 ctm = (struct drm_color_ctm *)state->ctm->data; in dispc_vp_set_color_mgmt() 2543 dispc_k2g_vp_set_ctm(dispc, hw_videoport, ctm); in dispc_vp_set_color_mgmt() [all …]
|
/linux/drivers/gpu/drm/msm/disp/dpu1/ |
A D | dpu_crtc.c | 652 struct drm_color_ctm *ctm; in _dpu_crtc_get_pcc_coeff() local 656 ctm = (struct drm_color_ctm *)state->ctm->data; in _dpu_crtc_get_pcc_coeff() 658 if (!ctm) in _dpu_crtc_get_pcc_coeff() 661 cfg->r.r = CONVERT_S3_15(ctm->matrix[0]); in _dpu_crtc_get_pcc_coeff() 662 cfg->g.r = CONVERT_S3_15(ctm->matrix[1]); in _dpu_crtc_get_pcc_coeff() 663 cfg->b.r = CONVERT_S3_15(ctm->matrix[2]); in _dpu_crtc_get_pcc_coeff() 665 cfg->r.g = CONVERT_S3_15(ctm->matrix[3]); in _dpu_crtc_get_pcc_coeff() 666 cfg->g.g = CONVERT_S3_15(ctm->matrix[4]); in _dpu_crtc_get_pcc_coeff() 667 cfg->b.g = CONVERT_S3_15(ctm->matrix[5]); in _dpu_crtc_get_pcc_coeff() 669 cfg->r.b = CONVERT_S3_15(ctm->matrix[6]); in _dpu_crtc_get_pcc_coeff() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
A D | intel_atomic.c | 248 if (crtc_state->hw.ctm) in intel_crtc_duplicate_state() 249 drm_property_blob_get(crtc_state->hw.ctm); in intel_crtc_duplicate_state() 273 drm_property_blob_put(crtc_state->hw.ctm); in intel_crtc_put_color_blobs() 288 drm_property_replace_blob(&crtc_state->hw.ctm, in intel_crtc_copy_color_blobs() 289 from_crtc_state->uapi.ctm); in intel_crtc_copy_color_blobs()
|
A D | intel_color.c | 124 !crtc_state->hw.ctm && in crtc_state_is_legacy_gamma() 237 const struct drm_color_ctm *ctm = crtc_state->hw.ctm->data; in ilk_csc_convert_ctm() local 245 input = ctm->matrix; in ilk_csc_convert_ctm() 292 if (crtc_state->hw.ctm) { in ilk_load_csc_matrix() 331 if (crtc_state->hw.ctm) { in icl_load_csc_matrix() 1121 const struct drm_property_blob *ctm = crtc_state->hw.ctm; in chv_load_luts() local 1124 chv_load_cgm_csc(crtc, ctm); in chv_load_luts() 1359 if (crtc_state->hw.ctm) in chv_cgm_mode() 1499 crtc_state->hw.ctm) { in ivb_color_check() 1546 crtc_state->hw.ctm) { in glk_color_check() [all …]
|
A D | intel_display_types.h | 938 struct drm_property_blob *degamma_lut, *gamma_lut, *ctm; member
|
A D | intel_display.c | 6976 drm_property_replace_blob(&crtc_state->uapi.ctm, in intel_crtc_copy_hw_to_uapi_state() 6977 crtc_state->hw.ctm); in intel_crtc_copy_hw_to_uapi_state()
|
/linux/drivers/gpu/drm/ |
A D | drm_atomic_state_helper.c | 140 if (state->ctm) in __drm_atomic_helper_crtc_duplicate_state() 141 drm_property_blob_get(state->ctm); in __drm_atomic_helper_crtc_duplicate_state() 214 drm_property_blob_put(state->ctm); in __drm_atomic_helper_crtc_destroy_state()
|
A D | drm_atomic_uapi.c | 461 &state->ctm, in drm_atomic_crtc_set_property() 517 *val = (state->ctm) ? state->ctm->base.id : 0; in drm_atomic_crtc_get_property()
|
A D | drm_color_mgmt.c | 328 replaced |= drm_property_replace_blob(&crtc_state->ctm, NULL); in drm_crtc_legacy_gamma_set()
|
A D | drm_fb_helper.c | 1069 replaced |= drm_property_replace_blob(&crtc_state->ctm, NULL); in setcmap_atomic()
|
/linux/drivers/gpu/drm/nouveau/dispnv50/ |
A D | base907c.c | 142 const struct drm_color_ctm *ctm) in base907c_csc() argument 154 *val = csc_drm_to_base(ctm->matrix[j * 3 + i]); in base907c_csc()
|
A D | wndw.c | 422 if (wndw->func->csc && asyh->state.ctm) { in nv50_wndw_atomic_check_lut() 423 const struct drm_color_ctm *ctm = asyh->state.ctm->data; in nv50_wndw_atomic_check_lut() local 424 wndw->func->csc(wndw, asyw, ctm); in nv50_wndw_atomic_check_lut()
|
/linux/include/drm/ |
A D | drm_crtc.h | 280 struct drm_property_blob *ctm; member
|
/linux/Documentation/devicetree/bindings/arm/ |
A D | coresight-cti.yaml | 102 arm,cti-ctm-id: 262 arm,cti-ctm-id = <1>;
|
/linux/Documentation/gpu/ |
A D | komeda-kms.rst | 357 Like set mode, gamma, ctm for KMS all target on CRTC-obj, but komeda needs
|
/linux/drivers/gpu/drm/arm/display/komeda/d71/ |
A D | d71_component.c | 1070 if (crtc_st->ctm) { in d71_improc_update()
|