/linux-6.12.1/drivers/video/fbdev/ |
D | 68328fb.c | 87 static int mc68x328fb_check_var(struct fb_var_screeninfo *var, 92 static int mc68x328fb_pan_display(struct fb_var_screeninfo *var, 129 static int mc68x328fb_check_var(struct fb_var_screeninfo *var, in mc68x328fb_check_var() argument 139 if (var->vmode & FB_VMODE_CONUPDATE) { in mc68x328fb_check_var() 140 var->vmode |= FB_VMODE_YWRAP; in mc68x328fb_check_var() 141 var->xoffset = info->var.xoffset; in mc68x328fb_check_var() 142 var->yoffset = info->var.yoffset; in mc68x328fb_check_var() 148 if (!var->xres) in mc68x328fb_check_var() 149 var->xres = 1; in mc68x328fb_check_var() 150 if (!var->yres) in mc68x328fb_check_var() [all …]
|
D | vfb.c | 71 static int vfb_check_var(struct fb_var_screeninfo *var, 76 static int vfb_pan_display(struct fb_var_screeninfo *var, 114 static int vfb_check_var(struct fb_var_screeninfo *var, in vfb_check_var() argument 124 if (var->vmode & FB_VMODE_CONUPDATE) { in vfb_check_var() 125 var->vmode |= FB_VMODE_YWRAP; in vfb_check_var() 126 var->xoffset = info->var.xoffset; in vfb_check_var() 127 var->yoffset = info->var.yoffset; in vfb_check_var() 133 if (!var->xres) in vfb_check_var() 134 var->xres = 1; in vfb_check_var() 135 if (!var->yres) in vfb_check_var() [all …]
|
D | pxa168fb.c | 37 static int determine_best_pix_fmt(struct fb_var_screeninfo *var) in determine_best_pix_fmt() argument 42 if (var->bits_per_pixel == 8) in determine_best_pix_fmt() 48 if (var->bits_per_pixel == 16 && var->red.length <= 5 && in determine_best_pix_fmt() 49 var->green.length <= 6 && var->blue.length <= 5) { in determine_best_pix_fmt() 50 if (var->transp.length == 0) { in determine_best_pix_fmt() 51 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt() 57 if (var->transp.length == 1 && var->green.length <= 5) { 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() 69 var->green.length <= 8 && var->blue.length <= 8) { in determine_best_pix_fmt() [all …]
|
D | acornfb.c | 114 struct fb_var_screeninfo *var = &info->var; in acornfb_set_timing() local 122 vidc.h_sync_width = var->hsync_len - 8; in acornfb_set_timing() 123 vidc.h_border_start = vidc.h_sync_width + var->left_margin + 8 - 12; in acornfb_set_timing() 125 vidc.h_display_end = vidc.h_display_start + var->xres; in acornfb_set_timing() 127 vidc.h_cycle = vidc.h_border_end + var->right_margin + 12 - 8; in acornfb_set_timing() 129 vidc.v_sync_width = var->vsync_len - 1; in acornfb_set_timing() 130 vidc.v_border_start = vidc.v_sync_width + var->upper_margin; in acornfb_set_timing() 132 vidc.v_display_end = vidc.v_display_start + var->yres; in acornfb_set_timing() 136 vcr = var->vsync_len + var->upper_margin + var->yres + in acornfb_set_timing() 137 var->lower_margin; in acornfb_set_timing() [all …]
|
D | pvr2fb.c | 255 static void set_color_bitfields(struct fb_var_screeninfo *var) in set_color_bitfields() argument 257 switch (var->bits_per_pixel) { in set_color_bitfields() 260 var->red.offset = 11; var->red.length = 5; in set_color_bitfields() 261 var->green.offset = 5; var->green.length = 6; in set_color_bitfields() 262 var->blue.offset = 0; var->blue.length = 5; in set_color_bitfields() 263 var->transp.offset = 0; var->transp.length = 0; in set_color_bitfields() 266 var->red.offset = 16; var->red.length = 8; in set_color_bitfields() 267 var->green.offset = 8; var->green.length = 8; in set_color_bitfields() 268 var->blue.offset = 0; var->blue.length = 8; in set_color_bitfields() 269 var->transp.offset = 0; var->transp.length = 0; in set_color_bitfields() [all …]
|
D | ocfb.c | 106 struct fb_var_screeninfo *var = &fbdev->info.var; in ocfb_setupfb() local 125 ocfb_writereg(fbdev, OCFB_HTIM, (var->hsync_len - 1) << 24 | in ocfb_setupfb() 126 (var->left_margin - 1) << 16 | (var->xres - 1)); in ocfb_setupfb() 129 ocfb_writereg(fbdev, OCFB_VTIM, (var->vsync_len - 1) << 24 | in ocfb_setupfb() 130 (var->upper_margin - 1) << 16 | (var->yres - 1)); in ocfb_setupfb() 133 hlen = var->left_margin + var->right_margin + var->hsync_len + in ocfb_setupfb() 134 var->xres; in ocfb_setupfb() 136 vlen = var->upper_margin + var->lower_margin + var->vsync_len + in ocfb_setupfb() 137 var->yres; in ocfb_setupfb() 142 switch (var->bits_per_pixel) { in ocfb_setupfb() [all …]
|
D | macmodes.c | 221 int mac_vmode_to_var(int vmode, int cmode, struct fb_var_screeninfo *var) in mac_vmode_to_var() argument 234 memset(var, 0, sizeof(struct fb_var_screeninfo)); in mac_vmode_to_var() 237 var->bits_per_pixel = 8; in mac_vmode_to_var() 238 var->red.offset = 0; in mac_vmode_to_var() 239 var->red.length = 8; in mac_vmode_to_var() 240 var->green.offset = 0; in mac_vmode_to_var() 241 var->green.length = 8; in mac_vmode_to_var() 242 var->blue.offset = 0; in mac_vmode_to_var() 243 var->blue.length = 8; in mac_vmode_to_var() 247 var->bits_per_pixel = 16; in mac_vmode_to_var() [all …]
|
D | atafb.c | 351 int (*decode_var)(struct fb_var_screeninfo *var, 353 int (*encode_var)(struct fb_var_screeninfo *var, 359 int (*pan_display)(struct fb_var_screeninfo *var, 579 static int tt_decode_var(struct fb_var_screeninfo *var, struct atafb_par *par) in tt_decode_var() argument 581 int xres = var->xres; in tt_decode_var() 582 int yres = var->yres; in tt_decode_var() 583 int bpp = var->bits_per_pixel; in tt_decode_var() 585 int yres_virtual = var->yres_virtual; in tt_decode_var() 625 } else if (var->xres > sttt_xres || var->yres > st_yres) { in tt_decode_var() 638 if (var->sync & FB_SYNC_EXT) in tt_decode_var() [all …]
|
D | grvga.c | 77 static int grvga_check_var(struct fb_var_screeninfo *var, in grvga_check_var() argument 83 if (!var->xres) in grvga_check_var() 84 var->xres = 1; in grvga_check_var() 85 if (!var->yres) in grvga_check_var() 86 var->yres = 1; in grvga_check_var() 87 if (var->bits_per_pixel <= 8) in grvga_check_var() 88 var->bits_per_pixel = 8; in grvga_check_var() 89 else if (var->bits_per_pixel <= 16) in grvga_check_var() 90 var->bits_per_pixel = 16; in grvga_check_var() 91 else if (var->bits_per_pixel <= 24) in grvga_check_var() [all …]
|
D | vt8500lcdfb.c | 49 if (info->var.bits_per_pixel <= 8) { in vt8500lcd_set_par() 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() 55 info->var.green.offset = 0; in vt8500lcd_set_par() 56 info->var.green.length = info->var.bits_per_pixel; in vt8500lcd_set_par() 57 info->var.green.msb_right = 0; in vt8500lcd_set_par() 59 info->var.blue.offset = 0; in vt8500lcd_set_par() 60 info->var.blue.length = info->var.bits_per_pixel; in vt8500lcd_set_par() 61 info->var.blue.msb_right = 0; in vt8500lcd_set_par() [all …]
|
D | gxt4500.c | 284 static int gxt4500_var_to_par(struct fb_var_screeninfo *var, in gxt4500_var_to_par() argument 287 if (var->xres + var->xoffset > var->xres_virtual || in gxt4500_var_to_par() 288 var->yres + var->yoffset > var->yres_virtual || in gxt4500_var_to_par() 289 var->xres_virtual > 4096) in gxt4500_var_to_par() 291 if ((var->vmode & FB_VMODE_MASK) != FB_VMODE_NONINTERLACED) in gxt4500_var_to_par() 294 if (calc_pll(var->pixclock, par) < 0) in gxt4500_var_to_par() 297 switch (var->bits_per_pixel) { in gxt4500_var_to_par() 299 if (var->transp.length) in gxt4500_var_to_par() 308 if (var->green.length == 5) in gxt4500_var_to_par() 326 static void gxt4500_unpack_pixfmt(struct fb_var_screeninfo *var, in gxt4500_unpack_pixfmt() argument [all …]
|
D | ep93xx-fb.c | 163 info->var.transp.offset = 0; in ep93xxfb_set_pixelmode() 164 info->var.transp.length = 0; in ep93xxfb_set_pixelmode() 166 switch (info->var.bits_per_pixel) { in ep93xxfb_set_pixelmode() 171 info->var.red.offset = 0; in ep93xxfb_set_pixelmode() 172 info->var.red.length = 8; in ep93xxfb_set_pixelmode() 173 info->var.green.offset = 0; in ep93xxfb_set_pixelmode() 174 info->var.green.length = 8; in ep93xxfb_set_pixelmode() 175 info->var.blue.offset = 0; in ep93xxfb_set_pixelmode() 176 info->var.blue.length = 8; in ep93xxfb_set_pixelmode() 184 info->var.red.offset = 11; in ep93xxfb_set_pixelmode() [all …]
|
D | goldfishfb.c | 78 fb->cmap[regno] = convert_bitfield(transp, &fb->fb.var.transp) | in goldfish_fb_setcolreg() 79 convert_bitfield(blue, &fb->fb.var.blue) | in goldfish_fb_setcolreg() 80 convert_bitfield(green, &fb->fb.var.green) | in goldfish_fb_setcolreg() 81 convert_bitfield(red, &fb->fb.var.red); in goldfish_fb_setcolreg() 88 static int goldfish_fb_check_var(struct fb_var_screeninfo *var, in goldfish_fb_check_var() argument 91 if ((var->rotate & 1) != (info->var.rotate & 1)) { in goldfish_fb_check_var() 92 if ((var->xres != info->var.yres) || in goldfish_fb_check_var() 93 (var->yres != info->var.xres) || in goldfish_fb_check_var() 94 (var->xres_virtual != info->var.yres) || in goldfish_fb_check_var() 95 (var->yres_virtual > info->var.xres * 2) || in goldfish_fb_check_var() [all …]
|
D | sa1100fb.c | 218 static int sa1100fb_activate_var(struct fb_var_screeninfo *var, struct sa1100fb_info *); 256 static inline u_int palette_pbs(struct fb_var_screeninfo *var) in palette_pbs() argument 259 switch (var->bits_per_pixel) { in palette_pbs() 281 val |= palette_pbs(&fbi->fb.var); in sa1100fb_setpalettereg() 314 if (fbi->fb.var.grayscale) in sa1100fb_setcolreg() 325 val = chan_to_field(red, &fbi->fb.var.red); in sa1100fb_setcolreg() 326 val |= chan_to_field(green, &fbi->fb.var.green); in sa1100fb_setcolreg() 327 val |= chan_to_field(blue, &fbi->fb.var.blue); in sa1100fb_setcolreg() 350 static inline unsigned int sa1100fb_display_dma_period(struct fb_var_screeninfo *var) in sa1100fb_display_dma_period() argument 356 return var->pixclock * 8 * 16 / var->bits_per_pixel; in sa1100fb_display_dma_period() [all …]
|
D | ps3fb.c | 266 const struct fb_var_screeninfo *var) in ps3fb_cmp_mode() argument 272 if (var->xres > vmode->xres || var->yres > vmode->yres || in ps3fb_cmp_mode() 273 var->pixclock > vmode->pixclock || in ps3fb_cmp_mode() 274 var->hsync_len > vmode->hsync_len || in ps3fb_cmp_mode() 275 var->vsync_len > vmode->vsync_len) in ps3fb_cmp_mode() 279 if ((var->vmode & FB_VMODE_MASK) != vmode->vmode) in ps3fb_cmp_mode() 283 xres = max(var->xres, 1U); in ps3fb_cmp_mode() 284 yres = max(var->yres, 1U); in ps3fb_cmp_mode() 287 left_margin = max(var->left_margin, vmode->left_margin); in ps3fb_cmp_mode() 288 right_margin = max(var->right_margin, vmode->right_margin); in ps3fb_cmp_mode() [all …]
|
D | asiliantfb.c | 93 static int asiliantfb_check_var(struct fb_var_screeninfo *var, 175 unsigned hd = p->var.xres / 8; in asiliant_set_timing() 176 unsigned hs = (p->var.xres + p->var.right_margin) / 8; in asiliant_set_timing() 177 unsigned he = (p->var.xres + p->var.right_margin + p->var.hsync_len) / 8; in asiliant_set_timing() 178 unsigned ht = (p->var.left_margin + p->var.xres + p->var.right_margin + p->var.hsync_len) / 8; in asiliant_set_timing() 179 unsigned vd = p->var.yres; in asiliant_set_timing() 180 unsigned vs = p->var.yres + p->var.lower_margin; in asiliant_set_timing() 181 unsigned ve = p->var.yres + p->var.lower_margin + p->var.vsync_len; in asiliant_set_timing() 182 unsigned vt = p->var.upper_margin + p->var.yres + p->var.lower_margin + p->var.vsync_len; in asiliant_set_timing() 183 unsigned wd = (p->var.xres_virtual * ((p->var.bits_per_pixel+7)/8)) / 8; in asiliant_set_timing() [all …]
|
/linux-6.12.1/drivers/video/fbdev/mmp/fb/ |
D | mmpfb.c | 14 static int var_to_pixfmt(struct fb_var_screeninfo *var) in var_to_pixfmt() argument 19 if (var->bits_per_pixel == 8) in var_to_pixfmt() 25 if (var->bits_per_pixel == 16 && var->red.length == 8 && in var_to_pixfmt() 26 var->green.length == 4 && var->blue.length == 4) { in var_to_pixfmt() 27 if (var->green.offset >= var->blue.offset) in var_to_pixfmt() 36 if (var->bits_per_pixel == 12 && var->red.length == 8 && in var_to_pixfmt() 37 var->green.length == 2 && var->blue.length == 2) { in var_to_pixfmt() 38 if (var->green.offset >= var->blue.offset) in var_to_pixfmt() 47 if (var->bits_per_pixel == 16 && var->red.length == 16 && in var_to_pixfmt() 48 var->green.length == 16 && var->blue.length == 16) { in var_to_pixfmt() [all …]
|
/linux-6.12.1/drivers/media/pci/ivtv/ |
D | ivtvfb.c | 501 static int ivtvfb_set_var(struct ivtv *itv, struct fb_var_screeninfo *var) in ivtvfb_set_var() argument 511 if (var->nonstd) /* YUV */ in ivtvfb_set_var() 517 switch (var->bits_per_pixel) { in ivtvfb_set_var() 525 switch (var->green.length) { in ivtvfb_set_var() 550 oi->bits_per_pixel = var->bits_per_pixel; in ivtvfb_set_var() 551 oi->bytes_per_pixel = var->bits_per_pixel / 8; in ivtvfb_set_var() 554 switch (var->vmode & FB_VMODE_MASK) { in ivtvfb_set_var() 569 ivtv_osd.pixel_stride = var->xres_virtual; in ivtvfb_set_var() 570 ivtv_osd.lines = var->yres_virtual; in ivtvfb_set_var() 577 ivtv_window.width = var->xres; in ivtvfb_set_var() [all …]
|
/linux-6.12.1/drivers/video/fbdev/core/ |
D | fbmem.c | 66 int fb_get_color_depth(struct fb_var_screeninfo *var, in fb_get_color_depth() argument 75 if (var->green.length == var->blue.length && in fb_get_color_depth() 76 var->green.length == var->red.length && in fb_get_color_depth() 77 var->green.offset == var->blue.offset && in fb_get_color_depth() 78 var->green.offset == var->red.offset) in fb_get_color_depth() 79 depth = var->green.length; in fb_get_color_depth() 81 depth = var->green.length + var->red.length + in fb_get_color_depth() 82 var->blue.length; in fb_get_color_depth() 166 fb_pan_display(struct fb_info *info, struct fb_var_screeninfo *var) in fb_pan_display() argument 169 unsigned int yres = info->var.yres; in fb_pan_display() [all …]
|
D | svgalib.c | 171 void svga_dump_var(struct fb_var_screeninfo *var, int node) 173 pr_debug("fb%d: var.vmode : 0x%X\n", node, var->vmode); 174 pr_debug("fb%d: var.xres : %d\n", node, var->xres); 175 pr_debug("fb%d: var.yres : %d\n", node, var->yres); 176 pr_debug("fb%d: var.bits_per_pixel: %d\n", node, var->bits_per_pixel); 177 pr_debug("fb%d: var.xres_virtual : %d\n", node, var->xres_virtual); 178 pr_debug("fb%d: var.yres_virtual : %d\n", node, var->yres_virtual); 179 pr_debug("fb%d: var.left_margin : %d\n", node, var->left_margin); 180 pr_debug("fb%d: var.right_margin : %d\n", node, var->right_margin); 181 pr_debug("fb%d: var.upper_margin : %d\n", node, var->upper_margin); [all …]
|
/linux-6.12.1/drivers/video/fbdev/omap2/omapfb/ |
D | omapfb-main.c | 56 struct fb_var_screeninfo *var = &fbi->var; in draw_pixel() local 59 const unsigned bytespp = var->bits_per_pixel >> 3; in draw_pixel() 66 if (var->bits_per_pixel == 16) { in draw_pixel() 75 } else if (var->bits_per_pixel == 24) { in draw_pixel() 82 } else if (var->bits_per_pixel == 32) { in draw_pixel() 91 struct fb_var_screeninfo *var = &fbi->var; in fill_fb() local 92 const short w = var->xres_virtual; in fill_fb() 93 const short h = var->yres_virtual; in fill_fb() 125 if (var->bits_per_pixel == 16) { in fill_fb() 272 static bool cmp_var_to_colormode(struct fb_var_screeninfo *var, in cmp_var_to_colormode() argument [all …]
|
/linux-6.12.1/drivers/video/fbdev/i810/ |
D | i810_gtf.c | 124 void i810fb_encode_registers(const struct fb_var_screeninfo *var, in i810fb_encode_registers() argument 133 n = ((xres + var->right_margin + var->hsync_len + in i810fb_encode_registers() 134 var->left_margin) >> 3) - 5; in i810fb_encode_registers() 142 blank_e = (xres + var->right_margin + var->hsync_len + in i810fb_encode_registers() 143 var->left_margin) >> 3; in i810fb_encode_registers() 154 par->regs.cr04 = (u8) ((xres + var->right_margin) >> 3); in i810fb_encode_registers() 155 par->regs.cr05 |= (u8) (((xres + var->right_margin + in i810fb_encode_registers() 156 var->hsync_len) >> 3) & 0x1F); in i810fb_encode_registers() 160 n = yres + var->lower_margin + var->vsync_len + var->upper_margin - 2; in i810fb_encode_registers() 165 n = yres + var->lower_margin; in i810fb_encode_registers() [all …]
|
/linux-6.12.1/arch/powerpc/platforms/pseries/ |
D | plpks_sed_ops.c | 45 static void plpks_init_var(struct plpks_var *var, char *keyname) in plpks_init_var() argument 54 var->name = keyname; in plpks_init_var() 55 var->namelen = strlen(keyname); in plpks_init_var() 57 var->name = PLPKS_SED_MANGLED_LABEL; in plpks_init_var() 58 var->namelen = strlen(keyname); in plpks_init_var() 60 var->policy = PLPKS_WORLDREADABLE; in plpks_init_var() 61 var->os = PLPKS_VAR_COMMON; in plpks_init_var() 62 var->data = NULL; in plpks_init_var() 63 var->datalen = 0; in plpks_init_var() 64 var->component = PLPKS_SED_COMPONENT; in plpks_init_var() [all …]
|
D | plpks-secvar.c | 78 struct plpks_var var = {0}; in plpks_get_variable() local 83 var.name = kcalloc(key_len - 1, sizeof(wchar_t), GFP_KERNEL); in plpks_get_variable() 84 if (!var.name) in plpks_get_variable() 86 rc = utf8s_to_utf16s(key, key_len - 1, UTF16_LITTLE_ENDIAN, (wchar_t *)var.name, in plpks_get_variable() 90 var.namelen = rc * 2; in plpks_get_variable() 92 var.os = PLPKS_VAR_LINUX; in plpks_get_variable() 94 var.data = data; in plpks_get_variable() 95 var.datalen = *data_size; in plpks_get_variable() 97 rc = plpks_read_os_var(&var); in plpks_get_variable() 102 *data_size = var.datalen; in plpks_get_variable() [all …]
|
/linux-6.12.1/drivers/video/fbdev/matrox/ |
D | matroxfb_crtc2.c | 38 if (m2info->fbcon.var.grayscale) { in matroxfb_dh_setcolreg() 42 red = CNVT_TOHW(red, m2info->fbcon.var.red.length); in matroxfb_dh_setcolreg() 43 green = CNVT_TOHW(green, m2info->fbcon.var.green.length); in matroxfb_dh_setcolreg() 44 blue = CNVT_TOHW(blue, m2info->fbcon.var.blue.length); in matroxfb_dh_setcolreg() 45 transp = CNVT_TOHW(transp, m2info->fbcon.var.transp.length); in matroxfb_dh_setcolreg() 47 col = (red << m2info->fbcon.var.red.offset) | in matroxfb_dh_setcolreg() 48 (green << m2info->fbcon.var.green.offset) | in matroxfb_dh_setcolreg() 49 (blue << m2info->fbcon.var.blue.offset) | in matroxfb_dh_setcolreg() 50 (transp << m2info->fbcon.var.transp.offset); in matroxfb_dh_setcolreg() 52 switch (m2info->fbcon.var.bits_per_pixel) { in matroxfb_dh_setcolreg() [all …]
|