Home
last modified time | relevance | path

Searched refs:red (Results 1 – 25 of 236) sorted by relevance

12345678910

/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_cm_common.c58 exp_region_start, params->corner_points[0].red.custom_float_x, in cm_helper_program_gamcor_xfer_func()
66 field_region_linear_slope, params->corner_points[0].red.custom_float_slope); in cm_helper_program_gamcor_xfer_func()
73 field_region_end_base, params->corner_points[1].red.custom_float_y); in cm_helper_program_gamcor_xfer_func()
82 field_region_end_slope, params->corner_points[1].red.custom_float_slope, in cm_helper_program_gamcor_xfer_func()
83 field_region_end, params->corner_points[1].red.custom_float_x); in cm_helper_program_gamcor_xfer_func()
181 rgb_resulted[j].red = output_tf->tf_pts.red[i]; in cm3_helper_translate_curve_to_hw_format()
190 rgb_resulted[hw_points - 1].red = output_tf->tf_pts.red[start_index]; in cm3_helper_translate_curve_to_hw_format()
194 rgb_resulted[hw_points].red = rgb_resulted[hw_points - 1].red; in cm3_helper_translate_curve_to_hw_format()
199 corner_points[0].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm3_helper_translate_curve_to_hw_format()
201 corner_points[0].green.x = corner_points[0].red.x; in cm3_helper_translate_curve_to_hw_format()
[all …]
/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_cm_common.c80 exp_region_start, params->corner_points[0].red.custom_float_x, in cm_helper_program_xfer_func()
88 field_region_linear_slope, params->corner_points[0].red.custom_float_slope); in cm_helper_program_xfer_func()
103 field_region_end, params->corner_points[1].red.custom_float_x); in cm_helper_program_xfer_func()
105 field_region_end_slope, params->corner_points[1].red.custom_float_slope, in cm_helper_program_xfer_func()
106 field_region_end_base, params->corner_points[1].red.custom_float_y); in cm_helper_program_xfer_func()
147 if (!convert_to_custom_float_format(corner_points[0].red.x, &fmt, in cm_helper_convert_to_custom_float()
148 &corner_points[0].red.custom_float_x)) { in cm_helper_convert_to_custom_float()
163 if (!convert_to_custom_float_format(corner_points[0].red.offset, &fmt, in cm_helper_convert_to_custom_float()
164 &corner_points[0].red.custom_float_offset)) { in cm_helper_convert_to_custom_float()
179 if (!convert_to_custom_float_format(corner_points[0].red.slope, &fmt, in cm_helper_convert_to_custom_float()
[all …]
/drivers/video/fbdev/mmp/fb/
Dmmpfb.c25 if (var->bits_per_pixel == 16 && var->red.length == 8 && in var_to_pixfmt()
36 if (var->bits_per_pixel == 12 && var->red.length == 8 && in var_to_pixfmt()
47 if (var->bits_per_pixel == 16 && var->red.length == 16 && in var_to_pixfmt()
49 if (var->red.offset == 0) in var_to_pixfmt()
60 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in var_to_pixfmt()
63 if (var->red.offset >= var->blue.offset) in var_to_pixfmt()
73 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in var_to_pixfmt()
76 if (var->red.offset >= var->blue.offset) in var_to_pixfmt()
83 if (var->red.offset >= var->blue.offset) in var_to_pixfmt()
88 if (var->red.offset >= var->blue.offset) in var_to_pixfmt()
[all …]
/drivers/video/fbdev/
D68328fb.c59 .red = { 0, 8, 0 },
93 static int mc68x328fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
192 var->red.offset = 0; in mc68x328fb_check_var()
193 var->red.length = 1; in mc68x328fb_check_var()
202 var->red.offset = 0; in mc68x328fb_check_var()
203 var->red.length = 8; in mc68x328fb_check_var()
213 var->red.offset = 0; in mc68x328fb_check_var()
214 var->red.length = 5; in mc68x328fb_check_var()
222 var->red.offset = 0; in mc68x328fb_check_var()
223 var->red.length = 5; in mc68x328fb_check_var()
[all …]
Dmacfb.c52 static int (*macfb_setpalette)(unsigned int regno, unsigned int red,
144 static int dafb_setpalette(unsigned int regno, unsigned int red, in dafb_setpalette() argument
166 nubus_writeb(info->cmap.red[i] >> 8, in dafb_setpalette()
178 nubus_writeb(red, &dafb_cmap_regs->lut); in dafb_setpalette()
190 static int v8_brazil_setpalette(unsigned int regno, unsigned int red, in v8_brazil_setpalette() argument
210 nubus_writeb(red, &v8_brazil_cmap_regs->lut); in v8_brazil_setpalette()
221 static int rbv_setpalette(unsigned int regno, unsigned int red, in rbv_setpalette() argument
244 nubus_writeb(red, &rbv_cmap_regs->lut); in rbv_setpalette()
255 static int mdc_setpalette(unsigned int regno, unsigned int red, in mdc_setpalette() argument
267 nubus_writeb(red, &cmap_regs->lut); in mdc_setpalette()
[all …]
Dvfb.c74 static int vfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
177 var->red.offset = 0; in vfb_check_var()
178 var->red.length = 8; in vfb_check_var()
188 var->red.offset = 0; in vfb_check_var()
189 var->red.length = 5; in vfb_check_var()
197 var->red.offset = 0; in vfb_check_var()
198 var->red.length = 5; in vfb_check_var()
208 var->red.offset = 0; in vfb_check_var()
209 var->red.length = 8; in vfb_check_var()
218 var->red.offset = 0; in vfb_check_var()
[all …]
Dpxa168fb.c48 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in determine_best_pix_fmt()
51 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt()
58 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt()
68 if (var->bits_per_pixel <= 32 && var->red.length <= 8 && in determine_best_pix_fmt()
71 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt()
78 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt()
83 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt()
98 var->red.offset = 11; var->red.length = 5; in set_pix_fmt()
105 var->red.offset = 0; var->red.length = 5; in set_pix_fmt()
112 var->red.offset = 10; var->red.length = 5; in set_pix_fmt()
[all …]
Dsbuslib.c120 u16 red, green, blue; in sbusfb_ioctl_helper() local
129 get_user(ured, &c->red) || in sbusfb_ioctl_helper()
135 cmap.red = &red; in sbusfb_ioctl_helper()
147 red = red8 << 8; in sbusfb_ioctl_helper()
165 u8 red, green, blue; in sbusfb_ioctl_helper() local
169 get_user(ured, &c->red) || in sbusfb_ioctl_helper()
178 red = cmap->red[index + i] >> 8; in sbusfb_ioctl_helper()
181 if (put_user(red, &ured[i]) || in sbusfb_ioctl_helper()
203 ret |= get_user(addr, &argp->red); in fbiogetputcmap()
204 ret |= put_user(compat_ptr(addr), &p->red); in fbiogetputcmap()
[all …]
Docfb.c174 static int ocfb_setcolreg(unsigned regno, unsigned red, unsigned green, in ocfb_setcolreg() argument
188 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in ocfb_setcolreg()
191 red >>= (16 - info->var.red.length); in ocfb_setcolreg()
198 color = (red << 16) | (green << 8) | blue; in ocfb_setcolreg()
202 (red << info->var.red.offset) | in ocfb_setcolreg()
243 var->red.offset = 0; in ocfb_init_var()
244 var->red.length = 8; in ocfb_init_var()
254 var->red.offset = 11; in ocfb_init_var()
255 var->red.length = 5; in ocfb_init_var()
265 var->red.offset = 16; in ocfb_init_var()
[all …]
Dvesafb.c87 static int vesa_setpalette(int regno, unsigned red, unsigned green, in vesa_setpalette() argument
98 outb_p(red >> shift, dac_val); in vesa_setpalette()
109 struct { u_char blue, green, red, pad; } entry; in vesa_setpalette() member
111 entry.red = red >> shift; in vesa_setpalette()
131 static int vesafb_setcolreg(unsigned regno, unsigned red, unsigned green, in vesafb_setcolreg() argument
148 err = vesa_setpalette(regno,red,green,blue); in vesafb_setcolreg()
152 if (info->var.red.offset == 10) { in vesafb_setcolreg()
155 ((red & 0xf800) >> 1) | in vesafb_setcolreg()
161 ((red & 0xf800) ) | in vesafb_setcolreg()
168 red >>= 8; in vesafb_setcolreg()
[all …]
Doffb.c96 static int offb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in offb_setcolreg() argument
103 u32 cr = red >> (16 - info->var.red.length); in offb_setcolreg()
111 value = (cr << info->var.red.offset) | in offb_setcolreg()
126 red >>= 8; in offb_setcolreg()
136 writeb(red, par->cmap_data); in offb_setcolreg()
149 (red << 16 | green << 8 | blue)); in offb_setcolreg()
157 out_le32(par->cmap_adr + 0xb4, (red << 16 | green << 8 | blue)); in offb_setcolreg()
162 out_le32(par->cmap_adr + 0xb4, (red << 16 | green << 8 | blue)); in offb_setcolreg()
166 (red << 16 | green << 8 | blue)); in offb_setcolreg()
172 writel(((red) << 22) | ((green) << 12) | ((blue) << 2), in offb_setcolreg()
[all …]
Dasiliantfb.c95 static int asiliantfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
247 var->red.offset = 16; in asiliantfb_check_var()
250 var->red.length = var->blue.length = var->green.length = 8; in asiliantfb_check_var()
252 switch (var->red.offset) { in asiliantfb_check_var()
264 var->red.length = var->blue.length = 5; in asiliantfb_check_var()
266 var->red.offset = var->green.offset = var->blue.offset = 0; in asiliantfb_check_var()
267 var->red.length = var->green.length = var->blue.length = 8; in asiliantfb_check_var()
287 if (p->var.red.offset == 11) in asiliantfb_set_par()
309 static int asiliantfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in asiliantfb_setcolreg() argument
314 red >>= 8; in asiliantfb_setcolreg()
[all …]
Dvt8500lcdfb.c51 info->var.red.offset = 0; in vt8500lcd_set_par()
52 info->var.red.length = info->var.bits_per_pixel; in vt8500lcd_set_par()
53 info->var.red.msb_right = 0; in vt8500lcd_set_par()
78 info->var.red.offset = 11; in vt8500lcd_set_par()
79 info->var.red.length = 5; in vt8500lcd_set_par()
80 info->var.red.msb_right = 0; in vt8500lcd_set_par()
89 info->var.red.offset = info->var.bits_per_pixel in vt8500lcd_set_par()
91 info->var.red.length = info->var.bits_per_pixel / 3; in vt8500lcd_set_par()
92 info->var.red.msb_right = 0; in vt8500lcd_set_par()
139 static int vt8500lcd_setcolreg(unsigned regno, unsigned red, unsigned green, in vt8500lcd_setcolreg() argument
[all …]
Dau1100fb.c151 info->var.red.offset = 0; in au1100fb_setmode()
152 info->var.red.length = info->var.bits_per_pixel; in au1100fb_setmode()
153 info->var.red.msb_right = 0; in au1100fb_setmode()
173 info->var.red = rgb_bitfields[index][0]; in au1100fb_setmode()
235 int au1100fb_fb_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned tra… in au1100fb_fb_setcolreg() argument
249 red = green = blue = in au1100fb_fb_setcolreg()
250 (19595 * red + 38470 * green + 7471 * blue) >> 16; in au1100fb_fb_setcolreg()
260 red >>= (16 - fbi->var.red.length); in au1100fb_fb_setcolreg()
264 value = (red << fbi->var.red.offset) | in au1100fb_fb_setcolreg()
271 value = (red & 0xF800)|((green >> 5) & 0x07E0)|((blue >> 11) & 0x001F); in au1100fb_fb_setcolreg()
[all …]
Dskeletonfb.c284 static int xxxfb_setcolreg(unsigned regno, unsigned red, unsigned green, in xxxfb_setcolreg() argument
297 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in xxxfb_setcolreg()
363 red = CNVT_TOHW(red, info->var.red.length); in xxxfb_setcolreg()
378 write_{red|green|blue|transp}_to_clut(); in xxxfb_setcolreg()
402 v = (red << info->var.red.offset) | in xxxfb_setcolreg()
Dep93xx-fb.c171 info->var.red.offset = 0; in ep93xxfb_set_pixelmode()
172 info->var.red.length = 8; in ep93xxfb_set_pixelmode()
184 info->var.red.offset = 11; in ep93xxfb_set_pixelmode()
185 info->var.red.length = 5; in ep93xxfb_set_pixelmode()
197 info->var.red.offset = 16; in ep93xxfb_set_pixelmode()
198 info->var.red.length = 8; in ep93xxfb_set_pixelmode()
210 info->var.red.offset = 16; in ep93xxfb_set_pixelmode()
211 info->var.red.length = 8; in ep93xxfb_set_pixelmode()
349 static int ep93xxfb_setcolreg(unsigned int regno, unsigned int red, in ep93xxfb_setcolreg() argument
361 rgb = ((red & 0xff00) << 8) | (green & 0xff00) | in ep93xxfb_setcolreg()
[all …]
Ds3c2410fb.c178 var->red.offset = 0; in s3c2410fb_check_var()
179 var->red.length = var->bits_per_pixel; in s3c2410fb_check_var()
180 var->green = var->red; in s3c2410fb_check_var()
181 var->blue = var->red; in s3c2410fb_check_var()
186 var->red.length = 3; in s3c2410fb_check_var()
187 var->red.offset = 5; in s3c2410fb_check_var()
193 var->red.offset = 0; in s3c2410fb_check_var()
194 var->red.length = 8; in s3c2410fb_check_var()
195 var->green = var->red; in s3c2410fb_check_var()
196 var->blue = var->red; in s3c2410fb_check_var()
[all …]
Dgrvga.c119 var->red = (struct fb_bitfield) {0, 8, 0}; /* offset, length, msb-right */ in grvga_check_var()
125 var->red = (struct fb_bitfield) {11, 5, 0}; in grvga_check_var()
132 var->red = (struct fb_bitfield) {16, 8, 0}; in grvga_check_var()
188 static int grvga_setcolreg(unsigned regno, unsigned red, unsigned green, unsigned blue, unsigned tr… in grvga_setcolreg() argument
198 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in grvga_setcolreg()
205 red = CNVT_TOHW(red, info->var.red.length); in grvga_setcolreg()
214 __raw_writel((regno << 24) | (red << 16) | (green << 8) | blue, in grvga_setcolreg()
224 v = (red << info->var.red.offset) | in grvga_setcolreg()
Dwm8505fb.c118 info->var.red.offset = 16; in wm8505fb_set_par()
119 info->var.red.length = 8; in wm8505fb_set_par()
120 info->var.red.msb_right = 0; in wm8505fb_set_par()
130 info->var.red.offset = 11; in wm8505fb_set_par()
131 info->var.red.length = 5; in wm8505fb_set_par()
132 info->var.red.msb_right = 0; in wm8505fb_set_par()
192 static int wm8505fb_setcolreg(unsigned regno, unsigned red, unsigned green, in wm8505fb_setcolreg() argument
202 red = green = blue = in wm8505fb_setcolreg()
203 (19595 * red + 38470 * green + 7471 * blue) >> 16; in wm8505fb_setcolreg()
210 val = chan_to_field(red, &fbi->fb.var.red); in wm8505fb_setcolreg()
Dhitfb.c206 static int hitfb_setcolreg(unsigned regno, unsigned red, unsigned green, in hitfb_setcolreg() argument
215 fb_writew(red >> 10, HD64461_CPTWDR); in hitfb_setcolreg()
223 ((red & 0xf800)) | in hitfb_setcolreg()
264 var->red.offset = 0; in hitfb_check_var()
265 var->red.length = 8; in hitfb_check_var()
274 var->red.offset = 11; in hitfb_check_var()
275 var->red.length = 5; in hitfb_check_var()
363 hitfb_var.red.offset = 0; in hitfb_probe()
364 hitfb_var.red.length = 8; in hitfb_probe()
373 hitfb_var.red.offset = 11; in hitfb_probe()
[all …]
Dcyber2000fb.c73 u8 red, green, blue; member
271 cyber2000fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in cyber2000fb_setcolreg() argument
296 red >>= 8; in cyber2000fb_setcolreg()
300 cfb->palette[regno].red = red; in cyber2000fb_setcolreg()
305 cyber2000fb_writeb(red, 0x3c9, cfb); in cyber2000fb_setcolreg()
321 red >>= 8; in cyber2000fb_setcolreg()
333 cyber2000fb_writeb(cfb->palette[regno >> 1].red, in cyber2000fb_setcolreg()
345 cfb->palette[regno << 3].red = red; in cyber2000fb_setcolreg()
354 cyber2000fb_writeb(red, 0x3c9, cfb); in cyber2000fb_setcolreg()
361 cfb->palette[regno << 4].red = red; in cyber2000fb_setcolreg()
[all …]
/drivers/net/ethernet/netronome/nfp/abm/
Dqdisc.c55 for (i = 0; i < qdisc->red.num_bands; i++) { in nfp_abm_stats_update_red()
57 &qdisc->red.band[i].stats); in nfp_abm_stats_update_red()
63 &qdisc->red.band[i].xstats); in nfp_abm_stats_update_red()
131 for (i = 0; i < qdisc->red.num_bands; i++) { in nfp_abm_qdisc_offload_stop()
132 qdisc->red.band[i].stats.backlog_pkts = 0; in nfp_abm_qdisc_offload_stop()
133 qdisc->red.band[i].stats.backlog_bytes = 0; in nfp_abm_qdisc_offload_stop()
179 for (i = 0; i < qdisc->red.num_bands; i++) { in nfp_abm_stats_init()
181 &qdisc->red.band[i].prev_stats, in nfp_abm_stats_init()
182 &qdisc->red.band[i].prev_xstats); in nfp_abm_stats_init()
219 qdisc->red.band[i].threshold); in nfp_abm_offload_compile_red()
[all …]
/drivers/video/fbdev/core/
Dfbcmap.c64 .len=2, .red=red2, .green=green2, .blue=blue2
67 .len=8, .red=red8, .green=green8, .blue=blue8
70 .len=4, .red=red4, .green=green4, .blue=blue4
73 .len=16, .red=red16, .green=green16, .blue=blue16
104 cmap->red = kzalloc(size, flags); in fb_alloc_cmap_gfp()
105 if (!cmap->red) in fb_alloc_cmap_gfp()
149 kfree(cmap->red); in fb_dealloc_cmap()
154 cmap->red = cmap->green = cmap->blue = cmap->transp = NULL; in fb_dealloc_cmap()
183 memcpy(to->red+tooff, from->red+fromoff, size); in fb_copy_cmap()
208 if (copy_to_user(to->red+tooff, from->red+fromoff, size)) in fb_cmap_to_user()
[all …]
/drivers/video/logo/
Dpnmtologo.c46 unsigned char red; member
179 logo_data[i][j].red = logo_data[i][j].green = in read_image()
188 logo_data[i][j].red = logo_data[i][j].green = in read_image()
197 logo_data[i][j].red = get_number255(fp, maxval); in read_image()
210 return c.red == 0 && c.green == 0 && c.blue == 0; in is_black()
215 return c.red == 255 && c.green == 255 && c.blue == 255; in is_white()
220 return c.red == c.green && c.red == c.blue; in is_gray()
225 return c1.red == c2.red && c1.green == c2.green && c1.blue == c2.blue; in is_equal()
301 if (logo_data[i][j].red) in write_logo_mono()
388 write_hex(logo_clut[i].red); in write_logo_clut224()
[all …]
/drivers/video/fbdev/geode/
Dgxfb_core.c133 var->red.offset = 16; var->red.length = 8; in gxfb_check_var()
137 var->red.offset = 11; var->red.length = 5; in gxfb_check_var()
141 var->red.offset = 0; var->red.length = 8; in gxfb_check_var()
178 static int gxfb_setcolreg(unsigned regno, unsigned red, unsigned green, in gxfb_setcolreg() argument
184 red = green = blue = (red * 77 + green * 151 + blue * 28) >> 8; in gxfb_setcolreg()
195 v = chan_to_field(red, &info->var.red); in gxfb_setcolreg()
204 gx_set_hw_palette_reg(info, regno, red, green, blue); in gxfb_setcolreg()

12345678910