/linux-6.3-rc2/drivers/video/fbdev/ |
A D | 68328fb.c | 141 var->xoffset = info->var.xoffset; in mc68x328fb_check_var() 142 var->yoffset = info->var.yoffset; in mc68x328fb_check_var() 152 if (var->xres > var->xres_virtual) in mc68x328fb_check_var() 153 var->xres_virtual = var->xres; in mc68x328fb_check_var() 155 var->yres_virtual = var->yres; in mc68x328fb_check_var() 169 if (var->xres_virtual < var->xoffset + var->xres) in mc68x328fb_check_var() 170 var->xres_virtual = var->xoffset + var->xres; in mc68x328fb_check_var() 171 if (var->yres_virtual < var->yoffset + var->yres) in mc68x328fb_check_var() 172 var->yres_virtual = var->yoffset + var->yres; in mc68x328fb_check_var() 372 if (var->xoffset + info->var.xres > info->var.xres_virtual || in mc68x328fb_pan_display() [all …]
|
A D | vfb.c | 128 var->xoffset = info->var.xoffset; in vfb_check_var() 129 var->yoffset = info->var.yoffset; in vfb_check_var() 139 if (var->xres > var->xres_virtual) in vfb_check_var() 140 var->xres_virtual = var->xres; in vfb_check_var() 142 var->yres_virtual = var->yres; in vfb_check_var() 156 if (var->xres_virtual < var->xoffset + var->xres) in vfb_check_var() 157 var->xres_virtual = var->xoffset + var->xres; in vfb_check_var() 158 if (var->yres_virtual < var->yoffset + var->yres) in vfb_check_var() 159 var->yres_virtual = var->yoffset + var->yres; in vfb_check_var() 367 if (var->xoffset + info->var.xres > info->var.xres_virtual || in vfb_pan_display() [all …]
|
A D | pxa168fb.c | 51 if (var->red.offset >= var->blue.offset) in determine_best_pix_fmt() 171 var->xres_virtual = max(var->xres, var->xres_virtual); in set_mode() 176 var->yres_virtual = max(var->yres, var->yres_virtual); in set_mode() 209 if (var->xoffset + var->xres > var->xres_virtual) in pxa168fb_check_var() 211 if (var->yoffset + var->yres > var->yres_virtual) in pxa168fb_check_var() 213 if (var->xres + var->right_margin + in pxa168fb_check_var() 216 if (var->yres + var->lower_margin + in pxa168fb_check_var() 576 var->xres_virtual = var->xres; in pxa168fb_init_mode() 580 var->xres, var->yres); in pxa168fb_init_mode() 583 total_w = var->xres + var->left_margin + var->right_margin + in pxa168fb_init_mode() [all …]
|
A D | acornfb.c | 136 vcr = var->vsync_len + var->upper_margin + var->yres + in acornfb_set_timing() 156 fsize = var->vsync_len + var->upper_margin + var->lower_margin - 1; in acornfb_set_timing() 326 var->xres_virtual = var->xres; in acornfb_adjust_timing() 342 min_size = var->xres * var->yres * var->bits_per_pixel / 8; in acornfb_adjust_timing() 380 var->yres = var->yres_virtual; in acornfb_adjust_timing() 386 if (var->yoffset + var->yres > var->yres_virtual) in acornfb_adjust_timing() 387 var->yoffset = var->yres_virtual - var->yres; in acornfb_adjust_timing() 426 (var->xres + var->left_margin + var->right_margin + var->hsync_len); in acornfb_validate_timing() 428 (var->yres + var->upper_margin + var->lower_margin + var->vsync_len); in acornfb_validate_timing() 466 var->green = var->red; in acornfb_check_var() [all …]
|
A D | ocfb.c | 106 struct fb_var_screeninfo *var = &fbdev->info.var; in ocfb_setupfb() local 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() 213 struct fb_var_screeninfo *var = &fbdev->info.var; in ocfb_init_fix() local 218 fix->line_length = var->xres * var->bits_per_pixel/8; in ocfb_init_fix() 222 if (var->bits_per_pixel == 8 && !var->grayscale) in ocfb_init_fix() 232 struct fb_var_screeninfo *var = &fbdev->info.var; in ocfb_init_var() local 236 var->xres_virtual = var->xres; in ocfb_init_var() [all …]
|
A D | pvr2fb.c | 447 if (var->xres_virtual < var->xres) in pvr2fb_check_var() 448 var->xres_virtual = var->xres; in pvr2fb_check_var() 449 if (var->yres_virtual < var->yres) in pvr2fb_check_var() 450 var->yres_virtual = var->yres; in pvr2fb_check_var() 462 if (var->xoffset || var->yoffset >= var->yres_virtual) { in pvr2fb_check_var() 465 if (var->xoffset > var->xres_virtual - var->xres || in pvr2fb_check_var() 466 var->yoffset > var->yres_virtual - var->yres) in pvr2fb_check_var() 470 var->xoffset = var->yoffset = 0; in pvr2fb_check_var() 503 hsync_total = var->left_margin + var->xres + var->right_margin + in pvr2fb_check_var() 505 vtotal = var->upper_margin + var->yres + var->lower_margin + in pvr2fb_check_var() [all …]
|
A D | macmodes.c | 238 var->red.offset = 0; 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() 248 var->red.offset = 10; in mac_vmode_to_var() 249 var->red.length = 5; in mac_vmode_to_var() 252 var->blue.offset = 0; in mac_vmode_to_var() 259 var->red.length = 8; in mac_vmode_to_var() 275 var->height = -1; in mac_vmode_to_var() 276 var->width = -1; in mac_vmode_to_var() 324 if (var->xres > mode->xres || var->yres > mode->yres) in mac_var_to_vmode() [all …]
|
A D | atafb.c | 719 var->blue = var->green = var->red; in tt_encode_var() 725 var->yres_virtual = var->yres; in tt_encode_var() 734 var->yres_virtual = 2 * var->yres; in tt_encode_var() 1432 var->blue = var->green = var->red; in falcon_encode_var() 1447 var->yres_virtual = 2 * var->yres; in falcon_encode_var() 1499 var->right_margin -= var->hsync_len; in falcon_encode_var() 1898 var->blue = var->green = var->red; in stste_encode_var() 1907 var->yres_virtual = var->yres; in stste_encode_var() 2158 var->blue = var->green = var->red; in ext_encode_var() 2162 var->yres_virtual = var->yres; in ext_encode_var() [all …]
|
A D | grvga.c | 84 if (!var->xres) in grvga_check_var() 85 var->xres = 1; in grvga_check_var() 86 if (!var->yres) in grvga_check_var() 87 var->yres = 1; in grvga_check_var() 99 var->xres_virtual = var->xres; in grvga_check_var() 100 var->yres_virtual = 2*var->yres; in grvga_check_var() 103 if ((var->yres_virtual*var->xres_virtual*var->bits_per_pixel/8) > info->fix.smem_len) in grvga_check_var() 159 …__raw_writel(((info->var.yres + info->var.lower_margin + info->var.upper_margin + info->var.vsync_… in grvga_set_par() 160 (info->var.xres + info->var.right_margin + info->var.left_margin + info->var.hsync_len - 1), in grvga_set_par() 417 grvga_mem_size = info->var.xres_virtual * info->var.yres_virtual * info->var.bits_per_pixel/8; in grvga_probe() [all …]
|
A D | vt8500lcdfb.c | 52 info->var.red.length = info->var.bits_per_pixel; in vt8500lcd_set_par() 56 info->var.green.length = info->var.bits_per_pixel; in vt8500lcd_set_par() 60 info->var.blue.length = info->var.bits_per_pixel; 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() 93 info->var.green.offset = info->var.bits_per_pixel / 3; in vt8500lcd_set_par() 94 info->var.green.length = info->var.bits_per_pixel / 3; in vt8500lcd_set_par() 97 info->var.blue.length = info->var.bits_per_pixel / 3; in vt8500lcd_set_par() 148 if (info->var.grayscale) in vt8500lcd_setcolreg() 209 | (((info->var.xres_virtual - info->var.xres) * pixlen / 4) << 20) in vt8500lcd_pan_display() [all …]
|
A D | gxt4500.c | 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() 354 var->red.offset = var->green.offset + var->green.length; in gxt4500_unpack_pixfmt() 430 htot = var->xres + var->left_margin + var->right_margin + in gxt4500_set_par() 436 var->xres + var->right_margin + var->hsync_len - 1); in gxt4500_set_par() 438 var->xres + var->right_margin + var->hsync_len - 1); in gxt4500_set_par() 440 var->yres + var->upper_margin + var->lower_margin + in gxt4500_set_par() 445 var->yres + var->lower_margin + var->vsync_len - 1); in gxt4500_set_par() 556 if (var->xoffset + info->var.xres > info->var.xres_virtual || in gxt4500_pan_display() 557 var->yoffset + info->var.yres > info->var.yres_virtual) in gxt4500_pan_display() [all …]
|
A D | ep93xx-fb.c | 232 vlines_total = info->var.yres + info->var.upper_margin + in ep93xxfb_set_timing() 233 info->var.lower_margin + info->var.vsync_len - 1; in ep93xxfb_set_timing() 235 hclks_total = info->var.xres + info->var.left_margin + in ep93xxfb_set_timing() 236 info->var.right_margin + info->var.hsync_len - 1; in ep93xxfb_set_timing() 299 var->xres = max_t(unsigned int, var->xres, EP93XXFB_MIN_XRES); in ep93xxfb_check_var() 300 var->xres = min_t(unsigned int, var->xres, EP93XXFB_MAX_XRES); in ep93xxfb_check_var() 301 var->xres_virtual = max(var->xres_virtual, var->xres); in ep93xxfb_check_var() 303 var->yres = max_t(unsigned int, var->yres, EP93XXFB_MIN_YRES); in ep93xxfb_check_var() 304 var->yres = min_t(unsigned int, var->yres, EP93XXFB_MAX_YRES); in ep93xxfb_check_var() 305 var->yres_virtual = max(var->yres_virtual, var->yres); in ep93xxfb_check_var() [all …]
|
A D | goldfishfb.c | 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() 96 (var->yres_virtual < info->var.xres)) { in goldfish_fb_check_var() 100 if ((var->xres != info->var.xres) || in goldfish_fb_check_var() 101 (var->yres != info->var.yres) || in goldfish_fb_check_var() 102 (var->xres_virtual != info->var.xres) || in goldfish_fb_check_var() 104 (var->yres_virtual < info->var.yres)) { in goldfish_fb_check_var() 108 if ((var->xoffset != info->var.xoffset) || in goldfish_fb_check_var() [all …]
|
A D | sa1100fb.c | 381 var->xres_virtual = max(var->xres_virtual, var->xres); in sa1100fb_check_var() 382 var->yres_virtual = max(var->yres_virtual, var->yres); in sa1100fb_check_var() 409 var->red.length, var->green.length, var->blue.length, in sa1100fb_check_var() 413 var->red.offset, var->green.offset, var->blue.offset, in sa1100fb_check_var() 439 struct fb_var_screeninfo *var = &info->var; in sa1100fb_set_par() local 618 var->xres, var->hsync_len, in sa1100fb_activate_var() 619 var->left_margin, var->right_margin); in sa1100fb_activate_var() 621 var->yres, var->vsync_len, in sa1100fb_activate_var() 622 var->upper_margin, var->lower_margin); in sa1100fb_activate_var() 625 if (var->xres < 16 || var->xres > 1024) in sa1100fb_activate_var() [all …]
|
A D | ps3fb.c | 344 var->left_margin, var->xres, var->right_margin, in ps3fb_find_mode() 345 var->upper_margin, var->yres, var->lower_margin); in ps3fb_find_mode() 380 if (var->xres_virtual < var->xres) in ps3fb_find_mode() 381 var->xres_virtual = var->xres; in ps3fb_find_mode() 382 if (var->yres_virtual < var->yres) in ps3fb_find_mode() 383 var->yres_virtual = var->yres; in ps3fb_find_mode() 404 var->left_margin, var->xres, var->right_margin); in ps3fb_find_mode() 415 var->upper_margin, var->yres, var->lower_margin); in ps3fb_find_mode() 549 if (var->xoffset + var->xres > var->xres_virtual || in ps3fb_check_var() 550 var->yoffset + var->yres > var->yres_virtual) { in ps3fb_check_var() [all …]
|
A D | asiliantfb.c | 179 unsigned he = (p->var.xres + p->var.right_margin + p->var.hsync_len) / 8; in asiliant_set_timing() 180 unsigned ht = (p->var.left_margin + p->var.xres + p->var.right_margin + p->var.hsync_len) / 8; in asiliant_set_timing() 183 unsigned ve = p->var.yres + p->var.lower_margin + p->var.vsync_len; in asiliant_set_timing() 184 unsigned vt = p->var.upper_margin + p->var.yres + p->var.lower_margin + p->var.vsync_len; in asiliant_set_timing() 187 if ((p->var.xres == 640) && (p->var.yres == 480) && (p->var.pixclock == 39722)) { in asiliant_set_timing() 244 var->xres_virtual = var->xres; in asiliantfb_check_var() 245 var->yres_virtual = var->yres; in asiliantfb_check_var() 251 var->red.length = var->blue.length = var->green.length = 8; in asiliantfb_check_var() 265 var->red.length = var->blue.length = 5; in asiliantfb_check_var() 267 var->red.offset = var->green.offset = var->blue.offset = 0; in asiliantfb_check_var() [all …]
|
A D | cyber2000fb.c | 538 u_int base = var->yoffset * var->xres_virtual + var->xoffset; in cyber2000fb_update_start() 587 Hsyncend = (var->xres + var->right_margin + var->hsync_len) >> 3; in cyber2000fb_decode_crtc() 594 Vsyncend = var->yres + var->lower_margin + var->vsync_len; in cyber2000fb_decode_crtc() 595 Vtotal = var->yres + var->lower_margin + var->vsync_len + in cyber2000fb_decode_crtc() 841 if (var->yres > var->yres_virtual) in cyber2000fb_check_var() 842 var->yres = var->yres_virtual; in cyber2000fb_check_var() 843 if (var->xres > var->xres_virtual) in cyber2000fb_check_var() 844 var->xres = var->xres_virtual; in cyber2000fb_check_var() 974 cfb->fb.var.xoffset = var->xoffset; in cyber2000fb_pan_display() 975 cfb->fb.var.yoffset = var->yoffset; in cyber2000fb_pan_display() [all …]
|
/linux-6.3-rc2/drivers/video/fbdev/mmp/fb/ |
A D | mmpfb.c | 27 if (var->green.offset >= var->blue.offset) in var_to_pixfmt() 38 if (var->green.offset >= var->blue.offset) in var_to_pixfmt() 63 if (var->red.offset >= var->blue.offset) 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() 282 if (var->xoffset + var->xres > var->xres_virtual) in mmpfb_check_var() 284 if (var->yoffset + var->yres > var->yres_virtual) in mmpfb_check_var() 340 addr.phys[0] = (var->yoffset * var->xres_virtual + var->xoffset) in mmpfb_pan_display() 372 var->yres_virtual = var->yres * 2; in var_update() 419 addr.phys[0] = (var->yoffset * var->xres_virtual + var->xoffset) in mmpfb_set_par() [all …]
|
/linux-6.3-rc2/include/linux/amba/ |
A D | clcd.h | 145 struct fb_var_screeninfo *var = &fb->fb.var; in clcdfb_decode() local 157 val = var->yres; in clcdfb_decode() 185 if (var->grayscale) in clcdfb_decode() 244 var->xres_virtual = var->xres = (var->xres + 15) & ~15; in clcdfb_check() 245 var->yres_virtual = var->yres = (var->yres + 1) & ~1; in clcdfb_check() 247 #define CHECK(e,l,h) (var->e < l || var->e > h) in clcdfb_check() 255 var->yres > 1024) in clcdfb_check() 266 if (var->grayscale != fb->fb.var.grayscale || in clcdfb_check() 270 #define CHECK(e) (var->e != fb->fb.var.e) in clcdfb_check() 286 var->nonstd = 0; in clcdfb_check() [all …]
|
/linux-6.3-rc2/drivers/media/pci/ivtv/ |
A D | ivtvfb.c | 600 var->xres, var->yres, in ivtvfb_set_var() 711 var->xres, var->yres); in _ivtvfb_check_var() 718 var->xres_virtual < var->xres || in _ivtvfb_check_var() 719 var->yres_virtual < var->yres) { in _ivtvfb_check_var() 750 if (var->xoffset >= var->xres_virtual || var->yoffset >= var->yres_virtual) { in _ivtvfb_check_var() 752 var->xoffset, var->xres_virtual, var->yoffset, var->yres_virtual); in _ivtvfb_check_var() 781 var->right_margin = hlimit - var->left_margin - var->xres; in _ivtvfb_check_var() 782 var->lower_margin = vlimit - var->upper_margin - var->yres; in _ivtvfb_check_var() 800 var->xres, var->yres, in _ivtvfb_check_var() 825 if (var->yoffset + info->var.yres > info->var.yres_virtual || in ivtvfb_pan_display() [all …]
|
/linux-6.3-rc2/drivers/video/fbdev/core/ |
A D | svgalib.c | 447 var->xres = (var->xres+7)&~7; in svga_check_timings() 453 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_check_timings() 470 value = var->left_margin + var->right_margin + var->hsync_len; in svga_check_timings() 480 value = var->yres + var->upper_margin + var->lower_margin + var->vsync_len; in svga_check_timings() 497 value = var->upper_margin + var->lower_margin + var->vsync_len; in svga_check_timings() 517 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_set_timings() 532 value = var->xres + var->left_margin + var->right_margin + var->hsync_len; in svga_set_timings() 542 value = var->xres + var->right_margin + var->hsync_len; in svga_set_timings() 547 value = var->yres + var->upper_margin + var->lower_margin + var->vsync_len; in svga_set_timings() 562 value = var->yres + var->upper_margin + var->lower_margin + var->vsync_len; in svga_set_timings() [all …]
|
/linux-6.3-rc2/drivers/video/fbdev/omap2/omapfb/ |
A D | omapfb-main.c | 381 var->xres_virtual = var->xres; in check_fb_res_bounds() 384 var->yres_virtual = var->yres; in check_fb_res_bounds() 399 var->xres = var->xres_virtual; in check_fb_res_bounds() 401 var->yres = var->yres_virtual; in check_fb_res_bounds() 417 var->yres = var->yres_virtual; in shrink_height() 431 var->xres = var->xres_virtual; in shrink_width() 689 if (var->xres + var->xoffset > var->xres_virtual) in check_fb_var() 690 var->xoffset = var->xres_virtual - var->xres; in check_fb_var() 691 if (var->yres + var->yoffset > var->yres_virtual) in check_fb_var() 692 var->yoffset = var->yres_virtual - var->yres; in check_fb_var() [all …]
|
/linux-6.3-rc2/drivers/video/fbdev/i810/ |
A D | i810_gtf.c | 133 n = ((xres + var->right_margin + var->hsync_len + 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() 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() 170 var->vsync_len) & 0x0F); in i810fb_encode_registers() 178 blank_e = yres + var->lower_margin + var->vsync_len + in i810fb_encode_registers() 179 var->upper_margin; in i810fb_encode_registers() 206 par->ovract = ((var->xres + var->right_margin + var->hsync_len + in i810fb_encode_registers() 207 var->left_margin - 32) | ((var->xres - 32) << 16)); in i810fb_encode_registers() [all …]
|
/linux-6.3-rc2/drivers/video/fbdev/matrox/ |
A D | matroxfb_crtc2.c | 175 m2info->fbcon.var.xoffset = var->xoffset; in matroxfb_dh_pan_var() 176 m2info->fbcon.var.yoffset = var->yoffset; in matroxfb_dh_pan_var() 206 if (var->yres_virtual < var->yres) in matroxfb_dh_decode_var() 207 var->yres_virtual = var->yres; in matroxfb_dh_decode_var() 208 if (var->xres_virtual < var->xres) in matroxfb_dh_decode_var() 209 var->xres_virtual = var->xres; in matroxfb_dh_decode_var() 213 memlen = var->xres_virtual * var->yres_virtual * (var->bits_per_pixel >> 3); in matroxfb_dh_decode_var() 216 if (var->xoffset + var->xres > var->xres_virtual) in matroxfb_dh_decode_var() 217 var->xoffset = var->xres_virtual - var->xres; in matroxfb_dh_decode_var() 218 if (var->yoffset + var->yres > var->yres_virtual) in matroxfb_dh_decode_var() [all …]
|
/linux-6.3-rc2/arch/powerpc/platforms/pseries/ |
A D | plpks-secvar.c | 84 if (!var.name) in plpks_get_variable() 90 var.namelen = rc * 2; in plpks_get_variable() 94 var.data = data; in plpks_get_variable() 105 kfree(var.name); in plpks_get_variable() 130 if (!var.name) in plpks_set_variable() 136 var.namelen = rc * 2; in plpks_set_variable() 151 kfree(var.name); in plpks_set_variable() 166 var.component = NULL; in plpks_secvar_format() 169 var.namelen = strlen(var.name); in plpks_secvar_format() 170 var.datalen = 1; in plpks_secvar_format() [all …]
|