/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dcn30/ |
D | dcn30_cm_common.c | 58 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() 182 rgb_resulted[j].red = output_tf->tf_pts.red[i]; in cm3_helper_translate_curve_to_hw_format() 191 rgb_resulted[hw_points].red = output_tf->tf_pts.red[start_index]; in cm3_helper_translate_curve_to_hw_format() 195 rgb_resulted[hw_points+1].red = rgb_resulted[hw_points].red; in cm3_helper_translate_curve_to_hw_format() 200 corner_points[0].red.x = dc_fixpt_pow(dc_fixpt_from_int(2), in cm3_helper_translate_curve_to_hw_format() 202 corner_points[0].green.x = corner_points[0].red.x; in cm3_helper_translate_curve_to_hw_format() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_cm_common.c | 100 exp_region_start, params->corner_points[0].red.custom_float_x, in cm_helper_program_xfer_func() 108 field_region_linear_slope, params->corner_points[0].red.custom_float_slope); in cm_helper_program_xfer_func() 123 field_region_end, params->corner_points[1].red.custom_float_x); in cm_helper_program_xfer_func() 125 field_region_end_slope, params->corner_points[1].red.custom_float_slope, in cm_helper_program_xfer_func() 126 field_region_end_base, params->corner_points[1].red.custom_float_y); in cm_helper_program_xfer_func() 167 if (!convert_to_custom_float_format(corner_points[0].red.x, &fmt, in cm_helper_convert_to_custom_float() 168 &corner_points[0].red.custom_float_x)) { in cm_helper_convert_to_custom_float() 183 if (!convert_to_custom_float_format(corner_points[0].red.offset, &fmt, in cm_helper_convert_to_custom_float() 184 &corner_points[0].red.custom_float_offset)) { in cm_helper_convert_to_custom_float() 199 if (!convert_to_custom_float_format(corner_points[0].red.slope, &fmt, in cm_helper_convert_to_custom_float() [all …]
|
/linux-6.12.1/drivers/video/fbdev/ |
D | 68328fb.c | 59 .red = { 0, 8, 0 }, 90 static int mc68x328fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 189 var->red.offset = 0; in mc68x328fb_check_var() 190 var->red.length = 1; in mc68x328fb_check_var() 199 var->red.offset = 0; in mc68x328fb_check_var() 200 var->red.length = 8; in mc68x328fb_check_var() 210 var->red.offset = 0; in mc68x328fb_check_var() 211 var->red.length = 5; in mc68x328fb_check_var() 219 var->red.offset = 0; in mc68x328fb_check_var() 220 var->red.length = 5; in mc68x328fb_check_var() [all …]
|
D | macfb.c | 52 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 …]
|
D | sbuslib.c | 121 u16 red, green, blue; in sbusfb_ioctl_helper() local 130 get_user(ured, &c->red) || in sbusfb_ioctl_helper() 136 cmap.red = &red; in sbusfb_ioctl_helper() 148 red = red8 << 8; in sbusfb_ioctl_helper() 166 u8 red, green, blue; in sbusfb_ioctl_helper() local 170 get_user(ured, &c->red) || in sbusfb_ioctl_helper() 179 red = cmap->red[index + i] >> 8; in sbusfb_ioctl_helper() 182 if (put_user(red, &ured[i]) || in sbusfb_ioctl_helper() 215 u16 red, green, blue; in sbusfb_compat_ioctl() local 224 ured = compat_ptr(c.red); in sbusfb_compat_ioctl() [all …]
|
D | vfb.c | 74 static int vfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 175 var->red.offset = 0; in vfb_check_var() 176 var->red.length = 8; in vfb_check_var() 186 var->red.offset = 0; in vfb_check_var() 187 var->red.length = 5; in vfb_check_var() 195 var->red.offset = 0; in vfb_check_var() 196 var->red.length = 5; in vfb_check_var() 206 var->red.offset = 0; in vfb_check_var() 207 var->red.length = 8; in vfb_check_var() 216 var->red.offset = 0; in vfb_check_var() [all …]
|
D | pxa168fb.c | 48 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 …]
|
D | ocfb.c | 174 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 …]
|
D | vesafb.c | 90 static int vesa_setpalette(int regno, unsigned red, unsigned green, in vesa_setpalette() argument 101 outb_p(red >> shift, dac_val); in vesa_setpalette() 112 struct { u_char blue, green, red, pad; } entry; in vesa_setpalette() member 114 entry.red = red >> shift; in vesa_setpalette() 134 static int vesafb_setcolreg(unsigned regno, unsigned red, unsigned green, in vesafb_setcolreg() argument 151 err = vesa_setpalette(regno,red,green,blue); in vesafb_setcolreg() 155 if (info->var.red.offset == 10) { in vesafb_setcolreg() 158 ((red & 0xf800) >> 1) | in vesafb_setcolreg() 164 ((red & 0xf800) ) | in vesafb_setcolreg() 171 red >>= 8; in vesafb_setcolreg() [all …]
|
D | asiliantfb.c | 96 static int asiliantfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, 246 var->red.offset = 16; in asiliantfb_check_var() 249 var->red.length = var->blue.length = var->green.length = 8; in asiliantfb_check_var() 251 switch (var->red.offset) { in asiliantfb_check_var() 263 var->red.length = var->blue.length = 5; in asiliantfb_check_var() 265 var->red.offset = var->green.offset = var->blue.offset = 0; in asiliantfb_check_var() 266 var->red.length = var->green.length = var->blue.length = 8; in asiliantfb_check_var() 286 if (p->var.red.offset == 11) in asiliantfb_set_par() 308 static int asiliantfb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in asiliantfb_setcolreg() argument 313 red >>= 8; in asiliantfb_setcolreg() [all …]
|
D | offb.c | 99 static int offb_setcolreg(u_int regno, u_int red, u_int green, u_int blue, in offb_setcolreg() argument 106 u32 cr = red >> (16 - info->var.red.length); in offb_setcolreg() 114 value = (cr << info->var.red.offset) | in offb_setcolreg() 129 red >>= 8; in offb_setcolreg() 139 writeb(red, par->cmap_data); in offb_setcolreg() 152 (red << 16 | green << 8 | blue)); in offb_setcolreg() 160 out_le32(par->cmap_adr + 0xb4, (red << 16 | green << 8 | blue)); in offb_setcolreg() 165 out_le32(par->cmap_adr + 0xb4, (red << 16 | green << 8 | blue)); in offb_setcolreg() 169 (red << 16 | green << 8 | blue)); in offb_setcolreg() 175 writel(((red) << 22) | ((green) << 12) | ((blue) << 2), in offb_setcolreg() [all …]
|
D | vt8500lcdfb.c | 51 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 …]
|
/linux-6.12.1/drivers/video/fbdev/mmp/fb/ |
D | mmpfb.c | 25 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 …]
|
/linux-6.12.1/arch/arm/boot/dts/marvell/ |
D | kirkwood-nsa310.dts | 29 pmx_led_esata_red: pmx-led-esata-red { 39 pmx_led_usb_red: pmx-led-usb-red { 49 pmx_led_sys_red: pmx-led-sys-red { 59 pmx_led_hdd_red: pmx-led-hdd-red { 94 led-red-sys { 95 label = "nsa310:red:sys"; 102 led-red-hdd { 103 label = "nsa310:red:hdd"; 110 led-red-esata { 111 label = "nsa310:red:esata"; [all …]
|
D | kirkwood-nsa310a.dts | 8 * not have the red USB Led. 33 pmx_led_esata_red: pmx-led-esata-red { 48 pmx_led_sys_red: pmx-led-sys-red { 58 pmx_led_hdd_red: pmx-led-hdd-red { 82 led-red-sys { 83 label = "nsa310:red:sys"; 90 led-red-hdd { 91 label = "nsa310:red:hdd"; 98 led-red-esata { 99 label = "nsa310:red:esata"; [all …]
|
D | kirkwood-linkstation-lsqvl.dts | 62 red-hdderr0-led { 63 label = "linkstation:red:hdderr0"; 67 red-hdderr1-led { 68 label = "linkstation:red:hdderr1"; 72 red-hdderr2-led { 73 label = "linkstation:red:hdderr2"; 77 red-hdderr3-led { 78 label = "linkstation:red:hdderr3";
|
D | kirkwood-dns325.dts | 36 led-red-l_hdd { 37 label = "dns325:red:l_hdd"; 40 led-red-r_hdd { 41 label = "dns325:red:r_hdd"; 44 led-red-usb { 45 label = "dns325:red:usb";
|
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/abm/ |
D | qdisc.c | 55 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 …]
|
/linux-6.12.1/drivers/video/fbdev/core/ |
D | fbcmap.c | 64 .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 …]
|
/linux-6.12.1/Documentation/leds/ |
D | leds-mlxcpld.rst | 15 - mlxcpld:fan1:red 17 - mlxcpld:fan2:red 19 - mlxcpld:fan3:red 21 - mlxcpld:fan4:red 23 - mlxcpld:psu:red 25 - mlxcpld:status:red 67 - mlxcpld:fan:red 69 - mlxcpld:psu1:red 71 - mlxcpld:psu2:red 73 - mlxcpld:status:red
|
/linux-6.12.1/sound/soc/codecs/ |
D | rl6231.c | 146 unsigned int red, pll_out, in_t, out_t, div, div_t; in rl6231_pll_calc() local 192 red = abs(f_out - out_t); in rl6231_pll_calc() 193 if (red < red_t) { in rl6231_pll_calc() 198 if (red == 0) in rl6231_pll_calc() 200 red_t = red; in rl6231_pll_calc() 204 red = abs(f_out - out_t); in rl6231_pll_calc() 205 if (red < red_t) { in rl6231_pll_calc() 210 if (red == 0) in rl6231_pll_calc() 212 red_t = red; in rl6231_pll_calc()
|
/linux-6.12.1/drivers/gpu/drm/mediatek/ |
D | mtk_disp_gamma.c | 95 first = lut[0].red + lut[0].green + lut[0].blue; in mtk_gamma_lut_is_descending() 96 last = lut[last_entry].red + lut[last_entry].green + lut[last_entry].blue; in mtk_gamma_lut_is_descending() 150 hwlut.red = drm_color_lut_extract(lut[n].red, lut_bits); in mtk_gamma_set() 156 word[0] = FIELD_PREP(DISP_GAMMA_LUT_12BIT_R, hwlut.red); in mtk_gamma_set() 160 word[0] = FIELD_PREP(DISP_GAMMA_LUT_10BIT_R, hwlut.red); in mtk_gamma_set() 165 diff.red = lut[n].red - lut[n - 1].red; in mtk_gamma_set() 166 diff.red = drm_color_lut_extract(diff.red, lut_bits); in mtk_gamma_set() 175 word[0] = FIELD_PREP(DISP_GAMMA_LUT_12BIT_R, diff.red); in mtk_gamma_set() 179 word[0] = FIELD_PREP(DISP_GAMMA_LUT_10BIT_R, diff.red); in mtk_gamma_set()
|
/linux-6.12.1/Documentation/fb/ |
D | cmap_xfbdev.rst | 12 .red = { 4, 3, 0 }, 20 info->cmap.red[i] = (((2*i)+1)*(0xFFFF))/16; 21 memcpy(info->cmap.green, info->cmap.red, sizeof(u16)*8); 22 memcpy(info->cmap.blue, info->cmap.red, sizeof(u16)*8); 45 dr = (long) pent->co.local.red - prgb->red; 52 co.local.red are entries that were brought in through FBIOGETCMAP which come 53 directly from the info->cmap.red that was listed above. The prgb is the rgb
|
/linux-6.12.1/drivers/video/logo/ |
D | pnmtologo.c | 40 unsigned char red; member 175 logo_data[i][j].red = logo_data[i][j].green = in read_image() 184 logo_data[i][j].red = logo_data[i][j].green = in read_image() 193 logo_data[i][j].red = get_number255(fp, maxval); in read_image() 206 return c.red == 0 && c.green == 0 && c.blue == 0; in is_black() 211 return c.red == 255 && c.green == 255 && c.blue == 255; in is_white() 216 return c.red == c.green && c.red == c.blue; in is_gray() 221 return c1.red == c2.red && c1.green == c2.green && c1.blue == c2.blue; in is_equal() 295 if (logo_data[i][j].red) in write_logo_mono() 382 write_hex(logo_clut[i].red); in write_logo_clut224() [all …]
|
/linux-6.12.1/tools/testing/selftests/lsm/ |
D | common.c | 56 size_t red; in read_sysfs_lsms() local 61 red = fread(lsms, 1, size, fp); in read_sysfs_lsms() 64 if (red <= 0 || red == size) in read_sysfs_lsms() 66 lsms[red] = '\0'; in read_sysfs_lsms()
|