Home
last modified time | relevance | path

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

1234

/Linux-v4.19/drivers/gpu/drm/tegra/
Drgb.c123 struct tegra_rgb *rgb = to_rgb(output); in tegra_rgb_encoder_disable() local
128 tegra_dc_write_regs(rgb->dc, rgb_disable, ARRAY_SIZE(rgb_disable)); in tegra_rgb_encoder_disable()
129 tegra_dc_commit(rgb->dc); in tegra_rgb_encoder_disable()
138 struct tegra_rgb *rgb = to_rgb(output); in tegra_rgb_encoder_enable() local
144 tegra_dc_write_regs(rgb->dc, rgb_enable, ARRAY_SIZE(rgb_enable)); in tegra_rgb_encoder_enable()
147 tegra_dc_writel(rgb->dc, value, DC_DISP_DATA_ENABLE_OPTIONS); in tegra_rgb_encoder_enable()
150 value = tegra_dc_readl(rgb->dc, DC_COM_PIN_OUTPUT_POLARITY(1)); in tegra_rgb_encoder_enable()
153 tegra_dc_writel(rgb->dc, value, DC_COM_PIN_OUTPUT_POLARITY(1)); in tegra_rgb_encoder_enable()
158 tegra_dc_writel(rgb->dc, value, DC_DISP_DISP_INTERFACE_CONTROL); in tegra_rgb_encoder_enable()
162 tegra_dc_writel(rgb->dc, value, DC_DISP_SHIFT_CLOCK_OPTIONS); in tegra_rgb_encoder_enable()
[all …]
DMakefile12 rgb.o \
/Linux-v4.19/drivers/gpu/drm/sun4i/
Dsun4i_rgb.c48 struct sun4i_rgb *rgb = in sun4i_rgb_get_modes() local
50 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_get_modes()
58 struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(crtc); in sun4i_rgb_mode_valid() local
59 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_mode_valid()
116 struct sun4i_rgb *rgb = drm_connector_to_sun4i_rgb(connector); in sun4i_rgb_connector_destroy() local
117 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_connector_destroy()
133 struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(encoder); in sun4i_rgb_encoder_enable() local
134 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_encoder_enable()
146 struct sun4i_rgb *rgb = drm_encoder_to_sun4i_rgb(encoder); in sun4i_rgb_encoder_disable() local
147 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_encoder_disable()
[all …]
Dsun8i_mixer.c38 .rgb = true,
44 .rgb = true,
50 .rgb = true,
56 .rgb = true,
62 .rgb = true,
68 .rgb = true,
74 .rgb = true,
80 .rgb = true,
86 .rgb = true,
92 .rgb = true,
[all …]
/Linux-v4.19/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
192 if (!convert_to_custom_float_format(rgb->red, &fmt, in cm_helper_convert_to_custom_float()
193 &rgb->red_reg)) { in cm_helper_convert_to_custom_float()
198 if (!convert_to_custom_float_format(rgb->green, &fmt, in cm_helper_convert_to_custom_float()
199 &rgb->green_reg)) { in cm_helper_convert_to_custom_float()
204 if (!convert_to_custom_float_format(rgb->blue, &fmt, in cm_helper_convert_to_custom_float()
205 &rgb->blue_reg)) { in cm_helper_convert_to_custom_float()
210 if (!convert_to_custom_float_format(rgb->delta_red, &fmt, in cm_helper_convert_to_custom_float()
211 &rgb->delta_red_reg)) { in cm_helper_convert_to_custom_float()
216 if (!convert_to_custom_float_format(rgb->delta_green, &fmt, in cm_helper_convert_to_custom_float()
[all …]
Ddcn10_dpp_cm.c360 const struct pwl_result_data *rgb, in dpp1_cm_program_regamma_lut() argument
367 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].red_reg); in dpp1_cm_program_regamma_lut()
368 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].green_reg); in dpp1_cm_program_regamma_lut()
369 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].blue_reg); in dpp1_cm_program_regamma_lut()
371 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].delta_red_reg); in dpp1_cm_program_regamma_lut()
372 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].delta_green_reg); in dpp1_cm_program_regamma_lut()
373 REG_SET(CM_RGAM_LUT_DATA, 0, CM_RGAM_LUT_DATA, rgb[i].delta_blue_reg); in dpp1_cm_program_regamma_lut()
682 const struct pwl_result_data *rgb, in dpp1_program_degamma_lut() argument
697 REG_SET(CM_DGAM_LUT_DATA, 0, CM_DGAM_LUT_DATA, rgb[i].red_reg); in dpp1_program_degamma_lut()
698 REG_SET(CM_DGAM_LUT_DATA, 0, CM_DGAM_LUT_DATA, rgb[i].green_reg); in dpp1_program_degamma_lut()
[all …]
Ddcn10_hubbub.c761 output->grph.rgb.max_uncompressed_blk_size = 256; in hubbub1_get_dcc_compression_cap()
762 output->grph.rgb.max_compressed_blk_size = 256; in hubbub1_get_dcc_compression_cap()
763 output->grph.rgb.independent_64b_blks = false; in hubbub1_get_dcc_compression_cap()
766 output->grph.rgb.max_uncompressed_blk_size = 128; in hubbub1_get_dcc_compression_cap()
767 output->grph.rgb.max_compressed_blk_size = 128; in hubbub1_get_dcc_compression_cap()
768 output->grph.rgb.independent_64b_blks = false; in hubbub1_get_dcc_compression_cap()
771 output->grph.rgb.max_uncompressed_blk_size = 256; in hubbub1_get_dcc_compression_cap()
772 output->grph.rgb.max_compressed_blk_size = 64; in hubbub1_get_dcc_compression_cap()
773 output->grph.rgb.independent_64b_blks = true; in hubbub1_get_dcc_compression_cap()
/Linux-v4.19/drivers/hid/
Dhid-led.c87 struct hidled_rgb *rgb; member
102 struct hidled_rgb *rgb; member
178 static u8 riso_kagaku_index(struct hidled_rgb *rgb) in riso_kagaku_index() argument
182 r = rgb->red.cdev.brightness; in riso_kagaku_index()
183 g = rgb->green.cdev.brightness; in riso_kagaku_index()
184 b = rgb->blue.cdev.brightness; in riso_kagaku_index()
195 struct hidled_rgb *rgb = led->rgb; in riso_kagaku_write() local
198 buf[1] = riso_kagaku_index(rgb); in riso_kagaku_write()
200 return hidled_send(rgb->ldev, buf); in riso_kagaku_write()
206 struct hidled_rgb *rgb = led->rgb; in dream_cheeky_write() local
[all …]
/Linux-v4.19/drivers/gpu/drm/amd/display/modules/color/
Dcolor_gamma.c544 struct pwl_float_data *rgb, in calculate_mapped_value() argument
576 rgb[point->right_index].r, in calculate_mapped_value()
577 rgb[point->left_index].r)), in calculate_mapped_value()
578 rgb[point->left_index].r); in calculate_mapped_value()
584 rgb[point->right_index].g, in calculate_mapped_value()
585 rgb[point->left_index].g)), in calculate_mapped_value()
586 rgb[point->left_index].g); in calculate_mapped_value()
592 rgb[point->right_index].b, in calculate_mapped_value()
593 rgb[point->left_index].b)), in calculate_mapped_value()
594 rgb[point->left_index].b); in calculate_mapped_value()
[all …]
/Linux-v4.19/drivers/media/platform/vimc/
Dvimc-debayer.c59 unsigned int col, unsigned int rgb[3]);
312 unsigned int rgb[3]) in vimc_deb_set_rgb_mbus_fmt_rgb888_1x24()
318 vdeb->src_frame[index + i] = rgb[i]; in vimc_deb_set_rgb_mbus_fmt_rgb888_1x24()
402 unsigned int rgb[3]) in vimc_deb_calc_rgb_sink()
408 rgb[i] = 0; in vimc_deb_calc_rgb_sink()
457 rgb[color] = rgb[color] + in vimc_deb_calc_rgb_sink()
464 vdeb->sd.name, rgb[color], n_rgb[color]); in vimc_deb_calc_rgb_sink()
472 vdeb->sd.name, lin, col, i, rgb[i], n_rgb[i]); in vimc_deb_calc_rgb_sink()
475 rgb[i] = rgb[i] / n_rgb[i]; in vimc_deb_calc_rgb_sink()
479 vdeb->sd.name, lin, col, i, rgb[i]); in vimc_deb_calc_rgb_sink()
[all …]
/Linux-v4.19/drivers/staging/media/davinci_vpfe/
Ddm365_ipipe_hw.c74 struct resizer_rgb *rgb; in rsz_set_rsz_regs() local
79 rgb = &params->rsz2rgb[rsz_id]; in rsz_set_rsz_regs()
149 regw_rsz(rsz_base, rgb->rgb_en, reg_base + RSZ_RGB_EN); in rsz_set_rsz_regs()
151 val = (rgb->rgb_typ << RSZ_RGB_TYP_SHIFT) | in rsz_set_rsz_regs()
152 (rgb->rgb_msk0 << RSZ_RGB_MSK0_SHIFT) | in rsz_set_rsz_regs()
153 (rgb->rgb_msk1 << RSZ_RGB_MSK1_SHIFT); in rsz_set_rsz_regs()
156 regw_rsz(rsz_base, rgb->rgb_alpha_val & RSZ_RGB_ALPHA_MASK, in rsz_set_rsz_regs()
672 struct vpfe_ipipe_rgb2rgb *rgb) in ipipe_set_rgb2rgb_regs() argument
691 val = (rgb->coef_rr.decimal & 0xff) | in ipipe_set_rgb2rgb_regs()
692 ((rgb->coef_rr.integer & integ_mask) << 8); in ipipe_set_rgb2rgb_regs()
[all …]
/Linux-v4.19/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_opp_regamma_v.c472 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()
Ddce110_hw_sequencer.c321 struct pwl_result_data *rgb = rgb_resulted; in convert_to_custom_float() local
372 if (!convert_to_custom_float_format(rgb->red, &fmt, in convert_to_custom_float()
373 &rgb->red_reg)) { in convert_to_custom_float()
378 if (!convert_to_custom_float_format(rgb->green, &fmt, in convert_to_custom_float()
379 &rgb->green_reg)) { in convert_to_custom_float()
384 if (!convert_to_custom_float_format(rgb->blue, &fmt, in convert_to_custom_float()
385 &rgb->blue_reg)) { in convert_to_custom_float()
390 if (!convert_to_custom_float_format(rgb->delta_red, &fmt, in convert_to_custom_float()
391 &rgb->delta_red_reg)) { in convert_to_custom_float()
396 if (!convert_to_custom_float_format(rgb->delta_green, &fmt, in convert_to_custom_float()
[all …]
/Linux-v4.19/drivers/gpu/ipu-v3/
Dipu-cpmem.c330 const struct ipu_rgb *rgb) in ipu_cpmem_set_format_rgb() argument
334 ro = rgb->bits_per_pixel - rgb->red.length - rgb->red.offset; in ipu_cpmem_set_format_rgb()
335 go = rgb->bits_per_pixel - rgb->green.length - rgb->green.offset; in ipu_cpmem_set_format_rgb()
336 bo = rgb->bits_per_pixel - rgb->blue.length - rgb->blue.offset; in ipu_cpmem_set_format_rgb()
337 to = rgb->bits_per_pixel - rgb->transp.length - rgb->transp.offset; in ipu_cpmem_set_format_rgb()
339 ipu_ch_param_write_field(ch, IPU_FIELD_WID0, rgb->red.length - 1); in ipu_cpmem_set_format_rgb()
341 ipu_ch_param_write_field(ch, IPU_FIELD_WID1, rgb->green.length - 1); in ipu_cpmem_set_format_rgb()
343 ipu_ch_param_write_field(ch, IPU_FIELD_WID2, rgb->blue.length - 1); in ipu_cpmem_set_format_rgb()
346 if (rgb->transp.length) { in ipu_cpmem_set_format_rgb()
348 rgb->transp.length - 1); in ipu_cpmem_set_format_rgb()
[all …]
/Linux-v4.19/Documentation/media/uapi/v4l/
Dpixfmt-rgb.rst3 .. _pixfmt-rgb:
13 pixfmt-packed-rgb
/Linux-v4.19/arch/arm/boot/dts/
Dsama5d3_lcd.dtsi59 pinctrl_lcd_rgb444: lcd-rgb-0 {
75 pinctrl_lcd_rgb565: lcd-rgb-1 {
95 pinctrl_lcd_rgb666: lcd-rgb-2 {
117 pinctrl_lcd_rgb666_alt: lcd-rgb-2-alt {
139 pinctrl_lcd_rgb888: lcd-rgb-3 {
167 pinctrl_lcd_rgb888_alt: lcd-rgb-3-alt {
Dat91sam9x5_lcd.dtsi59 pinctrl_lcd_rgb444: lcd-rgb-0 {
75 pinctrl_lcd_rgb565: lcd-rgb-1 {
95 pinctrl_lcd_rgb666: lcd-rgb-2 {
117 pinctrl_lcd_rgb888: lcd-rgb-3 {
/Linux-v4.19/Documentation/fb/
Dcmap_xfbdev.txt26 sprintf(colorspec, "rgb:%x/%x/%x", i*36,i*36,i*36);
32 There's also named equivalents like gray1..x provided you have an rgb.txt.
49 directly from the info->cmap.red that was listed above. The prgb is the rgb
/Linux-v4.19/Documentation/devicetree/bindings/pwm/
Dpwm-lp3943.txt42 rgb {
43 label = "indi::rgb";
/Linux-v4.19/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()
1160 fbi->rgb[RGB_4] = &rgb_4; in sa1100fb_init_fbinfo()
1161 fbi->rgb[RGB_8] = &rgb_8; in sa1100fb_init_fbinfo()
1162 fbi->rgb[RGB_16] = &def_rgb_16; in sa1100fb_init_fbinfo()
1196 if (inf->rgb[i]) in sa1100fb_init_fbinfo()
1197 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()
Dmxsfb.c270 const struct fb_bitfield *rgb = NULL; in mxsfb_check_var() local
284 rgb = def_rgb565; in mxsfb_check_var()
295 rgb = def_rgb888; in mxsfb_check_var()
308 var->red = rgb[RED]; in mxsfb_check_var()
309 var->green = rgb[GREEN]; in mxsfb_check_var()
310 var->blue = rgb[BLUE]; in mxsfb_check_var()
311 var->transp = rgb[TRANSP]; in mxsfb_check_var()
/Linux-v4.19/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-v4.19/Documentation/devicetree/bindings/display/rockchip/
Drockchip-lvds.txt19 - rockchip,output: "rgb", "lvds" or "duallvds", This describes the output interface
73 rockchip,output = "rgb";
/Linux-v4.19/drivers/media/platform/vivid/
Dvivid-osd.c51 const u16 *rgb = rgb555; in vivid_clear_fb() local
55 rgb = rgb565; in vivid_clear_fb()
61 d[x] = rgb[(y / 16 + x / 16) % 16]; in vivid_clear_fb()

1234