/linux/drivers/video/fbdev/ |
A D | 68328fb.c | 114 static u_long get_line_length(int xres_virtual, int bpp) in get_line_length() argument 118 length = xres_virtual * bpp; in get_line_length() 155 if (var->xres > var->xres_virtual) in mc68x328fb_check_var() 156 var->xres_virtual = var->xres; in mc68x328fb_check_var() 172 if (var->xres_virtual < var->xoffset + var->xres) in mc68x328fb_check_var() 173 var->xres_virtual = var->xoffset + var->xres; in mc68x328fb_check_var() 181 get_line_length(var->xres_virtual, var->bits_per_pixel); in mc68x328fb_check_var() 375 if (var->xoffset + info->var.xres > info->var.xres_virtual || in mc68x328fb_pan_display() 431 mc68x328fb_default.xres_virtual = mc68x328fb_default.xres; in mc68x328fb_init() 435 videomemorysize = (mc68x328fb_default.xres_virtual+7) / 8 * in mc68x328fb_init() [all …]
|
A D | atafb.c | 890 int xres_virtual = var->xres_virtual; in falcon_decode_var() local 1003 if (xres_virtual < xres) in falcon_decode_var() 1004 xres_virtual = xres; in falcon_decode_var() 1006 xres_virtual = (xres_virtual + 31) & ~31; in falcon_decode_var() 1008 xres_virtual = (xres_virtual + 15) & ~15; in falcon_decode_var() 1424 var->xres_virtual += 16; in falcon_encode_var() 2132 var->xres_virtual > myvar->xres_virtual || in ext_decode_var() 2490 x2 = x2 < info->var.xres_virtual ? x2 : info->var.xres_virtual; in atafb_fillrect() 2530 x2 = x2 < info->var.xres_virtual ? x2 : info->var.xres_virtual; in atafb_copyarea() 2590 x2 = x2 < info->var.xres_virtual ? x2 : info->var.xres_virtual; in atafb_imageblit() [all …]
|
A D | vfb.c | 98 static u_long get_line_length(int xres_virtual, int bpp) in get_line_length() argument 102 length = xres_virtual * bpp; in get_line_length() 139 if (var->xres > var->xres_virtual) in vfb_check_var() 140 var->xres_virtual = var->xres; 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() 165 get_line_length(var->xres_virtual, var->bits_per_pixel); in vfb_check_var() 256 info->fix.line_length = get_line_length(info->var.xres_virtual, in vfb_set_par() 367 if (var->xoffset + info->var.xres > info->var.xres_virtual || in vfb_pan_display()
|
A D | sh_mobile_lcdcfb.c | 197 unsigned int xres_virtual; member 1117 if (var->xres_virtual < var->xres) in __sh_mobile_lcdc_check_var() 1118 var->xres_virtual = var->xres; in __sh_mobile_lcdc_check_var() 1443 ovl->xres_virtual = info->var.xres_virtual; in sh_mobile_lcdc_overlay_set_par() 1605 var->xres_virtual = ovl->xres_virtual; in sh_mobile_lcdc_overlay_fb_init() 1886 ch->xres_virtual = info->var.xres_virtual; in sh_mobile_lcdc_set_par() 2098 var->xres_virtual = ch->xres_virtual; in sh_mobile_lcdc_channel_fb_init() 2378 ovl->xres_virtual = ovl->xres; in sh_mobile_lcdc_overlay_init() 2385 ovl->pitch = ovl->xres_virtual; in sh_mobile_lcdc_overlay_init() 2465 ch->xres_virtual = mode->xres; in sh_mobile_lcdc_channel_init() [all …]
|
A D | neofb.c | 313 par->CRTC[19] = var->xres_virtual >> 4; in vgaHWInit() 525 pitch = var->xres_virtual; in neo2200_accel_init() 530 pitch = var->xres_virtual * 2; in neo2200_accel_init() 534 pitch = var->xres_virtual * 3; in neo2200_accel_init() 690 if (var->xres_virtual < var->xres) in neofb_check_var() 691 var->xres_virtual = var->xres; in neofb_check_var() 706 if (var->xoffset + var->xres > var->xres_virtual) in neofb_check_var() 707 var->xoffset = var->xres_virtual - var->xres; in neofb_check_var() 754 par->CRTC[0x13] = info->var.xres_virtual >> 3; in neofb_set_par() 759 par->CRTC[0x13] = info->var.xres_virtual >> 2; in neofb_set_par() [all …]
|
A D | pxa168fb.c | 171 var->xres_virtual = max(var->xres, var->xres_virtual); in set_mode() 174 (var->xres_virtual * (var->bits_per_pixel >> 3)); in set_mode() 209 if (var->xoffset + var->xres > var->xres_virtual) in pxa168fb_check_var() 223 if (var->xres_virtual * var->yres_virtual * in pxa168fb_check_var() 354 pixel_offset = (yoffset * var->xres_virtual) + xoffset; in set_graphics_start() 412 info->fix.line_length = var->xres_virtual * var->bits_per_pixel / 8; in pxa168fb_set_par() 443 x = (x & ~0xFFFF) | ((var->xres_virtual * var->bits_per_pixel) >> 3); in pxa168fb_set_par() 576 var->xres_virtual = var->xres; in pxa168fb_init_mode() 578 (var->xres_virtual * (var->bits_per_pixel >> 3)); in pxa168fb_init_mode()
|
A D | vt8623fb.c | 333 if (var->xres > var->xres_virtual) in vt8623fb_check_var() 334 var->xres_virtual = var->xres; in vt8623fb_check_var() 341 var->xres_virtual = (var->xres_virtual+step) & ~step; in vt8623fb_check_var() 344 mem = ((var->bits_per_pixel * var->xres_virtual) >> 3) * var->yres_virtual; in vt8623fb_check_var() 383 info->fix.line_length = (info->var.xres_virtual * bpp) / 8; in vt8623fb_set_par() 392 offset_value = (info->var.xres_virtual * bpp) / 64; in vt8623fb_set_par() 410 offset_value = info->var.xres_virtual / 16; in vt8623fb_set_par() 412 screen_size = (info->var.xres_virtual * info->var.yres_virtual) / 64; in vt8623fb_set_par() 616 offset = (var->yoffset / 16) * info->var.xres_virtual in vt8623fb_pan_display()
|
A D | sm501fb.c | 440 var->xres_virtual, var->yres_virtual); in sm501fb_set_par_common() 1315 if ((sx >= info->var.xres_virtual) || in sm501fb_copyarea() 1319 if ((sx + width) >= info->var.xres_virtual) in sm501fb_copyarea() 1320 width = info->var.xres_virtual - sx - 1; in sm501fb_copyarea() 1325 if ((dx >= info->var.xres_virtual) || in sm501fb_copyarea() 1329 if ((dx + width) >= info->var.xres_virtual) in sm501fb_copyarea() 1330 width = info->var.xres_virtual - dx - 1; in sm501fb_copyarea() 1355 smc501_writel((info->var.xres_virtual << 16) | info->var.xres_virtual, in sm501fb_copyarea() 1394 if ((rect->dx >= info->var.xres_virtual) || in sm501fb_fillrect() 1416 smc501_writel((info->var.xres_virtual << 16) | info->var.xres_virtual, in sm501fb_fillrect() [all …]
|
A D | pvr2fb.c | 161 .xres_virtual = 640, 249 static inline unsigned long get_line_length(int xres_virtual, int bpp) in get_line_length() argument 251 return (unsigned long)((((xres_virtual*bpp)+31)&~31) >> 3); in get_line_length() 425 line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in pvr2fb_set_par() 446 if (var->xres_virtual < var->xres) in pvr2fb_check_var() 447 var->xres_virtual = var->xres; in pvr2fb_check_var() 464 if (var->xoffset > var->xres_virtual - var->xres || in pvr2fb_check_var() 527 line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in pvr2fb_check_var() 828 modememused = get_line_length(fb_info->var.xres_virtual, in pvr2fb_common_init()
|
A D | wmt_ge_rops.c | 64 writel(p->var.xres_virtual - 1, regbase + GE_DESTDISPW_OFF); in wmt_ge_fillrect() 90 writel(p->var.xres_virtual - 1, regbase + GE_SRCDISPW_OFF); in wmt_ge_copyarea() 98 writel(p->var.xres_virtual - 1, regbase + GE_DESTDISPW_OFF); in wmt_ge_copyarea()
|
A D | vga16fb.c | 71 .xres_virtual = 640, 195 pos = (info->var.xres_virtual * var->yoffset + xoffset) >> 2; in vga16fb_pan_var() 223 info->fix.line_length = info->var.xres_virtual / 2; in vga16fb_update_fix() 227 info->fix.line_length = info->var.xres_virtual / 8; in vga16fb_update_fix() 232 info->fix.line_length = info->var.xres_virtual / 4; in vga16fb_update_fix() 237 info->fix.line_length = info->var.xres_virtual / 4; in vga16fb_update_fix() 240 info->fix.line_length = info->var.xres_virtual; in vga16fb_update_fix() 355 vxres = (var->xres_virtual + 0xF) & ~0xF; in vga16fb_check_var() 370 var->xres_virtual = vxres; in vga16fb_check_var() 886 vxres = info->var.xres_virtual; in vga16fb_fillrect() [all …]
|
A D | vt8500lcdfb.c | 68 info->fix.line_length = info->var.xres_virtual / in vt8500lcd_set_par() 103 info->var.xres_virtual << 2 : in vt8500lcd_set_par() 104 info->var.xres_virtual << 1; in vt8500lcd_set_par() 203 unsigned pixlen = info->fix.line_length / info->var.xres_virtual; in vt8500lcd_pan_display() 209 | (((info->var.xres_virtual - info->var.xres) * pixlen / 4) << 20) in vt8500lcd_pan_display() 398 fbi->fb.var.xres_virtual = of_mode.xres; in vt8500lcd_probe()
|
A D | grvga.c | 99 var->xres_virtual = var->xres; 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() 184 info->fix.line_length = (info->var.xres_virtual*info->var.bits_per_pixel)/8; in grvga_set_par() 283 screendata->xres = screendata->xres_virtual = simple_strtoul(this_opt, NULL, 0); in grvga_parse_custom() 417 grvga_mem_size = info->var.xres_virtual * info->var.yres_virtual * info->var.bits_per_pixel/8; in grvga_probe()
|
A D | cyber2000fb.c | 174 dst = rect->dx + rect->dy * cfb->fb.var.xres_virtual; in cyber2000fb_fillrect() 202 src = region->sx + region->sy * cfb->fb.var.xres_virtual; in cyber2000fb_copyarea() 203 dst = region->dx + region->dy * cfb->fb.var.xres_virtual; in cyber2000fb_copyarea() 212 src += (region->height - 1) * cfb->fb.var.xres_virtual; in cyber2000fb_copyarea() 213 dst += (region->height - 1) * cfb->fb.var.xres_virtual; in cyber2000fb_copyarea() 538 u_int base = var->yoffset * var->xres_virtual + var->xoffset; in cyber2000fb_update_start() 839 (var->bits_per_pixel * var->xres_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() 864 hw.width = var->xres_virtual; in cyber2000fb_set_par() [all …]
|
A D | arkfb.c | 578 if (var->xres > var->xres_virtual) in arkfb_check_var() 579 var->xres_virtual = var->xres; in arkfb_check_var() 586 var->xres_virtual = (var->xres_virtual+step) & ~step; in arkfb_check_var() 590 mem = ((var->bits_per_pixel * var->xres_virtual) >> 3) * var->yres_virtual; in arkfb_check_var() 623 info->fix.line_length = (info->var.xres_virtual * bpp) / 8; in arkfb_set_par() 632 offset_value = (info->var.xres_virtual * bpp) / 64; in arkfb_set_par() 645 offset_value = info->var.xres_virtual / 16; in arkfb_set_par() 646 screen_size = (info->var.xres_virtual * info->var.yres_virtual) / 64; in arkfb_set_par() 899 offset = (var->yoffset / 16) * (info->var.xres_virtual / 2) in arkfb_pan_display()
|
A D | goldfishfb.c | 94 (var->xres_virtual != info->var.yres) || in goldfish_fb_check_var() 102 (var->xres_virtual != info->var.xres) || in goldfish_fb_check_var() 225 fb->fb.var.xres_virtual = width; in goldfish_fb_probe() 291 framesize = fb->fb.var.xres_virtual * fb->fb.var.yres_virtual * 2; in goldfish_fb_remove()
|
/linux/drivers/video/fbdev/riva/ |
A D | fbdev.c | 219 .xres_virtual = 640, 684 width = info->var.xres_virtual; in riva_load_video_mode() 892 var->xres_virtual = modes[i].xres; in rivafb_do_maximize() 904 var->xres_virtual = (var->xres_virtual + 15) & ~15; in rivafb_do_maximize() 906 (nom * var->xres_virtual); in rivafb_do_maximize() 910 var->xres_virtual = (var->xres_virtual + 15) & ~15; in rivafb_do_maximize() 927 if (var->xres_virtual < var->xres) { in rivafb_do_maximize() 940 if (var->xres_virtual > 0x7fff/nom) in rivafb_do_maximize() 941 var->xres_virtual = 0x7fff/nom; in rivafb_do_maximize() 1165 if (var->xres_virtual < var->xres) in rivafb_check_var() [all …]
|
/linux/drivers/video/fbdev/matrox/ |
A D | matroxfb_crtc2.c | 123 u_int32_t linelen = m2info->fbcon.var.xres_virtual * (m2info->fbcon.var.bits_per_pixel >> 3); in matroxfb_dh_restore() 178 linelen = m2info->fbcon.var.xres_virtual * pixelsize; in matroxfb_dh_pan_var() 208 if (var->xres_virtual < var->xres) in matroxfb_dh_decode_var() 209 var->xres_virtual = var->xres; in matroxfb_dh_decode_var() 210 var->xres_virtual = (var->xres_virtual + mask) & ~mask; 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() 341 m2info->fbcon.fix.line_length = (var->xres_virtual * var->bits_per_pixel) >> 3; in matroxfb_dh_set_par() 354 …pos = (m2info->fbcon.var.yoffset * m2info->fbcon.var.xres_virtual + m2info->fbcon.var.xoffset) * m… in matroxfb_dh_set_par()
|
A D | matroxfb_base.c | 162 && (info->fbcon.var.xres_virtual == minfo->fbcon.var.xres_virtual) in update_crtc2() 570 if (var->xres_virtual < var->xres) in matroxfb_decode_var() 571 var->xres_virtual = var->xres; in matroxfb_decode_var() 573 var->xres_virtual = matroxfb_pitch_adjust(minfo, var->xres_virtual, bpp); in matroxfb_decode_var() 574 memlen = var->xres_virtual * bpp * var->yres_virtual / 8; in matroxfb_decode_var() 609 if (var->xres_virtual < var->xres) in matroxfb_decode_var() 610 var->xres = var->xres_virtual; in matroxfb_decode_var() 611 if (var->xoffset + var->xres > var->xres_virtual) in matroxfb_decode_var() 612 var->xoffset = var->xres_virtual - var->xres; in matroxfb_decode_var() 639 var->xres_virtual, var->yres_virtual); in matroxfb_decode_var() [all …]
|
A D | matroxfb_accel.c | 120 mpitch = minfo->fbcon.var.xres_virtual; in matrox_cfbX_init() 298 …matrox_accel_bmove_lin(minfo, minfo->fbcon.var.xres_virtual >> 1, area->sy, area->sx >> 1, area->d… in matroxfb_cfb4_copyarea() 304 …matrox_accel_bmove(minfo, minfo->fbcon.var.xres_virtual, area->sy, area->sx, area->dy, area->dx, a… in matroxfb_copyarea() 365 mga_outl(M_YDST, sy * minfo->fbcon.var.xres_virtual >> 6); in matroxfb_cfb4_clear() 370 u_int32_t step = minfo->fbcon.var.xres_virtual >> 1; in matroxfb_cfb4_clear()
|
/linux/drivers/media/pci/ivtv/ |
A D | ivtvfb.c | 568 ivtv_osd.pixel_stride = var->xres_virtual; in ivtvfb_set_var() 601 var->xres_virtual, var->yres_virtual, in ivtvfb_set_var() 716 if (var->xres_virtual > 4095 / (var->bits_per_pixel / 8) || in _ivtvfb_check_var() 718 var->xres_virtual < var->xres || in _ivtvfb_check_var() 721 var->xres_virtual, var->yres_virtual); in _ivtvfb_check_var() 732 if (var->xres_virtual & 3) { in _ivtvfb_check_var() 743 if (var->xres_virtual & 1) { in _ivtvfb_check_var() 752 var->xoffset, var->xres_virtual, var->yoffset, var->yres_virtual); in _ivtvfb_check_var() 801 var->xres_virtual, var->yres_virtual, in _ivtvfb_check_var() 826 var->xoffset + info->var.xres > info->var.xres_virtual) in ivtvfb_pan_display() [all …]
|
/linux/drivers/video/fbdev/nvidia/ |
A D | nvidia.c | 90 .xres_virtual = 640, 865 if (var->xres_virtual < var->xres) in nvidiafb_check_var() 866 var->xres_virtual = var->xres; in nvidiafb_check_var() 868 var->xres_virtual = (var->xres_virtual + 63) & ~63; in nvidiafb_check_var() 881 var->xres_virtual &= ~63; in nvidiafb_check_var() 882 pitch = (var->xres_virtual * in nvidiafb_check_var() 890 memlen, var->xres_virtual, in nvidiafb_check_var() 900 if (var->xres_virtual > 0x7fff) in nvidiafb_check_var() 901 var->xres_virtual = 0x7fff; in nvidiafb_check_var() 904 var->xres_virtual &= ~63; in nvidiafb_check_var() [all …]
|
/linux/drivers/video/fbdev/mmp/fb/ |
A D | mmpfb.c | 282 if (var->xoffset + var->xres > var->xres_virtual) in mmpfb_check_var() 290 if (var->xres_virtual * var->yres_virtual * in mmpfb_check_var() 340 addr.phys[0] = (var->yoffset * var->xres_virtual + var->xoffset) in mmpfb_pan_display() 375 info->fix.line_length = var->xres_virtual * var->bits_per_pixel / 8; in var_update() 392 win.pitch[0] = var->xres_virtual * stride; in mmpfb_set_win() 394 (stride == 1) ? (var->xres_virtual >> 1) : 0; in mmpfb_set_win() 419 addr.phys[0] = (var->yoffset * var->xres_virtual + var->xoffset) in mmpfb_set_par() 439 (var->yoffset * var->xres_virtual + var->xoffset) in mmpfb_power() 519 info->fix.line_length = info->var.xres_virtual * in fb_info_setup() 600 fbi->fb_size = info->var.xres_virtual * info->var.yres_virtual in mmpfb_probe()
|
/linux/drivers/video/fbdev/omap2/omapfb/ |
A D | omapfb-main.c | 92 const short w = var->xres_virtual; in fill_fb() 380 if (var->xres_virtual == 0) in check_fb_res_bounds() 381 var->xres_virtual = var->xres; in check_fb_res_bounds() 398 if (var->xres > var->xres_virtual) in check_fb_res_bounds() 399 var->xres = var->xres_virtual; in check_fb_res_bounds() 430 if (var->xres > var->xres_virtual) in shrink_width() 431 var->xres = var->xres_virtual; in shrink_width() 544 var->xres_virtual, in setup_vrfb_rotation() 1571 .width = fbi->var.xres_virtual, in omapfb_clear_fb() 1763 var->xres_virtual = var->xres; in omapfb_fb_init() [all …]
|
/linux/drivers/video/fbdev/savage/ |
A D | savagefb_driver.c | 939 if (var->xres_virtual < var->xres) in savagefb_check_var() 940 var->xres_virtual = var->xres; in savagefb_check_var() 957 if (var->xres_virtual < var->xres) in savagefb_check_var() 958 var->xres = var->xres_virtual; in savagefb_check_var() 999 par->vwidth = var->xres_virtual; in savagefb_decode_var() 1153 if (var->xres_virtual <= 640) in savagefb_decode_var() 1155 else if (var->xres_virtual == 800) in savagefb_decode_var() 1157 else if (var->xres_virtual == 1024) in savagefb_decode_var() 1159 else if (var->xres_virtual == 1152) in savagefb_decode_var() 1666 .xres_virtual = 800, [all …]
|