Searched refs:rgb_plus_1 (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dcn30/ |
D | dcn30_cm_common.c | 115 struct pwl_result_data *rgb_plus_1; in cm3_helper_translate_curve_to_hw_format() local 250 rgb_plus_1 = rgb_resulted + 1; in cm3_helper_translate_curve_to_hw_format() 257 if (dc_fixpt_lt(rgb_plus_1->red, rgb->red)) in cm3_helper_translate_curve_to_hw_format() 258 rgb_plus_1->red = dc_fixpt_add(rgb->red, in cm3_helper_translate_curve_to_hw_format() 260 if (dc_fixpt_lt(rgb_plus_1->green, rgb->green)) in cm3_helper_translate_curve_to_hw_format() 261 rgb_plus_1->green = dc_fixpt_add(rgb->green, in cm3_helper_translate_curve_to_hw_format() 263 if (dc_fixpt_lt(rgb_plus_1->blue, rgb->blue)) in cm3_helper_translate_curve_to_hw_format() 264 rgb_plus_1->blue = dc_fixpt_add(rgb->blue, in cm3_helper_translate_curve_to_hw_format() 275 ++rgb_plus_1; in cm3_helper_translate_curve_to_hw_format() 298 struct pwl_result_data *rgb_plus_1; in cm3_helper_translate_curve_to_degamma_hw_format() local [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_cm_common.c | 341 struct pwl_result_data *rgb_plus_1; in cm_helper_translate_curve_to_hw_format() local 494 rgb_plus_1 = rgb_resulted + 1; in cm_helper_translate_curve_to_hw_format() 501 if (dc_fixpt_lt(rgb_plus_1->red, rgb->red)) in cm_helper_translate_curve_to_hw_format() 502 rgb_plus_1->red = dc_fixpt_add(rgb->red, rgb_minus_1->delta_red); in cm_helper_translate_curve_to_hw_format() 503 if (dc_fixpt_lt(rgb_plus_1->green, rgb->green)) in cm_helper_translate_curve_to_hw_format() 504 rgb_plus_1->green = dc_fixpt_add(rgb->green, rgb_minus_1->delta_green); in cm_helper_translate_curve_to_hw_format() 505 if (dc_fixpt_lt(rgb_plus_1->blue, rgb->blue)) in cm_helper_translate_curve_to_hw_format() 506 rgb_plus_1->blue = dc_fixpt_add(rgb->blue, rgb_minus_1->delta_blue); in cm_helper_translate_curve_to_hw_format() 509 rgb->delta_red = dc_fixpt_sub(rgb_plus_1->red, rgb->red); in cm_helper_translate_curve_to_hw_format() 510 rgb->delta_green = dc_fixpt_sub(rgb_plus_1->green, rgb->green); in cm_helper_translate_curve_to_hw_format() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hwss/dce110/ |
D | dce110_hwseq.c | 439 struct pwl_result_data *rgb_plus_1; in dce110_translate_regamma_to_hw_format() local 578 rgb_plus_1 = rgb_resulted + 1; in dce110_translate_regamma_to_hw_format() 583 if (dc_fixpt_lt(rgb_plus_1->red, rgb->red)) in dce110_translate_regamma_to_hw_format() 584 rgb_plus_1->red = rgb->red; in dce110_translate_regamma_to_hw_format() 585 if (dc_fixpt_lt(rgb_plus_1->green, rgb->green)) in dce110_translate_regamma_to_hw_format() 586 rgb_plus_1->green = rgb->green; in dce110_translate_regamma_to_hw_format() 587 if (dc_fixpt_lt(rgb_plus_1->blue, rgb->blue)) in dce110_translate_regamma_to_hw_format() 588 rgb_plus_1->blue = rgb->blue; in dce110_translate_regamma_to_hw_format() 590 rgb->delta_red = dc_fixpt_sub(rgb_plus_1->red, rgb->red); in dce110_translate_regamma_to_hw_format() 591 rgb->delta_green = dc_fixpt_sub(rgb_plus_1->green, rgb->green); in dce110_translate_regamma_to_hw_format() [all …]
|