Searched refs:rgb_plus_1 (Results 1 – 3 of 3) sorted by relevance
/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 …]
|
/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_cm_common.c | 318 struct pwl_result_data *rgb_plus_1; in cm_helper_translate_curve_to_hw_format() local 466 rgb_plus_1 = rgb_resulted + 1; in cm_helper_translate_curve_to_hw_format() 473 if (dc_fixpt_lt(rgb_plus_1->red, rgb->red)) in cm_helper_translate_curve_to_hw_format() 474 rgb_plus_1->red = dc_fixpt_add(rgb->red, rgb_minus_1->delta_red); in cm_helper_translate_curve_to_hw_format() 475 if (dc_fixpt_lt(rgb_plus_1->green, rgb->green)) in cm_helper_translate_curve_to_hw_format() 476 rgb_plus_1->green = dc_fixpt_add(rgb->green, rgb_minus_1->delta_green); in cm_helper_translate_curve_to_hw_format() 477 if (dc_fixpt_lt(rgb_plus_1->blue, rgb->blue)) in cm_helper_translate_curve_to_hw_format() 478 rgb_plus_1->blue = dc_fixpt_add(rgb->blue, rgb_minus_1->delta_blue); in cm_helper_translate_curve_to_hw_format() 481 rgb->delta_red = dc_fixpt_sub(rgb_plus_1->red, rgb->red); in cm_helper_translate_curve_to_hw_format() 482 rgb->delta_green = dc_fixpt_sub(rgb_plus_1->green, rgb->green); in cm_helper_translate_curve_to_hw_format() [all …]
|
/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_hw_sequencer.c | 438 struct pwl_result_data *rgb_plus_1; in dce110_translate_regamma_to_hw_format() local 577 rgb_plus_1 = rgb_resulted + 1; in dce110_translate_regamma_to_hw_format() 582 if (dc_fixpt_lt(rgb_plus_1->red, rgb->red)) in dce110_translate_regamma_to_hw_format() 583 rgb_plus_1->red = rgb->red; in dce110_translate_regamma_to_hw_format() 584 if (dc_fixpt_lt(rgb_plus_1->green, rgb->green)) in dce110_translate_regamma_to_hw_format() 585 rgb_plus_1->green = rgb->green; in dce110_translate_regamma_to_hw_format() 586 if (dc_fixpt_lt(rgb_plus_1->blue, rgb->blue)) in dce110_translate_regamma_to_hw_format() 587 rgb_plus_1->blue = rgb->blue; in dce110_translate_regamma_to_hw_format() 589 rgb->delta_red = dc_fixpt_sub(rgb_plus_1->red, rgb->red); in dce110_translate_regamma_to_hw_format() 590 rgb->delta_green = dc_fixpt_sub(rgb_plus_1->green, rgb->green); in dce110_translate_regamma_to_hw_format() [all …]
|