/src/tests/usr.bin/xlint/lint1/ |
msg_057.c | 9 /* expect+3: warning: parameter 'red' unused in function 'rgb' [231] */ 10 /* expect+2: warning: parameter 'green' unused in function 'rgb' [231] */ 11 /* expect+1: warning: parameter 'blue' unused in function 'rgb' [231] */ 12 rgb(int red, int green, int blue) function in typeref:typename:long
|
/src/sys/dev/hpc/ |
hpccmap_gen.c | 54 char *rgb = "rgb"; local in function:main 62 printf("unsigned char bivideo_cmap_%c[256] = {\n", rgb[i]); 72 int rgb = (int)ctxx; local in function:rgb_separate_out 76 switch(rgb) { 128 * 32 - 247, RGB color
|
video_subr.c | 151 cmap_work_alloc(u_int8_t **r, u_int8_t **g, u_int8_t **b, u_int32_t **rgb, 166 ALLOC_BUF(rgb, 32); 171 cmap_work_free(*r, *g, *b, *rgb); 177 cmap_work_free(u_int8_t *r, u_int8_t *g, u_int8_t *b, u_int32_t *rgb) 185 if (rgb) 186 free(rgb, M_DEVBUF); 208 u_int32_t rgb = *rgb24++; local in function:rgb24_decompose 209 *r++ = (rgb >> 16) & 0xff; 210 *g++ = (rgb >> 8) & 0xff; 211 *b++ = rgb & 0xff [all...] |
/src/sys/external/bsd/drm2/dist/drm/amd/display/dc/dce110/ |
amdgpu_dce110_opp_regamma_v.c | 479 const struct pwl_result_data *rgb = local in function:program_pwl 483 dm_write_reg(xfm_dce->base.ctx, addr, rgb->red_reg); 484 dm_write_reg(xfm_dce->base.ctx, addr, rgb->green_reg); 485 dm_write_reg(xfm_dce->base.ctx, addr, rgb->blue_reg); 488 rgb->delta_red_reg); 490 rgb->delta_green_reg); 492 rgb->delta_blue_reg); 494 ++rgb;
|
amdgpu_dce110_hw_sequencer.c | 335 struct pwl_result_data *rgb = rgb_resulted; local in function:convert_to_custom_float 386 if (!convert_to_custom_float_format(rgb->red, &fmt, 387 &rgb->red_reg)) { 392 if (!convert_to_custom_float_format(rgb->green, &fmt, 393 &rgb->green_reg)) { 398 if (!convert_to_custom_float_format(rgb->blue, &fmt, 399 &rgb->blue_reg)) { 404 if (!convert_to_custom_float_format(rgb->delta_red, &fmt, 405 &rgb->delta_red_reg)) { 410 if (!convert_to_custom_float_format(rgb->delta_green, &fmt 439 struct pwl_result_data *rgb; local in function:dce110_translate_regamma_to_hw_format [all...] |
/src/sys/arch/evbarm/netwalker/ |
netwalker_lcd.c | 221 #define rgb(r,g,b) (((r)<<11) | ((g)<<5) | (b)) macro 229 case 0: color = rgb(0x00, 0x00, 0x00); break; 230 case 1: color = rgb(0x00, 0x00, 0x1f); break; 231 case 2: color = rgb(0x00, 0x3f, 0x00); break; 232 case 3: color = rgb(0x00, 0x3f, 0x1f); break; 233 case 4: color = rgb(0x1f, 0x00, 0x00); break; 234 case 5: color = rgb(0x1f, 0x00, 0x1f); break; 235 case 6: color = rgb(0x1f, 0x3f, 0x00); break; 236 case 7: color = rgb(0x1f, 0x3f, 0x1f); break; 246 line[x] = rgb(0x1f, 0x3f, 0x1f) [all...] |
/src/sys/external/bsd/drm2/dist/drm/amd/display/dc/dcn10/ |
amdgpu_dcn10_cm_common.c | 141 struct pwl_result_data *rgb = rgb_resulted; local in function:cm_helper_convert_to_custom_float 267 if (!convert_to_custom_float_format(rgb->red, &fmt, 268 &rgb->red_reg)) { 273 if (!convert_to_custom_float_format(rgb->green, &fmt, 274 &rgb->green_reg)) { 279 if (!convert_to_custom_float_format(rgb->blue, &fmt, 280 &rgb->blue_reg)) { 285 if (!convert_to_custom_float_format(rgb->delta_red, &fmt, 286 &rgb->delta_red_reg)) { 291 if (!convert_to_custom_float_format(rgb->delta_green, &fmt 322 struct pwl_result_data *rgb; local in function:cm_helper_translate_curve_to_hw_format 509 struct pwl_result_data *rgb; local in function:cm_helper_translate_curve_to_degamma_hw_format [all...] |
/src/sys/arch/evbarm/mini2440/ |
mini2440_lcd.c | 351 #define rgb(r,g,b) (((r)<<11) | ((g)<<5) | (b)) macro 359 case 0: color = rgb(0x00, 0x00, 0x00); break; 360 case 1: color = rgb(0x00, 0x00, 0x1f); break; 361 case 2: color = rgb(0x00, 0x3f, 0x00); break; 362 case 3: color = rgb(0x00, 0x3f, 0x1f); break; 363 case 4: color = rgb(0x1f, 0x00, 0x00); break; 364 case 5: color = rgb(0x1f, 0x00, 0x1f); break; 365 case 6: color = rgb(0x1f, 0x3f, 0x00); break; 366 case 7: color = rgb(0x1f, 0x3f, 0x1f); break; 377 line[x] = rgb(0x1f, 0x3f, 0x1f) [all...] |
/src/sys/arch/evbarm/smdk2xx0/ |
smdk2410_lcd.c | 314 #define rgb(r,g,b) (((r)<<11) | ((g)<<5) | (b)) macro 322 case 0: color = rgb(0x00, 0x00, 0x00); break; 323 case 1: color = rgb(0x00, 0x00, 0x1f); break; 324 case 2: color = rgb(0x00, 0x3f, 0x00); break; 325 case 3: color = rgb(0x00, 0x3f, 0x1f); break; 326 case 4: color = rgb(0x1f, 0x00, 0x00); break; 327 case 5: color = rgb(0x1f, 0x00, 0x1f); break; 328 case 6: color = rgb(0x1f, 0x3f, 0x00); break; 329 case 7: color = rgb(0x1f, 0x3f, 0x1f); break; 340 line[x] = rgb(0x1f, 0x3f, 0x1f) [all...] |
/src/sys/arch/newsmips/apbus/ |
xafb.c | 62 volatile uint32_t rgb; member in struct:xafb_reg 200 reg->rgb = r; 201 reg->rgb = g; 202 reg->rgb = b;
|
/src/sys/arch/arm/s3c2xx0/ |
s3c24x0_lcd.c | 402 #define rgb(r,g,b) _rgb((r)>>1,g,(b)>>1) macro 408 rgb( 0, 0, 0), /* black */ 409 rgb( L, 0, 0), /* red */ 410 rgb( 0, L, 0), /* green */ 411 rgb( L, L, 0), /* brown */ 412 rgb( 0, 0, L), /* blue */ 413 rgb( L, 0, L), /* magenta */ 414 rgb( 0, L, L), /* cyan */ 417 rgb( L, L, L), /* black */ 418 rgb( H, 0, 0), /* red * [all...] |
/src/sys/arch/arm/xscale/ |
pxa2x0_lcd.c | 413 #define rgb(r,g,b) _rgb((r)>>1,g,(b)>>1) macro 419 rgb( 0, 0, 0), /* black */ 420 rgb( L, 0, 0), /* red */ 421 rgb( 0, L, 0), /* green */ 422 rgb( L, L, 0), /* brown */ 423 rgb( 0, 0, L), /* blue */ 424 rgb( L, 0, L), /* magenta */ 425 rgb( 0, L, L), /* cyan */ 428 rgb( L, L, L), /* black */ 429 rgb( H, 0, 0), /* red * [all...] |
/src/sys/arch/hpcmips/dev/ |
plumvideo.c | 430 u_int32_t *rgb; local in function:plumvideo_ioctl 447 error = cmap_work_alloc(&r, &g, &b, &rgb, cnt); 450 plumvideo_clut_get(sc, rgb, idx, cnt); 451 rgb24_decompose(rgb, r, g, b, cnt); 462 cmap_work_free(r, g, b, rgb); 477 error = cmap_work_alloc(&r, &g, &b, &rgb, cnt); 489 rgb24_compose(rgb, r, g, b, cnt); 490 plumvideo_clut_set(sc, rgb, idx, cnt); 616 u_int32_t *rgb, int beg, int cnt) 621 *rgb++ = bus_space_read_4(iot, ioh, beg) [all...] |
/src/sys/arch/hpcmips/tx/ |
tx3912video.c | 450 /* (LCD horizontal pixels / 8bit) * RGB - 1 */ 507 u_int32_t *rgb; local in function:tx3912video_ioctl 523 error = cmap_work_alloc(&r, &g, &b, &rgb, cnt); 526 tx3912video_clut_get(sc, rgb, idx, cnt); 527 rgb24_decompose(rgb, r, g, b, cnt); 538 cmap_work_free(r, g, b, rgb); 675 tx3912video_clut_get(struct tx3912video_softc *sc, u_int32_t *rgb, int beg, 680 KASSERT(rgb); 685 *rgb++ = RGB24(__get_color8((i >> 5) & 0x7),
|
/src/sys/arch/hp300/dev/ |
dvboxreg.h | 52 struct rgb { struct 146 struct rgb rgb[8]; /* overlay color map */ member in struct:dvboxfb 147 uint8_t f37[0x6403-0x6100-sizeof(struct rgb)*8];
|
/src/sys/dev/tc/ |
xcfb.c | 680 uint32_t rgb; local in function:ims332_loadcmap 683 rgb = cm->b[i] << 16 | cm->g[i] << 8 | cm->r[i]; 684 ims332_write_reg(IMS332_REG_LUT_BASE + i, rgb); 705 uint32_t rgb; local in function:ims332_load_curcmap 708 rgb = cp[5] << 16 | cp[3] << 8 | cp[1]; 709 ims332_write_reg(IMS332_REG_CURSOR_LUT_1, rgb); 712 rgb = cp[4] << 16 | cp[2] << 8 | cp[0]; 713 ims332_write_reg(IMS332_REG_CURSOR_LUT_2, rgb);
|
/src/sys/arch/hp300/stand/common/ |
grf_dvreg.h | 51 struct rgb { struct 170 struct rgb rgb[8]; /* overlay color map */ member in struct:dvboxfb 171 u_char f37[0x6403-0x6100-sizeof(struct rgb)*8];
|
/src/sys/dev/pci/ |
wcfb.c | 573 uint32_t rgb; local in function:wcfb_putpalreg 576 rgb = (b << 22) | (g << 12) | (r << 2); 577 bus_space_write_4(sc->sc_regt, sc->sc_regh, WC_CMAP_DATA, rgb);
|
/src/sys/external/bsd/drm2/dist/drm/amd/display/dc/dce/ |
amdgpu_dce_transform.c | 93 /* 01 - hard coded coefficient TV RGB */ 556 * @param [in] rgb_random_enable : enable rgb random 844 * @note calculate and apply color temperature adjustment to in Rgb color space 1025 /* TV RGB */ 1054 /* TV RGB */ 1149 const struct pwl_result_data *rgb = params->rgb_resulted; local in function:program_pwl 1194 REG_WRITE(REGAMMA_LUT_DATA, rgb->red_reg); 1195 REG_WRITE(REGAMMA_LUT_DATA, rgb->green_reg); 1196 REG_WRITE(REGAMMA_LUT_DATA, rgb->blue_reg); 1197 REG_WRITE(REGAMMA_LUT_DATA, rgb->delta_red_reg) [all...] |
/src/sys/external/bsd/drm2/dist/drm/nouveau/dispnv04/ |
nouveau_dispnv04_crtc.c | 771 struct rgb { uint8_t r, g, b; } __attribute__((packed)) *rgbs; struct in function:nv_crtc_gamma_load 775 rgbs = (struct rgb *)nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index].DAC; 961 /* hw gets unhappy if alpha <= rgb values. for a PM image "less
|
/src/sys/arch/hppa/dev/ |
gftfb.c | 1414 uint32_t rgb; local in function:gftfb_do_cursor 1430 rgb = (r[0] << 16) | (g[0] << 8) | b[0]; 1431 gftfb_write4(sc, NGLE_REG_4, rgb); /* BG */ 1432 rgb = (r[1] << 16) | (g[1] << 8) | b[1]; 1433 gftfb_write4(sc, NGLE_REG_4, rgb); /* FG */
|
hyperfb.c | 1262 uint32_t rgb; local in function:hyperfb_do_cursor 1275 rgb = (r[0] << 16) | (g[0] << 8) | b[0]; 1276 hyperfb_write4(sc, NGLE_REG_4, rgb); /* BG */ 1277 rgb = (r[1] << 16) | (g[1] << 8) | b[1]; 1278 hyperfb_write4(sc, NGLE_REG_4, rgb); /* FG */
|
summitfb.c | 1298 /* alpha & RGB -> ARGB */ 1449 uint32_t rgb; local in function:summitfb_do_cursor 1456 rgb = r[0] << 16 | g[0] << 8 | b[0]; 1457 summitfb_write4(sc, VISFX_CURSOR_BG, rgb); 1458 rgb = r[1] << 16 | g[1] << 8 | b[1]; 1459 summitfb_write4(sc, VISFX_CURSOR_FG, rgb);
|
/src/sys/external/bsd/drm2/dist/drm/amd/display/modules/color/ |
amdgpu_color_gamma.c | 675 struct pwl_float_data *rgb, 707 rgb[point->right_index].r, 708 rgb[point->left_index].r)), 709 rgb[point->left_index].r); 715 rgb[point->right_index].g, 716 rgb[point->left_index].g)), 717 rgb[point->left_index].g); 723 rgb[point->right_index].b, 724 rgb[point->left_index].b)), 725 rgb[point->left_index].b) 744 struct pwl_float_data_ex *rgb = rgb_regamma; local in function:build_pq 825 struct pwl_float_data_ex *rgb = rgb_regamma; local in function:build_regamma 943 struct pwl_float_data_ex *rgb = rgb_regamma; local in function:build_freesync_hdr 1077 struct pwl_float_data_ex *rgb = degamma; local in function:build_hlg_degamma 1100 struct pwl_float_data_ex *rgb = regamma; local in function:build_hlg_regamma 1124 struct pwl_float_data *rgb = pwl_rgb; local in function:scale_gamma 1255 struct pwl_float_data *rgb = pwl_rgb; local in function:scale_user_regamma_ramp 1619 struct pwl_float_data_ex *rgb = rgb_regamma; local in function:apply_degamma_for_user_regamma [all...] |
/src/sys/dev/qbus/ |
qduser.h | 71 * 17 oct 85 longo changed "struct rgb" chars to be unsigned 349 struct rgb { struct 361 struct rgb rgb[256]; member in struct:color_buf
|