Home
last modified time | relevance | path

Searched refs:gamma_lut (Results 1 – 25 of 28) sorted by relevance

12

/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_color.c154 crtc_state->hw.gamma_lut && in crtc_state_is_legacy_gamma()
155 lut_is_legacy(crtc_state->hw.gamma_lut); in crtc_state_is_legacy_gamma()
584 const struct drm_property_blob *gamma_lut = crtc_state->hw.gamma_lut; in i9xx_load_luts() local
588 i9xx_load_lut_8(crtc, gamma_lut); in i9xx_load_luts()
615 const struct drm_property_blob *gamma_lut = crtc_state->hw.gamma_lut; in i965_load_luts() local
623 i9xx_load_lut_8(crtc, gamma_lut); in i965_load_luts()
625 i965_load_lut_10p6(crtc, gamma_lut); in i965_load_luts()
662 const struct drm_property_blob *gamma_lut = crtc_state->hw.gamma_lut; in ilk_load_luts() local
666 ilk_load_lut_8(crtc, gamma_lut); in ilk_load_luts()
669 ilk_load_lut_10(crtc, gamma_lut); in ilk_load_luts()
[all …]
Dintel_atomic.c252 if (crtc_state->hw.gamma_lut) in intel_crtc_duplicate_state()
253 drm_property_blob_get(crtc_state->hw.gamma_lut); in intel_crtc_duplicate_state()
275 drm_property_blob_put(crtc_state->hw.gamma_lut); in intel_crtc_put_color_blobs()
Dintel_crtc_state_dump.c304 pipe_config->hw.gamma_lut ? in intel_crtc_state_dump()
305 drm_color_lut_size(pipe_config->hw.gamma_lut) : 0); in intel_crtc_state_dump()
Dintel_modeset_setup.c160 drm_property_replace_blob(&crtc_state->uapi.gamma_lut, in intel_crtc_copy_hw_to_uapi_state()
161 crtc_state->hw.gamma_lut); in intel_crtc_copy_hw_to_uapi_state()
Dintel_display_types.h1004 struct drm_property_blob *degamma_lut, *gamma_lut, *ctm; member
/linux-6.1.9/drivers/gpu/drm/arm/
Dmalidp_crtc.c159 if (!state->color_mgmt_changed || !state->gamma_lut) in malidp_crtc_atomic_check_gamma()
162 if (crtc->state->gamma_lut && in malidp_crtc_atomic_check_gamma()
163 (crtc->state->gamma_lut->base.id == state->gamma_lut->base.id)) in malidp_crtc_atomic_check_gamma()
166 if (state->gamma_lut->length % sizeof(struct drm_color_lut)) in malidp_crtc_atomic_check_gamma()
169 lut_size = state->gamma_lut->length / sizeof(struct drm_color_lut); in malidp_crtc_atomic_check_gamma()
173 lut = (struct drm_color_lut *)state->gamma_lut->data; in malidp_crtc_atomic_check_gamma()
194 malidp_generate_gamma_table(state->gamma_lut, mc->gamma_coeffs); in malidp_crtc_atomic_check_gamma()
Dmalidp_drv.c69 if (!crtc->state->gamma_lut) { in malidp_atomic_commit_update_gamma()
77 if (!old_state->gamma_lut || (crtc->state->gamma_lut->base.id != in malidp_atomic_commit_update_gamma()
78 old_state->gamma_lut->base.id)) in malidp_atomic_commit_update_gamma()
/linux-6.1.9/drivers/gpu/drm/
Ddrm_fb_helper.c1044 struct drm_property_blob *gamma_lut; in setcmap_new_gamma_lut() local
1052 gamma_lut = drm_property_create_blob(dev, sizeof(*lut) * size, NULL); in setcmap_new_gamma_lut()
1053 if (IS_ERR(gamma_lut)) in setcmap_new_gamma_lut()
1054 return gamma_lut; in setcmap_new_gamma_lut()
1056 lut = gamma_lut->data; in setcmap_new_gamma_lut()
1080 return gamma_lut; in setcmap_new_gamma_lut()
1087 struct drm_property_blob *gamma_lut = NULL; in setcmap_atomic() local
1110 if (!gamma_lut) in setcmap_atomic()
1111 gamma_lut = setcmap_new_gamma_lut(crtc, cmap); in setcmap_atomic()
1112 if (IS_ERR(gamma_lut)) { in setcmap_atomic()
[all …]
Ddrm_atomic_state_helper.c144 if (state->gamma_lut) in __drm_atomic_helper_crtc_duplicate_state()
145 drm_property_blob_get(state->gamma_lut); in __drm_atomic_helper_crtc_duplicate_state()
217 drm_property_blob_put(state->gamma_lut); in __drm_atomic_helper_crtc_destroy_state()
Ddrm_atomic_uapi.c435 &state->gamma_lut, in drm_atomic_crtc_set_property()
485 *val = (state->gamma_lut) ? state->gamma_lut->base.id : 0; in drm_atomic_crtc_get_property()
Ddrm_color_mgmt.c333 replaced |= drm_property_replace_blob(&crtc_state->gamma_lut, in drm_crtc_legacy_gamma_set()
/linux-6.1.9/drivers/gpu/drm/mediatek/
Dmtk_disp_gamma.c65 if (state->gamma_lut) { in mtk_gamma_set_common()
70 lut = (struct drm_color_lut *)state->gamma_lut->data; in mtk_gamma_set_common()
/linux-6.1.9/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_color.c360 lut = __extract_blob_lut(crtc_state->gamma_lut, &size); in amdgpu_dm_verify_lut_sizes()
412 regamma_lut = __extract_blob_lut(crtc->base.gamma_lut, &regamma_size); in amdgpu_dm_update_crtc_color_mgmt()
/linux-6.1.9/drivers/gpu/drm/mgag200/
Dmgag200_mode.c579 struct drm_property_blob *new_gamma_lut = new_crtc_state->gamma_lut; in mgag200_crtc_helper_atomic_check()
617 if (crtc_state->gamma_lut) in mgag200_crtc_helper_atomic_flush()
618 mgag200_crtc_set_gamma(mdev, format, crtc_state->gamma_lut->data); in mgag200_crtc_helper_atomic_flush()
/linux-6.1.9/drivers/gpu/drm/vc4/
Dvc4_hvs.c245 struct drm_color_lut *lut = crtc_state->gamma_lut->data; in vc4_hvs_update_gamma_lut()
246 u32 length = drm_color_lut_size(crtc_state->gamma_lut); in vc4_hvs_update_gamma_lut()
628 if (crtc->state->gamma_lut) { in vc4_hvs_atomic_flush()
/linux-6.1.9/include/drm/
Ddrm_crtc.h280 struct drm_property_blob *gamma_lut; member
/linux-6.1.9/drivers/gpu/drm/armada/
Darmada_crtc.c135 struct drm_property_blob *blob = crtc->state->gamma_lut; in armada_drm_update_gamma()
421 if (crtc_state->gamma_lut && drm_color_lut_size(crtc_state->gamma_lut) != 256) in armada_drm_crtc_atomic_check()
/linux-6.1.9/drivers/gpu/drm/rockchip/
Drockchip_drm_vop.c1231 struct drm_color_lut *lut = crtc->state->gamma_lut->data; in vop_crtc_write_gamma_lut()
1255 if (!state->gamma_lut || !VOP_HAS_REG(vop, common, update_gamma_lut)) { in vop_crtc_gamma_set()
1276 if (!state->gamma_lut) in vop_crtc_gamma_set()
1454 if (crtc->state->gamma_lut) in vop_crtc_atomic_enable()
1496 crtc_state->gamma_lut) { in vop_crtc_atomic_check()
1499 len = drm_color_lut_size(crtc_state->gamma_lut); in vop_crtc_atomic_check()
/linux-6.1.9/drivers/gpu/drm/nouveau/dispnv50/
Dhead.c59 asyh->state.gamma_lut, in nv50_head_flush_set_wndw()
233 struct drm_property_blob *olut = asyh->state.gamma_lut, in nv50_head_atomic_check_lut()
Dwndw.c387 if (!(ilut = asyh->state.gamma_lut)) { in nv50_wndw_atomic_check_lut()
/linux-6.1.9/drivers/gpu/drm/atmel-hlcdc/
Datmel_hlcdc_plane.c426 if (!crtc->state->color_mgmt_changed || !crtc->state->gamma_lut) in atmel_hlcdc_plane_update_clut()
429 lut = (struct drm_color_lut *)crtc->state->gamma_lut->data; in atmel_hlcdc_plane_update_clut()
/linux-6.1.9/drivers/gpu/drm/ingenic/
Dingenic-drm-drv.c344 if (crtc_state->gamma_lut && in ingenic_drm_crtc_atomic_check()
345 drm_color_lut_size(crtc_state->gamma_lut) != ARRAY_SIZE(priv->dma_hwdescs->palette)) { in ingenic_drm_crtc_atomic_check()
726 ingenic_drm_update_palette(priv, crtc_state->gamma_lut->data); in ingenic_drm_plane_atomic_update()
/linux-6.1.9/drivers/gpu/drm/rcar-du/
Drcar_du_crtc.c497 struct drm_property_blob *drm_lut = state->gamma_lut; in rcar_du_cmm_check()
516 struct drm_property_blob *drm_lut = crtc->state->gamma_lut; in rcar_du_cmm_setup()
/linux-6.1.9/drivers/gpu/drm/tidss/
Dtidss_dispc.c2535 if (state->gamma_lut) { in dispc_vp_set_color_mgmt()
2536 lut = (struct drm_color_lut *)state->gamma_lut->data; in dispc_vp_set_color_mgmt()
2537 length = state->gamma_lut->length / sizeof(*lut); in dispc_vp_set_color_mgmt()
/linux-6.1.9/drivers/gpu/drm/stm/
Dltdc.c762 if (!crtc->state->color_mgmt_changed || !crtc->state->gamma_lut) in ltdc_crtc_update_clut()
765 lut = (struct drm_color_lut *)crtc->state->gamma_lut->data; in ltdc_crtc_update_clut()

12