Home
last modified time | relevance | path

Searched refs:hw_points (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_cm_common.c323 uint32_t j, k, seg_distr[MAX_REGIONS_NUMBER], increment, start_index, hw_points; in cm_helper_translate_curve_to_hw_format() local
330 hw_points = 0; in cm_helper_translate_curve_to_hw_format()
370 hw_points += (1 << seg_distr[k]); in cm_helper_translate_curve_to_hw_format()
380 if (j == hw_points - 1) in cm_helper_translate_curve_to_hw_format()
391 rgb_resulted[hw_points - 1].red = output_tf->tf_pts.red[start_index]; in cm_helper_translate_curve_to_hw_format()
392 rgb_resulted[hw_points - 1].green = output_tf->tf_pts.green[start_index]; in cm_helper_translate_curve_to_hw_format()
393 rgb_resulted[hw_points - 1].blue = output_tf->tf_pts.blue[start_index]; in cm_helper_translate_curve_to_hw_format()
395 rgb_resulted[hw_points].red = rgb_resulted[hw_points - 1].red; in cm_helper_translate_curve_to_hw_format()
396 rgb_resulted[hw_points].green = rgb_resulted[hw_points - 1].green; in cm_helper_translate_curve_to_hw_format()
397 rgb_resulted[hw_points].blue = rgb_resulted[hw_points - 1].blue; in cm_helper_translate_curve_to_hw_format()
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_cm_common.c120 uint32_t j, k, seg_distr[MAX_REGIONS_NUMBER], increment, start_index, hw_points; in cm3_helper_translate_curve_to_hw_format() local
127 hw_points = 0; in cm3_helper_translate_curve_to_hw_format()
167 hw_points += (1 << seg_distr[k]); in cm3_helper_translate_curve_to_hw_format()
177 if (j == hw_points - 1) in cm3_helper_translate_curve_to_hw_format()
188 rgb_resulted[hw_points - 1].red = output_tf->tf_pts.red[start_index]; in cm3_helper_translate_curve_to_hw_format()
189 rgb_resulted[hw_points - 1].green = output_tf->tf_pts.green[start_index]; in cm3_helper_translate_curve_to_hw_format()
190 rgb_resulted[hw_points - 1].blue = output_tf->tf_pts.blue[start_index]; in cm3_helper_translate_curve_to_hw_format()
217 corner_points[1].red.y = rgb_resulted[hw_points - 1].red; in cm3_helper_translate_curve_to_hw_format()
218 corner_points[1].green.y = rgb_resulted[hw_points - 1].green; in cm3_helper_translate_curve_to_hw_format()
219 corner_points[1].blue.y = rgb_resulted[hw_points - 1].blue; in cm3_helper_translate_curve_to_hw_format()
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_hw_sequencer.c446 uint32_t i, j, k, seg_distr[NUMBER_REGIONS], increment, start_index, hw_points; in dce110_translate_regamma_to_hw_format() local
453 hw_points = 0; in dce110_translate_regamma_to_hw_format()
497 hw_points += (1 << seg_distr[k]); in dce110_translate_regamma_to_hw_format()
507 if (j == hw_points - 1) in dce110_translate_regamma_to_hw_format()
518 rgb_resulted[hw_points - 1].red = output_tf->tf_pts.red[start_index]; in dce110_translate_regamma_to_hw_format()
519 rgb_resulted[hw_points - 1].green = output_tf->tf_pts.green[start_index]; in dce110_translate_regamma_to_hw_format()
520 rgb_resulted[hw_points - 1].blue = output_tf->tf_pts.blue[start_index]; in dce110_translate_regamma_to_hw_format()
537 y_r = rgb_resulted[hw_points - 1].red; in dce110_translate_regamma_to_hw_format()
538 y_g = rgb_resulted[hw_points - 1].green; in dce110_translate_regamma_to_hw_format()
539 y_b = rgb_resulted[hw_points - 1].blue; in dce110_translate_regamma_to_hw_format()
[all …]