Home
last modified time | relevance | path

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

12345

/Linux-v5.4/drivers/gpu/drm/sun4i/
Dsun4i_rgb.c46 struct sun4i_rgb *rgb = in sun4i_rgb_get_modes() local
49 return drm_panel_get_modes(rgb->panel); in sun4i_rgb_get_modes()
63 struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(crtc); in sun4i_rgb_mode_valid() local
64 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_mode_valid()
107 if (rgb->panel) { in sun4i_rgb_mode_valid()
116 if (!rgb->bridge) in sun4i_rgb_mode_valid()
146 struct sun4i_rgb *rgb = drm_connector_to_sun4i_rgb(connector); in sun4i_rgb_connector_destroy() local
148 drm_panel_detach(rgb->panel); in sun4i_rgb_connector_destroy()
162 struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(encoder); in sun4i_rgb_encoder_enable() local
166 if (rgb->panel) { in sun4i_rgb_encoder_enable()
[all …]
Dsun8i_mixer.c34 .rgb = true,
40 .rgb = true,
46 .rgb = true,
52 .rgb = true,
58 .rgb = true,
64 .rgb = true,
70 .rgb = true,
76 .rgb = true,
82 .rgb = true,
88 .rgb = true,
[all …]
/Linux-v5.4/drivers/gpu/drm/tegra/
Drgb.c120 struct tegra_rgb *rgb = to_rgb(output); in tegra_rgb_encoder_disable() local
125 tegra_dc_write_regs(rgb->dc, rgb_disable, ARRAY_SIZE(rgb_disable)); in tegra_rgb_encoder_disable()
126 tegra_dc_commit(rgb->dc); in tegra_rgb_encoder_disable()
135 struct tegra_rgb *rgb = to_rgb(output); in tegra_rgb_encoder_enable() local
141 tegra_dc_write_regs(rgb->dc, rgb_enable, ARRAY_SIZE(rgb_enable)); in tegra_rgb_encoder_enable()
144 tegra_dc_writel(rgb->dc, value, DC_DISP_DATA_ENABLE_OPTIONS); in tegra_rgb_encoder_enable()
147 value = tegra_dc_readl(rgb->dc, DC_COM_PIN_OUTPUT_POLARITY(1)); in tegra_rgb_encoder_enable()
150 tegra_dc_writel(rgb->dc, value, DC_COM_PIN_OUTPUT_POLARITY(1)); in tegra_rgb_encoder_enable()
155 tegra_dc_writel(rgb->dc, value, DC_DISP_DISP_INTERFACE_CONTROL); in tegra_rgb_encoder_enable()
159 tegra_dc_writel(rgb->dc, value, DC_DISP_SHIFT_CLOCK_OPTIONS); in tegra_rgb_encoder_enable()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/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.c349 const struct pwl_result_data *rgb, in dpp1_cm_program_regamma_lut() argument
356 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].red_reg); in dpp1_cm_program_regamma_lut()
357 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].green_reg); in dpp1_cm_program_regamma_lut()
358 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].blue_reg); in dpp1_cm_program_regamma_lut()
360 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].delta_red_reg); in dpp1_cm_program_regamma_lut()
361 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].delta_green_reg); in dpp1_cm_program_regamma_lut()
362 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].delta_blue_reg); in dpp1_cm_program_regamma_lut()
671 const struct pwl_result_data *rgb, in dpp1_program_degamma_lut() argument
686 REG_SET(CM_DGAM_LUT_DATA, 0, CM_DGAM_LUT_DATA, rgb[i].red_reg); in dpp1_program_degamma_lut()
687 REG_SET(CM_DGAM_LUT_DATA, 0, CM_DGAM_LUT_DATA, rgb[i].green_reg); in dpp1_program_degamma_lut()
[all …]
Ddcn10_hubbub.c919 output->grph.rgb.max_uncompressed_blk_size = 256; in hubbub1_get_dcc_compression_cap()
920 output->grph.rgb.max_compressed_blk_size = 256; in hubbub1_get_dcc_compression_cap()
921 output->grph.rgb.independent_64b_blks = false; in hubbub1_get_dcc_compression_cap()
924 output->grph.rgb.max_uncompressed_blk_size = 128; in hubbub1_get_dcc_compression_cap()
925 output->grph.rgb.max_compressed_blk_size = 128; in hubbub1_get_dcc_compression_cap()
926 output->grph.rgb.independent_64b_blks = false; in hubbub1_get_dcc_compression_cap()
929 output->grph.rgb.max_uncompressed_blk_size = 256; in hubbub1_get_dcc_compression_cap()
930 output->grph.rgb.max_compressed_blk_size = 64; in hubbub1_get_dcc_compression_cap()
931 output->grph.rgb.independent_64b_blks = true; in hubbub1_get_dcc_compression_cap()
/Linux-v5.4/drivers/gpu/drm/rockchip/
Drockchip_rgb.c77 struct rockchip_rgb *rgb; in rockchip_rgb_init() local
85 rgb = devm_kzalloc(dev, sizeof(*rgb), GFP_KERNEL); in rockchip_rgb_init()
86 if (!rgb) in rockchip_rgb_init()
89 rgb->dev = dev; in rockchip_rgb_init()
90 rgb->drm_dev = drm_dev; in rockchip_rgb_init()
124 encoder = &rgb->encoder; in rockchip_rgb_init()
143 rgb->bridge = bridge; in rockchip_rgb_init()
145 ret = drm_bridge_attach(encoder, rgb->bridge, NULL); in rockchip_rgb_init()
152 return rgb; in rockchip_rgb_init()
160 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
/Linux-v5.4/drivers/gpu/drm/amd/display/modules/color/
Dcolor_gamma.c626 struct pwl_float_data *rgb, in calculate_mapped_value() argument
658 rgb[point->right_index].r, in calculate_mapped_value()
659 rgb[point->left_index].r)), in calculate_mapped_value()
660 rgb[point->left_index].r); in calculate_mapped_value()
666 rgb[point->right_index].g, in calculate_mapped_value()
667 rgb[point->left_index].g)), in calculate_mapped_value()
668 rgb[point->left_index].g); in calculate_mapped_value()
674 rgb[point->right_index].b, in calculate_mapped_value()
675 rgb[point->left_index].b)), in calculate_mapped_value()
676 rgb[point->left_index].b); in calculate_mapped_value()
[all …]
/Linux-v5.4/drivers/media/platform/vimc/
Dvimc-debayer.c49 unsigned int col, unsigned int rgb[3]);
302 unsigned int rgb[3]) in vimc_deb_set_rgb_mbus_fmt_rgb888_1x24()
308 vdeb->src_frame[index + i] = rgb[i]; in vimc_deb_set_rgb_mbus_fmt_rgb888_1x24()
379 unsigned int rgb[3]) in vimc_deb_calc_rgb_sink()
385 rgb[i] = 0; in vimc_deb_calc_rgb_sink()
434 rgb[color] = rgb[color] + in vimc_deb_calc_rgb_sink()
441 vdeb->sd.name, rgb[color], n_rgb[color]); in vimc_deb_calc_rgb_sink()
449 vdeb->sd.name, lin, col, i, rgb[i], n_rgb[i]); in vimc_deb_calc_rgb_sink()
452 rgb[i] = rgb[i] / n_rgb[i]; in vimc_deb_calc_rgb_sink()
456 vdeb->sd.name, lin, col, i, rgb[i]); in vimc_deb_calc_rgb_sink()
[all …]
/Linux-v5.4/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.c328 struct pwl_result_data *rgb = rgb_resulted; in convert_to_custom_float() local
379 if (!convert_to_custom_float_format(rgb->red, &fmt, in convert_to_custom_float()
380 &rgb->red_reg)) { in convert_to_custom_float()
385 if (!convert_to_custom_float_format(rgb->green, &fmt, in convert_to_custom_float()
386 &rgb->green_reg)) { in convert_to_custom_float()
391 if (!convert_to_custom_float_format(rgb->blue, &fmt, in convert_to_custom_float()
392 &rgb->blue_reg)) { in convert_to_custom_float()
397 if (!convert_to_custom_float_format(rgb->delta_red, &fmt, in convert_to_custom_float()
398 &rgb->delta_red_reg)) { in convert_to_custom_float()
403 if (!convert_to_custom_float_format(rgb->delta_green, &fmt, in convert_to_custom_float()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/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()
184 const struct pwl_result_data *rgb, in dpp20_program_blnd_pwl() argument
191 REG_SET(CM_BLNDGAM_LUT_DATA, 0, CM_BLNDGAM_LUT_DATA, rgb[i].red_reg); in dpp20_program_blnd_pwl()
192 REG_SET(CM_BLNDGAM_LUT_DATA, 0, CM_BLNDGAM_LUT_DATA, rgb[i].green_reg); in dpp20_program_blnd_pwl()
[all …]
Ddcn20_hubbub.c282 output->grph.rgb.max_uncompressed_blk_size = 256; in hubbub2_get_dcc_compression_cap()
283 output->grph.rgb.max_compressed_blk_size = 256; in hubbub2_get_dcc_compression_cap()
284 output->grph.rgb.independent_64b_blks = false; in hubbub2_get_dcc_compression_cap()
287 output->grph.rgb.max_uncompressed_blk_size = 128; in hubbub2_get_dcc_compression_cap()
288 output->grph.rgb.max_compressed_blk_size = 128; in hubbub2_get_dcc_compression_cap()
289 output->grph.rgb.independent_64b_blks = false; in hubbub2_get_dcc_compression_cap()
292 output->grph.rgb.max_uncompressed_blk_size = 256; in hubbub2_get_dcc_compression_cap()
293 output->grph.rgb.max_compressed_blk_size = 64; in hubbub2_get_dcc_compression_cap()
294 output->grph.rgb.independent_64b_blks = true; in hubbub2_get_dcc_compression_cap()
Ddcn20_mpc.c342 const struct pwl_result_data *rgb, in mpc20_program_ogam_pwl() argument
349 REG_SET(MPCC_OGAM_LUT_DATA[mpcc_id], 0, MPCC_OGAM_LUT_DATA, rgb[i].red_reg); in mpc20_program_ogam_pwl()
350 REG_SET(MPCC_OGAM_LUT_DATA[mpcc_id], 0, MPCC_OGAM_LUT_DATA, rgb[i].green_reg); in mpc20_program_ogam_pwl()
351 REG_SET(MPCC_OGAM_LUT_DATA[mpcc_id], 0, MPCC_OGAM_LUT_DATA, rgb[i].blue_reg); in mpc20_program_ogam_pwl()
354 MPCC_OGAM_LUT_DATA, rgb[i].delta_red_reg); in mpc20_program_ogam_pwl()
356 MPCC_OGAM_LUT_DATA, rgb[i].delta_green_reg); in mpc20_program_ogam_pwl()
358 MPCC_OGAM_LUT_DATA, rgb[i].delta_blue_reg); in mpc20_program_ogam_pwl()
/Linux-v5.4/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 {
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 {
/Linux-v5.4/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
/Linux-v5.4/Documentation/devicetree/bindings/pwm/
Dpwm-lp3943.txt42 rgb {
43 label = "indi::rgb";
/Linux-v5.4/drivers/video/fbdev/
Dsa1100fb.c404 var->red = fbi->rgb[rgbidx]->red; in sa1100fb_check_var()
405 var->green = fbi->rgb[rgbidx]->green; in sa1100fb_check_var()
406 var->blue = fbi->rgb[rgbidx]->blue; in sa1100fb_check_var()
407 var->transp = fbi->rgb[rgbidx]->transp; in sa1100fb_check_var()
1110 fbi->rgb[RGB_4] = &rgb_4; in sa1100fb_init_fbinfo()
1111 fbi->rgb[RGB_8] = &rgb_8; in sa1100fb_init_fbinfo()
1112 fbi->rgb[RGB_16] = &def_rgb_16; in sa1100fb_init_fbinfo()
1146 if (inf->rgb[i]) in sa1100fb_init_fbinfo()
1147 fbi->rgb[i] = inf->rgb[i]; in sa1100fb_init_fbinfo()
Dimxfb.c354 struct imxfb_rgb *rgb; in imxfb_check_var() local
405 rgb = &def_rgb_18; in imxfb_check_var()
415 rgb = &def_rgb_16_tft; in imxfb_check_var()
417 rgb = &def_rgb_16_stn; in imxfb_check_var()
421 rgb = &def_rgb_8; in imxfb_check_var()
439 var->red = rgb->red; in imxfb_check_var()
440 var->green = rgb->green; in imxfb_check_var()
441 var->blue = rgb->blue; in imxfb_check_var()
442 var->transp = rgb->transp; in imxfb_check_var()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dce/
Ddce_transform.c1144 const struct pwl_result_data *rgb = params->rgb_resulted; in program_pwl() local
1189 REG_WRITE(REGAMMA_LUT_DATA, rgb->red_reg); in program_pwl()
1190 REG_WRITE(REGAMMA_LUT_DATA, rgb->green_reg); in program_pwl()
1191 REG_WRITE(REGAMMA_LUT_DATA, rgb->blue_reg); in program_pwl()
1192 REG_WRITE(REGAMMA_LUT_DATA, rgb->delta_red_reg); in program_pwl()
1193 REG_WRITE(REGAMMA_LUT_DATA, rgb->delta_green_reg); in program_pwl()
1194 REG_WRITE(REGAMMA_LUT_DATA, rgb->delta_blue_reg); in program_pwl()
1196 ++rgb; in program_pwl()
/Linux-v5.4/Documentation/devicetree/bindings/display/rockchip/
Drockchip-lvds.txt19 - rockchip,output: "rgb", "lvds" or "duallvds", This describes the output interface
62 rockchip,output = "rgb";

12345