Home
last modified time | relevance | path

Searched refs:rgb (Results 1 – 25 of 131) sorted by relevance

123456

/kernel/linux/linux-5.10/drivers/gpu/drm/sun4i/
Dsun4i_rgb.c48 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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/
Drgb.c91 struct tegra_rgb *rgb = to_rgb(output); in tegra_rgb_encoder_disable() local
93 tegra_dc_write_regs(rgb->dc, rgb_disable, ARRAY_SIZE(rgb_disable)); in tegra_rgb_encoder_disable()
94 tegra_dc_commit(rgb->dc); in tegra_rgb_encoder_disable()
100 struct tegra_rgb *rgb = to_rgb(output); in tegra_rgb_encoder_enable() local
103 tegra_dc_write_regs(rgb->dc, rgb_enable, ARRAY_SIZE(rgb_enable)); in tegra_rgb_encoder_enable()
106 tegra_dc_writel(rgb->dc, value, DC_DISP_DATA_ENABLE_OPTIONS); in tegra_rgb_encoder_enable()
109 value = tegra_dc_readl(rgb->dc, DC_COM_PIN_OUTPUT_POLARITY(1)); in tegra_rgb_encoder_enable()
112 tegra_dc_writel(rgb->dc, value, DC_COM_PIN_OUTPUT_POLARITY(1)); in tegra_rgb_encoder_enable()
117 tegra_dc_writel(rgb->dc, value, DC_DISP_DISP_INTERFACE_CONTROL); in tegra_rgb_encoder_enable()
121 tegra_dc_writel(rgb->dc, value, DC_DISP_SHIFT_CLOCK_OPTIONS); in tegra_rgb_encoder_enable()
[all …]
/kernel/linux/linux-5.10/drivers/hid/
Dhid-led.c84 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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_cm_common.c114 struct pwl_result_data *rgb; in cm3_helper_translate_curve_to_hw_format() local
266 rgb = rgb_resulted; in cm3_helper_translate_curve_to_hw_format()
268 rgb_minus_1 = rgb; 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()
[all …]
Ddcn30_hubbub.c343 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 …]
Ddcn30_dpp_cm.c85 const struct pwl_result_data *rgb, in dpp3_program_gammcor_lut() argument
91 uint32_t last_base_value_red = rgb[num-1].red_reg + rgb[num-1].delta_red_reg; in dpp3_program_gammcor_lut()
92 uint32_t last_base_value_green = rgb[num-1].green_reg + rgb[num-1].delta_green_reg; in dpp3_program_gammcor_lut()
93 uint32_t last_base_value_blue = rgb[num-1].blue_reg + rgb[num-1].delta_blue_reg; in dpp3_program_gammcor_lut()
98 if (is_rgb_equal(rgb, num)) { in dpp3_program_gammcor_lut()
100 REG_SET(CM_GAMCOR_LUT_DATA, 0, CM_GAMCOR_LUT_DATA, rgb[i].red_reg); in dpp3_program_gammcor_lut()
108 REG_SET(CM_GAMCOR_LUT_DATA, 0, CM_GAMCOR_LUT_DATA, rgb[i].red_reg); in dpp3_program_gammcor_lut()
117 REG_SET(CM_GAMCOR_LUT_DATA, 0, CM_GAMCOR_LUT_DATA, rgb[i].green_reg); in dpp3_program_gammcor_lut()
126 REG_SET(CM_GAMCOR_LUT_DATA, 0, CM_GAMCOR_LUT_DATA, rgb[i].blue_reg); in dpp3_program_gammcor_lut()
Ddcn30_dwb_cm.c187 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()
Ddcn30_dpp.c523 const struct pwl_result_data *rgb, in dpp3_program_blnd_pwl() argument
528 uint32_t last_base_value_red = rgb[num-1].red_reg + rgb[num-1].delta_red_reg; in dpp3_program_blnd_pwl()
529 uint32_t last_base_value_green = rgb[num-1].green_reg + rgb[num-1].delta_green_reg; in dpp3_program_blnd_pwl()
530 uint32_t last_base_value_blue = rgb[num-1].blue_reg + rgb[num-1].delta_blue_reg; in dpp3_program_blnd_pwl()
532 if (is_rgb_equal(rgb, num)) { in dpp3_program_blnd_pwl()
534 REG_SET(CM_BLNDGAM_LUT_DATA, 0, CM_BLNDGAM_LUT_DATA, rgb[i].red_reg); in dpp3_program_blnd_pwl()
539 REG_SET(CM_BLNDGAM_LUT_DATA, 0, CM_BLNDGAM_LUT_DATA, rgb[i].red_reg); in dpp3_program_blnd_pwl()
544 REG_SET(CM_BLNDGAM_LUT_DATA, 0, CM_BLNDGAM_LUT_DATA, rgb[i].green_reg); in dpp3_program_blnd_pwl()
549 REG_SET(CM_BLNDGAM_LUT_DATA, 0, CM_BLNDGAM_LUT_DATA, rgb[i].blue_reg); in dpp3_program_blnd_pwl()
708 const struct pwl_result_data *rgb, in dpp3_program_shaper_lut() argument
[all …]
Ddcn30_mpc.c266 const struct pwl_result_data *rgb, in mpc3_program_ogam_pwl() argument
271 uint32_t last_base_value_red = rgb[num-1].red_reg + rgb[num-1].delta_red_reg; in mpc3_program_ogam_pwl()
272 uint32_t last_base_value_green = rgb[num-1].green_reg + rgb[num-1].delta_green_reg; in mpc3_program_ogam_pwl()
273 uint32_t last_base_value_blue = rgb[num-1].blue_reg + rgb[num-1].delta_blue_reg; in mpc3_program_ogam_pwl()
281 if (is_rgb_equal(rgb, num)) { in mpc3_program_ogam_pwl()
283 REG_SET(MPCC_OGAM_LUT_DATA[mpcc_id], 0, MPCC_OGAM_LUT_DATA, rgb[i].red_reg); 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].green_reg); in mpc3_program_ogam_pwl()
313 REG_SET(MPCC_OGAM_LUT_DATA[mpcc_id], 0, MPCC_OGAM_LUT_DATA, rgb[i].blue_reg); in mpc3_program_ogam_pwl()
765 const struct pwl_result_data *rgb, in mpc3_program_shaper_lut() argument
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_cm_common.c136 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 …]
Ddcn10_dpp_cm.c329 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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/rockchip/
Drockchip_rgb.c75 struct rockchip_rgb *rgb; in rockchip_rgb_init() local
83 rgb = devm_kzalloc(dev, sizeof(*rgb), GFP_KERNEL); in rockchip_rgb_init()
84 if (!rgb) in rockchip_rgb_init()
87 rgb->dev = dev; in rockchip_rgb_init()
88 rgb->drm_dev = drm_dev; in rockchip_rgb_init()
123 encoder = &rgb->encoder; in rockchip_rgb_init()
142 rgb->bridge = bridge; in rockchip_rgb_init()
144 ret = drm_bridge_attach(encoder, rgb->bridge, NULL, 0); in rockchip_rgb_init()
151 return rgb; in rockchip_rgb_init()
159 void rockchip_rgb_fini(struct rockchip_rgb *rgb) in rockchip_rgb_fini() argument
[all …]
Drockchip_rgb.h12 void rockchip_rgb_fini(struct rockchip_rgb *rgb);
21 static inline void rockchip_rgb_fini(struct rockchip_rgb *rgb) in rockchip_rgb_fini() argument
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/modules/color/
Dcolor_gamma.c665 struct pwl_float_data *rgb, in calculate_mapped_value() argument
697 rgb[point->right_index].r, in calculate_mapped_value()
698 rgb[point->left_index].r)), in calculate_mapped_value()
699 rgb[point->left_index].r); in calculate_mapped_value()
705 rgb[point->right_index].g, in calculate_mapped_value()
706 rgb[point->left_index].g)), in calculate_mapped_value()
707 rgb[point->left_index].g); in calculate_mapped_value()
713 rgb[point->right_index].b, in calculate_mapped_value()
714 rgb[point->left_index].b)), in calculate_mapped_value()
715 rgb[point->left_index].b); in calculate_mapped_value()
[all …]
/kernel/linux/linux-5.10/drivers/media/test-drivers/vimc/
Dvimc-debayer.c36 unsigned int col, unsigned int rgb[3]);
319 unsigned int rgb[3]) in vimc_deb_process_rgb_frame()
329 vdeb->src_frame[index + i] = rgb[i]; in vimc_deb_process_rgb_frame()
332 vdeb->src_frame[index + i] = rgb[2 - i]; in vimc_deb_process_rgb_frame()
413 unsigned int rgb[3]) in vimc_deb_calc_rgb_sink()
419 rgb[i] = 0; in vimc_deb_calc_rgb_sink()
468 rgb[color] = rgb[color] + in vimc_deb_calc_rgb_sink()
475 vdeb->sd.name, rgb[color], n_rgb[color]); in vimc_deb_calc_rgb_sink()
483 vdeb->sd.name, lin, col, i, rgb[i], n_rgb[i]); in vimc_deb_calc_rgb_sink()
486 rgb[i] = rgb[i] / n_rgb[i]; in vimc_deb_calc_rgb_sink()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_opp_regamma_v.c474 const struct pwl_result_data *rgb = in program_pwl() local
478 dm_write_reg(xfm_dce->base.ctx, addr, rgb->red_reg); in program_pwl()
479 dm_write_reg(xfm_dce->base.ctx, addr, rgb->green_reg); in program_pwl()
480 dm_write_reg(xfm_dce->base.ctx, addr, rgb->blue_reg); in program_pwl()
483 rgb->delta_red_reg); in program_pwl()
485 rgb->delta_green_reg); in program_pwl()
487 rgb->delta_blue_reg); in program_pwl()
489 ++rgb; in program_pwl()
Ddce110_hw_sequencer.c333 struct pwl_result_data *rgb = rgb_resulted; in convert_to_custom_float() local
384 if (!convert_to_custom_float_format(rgb->red, &fmt, in convert_to_custom_float()
385 &rgb->red_reg)) { in convert_to_custom_float()
390 if (!convert_to_custom_float_format(rgb->green, &fmt, in convert_to_custom_float()
391 &rgb->green_reg)) { in convert_to_custom_float()
396 if (!convert_to_custom_float_format(rgb->blue, &fmt, in convert_to_custom_float()
397 &rgb->blue_reg)) { in convert_to_custom_float()
402 if (!convert_to_custom_float_format(rgb->delta_red, &fmt, in convert_to_custom_float()
403 &rgb->delta_red_reg)) { in convert_to_custom_float()
408 if (!convert_to_custom_float_format(rgb->delta_green, &fmt, in convert_to_custom_float()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/ipu-v3/
Dipu-cpmem.c368 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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_dpp_cm.c87 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 …]
Ddcn20_hubbub.c286 output->grph.rgb.max_uncompressed_blk_size = 256; in hubbub2_get_dcc_compression_cap()
287 output->grph.rgb.max_compressed_blk_size = 256; in hubbub2_get_dcc_compression_cap()
288 output->grph.rgb.independent_64b_blks = false; in hubbub2_get_dcc_compression_cap()
291 output->grph.rgb.max_uncompressed_blk_size = 128; in hubbub2_get_dcc_compression_cap()
292 output->grph.rgb.max_compressed_blk_size = 128; in hubbub2_get_dcc_compression_cap()
293 output->grph.rgb.independent_64b_blks = false; in hubbub2_get_dcc_compression_cap()
296 output->grph.rgb.max_uncompressed_blk_size = 256; in hubbub2_get_dcc_compression_cap()
297 output->grph.rgb.max_compressed_blk_size = 64; in hubbub2_get_dcc_compression_cap()
298 output->grph.rgb.independent_64b_blks = true; in hubbub2_get_dcc_compression_cap()
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dsama5d3_lcd.dtsi58 pinctrl_lcd_rgb444: lcd-rgb-0 {
74 pinctrl_lcd_rgb565: lcd-rgb-1 {
94 pinctrl_lcd_rgb666: lcd-rgb-2 {
116 pinctrl_lcd_rgb666_alt: lcd-rgb-2-alt {
138 pinctrl_lcd_rgb888: lcd-rgb-3 {
166 pinctrl_lcd_rgb888_alt: lcd-rgb-3-alt {
Dstm32mp157c-lxa-mc1.dts49 led-rgb {
53 label = "mc1:red:rgb";
60 label = "mc1:green:rgb";
67 label = "mc1:blue:rgb";
Dat91sam9x5_lcd.dtsi61 pinctrl_lcd_rgb444: lcd-rgb-0 {
77 pinctrl_lcd_rgb565: lcd-rgb-1 {
97 pinctrl_lcd_rgb666: lcd-rgb-2 {
119 pinctrl_lcd_rgb888: lcd-rgb-3 {
/kernel/linux/linux-5.10/Documentation/fb/
Dcmap_xfbdev.rst29 sprintf(colorspec, "rgb:%x/%x/%x", i*36,i*36,i*36);
36 There's also named equivalents like gray1..x provided you have an rgb.txt.
53 directly from the info->cmap.red that was listed above. The prgb is the rgb
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/pwm/
Dpwm-lp3943.txt42 rgb {
43 label = "indi::rgb";

123456