Home
last modified time | relevance | path

Searched full:rgb (Results 1 – 25 of 680) sorted by relevance

12345678910>>...28

/Linux-v6.1/drivers/gpu/drm/tegra/
Drgb.c93 struct tegra_rgb *rgb = to_rgb(output); in tegra_rgb_encoder_disable() local
95 tegra_dc_write_regs(rgb->dc, rgb_disable, ARRAY_SIZE(rgb_disable)); in tegra_rgb_encoder_disable()
96 tegra_dc_commit(rgb->dc); in tegra_rgb_encoder_disable()
102 struct tegra_rgb *rgb = to_rgb(output); in tegra_rgb_encoder_enable() local
105 tegra_dc_write_regs(rgb->dc, rgb_enable, ARRAY_SIZE(rgb_enable)); in tegra_rgb_encoder_enable()
108 tegra_dc_writel(rgb->dc, value, DC_DISP_DATA_ENABLE_OPTIONS); in tegra_rgb_encoder_enable()
111 value = tegra_dc_readl(rgb->dc, DC_COM_PIN_OUTPUT_POLARITY(1)); in tegra_rgb_encoder_enable()
114 tegra_dc_writel(rgb->dc, value, DC_COM_PIN_OUTPUT_POLARITY(1)); in tegra_rgb_encoder_enable()
119 tegra_dc_writel(rgb->dc, value, DC_DISP_DISP_INTERFACE_CONTROL); in tegra_rgb_encoder_enable()
121 tegra_dc_commit(rgb->dc); in tegra_rgb_encoder_enable()
[all …]
/Linux-v6.1/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()
110 DRM_DEBUG_DRIVER("RGB panel used, skipping clock rate checks"); 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
163 DRM_DEBUG_DRIVER("Enabling RGB output\n"); in sun4i_rgb_encoder_enable()
165 if (rgb->panel) { in sun4i_rgb_encoder_enable()
[all …]
/Linux-v6.1/drivers/hid/
Dhid-led.c3 * Simple USB RGB LED driver
84 struct hidled_rgb *rgb; member
99 struct hidled_rgb *rgb; member
111 "switch green and blue RGB component for Riso Kagaku devices");
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()
[all …]
/Linux-v6.1/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_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_cm.c82 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()
/Linux-v6.1/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 …]
/Linux-v6.1/drivers/gpu/drm/rockchip/
Drockchip_rgb.c79 struct rockchip_rgb *rgb; in rockchip_rgb_init() local
88 rgb = devm_kzalloc(dev, sizeof(*rgb), GFP_KERNEL); in rockchip_rgb_init()
89 if (!rgb) in rockchip_rgb_init()
92 rgb->dev = dev; in rockchip_rgb_init()
93 rgb->drm_dev = drm_dev; in rockchip_rgb_init()
118 /* if the rgb output is not connected to anything, just return */ in rockchip_rgb_init()
128 encoder = &rgb->encoder; in rockchip_rgb_init()
147 rgb->bridge = bridge; in rockchip_rgb_init()
149 ret = drm_bridge_attach(encoder, rgb->bridge, NULL, in rockchip_rgb_init()
154 connector = &rgb->connector; in rockchip_rgb_init()
[all …]
/Linux-v6.1/scripts/
Dbootgraph.pl150 $styles[0] = "fill:rgb(0,0,255);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
151 $styles[1] = "fill:rgb(0,255,0);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
152 $styles[2] = "fill:rgb(255,0,20);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
153 $styles[3] = "fill:rgb(255,255,20);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
154 $styles[4] = "fill:rgb(255,0,255);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
155 $styles[5] = "fill:rgb(0,255,255);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
156 $styles[6] = "fill:rgb(0,128,255);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
157 $styles[7] = "fill:rgb(0,255,128);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
158 $styles[8] = "fill:rgb(255,0,128);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
159 $styles[9] = "fill:rgb(255,255,128);fill-opacity:0.5;stroke-width:1;stroke:rgb(0,0,0)";
[all …]
/Linux-v6.1/drivers/leds/
DTODO29 really different from driver for RGB color LED that can run its own
32 * Figure out what to do with RGB leds
36 RGB, and not even RGB-White or RGB-Yellow variants emerged.
38 Multicolor is not a good fit for RGB LED. It does not really know
44 Proposal: let's add "rgb" to led_colors in drivers/leds/led-core.c,
46 multicolor for RGB LEDs.
50 RGB LEDs are quite common, and it would be good to be able to turn LED
70 In future, it would be good to be able to set rgb led to particular
/Linux-v6.1/drivers/gpu/drm/amd/display/modules/color/
Dcolor_gamma.c680 struct pwl_float_data *rgb, in calculate_mapped_value() argument
712 rgb[point->right_index].r, in calculate_mapped_value()
713 rgb[point->left_index].r)), in calculate_mapped_value()
714 rgb[point->left_index].r); in calculate_mapped_value()
720 rgb[point->right_index].g, in calculate_mapped_value()
721 rgb[point->left_index].g)), in calculate_mapped_value()
722 rgb[point->left_index].g); in calculate_mapped_value()
728 rgb[point->right_index].b, in calculate_mapped_value()
729 rgb[point->left_index].b)), in calculate_mapped_value()
730 rgb[point->left_index].b); in calculate_mapped_value()
[all …]
/Linux-v6.1/tools/perf/util/
Dsvghelper.c115 …printf(svgfile, " rect.process { fill:rgb(180,180,180); fill-opacity:0.9; stroke-width:1; … in open_svg()
116 …printf(svgfile, " rect.process2 { fill:rgb(180,180,180); fill-opacity:0.9; stroke-width:0; … in open_svg()
117 …printf(svgfile, " rect.process3 { fill:rgb(180,180,180); fill-opacity:0.5; stroke-width:0; … in open_svg()
118 …printf(svgfile, " rect.sample { fill:rgb( 0, 0,255); fill-opacity:0.8; stroke-width:0; … in open_svg()
119 …printf(svgfile, " rect.sample_hi{ fill:rgb(255,128, 0); fill-opacity:0.8; stroke-width:0; … in open_svg()
120 …printf(svgfile, " rect.error { fill:rgb(255, 0, 0); fill-opacity:0.5; stroke-width:0; … in open_svg()
121 …printf(svgfile, " rect.net { fill:rgb( 0,128, 0); fill-opacity:0.5; stroke-width:0; … in open_svg()
122 …printf(svgfile, " rect.disk { fill:rgb( 0, 0,255); fill-opacity:0.5; stroke-width:0; … in open_svg()
123 …printf(svgfile, " rect.sync { fill:rgb(128,128, 0); fill-opacity:0.5; stroke-width:0; … in open_svg()
124 …printf(svgfile, " rect.poll { fill:rgb( 0,128,128); fill-opacity:0.2; stroke-width:0; … in open_svg()
[all …]
/Linux-v6.1/drivers/gpu/drm/panel/
DKconfig48 uses 24 bit RGB per pixel. It provides a MIPI DSI interface to
59 24 bit RGB per pixel. It provides a MIPI DSI interface to
163 QVGA (320x240) RGB, YUV and ITU-T BT.656 panels.
174 QVGA (240x320) RGB panels. support serial & parallel rgb
203 24 bit RGB per pixel. It provides a MIPI DSI interface to
214 The panel has a 1200(RGB)×1920 (WUXGA) resolution and uses
234 24 bit RGB per pixel. It provides a MIPI DSI interface to
245 24 bit RGB per pixel. It provides a MIPI DSI interface to
256 24 bit RGB per pixel. It provides a MIPI DSI interface to
267 24 bit RGB per pixel. It provides a MIPI DSI interface to
[all …]
Dpanel-tpo-tpg110.c102 .name = "800x480 RGB",
118 .name = "640x480 RGB",
134 .name = "480x272 RGB",
150 .name = "480x640 RGB",
166 .name = "400x240 RGB",
286 dev_info(tpg->dev, "IN 400x240 RGB -> OUT 800x480 RGB (dual scan)\n"); in tpg110_startup()
289 dev_info(tpg->dev, "IN 480x272 RGB -> OUT 800x480 RGB (dual scan)\n"); in tpg110_startup()
292 dev_info(tpg->dev, "480x640 RGB\n"); in tpg110_startup()
295 dev_info(tpg->dev, "480x272 RGB\n"); in tpg110_startup()
298 dev_info(tpg->dev, "640x480 RGB\n"); in tpg110_startup()
[all …]
/Linux-v6.1/drivers/gpu/ipu-v3/
Dipu-ic-csc.c29 * RGB full-range to RGB limited-range
46 * RGB limited-range to RGB full-range
112 * BT.601 RGB full-range to YUV full-range
128 /* BT.601 RGB full-range to YUV limited-range */
140 /* BT.601 RGB limited-range to YUV full-range */
151 /* BT.601 RGB limited-range to YUV limited-range */
164 * BT.601 YUV full-range to RGB full-range
186 /* BT.601 YUV full-range to RGB limited-range */
197 /* BT.601 YUV limited-range to RGB full-range */
208 /* BT.601 YUV limited-range to RGB limited-range */
[all …]
Dipu-cpmem.c153 * The V4L2 spec defines packed RGB formats in memory byte order, which from
159 * https://linuxtv.org/downloads/v4l-dvb-apis/packed-rgb.html
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()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/display/
Dxylon,logicvc-display.yaml69 # Parallel RGB interface (C_DISPLAY_INTERFACE == 0)
70 - parallel-rgb
83 # RGB colorspace (C_DISPLAY_COLOR_SPACE == 0)
84 - rgb
139 # RGB colorspace (C_LAYER_X_TYPE == 0)
140 - rgb
234 xylon,display-colorspace = "rgb";
247 xylon,layer-colorspace = "rgb";
257 xylon,layer-colorspace = "rgb";
266 xylon,layer-colorspace = "rgb";
[all …]
/Linux-v6.1/drivers/media/test-drivers/vimc/
Dvimc-debayer.c37 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()
465 "deb: %s: RGB CALC: frame index %d, win pos %dx%d, color %d\n", in vimc_debayer_calc_rgb_sink()
469 rgb[color] = rgb[color] + in vimc_debayer_calc_rgb_sink()
476 dev_dbg(vdebayer->ved.dev, "deb: %s: RGB CALC: val %d, n %d\n", in vimc_debayer_calc_rgb_sink()
477 vdebayer->sd.name, rgb[color], n_rgb[color]); in vimc_debayer_calc_rgb_sink()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/leds/
Dcznic,turris-omnia-leds.yaml13 This module adds support for the RGB LEDs found on the front panel of the
14 Turris Omnia router. There are 12 RGB LEDs that are controlled by a
39 This node represents one of the RGB LED devices on Turris Omnia.
41 supports RGB LEDs.
73 * No subnodes are needed, this controller only supports RGB
/Linux-v6.1/Documentation/userspace-api/media/v4l/
Dcolorspaces.rst13 actually *means* to have an RGB value of e.g. (255, 0, 0). That is,
23 different wavelengths, so instead of RGB we would be using the
91 Both the CIE XYZ and the RGB colorspace that are derived from the
99 values are denoted RGB, non-linear are denoted as R'G'B'. In general
101 linear RGB. Special care should be taken when dealing with openGL to
102 provide linear RGB colors or to use the built-in openGL support to apply
121 The final step is how the RGB, R'G'B' or Y'CbCr values are quantized.
130 definition. In practice RGB or R'G'B' values are full range, i.e. they
134 Unfortunately, in some cases limited range RGB is also used where the
/Linux-v6.1/drivers/staging/media/atomisp/pci/
Dsh_css_defs.h85 CCM : YCgCo[0,8191] -> RGB[0,4095]
86 sRGB Gamma : RGB [0,4095] -> RGB[0,8191]
87 CSC : RGB [0,8191] -> YUV[0,8191]
90 Y[0,8191],CgCo[-4096,4095],coef[-8192,8191] -> RGB[0,4095]
93 RGB[0,4095] -(interpolation step16)-> RGB[0,255] -(LUT 12bit)-> RGB[0,4095] -> RGB[0,8191]
96 RGB[0,8191],coef[-8192,8191] -> RGB[0,8191]
110 /* Bits of output of CCM, = 12, RGB[0,4095] */
/Linux-v6.1/drivers/gpu/drm/rcar-du/
Drcar_du_drv.c44 * R8A774[34] has one RGB output and one LVDS output
68 * R8A7745 has two RGB outputs
91 * R8A77470 has two RGB outputs, one LVDS output, and
120 * R8A774A1 has one RGB output, one LVDS output and one HDMI
151 * R8A774B1 has one RGB output, one LVDS output and one HDMI
180 * R8A774C0 has one RGB output and two LVDS outputs
210 * R8A774E1 has one RGB output, one LVDS output and one HDMI
238 * R8A7779 has two RGB outputs and one (currently unsupported)
262 * R8A7742 and R8A7790 each have one RGB output and two LVDS
293 * R8A779[13] has one RGB output, one LVDS output and one
[all …]
/Linux-v6.1/Documentation/leds/
Dleds-lp5562.rst26 Value: RGB or W
46 Engine mux has two different mode, RGB and W.
47 RGB is used for loading RGB program data, W is used for W program data.
52 echo "RGB" > /sys/bus/i2c/devices/xxxx/engine_mux # engine mux for RGB
/Linux-v6.1/drivers/staging/fbtft/
Dfb_hx8353d.c83 * rgb/bgr: in set_var()
85 * rgb h/w pin for color filter setting: 0=rgb, 1=bgr in set_var()
86 * 2. madctl rgb bit in set_var()
87 * rgb-bgr order color filter panel: 0=rgb, 1=bgr in set_var()

12345678910>>...28