Searched refs:rgb_plus_1 (Results 1 – 3 of 3) sorted by relevance
/linux-6.6.21/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 267 rgb_plus_1 = rgb_resulted + 1; in cm3_helper_translate_curve_to_hw_format() 273 if (dc_fixpt_lt(rgb_plus_1->red, rgb->red)) in cm3_helper_translate_curve_to_hw_format() 274 rgb_plus_1->red = dc_fixpt_add(rgb->red, rgb_minus_1->delta_red); in cm3_helper_translate_curve_to_hw_format() 275 if (dc_fixpt_lt(rgb_plus_1->green, rgb->green)) in cm3_helper_translate_curve_to_hw_format() 276 rgb_plus_1->green = dc_fixpt_add(rgb->green, rgb_minus_1->delta_green); in cm3_helper_translate_curve_to_hw_format() 277 if (dc_fixpt_lt(rgb_plus_1->blue, rgb->blue)) in cm3_helper_translate_curve_to_hw_format() 278 rgb_plus_1->blue = dc_fixpt_add(rgb->blue, rgb_minus_1->delta_blue); in cm3_helper_translate_curve_to_hw_format() 281 rgb->delta_red = dc_fixpt_sub(rgb_plus_1->red, rgb->red); in cm3_helper_translate_curve_to_hw_format() 282 rgb->delta_green = dc_fixpt_sub(rgb_plus_1->green, rgb->green); in cm3_helper_translate_curve_to_hw_format() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_cm_common.c | 321 struct pwl_result_data *rgb_plus_1; in cm_helper_translate_curve_to_hw_format() local 469 rgb_plus_1 = rgb_resulted + 1; in cm_helper_translate_curve_to_hw_format() 476 if (dc_fixpt_lt(rgb_plus_1->red, rgb->red)) in cm_helper_translate_curve_to_hw_format() 477 rgb_plus_1->red = dc_fixpt_add(rgb->red, rgb_minus_1->delta_red); in cm_helper_translate_curve_to_hw_format() 478 if (dc_fixpt_lt(rgb_plus_1->green, rgb->green)) in cm_helper_translate_curve_to_hw_format() 479 rgb_plus_1->green = dc_fixpt_add(rgb->green, rgb_minus_1->delta_green); in cm_helper_translate_curve_to_hw_format() 480 if (dc_fixpt_lt(rgb_plus_1->blue, rgb->blue)) in cm_helper_translate_curve_to_hw_format() 481 rgb_plus_1->blue = dc_fixpt_add(rgb->blue, rgb_minus_1->delta_blue); in cm_helper_translate_curve_to_hw_format() 484 rgb->delta_red = dc_fixpt_sub(rgb_plus_1->red, rgb->red); in cm_helper_translate_curve_to_hw_format() 485 rgb->delta_green = dc_fixpt_sub(rgb_plus_1->green, rgb->green); in cm_helper_translate_curve_to_hw_format() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_hw_sequencer.c | 440 struct pwl_result_data *rgb_plus_1; in dce110_translate_regamma_to_hw_format() local 579 rgb_plus_1 = rgb_resulted + 1; in dce110_translate_regamma_to_hw_format() 584 if (dc_fixpt_lt(rgb_plus_1->red, rgb->red)) in dce110_translate_regamma_to_hw_format() 585 rgb_plus_1->red = rgb->red; in dce110_translate_regamma_to_hw_format() 586 if (dc_fixpt_lt(rgb_plus_1->green, rgb->green)) in dce110_translate_regamma_to_hw_format() 587 rgb_plus_1->green = rgb->green; in dce110_translate_regamma_to_hw_format() 588 if (dc_fixpt_lt(rgb_plus_1->blue, rgb->blue)) in dce110_translate_regamma_to_hw_format() 589 rgb_plus_1->blue = rgb->blue; in dce110_translate_regamma_to_hw_format() 591 rgb->delta_red = dc_fixpt_sub(rgb_plus_1->red, rgb->red); in dce110_translate_regamma_to_hw_format() 592 rgb->delta_green = dc_fixpt_sub(rgb_plus_1->green, rgb->green); in dce110_translate_regamma_to_hw_format() [all …]
|