Searched refs:rgb (Results 1 - 21 of 21) sorted by last modified time

/drivers/video/fbdev/
H A Dep93xx-fb.c360 unsigned int ctrl, i, rgb, lut_current, lut_stat; local
366 rgb = ((red & 0xff00) << 8) | (green & 0xff00) |
369 pal[regno] = rgb;
370 ep93xxfb_writel(fbi, rgb, (EP93XXFB_COLOR_LUT + (regno << 2)));
H A Dimxfb.c350 struct imxfb_rgb *rgb; local
401 rgb = &def_rgb_18;
411 rgb = &def_rgb_16_tft;
413 rgb = &def_rgb_16_stn;
417 rgb = &def_rgb_8;
430 var->red = rgb->red;
431 var->green = rgb->green;
432 var->blue = rgb->blue;
433 var->transp = rgb->transp;
H A Dmxsfb.c271 const struct fb_bitfield *rgb = NULL; local
285 rgb = def_rgb565;
296 rgb = def_rgb888;
309 var->red = rgb[RED];
310 var->green = rgb[GREEN];
311 var->blue = rgb[BLUE];
312 var->transp = rgb[TRANSP];
H A Dsa1100fb.c405 var->red = fbi->rgb[rgbidx]->red;
406 var->green = fbi->rgb[rgbidx]->green;
407 var->blue = fbi->rgb[rgbidx]->blue;
408 var->transp = fbi->rgb[rgbidx]->transp;
1158 fbi->rgb[RGB_4] = &rgb_4;
1159 fbi->rgb[RGB_8] = &rgb_8;
1160 fbi->rgb[RGB_16] = &def_rgb_16;
1194 if (inf->rgb[i])
1195 fbi->rgb[i] = inf->rgb[
[all...]
H A Dsa1100fb.h34 const struct sa1100fb_rgb *rgb[NR_RGB]; member in struct:sa1100fb_info
H A Damba-clcd.c240 bool bgr, rgb; local
243 rgb = caps & CLCD_CAP_RGB && var->red.offset == 0;
245 if (!bgr && !rgb)
/drivers/tty/vt/
H A Dvt.c1234 struct rgb { u8 r; u8 g; u8 b; }; struct
1236 struct rgb rgb_from_256(int i)
1238 struct rgb c;
1256 static void rgb_foreground(struct vc_data *vc, struct rgb c)
1273 static void rgb_background(struct vc_data *vc, struct rgb c)
1370 struct rgb c = {r:vc->vc_par[i+1],
1391 struct rgb c = {r:vc->vc_par[i+1],
/drivers/staging/media/davinci_vpfe/
H A Ddm365_ipipe_hw.c74 struct resizer_rgb *rgb; local
79 rgb = &params->rsz2rgb[rsz_id];
148 /* setting rgb conversion parameters */
149 regw_rsz(rsz_base, rgb->rgb_en, reg_base + RSZ_RGB_EN);
151 val = (rgb->rgb_typ << RSZ_RGB_TYP_SHIFT) |
152 (rgb->rgb_msk0 << RSZ_RGB_MSK0_SHIFT) |
153 (rgb->rgb_msk1 << RSZ_RGB_MSK1_SHIFT);
156 regw_rsz(rsz_base, rgb->rgb_alpha_val & RSZ_RGB_ALPHA_MASK,
675 struct vpfe_ipipe_rgb2rgb *rgb)
692 val = (rgb
674 ipipe_set_rgb2rgb_regs(void *__iomem base_addr, unsigned int id, struct vpfe_ipipe_rgb2rgb *rgb) argument
[all...]
H A Ddm365_ipipe_hw.h533 struct vpfe_ipipe_rgb2rgb *rgb);
/drivers/platform/x86/
H A Dalienware-wmi.c177 long unsigned int rgb; local
184 ret = kstrtoul(buf, 16, &rgb);
189 if (rgb > 0xFFFFFF)
192 repackager.package = rgb & 0x0f0f0f0f;
/drivers/ps3/
H A Dps3av.c698 pr_debug("color space rgb: %02x\n", info->cs.rgb);
765 int i, res, id = 0, dvi = 0, rgb = 0; local
799 rgb = PS3AV_MODE_RGB;
803 return id | dvi | rgb;
/drivers/gpu/drm/nouveau/dispnv04/
H A Dcrtc.c770 struct rgb { uint8_t r, g, b; } __attribute__((packed)) *rgbs; struct
773 rgbs = (struct rgb *)nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index].DAC;
959 /* hw gets unhappy if alpha <= rgb values. for a PM image "less
/drivers/gpu/drm/tegra/
H A DMakefile9 rgb.o \
H A Ddrm.h111 struct tegra_output *rgb; member in struct:tegra_dc
257 /* from rgb.c */
H A Drgb.c90 struct tegra_rgb *rgb = to_rgb(output); local
93 if (rgb->enabled)
96 tegra_dc_write_regs(rgb->dc, rgb_enable, ARRAY_SIZE(rgb_enable));
99 tegra_dc_writel(rgb->dc, value, DC_DISP_DATA_ENABLE_OPTIONS);
102 value = tegra_dc_readl(rgb->dc, DC_COM_PIN_OUTPUT_POLARITY(1));
105 tegra_dc_writel(rgb->dc, value, DC_COM_PIN_OUTPUT_POLARITY(1));
110 tegra_dc_writel(rgb->dc, value, DC_DISP_DISP_INTERFACE_CONTROL);
114 tegra_dc_writel(rgb->dc, value, DC_DISP_SHIFT_CLOCK_OPTIONS);
116 value = tegra_dc_readl(rgb->dc, DC_CMD_DISPLAY_COMMAND);
119 tegra_dc_writel(rgb
136 struct tegra_rgb *rgb = to_rgb(output); local
165 struct tegra_rgb *rgb = to_rgb(output); local
221 struct tegra_rgb *rgb; local
279 struct tegra_rgb *rgb = to_rgb(dc->rgb); local
[all...]
/drivers/gpu/ipu-v3/
H A Dipu-cpmem.c164 * http://linuxtv.org/downloads/v4l-dvb-apis/packed-rgb.html
293 const struct ipu_rgb *rgb)
297 ro = rgb->bits_per_pixel - rgb->red.length - rgb->red.offset;
298 go = rgb->bits_per_pixel - rgb->green.length - rgb->green.offset;
299 bo = rgb->bits_per_pixel - rgb
292 ipu_cpmem_set_format_rgb(struct ipuv3_channel *ch, const struct ipu_rgb *rgb) argument
[all...]
/drivers/hid/
H A Dhid-thingm.c48 struct thingm_rgb *rgb; member in struct:thingm_led
71 struct thingm_rgb *rgb; member in struct:thingm_device
123 static int thingm_write_color(struct thingm_rgb *rgb) argument
125 u8 buf[REPORT_SIZE] = { REPORT_ID, 'c', 0, 0, 0, 0, 0, rgb->num, 0 };
127 buf[2] = rgb->red.ldev.brightness;
128 buf[3] = rgb->green.ldev.brightness;
129 buf[4] = rgb->blue.ldev.brightness;
131 return thingm_send(rgb->tdev, buf);
136 struct thingm_rgb *rgb = container_of(work, struct thingm_rgb, work); local
138 mutex_lock(&rgb
155 thingm_init_rgb(struct thingm_rgb *rgb) argument
209 thingm_remove_rgb(struct thingm_rgb *rgb) argument
266 struct thingm_rgb *rgb = tdev->rgb + i; local
[all...]
/drivers/leds/
H A Dleds-lp5562.c332 u8 base, const u8 *rgb, int size)
336 if (!rgb || size <= 0)
340 lp55xx_write(chip, base + i, *(rgb + i));
331 lp5562_write_program_memory(struct lp55xx_chip *chip, u8 base, const u8 *rgb, int size) argument
/drivers/media/parport/
H A Dc-qcam.c344 unsigned char rgb[3]; local
358 rgb[(i = bytes++ % 3)] = (hi | (lo >> 4)) ^ 0x88;
362 buf[n++] = rgb[0];
363 buf[n++] = rgb[1];
364 buf[n++] = rgb[2];
366 buf[n++] = rgb[2];
367 buf[n++] = rgb[1];
368 buf[n++] = rgb[0];
/drivers/media/platform/
H A Dsh_vou.c136 unsigned char rgb; member in struct:sh_vou_fmt
148 .rgb = 0,
155 .rgb = 0,
162 .rgb = 1,
169 .rgb = 1,
176 .rgb = 1,
515 fmt->pkf | (fmt->yf << 8) | (fmt->rgb << 16));
/drivers/media/platform/vivid/
H A Dvivid-osd.c63 const u16 *rgb = rgb555; local
67 rgb = rgb565;
73 d[x] = rgb[(y / 16 + x / 16) % 16];

Completed in 404 milliseconds