/openbmc/linux/drivers/gpu/drm/tegra/ |
H A D | rgb.c | 94 struct tegra_rgb *rgb = to_rgb(output); in tegra_rgb_encoder_disable() local 96 tegra_dc_write_regs(rgb->dc, rgb_disable, ARRAY_SIZE(rgb_disable)); in tegra_rgb_encoder_disable() 97 tegra_dc_commit(rgb->dc); in tegra_rgb_encoder_disable() 103 struct tegra_rgb *rgb = to_rgb(output); in tegra_rgb_encoder_enable() local 106 tegra_dc_write_regs(rgb->dc, rgb_enable, ARRAY_SIZE(rgb_enable)); in tegra_rgb_encoder_enable() 109 tegra_dc_writel(rgb->dc, value, DC_DISP_DATA_ENABLE_OPTIONS); in tegra_rgb_encoder_enable() 112 value = tegra_dc_readl(rgb->dc, DC_COM_PIN_OUTPUT_POLARITY(1)); in tegra_rgb_encoder_enable() 115 tegra_dc_writel(rgb->dc, value, DC_COM_PIN_OUTPUT_POLARITY(1)); in tegra_rgb_encoder_enable() 120 tegra_dc_writel(rgb->dc, value, DC_DISP_DISP_INTERFACE_CONTROL); in tegra_rgb_encoder_enable() 122 tegra_dc_commit(rgb->dc); in tegra_rgb_encoder_enable() [all …]
|
/openbmc/linux/drivers/gpu/drm/sun4i/ |
H A D | sun4i_rgb.c | 48 struct sun4i_rgb *rgb = in sun4i_rgb_get_modes() local 51 return drm_panel_get_modes(rgb->panel, connector); in sun4i_rgb_get_modes() 65 struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(crtc); in sun4i_rgb_mode_valid() local 66 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_mode_valid() 109 if (rgb->panel) { in sun4i_rgb_mode_valid() 118 if (!rgb->bridge) in sun4i_rgb_mode_valid() 161 struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(encoder); in sun4i_rgb_encoder_enable() local 165 if (rgb->panel) { in sun4i_rgb_encoder_enable() 166 drm_panel_prepare(rgb->panel); in sun4i_rgb_encoder_enable() 167 drm_panel_enable(rgb->panel); in sun4i_rgb_encoder_enable() [all …]
|
/openbmc/linux/drivers/hid/ |
H A D | hid-led.c | 84 struct hidled_rgb *rgb; member 99 struct hidled_rgb *rgb; member 175 static u8 riso_kagaku_index(struct hidled_rgb *rgb) in riso_kagaku_index() argument 179 r = rgb->red.cdev.brightness; in riso_kagaku_index() 180 g = rgb->green.cdev.brightness; in riso_kagaku_index() 181 b = rgb->blue.cdev.brightness; in riso_kagaku_index() 192 struct hidled_rgb *rgb = led->rgb; in riso_kagaku_write() local 195 buf[1] = riso_kagaku_index(rgb); in riso_kagaku_write() 197 return hidled_send(rgb->ldev, buf); in riso_kagaku_write() 203 struct hidled_rgb *rgb = led->rgb; in dream_cheeky_write() local [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn30/ |
H A D | dcn30_cm_common.c | 114 struct pwl_result_data *rgb; in cm3_helper_translate_curve_to_hw_format() local 268 rgb = rgb_resulted; in cm3_helper_translate_curve_to_hw_format() 270 rgb_minus_1 = rgb; in cm3_helper_translate_curve_to_hw_format() 275 if (dc_fixpt_lt(rgb_plus_1->red, rgb->red)) in cm3_helper_translate_curve_to_hw_format() 276 rgb_plus_1->red = dc_fixpt_add(rgb->red, rgb_minus_1->delta_red); in cm3_helper_translate_curve_to_hw_format() 277 if (dc_fixpt_lt(rgb_plus_1->green, rgb->green)) in cm3_helper_translate_curve_to_hw_format() 278 rgb_plus_1->green = dc_fixpt_add(rgb->green, rgb_minus_1->delta_green); in cm3_helper_translate_curve_to_hw_format() 279 if (dc_fixpt_lt(rgb_plus_1->blue, rgb->blue)) in cm3_helper_translate_curve_to_hw_format() 280 rgb_plus_1->blue = dc_fixpt_add(rgb->blue, rgb_minus_1->delta_blue); in cm3_helper_translate_curve_to_hw_format() 283 rgb->delta_red = dc_fixpt_sub(rgb_plus_1->red, rgb->red); in cm3_helper_translate_curve_to_hw_format() [all …]
|
H A D | dcn30_hubbub.c | 343 output->grph.rgb.max_uncompressed_blk_size = 256; in hubbub3_get_dcc_compression_cap() 344 output->grph.rgb.max_compressed_blk_size = 256; in hubbub3_get_dcc_compression_cap() 345 output->grph.rgb.independent_64b_blks = false; in hubbub3_get_dcc_compression_cap() 346 output->grph.rgb.dcc_controls.dcc_256_256_unconstrained = 1; in hubbub3_get_dcc_compression_cap() 347 output->grph.rgb.dcc_controls.dcc_256_128_128 = 1; in hubbub3_get_dcc_compression_cap() 350 output->grph.rgb.max_uncompressed_blk_size = 128; in hubbub3_get_dcc_compression_cap() 351 output->grph.rgb.max_compressed_blk_size = 128; in hubbub3_get_dcc_compression_cap() 352 output->grph.rgb.independent_64b_blks = false; in hubbub3_get_dcc_compression_cap() 353 output->grph.rgb.dcc_controls.dcc_128_128_uncontrained = 1; in hubbub3_get_dcc_compression_cap() 354 output->grph.rgb.dcc_controls.dcc_256_128_128 = 1; in hubbub3_get_dcc_compression_cap() [all …]
|
H A D | dcn30_dwb_cm.c | 187 const struct pwl_result_data *rgb, in dwb3_program_ogam_pwl() argument 192 uint32_t last_base_value_red = rgb[num-1].red_reg + rgb[num-1].delta_red_reg; in dwb3_program_ogam_pwl() 193 uint32_t last_base_value_green = rgb[num-1].green_reg + rgb[num-1].delta_green_reg; in dwb3_program_ogam_pwl() 194 uint32_t last_base_value_blue = rgb[num-1].blue_reg + rgb[num-1].delta_blue_reg; in dwb3_program_ogam_pwl() 196 if (is_rgb_equal(rgb, num)) { in dwb3_program_ogam_pwl() 198 REG_SET(DWB_OGAM_LUT_DATA, 0, DWB_OGAM_LUT_DATA, rgb[i].red_reg); in dwb3_program_ogam_pwl() 208 REG_SET(DWB_OGAM_LUT_DATA, 0, DWB_OGAM_LUT_DATA, rgb[i].red_reg); in dwb3_program_ogam_pwl() 218 REG_SET(DWB_OGAM_LUT_DATA, 0, DWB_OGAM_LUT_DATA, rgb[i].green_reg); in dwb3_program_ogam_pwl() 228 REG_SET(DWB_OGAM_LUT_DATA, 0, DWB_OGAM_LUT_DATA, rgb[i].blue_reg); in dwb3_program_ogam_pwl()
|
H A D | dcn30_dpp_cm.c | 82 const struct pwl_result_data *rgb, in dpp3_program_gammcor_lut() argument 88 uint32_t last_base_value_red = rgb[num-1].red_reg + rgb[num-1].delta_red_reg; in dpp3_program_gammcor_lut() 89 uint32_t last_base_value_green = rgb[num-1].green_reg + rgb[num-1].delta_green_reg; in dpp3_program_gammcor_lut() 90 uint32_t last_base_value_blue = rgb[num-1].blue_reg + rgb[num-1].delta_blue_reg; in dpp3_program_gammcor_lut() 95 if (is_rgb_equal(rgb, num)) { in dpp3_program_gammcor_lut() 97 REG_SET(CM_GAMCOR_LUT_DATA, 0, CM_GAMCOR_LUT_DATA, rgb[i].red_reg); in dpp3_program_gammcor_lut() 105 REG_SET(CM_GAMCOR_LUT_DATA, 0, CM_GAMCOR_LUT_DATA, rgb[i].red_reg); in dpp3_program_gammcor_lut() 114 REG_SET(CM_GAMCOR_LUT_DATA, 0, CM_GAMCOR_LUT_DATA, rgb[i].green_reg); in dpp3_program_gammcor_lut() 123 REG_SET(CM_GAMCOR_LUT_DATA, 0, CM_GAMCOR_LUT_DATA, rgb[i].blue_reg); in dpp3_program_gammcor_lut()
|
H A D | dcn30_mpc.c | 276 const struct pwl_result_data *rgb, in mpc3_program_ogam_pwl() argument 281 uint32_t last_base_value_red = rgb[num-1].red_reg + rgb[num-1].delta_red_reg; in mpc3_program_ogam_pwl() 282 uint32_t last_base_value_green = rgb[num-1].green_reg + rgb[num-1].delta_green_reg; in mpc3_program_ogam_pwl() 283 uint32_t last_base_value_blue = rgb[num-1].blue_reg + rgb[num-1].delta_blue_reg; in mpc3_program_ogam_pwl() 291 if (is_rgb_equal(rgb, num)) { in mpc3_program_ogam_pwl() 293 REG_SET(MPCC_OGAM_LUT_DATA[mpcc_id], 0, MPCC_OGAM_LUT_DATA, rgb[i].red_reg); in mpc3_program_ogam_pwl() 303 REG_SET(MPCC_OGAM_LUT_DATA[mpcc_id], 0, MPCC_OGAM_LUT_DATA, rgb[i].red_reg); in mpc3_program_ogam_pwl() 313 REG_SET(MPCC_OGAM_LUT_DATA[mpcc_id], 0, MPCC_OGAM_LUT_DATA, rgb[i].green_reg); in mpc3_program_ogam_pwl() 323 REG_SET(MPCC_OGAM_LUT_DATA[mpcc_id], 0, MPCC_OGAM_LUT_DATA, rgb[i].blue_reg); in mpc3_program_ogam_pwl() 778 const struct pwl_result_data *rgb, in mpc3_program_shaper_lut() argument [all …]
|
H A D | dcn30_dpp.c | 602 const struct pwl_result_data *rgb, in dpp3_program_blnd_pwl() argument 607 uint32_t last_base_value_red = rgb[num-1].red_reg + rgb[num-1].delta_red_reg; in dpp3_program_blnd_pwl() 608 uint32_t last_base_value_green = rgb[num-1].green_reg + rgb[num-1].delta_green_reg; in dpp3_program_blnd_pwl() 609 uint32_t last_base_value_blue = rgb[num-1].blue_reg + rgb[num-1].delta_blue_reg; in dpp3_program_blnd_pwl() 611 if (is_rgb_equal(rgb, num)) { in dpp3_program_blnd_pwl() 613 REG_SET(CM_BLNDGAM_LUT_DATA, 0, CM_BLNDGAM_LUT_DATA, rgb[i].red_reg); in dpp3_program_blnd_pwl() 618 REG_SET(CM_BLNDGAM_LUT_DATA, 0, CM_BLNDGAM_LUT_DATA, rgb[i].red_reg); in dpp3_program_blnd_pwl() 623 REG_SET(CM_BLNDGAM_LUT_DATA, 0, CM_BLNDGAM_LUT_DATA, rgb[i].green_reg); in dpp3_program_blnd_pwl() 628 REG_SET(CM_BLNDGAM_LUT_DATA, 0, CM_BLNDGAM_LUT_DATA, rgb[i].blue_reg); in dpp3_program_blnd_pwl() 788 const struct pwl_result_data *rgb, in dpp3_program_shaper_lut() argument [all …]
|
/openbmc/linux/drivers/gpu/drm/rockchip/ |
H A D | rockchip_rgb.c | 77 struct rockchip_rgb *rgb; in rockchip_rgb_init() local 86 rgb = devm_kzalloc(dev, sizeof(*rgb), GFP_KERNEL); in rockchip_rgb_init() 87 if (!rgb) in rockchip_rgb_init() 90 rgb->dev = dev; in rockchip_rgb_init() 91 rgb->drm_dev = drm_dev; in rockchip_rgb_init() 126 encoder = &rgb->encoder.encoder; in rockchip_rgb_init() 145 rgb->bridge = bridge; in rockchip_rgb_init() 147 ret = drm_bridge_attach(encoder, rgb->bridge, NULL, in rockchip_rgb_init() 152 connector = &rgb->connector; in rockchip_rgb_init() 153 connector = drm_bridge_connector_init(rgb->drm_dev, encoder); in rockchip_rgb_init() [all …]
|
H A D | rockchip_rgb.h | 13 void rockchip_rgb_fini(struct rockchip_rgb *rgb); 23 static inline void rockchip_rgb_fini(struct rockchip_rgb *rgb) in rockchip_rgb_fini() argument
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn10/ |
H A D | dcn10_cm_common.c | 136 struct pwl_result_data *rgb = rgb_resulted; in cm_helper_convert_to_custom_float() local 262 if (!convert_to_custom_float_format(rgb->red, &fmt, in cm_helper_convert_to_custom_float() 263 &rgb->red_reg)) { in cm_helper_convert_to_custom_float() 268 if (!convert_to_custom_float_format(rgb->green, &fmt, in cm_helper_convert_to_custom_float() 269 &rgb->green_reg)) { in cm_helper_convert_to_custom_float() 274 if (!convert_to_custom_float_format(rgb->blue, &fmt, in cm_helper_convert_to_custom_float() 275 &rgb->blue_reg)) { in cm_helper_convert_to_custom_float() 280 if (!convert_to_custom_float_format(rgb->delta_red, &fmt, in cm_helper_convert_to_custom_float() 281 &rgb->delta_red_reg)) { in cm_helper_convert_to_custom_float() 286 if (!convert_to_custom_float_format(rgb->delta_green, &fmt, in cm_helper_convert_to_custom_float() [all …]
|
H A D | dcn10_dpp_cm.c | 329 const struct pwl_result_data *rgb, in dpp1_cm_program_regamma_lut() argument 338 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].red_reg); in dpp1_cm_program_regamma_lut() 339 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].green_reg); in dpp1_cm_program_regamma_lut() 340 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].blue_reg); in dpp1_cm_program_regamma_lut() 342 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].delta_red_reg); in dpp1_cm_program_regamma_lut() 343 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].delta_green_reg); in dpp1_cm_program_regamma_lut() 344 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].delta_blue_reg); in dpp1_cm_program_regamma_lut() 659 const struct pwl_result_data *rgb, in dpp1_program_degamma_lut() argument 674 REG_SET(CM_DGAM_LUT_DATA, 0, CM_DGAM_LUT_DATA, rgb[i].red_reg); in dpp1_program_degamma_lut() 675 REG_SET(CM_DGAM_LUT_DATA, 0, CM_DGAM_LUT_DATA, rgb[i].green_reg); in dpp1_program_degamma_lut() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/modules/color/ |
H A D | color_gamma.c | 679 struct pwl_float_data *rgb, in calculate_mapped_value() argument 711 rgb[point->right_index].r, in calculate_mapped_value() 712 rgb[point->left_index].r)), in calculate_mapped_value() 713 rgb[point->left_index].r); in calculate_mapped_value() 719 rgb[point->right_index].g, in calculate_mapped_value() 720 rgb[point->left_index].g)), in calculate_mapped_value() 721 rgb[point->left_index].g); in calculate_mapped_value() 727 rgb[point->right_index].b, in calculate_mapped_value() 728 rgb[point->left_index].b)), in calculate_mapped_value() 729 rgb[point->left_index].b); in calculate_mapped_value() [all …]
|
/openbmc/linux/drivers/media/test-drivers/vimc/ |
H A D | vimc-debayer.c | 37 unsigned int rgb[3]); 320 unsigned int rgb[3]) in vimc_debayer_process_rgb_frame() 330 vdebayer->src_frame[index + i] = rgb[i]; in vimc_debayer_process_rgb_frame() 333 vdebayer->src_frame[index + i] = rgb[2 - i]; in vimc_debayer_process_rgb_frame() 414 unsigned int rgb[3]) in vimc_debayer_calc_rgb_sink() 420 rgb[i] = 0; in vimc_debayer_calc_rgb_sink() 469 rgb[color] = rgb[color] + in vimc_debayer_calc_rgb_sink() 477 vdebayer->sd.name, rgb[color], n_rgb[color]); in vimc_debayer_calc_rgb_sink() 485 vdebayer->sd.name, lin, col, i, rgb[i], n_rgb[i]); in vimc_debayer_calc_rgb_sink() 488 rgb[i] = rgb[i] / n_rgb[i]; in vimc_debayer_calc_rgb_sink() [all …]
|
/openbmc/openbmc/poky/meta/recipes-graphics/mesa/mesa-demos/ |
H A D | 0004-Use-DEMOS_DATA_DIR-to-locate-data-files.patch | 81 static char *TextureFile = DEMOS_DATA_DIR "tile.rgb"; 173 static const char *GroundImage = DEMOS_DATA_DIR "tile.rgb"; 198 - SkyboxTex = LoadSkyBoxCubeTexture("alpine_east.rgb", 199 - "alpine_west.rgb", 200 - "alpine_up.rgb", 201 - "alpine_down.rgb", 202 - "alpine_south.rgb", 203 - "alpine_north.rgb"); 204 + SkyboxTex = LoadSkyBoxCubeTexture(DEMOS_DATA_DIR "alpine_east.rgb", 205 + DEMOS_DATA_DIR "alpine_west.rgb", [all …]
|
/openbmc/u-boot/drivers/video/ |
H A D | tegra.c | 343 int rgb; in tegra_lcd_ofdata_to_platdata() local 352 rgb = fdt_subnode_offset(blob, node, "rgb"); in tegra_lcd_ofdata_to_platdata() 353 if (rgb < 0) { in tegra_lcd_ofdata_to_platdata() 355 __func__, dev->name, rgb); in tegra_lcd_ofdata_to_platdata() 359 ret = fdtdec_decode_display_timing(blob, rgb, 0, &priv->timing); in tegra_lcd_ofdata_to_platdata() 375 panel_node = fdtdec_lookup_phandle(blob, rgb, "nvidia,panel"); in tegra_lcd_ofdata_to_platdata() 396 int rgb; in tegra_lcd_bind() local 398 rgb = fdt_subnode_offset(blob, node, "rgb"); in tegra_lcd_bind() 399 if ((rgb < 0) || !fdtdec_get_is_enabled(blob, rgb)) in tegra_lcd_bind()
|
/openbmc/qemu/ui/ |
H A D | vnc-palette.c | 46 static unsigned int palette_hash(uint32_t rgb, int bpp) in palette_hash() argument 49 return ((unsigned int)(((rgb >> 8) + rgb) & 0xFF)); in palette_hash() 51 return ((unsigned int)(((rgb >> 16) + (rgb >> 8)) & 0xFF)); in palette_hash()
|
/openbmc/linux/drivers/gpu/ipu-v3/ |
H A D | ipu-cpmem.c | 368 const struct ipu_rgb *rgb) in ipu_cpmem_set_format_rgb() argument 372 ro = rgb->bits_per_pixel - rgb->red.length - rgb->red.offset; in ipu_cpmem_set_format_rgb() 373 go = rgb->bits_per_pixel - rgb->green.length - rgb->green.offset; in ipu_cpmem_set_format_rgb() 374 bo = rgb->bits_per_pixel - rgb->blue.length - rgb->blue.offset; in ipu_cpmem_set_format_rgb() 375 to = rgb->bits_per_pixel - rgb->transp.length - rgb->transp.offset; in ipu_cpmem_set_format_rgb() 377 ipu_ch_param_write_field(ch, IPU_FIELD_WID0, rgb->red.length - 1); in ipu_cpmem_set_format_rgb() 379 ipu_ch_param_write_field(ch, IPU_FIELD_WID1, rgb->green.length - 1); in ipu_cpmem_set_format_rgb() 381 ipu_ch_param_write_field(ch, IPU_FIELD_WID2, rgb->blue.length - 1); in ipu_cpmem_set_format_rgb() 384 if (rgb->transp.length) { in ipu_cpmem_set_format_rgb() 386 rgb->transp.length - 1); in ipu_cpmem_set_format_rgb() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce110/ |
H A D | dce110_opp_regamma_v.c | 472 const struct pwl_result_data *rgb = in program_pwl() local 476 dm_write_reg(xfm_dce->base.ctx, addr, rgb->red_reg); in program_pwl() 477 dm_write_reg(xfm_dce->base.ctx, addr, rgb->green_reg); in program_pwl() 478 dm_write_reg(xfm_dce->base.ctx, addr, rgb->blue_reg); in program_pwl() 481 rgb->delta_red_reg); in program_pwl() 483 rgb->delta_green_reg); in program_pwl() 485 rgb->delta_blue_reg); in program_pwl() 487 ++rgb; in program_pwl()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn20/ |
H A D | dcn20_dpp_cm.c | 87 const struct pwl_result_data *rgb, in dpp2_program_degamma_lut() argument 101 REG_SET(CM_DGAM_LUT_DATA, 0, CM_DGAM_LUT_DATA, rgb[i].red_reg); in dpp2_program_degamma_lut() 102 REG_SET(CM_DGAM_LUT_DATA, 0, CM_DGAM_LUT_DATA, rgb[i].green_reg); in dpp2_program_degamma_lut() 103 REG_SET(CM_DGAM_LUT_DATA, 0, CM_DGAM_LUT_DATA, rgb[i].blue_reg); in dpp2_program_degamma_lut() 106 CM_DGAM_LUT_DATA, rgb[i].delta_red_reg); in dpp2_program_degamma_lut() 108 CM_DGAM_LUT_DATA, rgb[i].delta_green_reg); in dpp2_program_degamma_lut() 110 CM_DGAM_LUT_DATA, rgb[i].delta_blue_reg); in dpp2_program_degamma_lut() 336 const struct pwl_result_data *rgb, in dpp20_program_blnd_pwl() argument 343 REG_SET(CM_BLNDGAM_LUT_DATA, 0, CM_BLNDGAM_LUT_DATA, rgb[i].red_reg); in dpp20_program_blnd_pwl() 344 REG_SET(CM_BLNDGAM_LUT_DATA, 0, CM_BLNDGAM_LUT_DATA, rgb[i].green_reg); in dpp20_program_blnd_pwl() [all …]
|
H A D | dcn20_hubbub.c | 285 output->grph.rgb.max_uncompressed_blk_size = 256; in hubbub2_get_dcc_compression_cap() 286 output->grph.rgb.max_compressed_blk_size = 256; in hubbub2_get_dcc_compression_cap() 287 output->grph.rgb.independent_64b_blks = false; in hubbub2_get_dcc_compression_cap() 290 output->grph.rgb.max_uncompressed_blk_size = 128; in hubbub2_get_dcc_compression_cap() 291 output->grph.rgb.max_compressed_blk_size = 128; in hubbub2_get_dcc_compression_cap() 292 output->grph.rgb.independent_64b_blks = false; in hubbub2_get_dcc_compression_cap() 295 output->grph.rgb.max_uncompressed_blk_size = 256; in hubbub2_get_dcc_compression_cap() 296 output->grph.rgb.max_compressed_blk_size = 64; in hubbub2_get_dcc_compression_cap() 297 output->grph.rgb.independent_64b_blks = true; in hubbub2_get_dcc_compression_cap()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn32/ |
H A D | dcn32_mpc.c | 226 const struct pwl_result_data *rgb, in mpc32_program_post1dlut_pwl() argument 231 uint32_t last_base_value_red = rgb[num-1].red_reg + rgb[num-1].delta_red_reg; in mpc32_program_post1dlut_pwl() 232 uint32_t last_base_value_green = rgb[num-1].green_reg + rgb[num-1].delta_green_reg; in mpc32_program_post1dlut_pwl() 233 uint32_t last_base_value_blue = rgb[num-1].blue_reg + rgb[num-1].delta_blue_reg; in mpc32_program_post1dlut_pwl() 235 if (is_rgb_equal(rgb, num)) { in mpc32_program_post1dlut_pwl() 237 REG_SET(MPCC_MCM_1DLUT_LUT_DATA[mpcc_id], 0, MPCC_MCM_1DLUT_LUT_DATA, rgb[i].red_reg); in mpc32_program_post1dlut_pwl() 242 REG_SET(MPCC_MCM_1DLUT_LUT_DATA[mpcc_id], 0, MPCC_MCM_1DLUT_LUT_DATA, rgb[i].red_reg); in mpc32_program_post1dlut_pwl() 247 REG_SET(MPCC_MCM_1DLUT_LUT_DATA[mpcc_id], 0, MPCC_MCM_1DLUT_LUT_DATA, rgb[i].green_reg); in mpc32_program_post1dlut_pwl() 252 REG_SET(MPCC_MCM_1DLUT_LUT_DATA[mpcc_id], 0, MPCC_MCM_1DLUT_LUT_DATA, rgb[i].blue_reg); in mpc32_program_post1dlut_pwl() 642 const struct pwl_result_data *rgb, in mpc32_program_shaper_lut() argument [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn31/ |
H A D | dcn31_hubbub.c | 848 output->grph.rgb.max_uncompressed_blk_size = 256; in hubbub31_get_dcc_compression_cap() 849 output->grph.rgb.max_compressed_blk_size = 256; in hubbub31_get_dcc_compression_cap() 850 output->grph.rgb.independent_64b_blks = false; in hubbub31_get_dcc_compression_cap() 851 output->grph.rgb.dcc_controls.dcc_256_256_unconstrained = 1; in hubbub31_get_dcc_compression_cap() 852 output->grph.rgb.dcc_controls.dcc_256_128_128 = 1; in hubbub31_get_dcc_compression_cap() 855 output->grph.rgb.max_uncompressed_blk_size = 128; in hubbub31_get_dcc_compression_cap() 856 output->grph.rgb.max_compressed_blk_size = 128; in hubbub31_get_dcc_compression_cap() 857 output->grph.rgb.independent_64b_blks = false; in hubbub31_get_dcc_compression_cap() 858 output->grph.rgb.dcc_controls.dcc_128_128_uncontrained = 1; in hubbub31_get_dcc_compression_cap() 859 output->grph.rgb.dcc_controls.dcc_256_128_128 = 1; in hubbub31_get_dcc_compression_cap() [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | sama5d3_lcd.dtsi | 40 pinctrl_lcd_rgb444: lcd-rgb-0 { 56 pinctrl_lcd_rgb565: lcd-rgb-1 { 76 pinctrl_lcd_rgb666: lcd-rgb-2 { 98 pinctrl_lcd_rgb666_alt: lcd-rgb-2-alt { 120 pinctrl_lcd_rgb888: lcd-rgb-3 { 148 pinctrl_lcd_rgb888_alt: lcd-rgb-3-alt {
|