/drivers/video/fbdev/ |
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() 267 info->fix.line_length = get_line_length(info->var.xres_virtual, in mc68x328fb_set_par() 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() [all …]
|
D | atafb.c | 687 var->xres_virtual = sttt_xres_virtual / 2; in tt_encode_var() 693 var->xres_virtual = sttt_xres_virtual; in tt_encode_var() 699 var->xres_virtual = sttt_xres_virtual; in tt_encode_var() 705 var->xres_virtual = sttt_xres_virtual / 2; in tt_encode_var() 711 var->xres_virtual = sttt_xres_virtual; in tt_encode_var() 718 var->xres_virtual = sttt_xres_virtual * 2; in tt_encode_var() 727 linelen = var->xres_virtual * var->bits_per_pixel / 8; in tt_encode_var() 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() [all …]
|
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()
|
D | sh_mobile_lcdcfb.c | 197 unsigned int xres_virtual; member 791 + ovl->xres_virtual * ovl->yres_virtual; in sh_mobile_lcdc_overlay_setup() 1025 + ch->xres_virtual * ch->yres_virtual; in sh_mobile_lcdc_start() 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() 1178 if (var->xres_virtual * var->yres_virtual * var->bits_per_pixel / 8 > in __sh_mobile_lcdc_check_var() 1377 y_offset = (var->yoffset * ovl->xres_virtual + var->xoffset) in sh_mobile_lcdc_overlay_pan() 1384 y_offset = var->yoffset * ovl->xres_virtual + var->xoffset; in sh_mobile_lcdc_overlay_pan() 1385 c_offset = var->yoffset / ysub * ovl->xres_virtual * 2 / xsub in sh_mobile_lcdc_overlay_pan() 1397 base_addr_c = ovl->dma_handle + ovl->xres_virtual * ovl->yres_virtual in sh_mobile_lcdc_overlay_pan() [all …]
|
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() 693 memlen = var->xres_virtual * var->bits_per_pixel * var->yres_virtual >> 3; in neofb_check_var() 696 var->yres_virtual = vramlen * 8 / (var->xres_virtual * in neofb_check_var() 698 memlen = var->xres_virtual * var->bits_per_pixel * in neofb_check_var() 706 if (var->xoffset + var->xres > var->xres_virtual) in neofb_check_var() [all …]
|
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()
|
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() 618 offset = (var->yoffset / 16) * info->var.xres_virtual in vt8623fb_pan_display()
|
D | sm501fb.c | 326 if (var->xres_virtual > 4096 || var->yres_virtual > 2048) in sm501fb_check_var() 440 var->xres_virtual, var->yres_virtual); in sm501fb_set_par_common() 476 info->fix.line_length = (var->xres_virtual * var->bits_per_pixel)/8; in sm501fb_set_par_common() 614 reg = var->xoffset | (info->var.xres_virtual << 16); in sm501fb_pan_pnl() 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() [all …]
|
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()
|
D | vga16fb.c | 71 .xres_virtual = 640, 214 pos = (info->var.xres_virtual * var->yoffset + xoffset) >> 2; in vga16fb_pan_var() 217 pos = (info->var.xres_virtual * (var->yoffset / fh) + xoffset) >> 3; in vga16fb_pan_var() 221 pos = (info->var.xres_virtual * var->yoffset + xoffset) >> 3; in vga16fb_pan_var() 242 info->fix.line_length = info->var.xres_virtual / 2; in vga16fb_update_fix() 246 info->fix.line_length = info->var.xres_virtual / 8; in vga16fb_update_fix() 251 info->fix.line_length = info->var.xres_virtual / 4; in vga16fb_update_fix() 256 info->fix.line_length = info->var.xres_virtual / 4; in vga16fb_update_fix() 259 info->fix.line_length = info->var.xres_virtual; in vga16fb_update_fix() 374 vxres = (var->xres_virtual + 0xF) & ~0xF; in vga16fb_check_var() [all …]
|
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()
|
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()
|
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()
|
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() 836 mem = var->xres_virtual * var->yres_virtual * (var->bits_per_pixel / 8); in cyber2000fb_check_var() 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() [all …]
|
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() 906 offset = (var->yoffset / 16) * (info->var.xres_virtual / 2) in arkfb_pan_display()
|
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()
|
/drivers/video/fbdev/riva/ |
D | fbdev.c | 219 .xres_virtual = 640, 684 width = info->var.xres_virtual; in riva_load_video_mode() 826 var->xres = var->xres_virtual = modedb->xres; in riva_update_var() 878 if (var->xres_virtual == -1 && var->yres_virtual == -1) { in rivafb_do_maximize() 892 var->xres_virtual = modes[i].xres; in rivafb_do_maximize() 897 var->xres_virtual, var->yres_virtual); in rivafb_do_maximize() 898 } else if (var->xres_virtual == -1) { in rivafb_do_maximize() 899 var->xres_virtual = (info->fix.smem_len * den / in rivafb_do_maximize() 902 "setting virtual X resolution to %d\n", var->xres_virtual); in rivafb_do_maximize() 904 var->xres_virtual = (var->xres_virtual + 15) & ~15; in rivafb_do_maximize() [all …]
|
/drivers/video/fbdev/matrox/ |
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()
|
D | matroxfb_base.c | 162 && (info->fbcon.var.xres_virtual == minfo->fbcon.var.xres_virtual) in update_crtc2() 171 mga_outl(0x3C28, pos + minfo->fbcon.var.xres_virtual * minfo->fbcon.var.bits_per_pixel / 8); in update_crtc2() 325 …pos = (minfo->fbcon.var.yoffset * minfo->fbcon.var.xres_virtual + minfo->fbcon.var.xoffset) * minf… in matrox_pan_var() 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() 576 var->yres_virtual = vramlen * 8 / (var->xres_virtual * bpp); in matroxfb_decode_var() 577 memlen = var->xres_virtual * bpp * var->yres_virtual / 8; in matroxfb_decode_var() 587 unsigned int m1 = linelen = var->xres_virtual * bpp / 8; in matroxfb_decode_var() [all …]
|
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()
|
/drivers/media/pci/ivtv/ |
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() 717 var->xres_virtual * var->yres_virtual * (var->bits_per_pixel / 8) > oi->video_buffer_size || 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() 733 IVTVFB_DEBUG_WARN("Invalid virtual resolution for 8bpp: %d)\n", var->xres_virtual); in _ivtvfb_check_var() 743 if (var->xres_virtual & 1) { in _ivtvfb_check_var() 744 IVTVFB_DEBUG_WARN("Invalid virtual resolution for 16bpp: %d)\n", var->xres_virtual); in _ivtvfb_check_var() [all …]
|
/drivers/video/fbdev/nvidia/ |
D | nvidia.c | 90 .xres_virtual = 640, 353 state->crtc[0x13] = ((info->var.xres_virtual / 8) * in nvidia_calc_regs() 409 NVCalcStateExt(par, state, i, info->var.xres_virtual, in nvidia_calc_regs() 657 info->fix.line_length = (info->var.xres_virtual * in nvidiafb_set_par() 867 if (var->xres_virtual < var->xres) in nvidiafb_check_var() 868 var->xres_virtual = var->xres; in nvidiafb_check_var() 870 var->xres_virtual = (var->xres_virtual + 63) & ~63; in nvidiafb_check_var() 873 pitch = ((var->xres_virtual * var->bits_per_pixel) + 7) / 8; in nvidiafb_check_var() 881 var->xres_virtual = vramlen / var->yres_virtual; in nvidiafb_check_var() 882 var->xres_virtual /= var->bits_per_pixel / 8; in nvidiafb_check_var() [all …]
|
/drivers/video/fbdev/mmp/fb/ |
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()
|
/drivers/video/fbdev/omap2/omapfb/ |
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() 386 if (var->xres_virtual < xres_min || var->yres_virtual < yres_min) 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() 411 (var->xres_virtual * var->bits_per_pixel >> 3); in shrink_height() 424 var->xres_virtual = max_frame_size / var->yres_virtual / in shrink_width() 427 if (var->xres_virtual < OMAPFB_PLANE_XRES_MIN) in shrink_width() 428 var->xres_virtual = OMAPFB_PLANE_XRES_MIN; in shrink_width() [all …]
|
/drivers/video/fbdev/savage/ |
D | savagefb_driver.c | 199 reg->CRTC[0x13] = var->xres_virtual >> 4; in vgaHWInit() 847 var->xres = var->xres_virtual = modedb->xres; in savage_update_var() 942 if (var->xres_virtual < var->xres) in savagefb_check_var() 943 var->xres_virtual = var->xres; in savagefb_check_var() 947 memlen = var->xres_virtual * var->bits_per_pixel * in savagefb_check_var() 951 (var->xres_virtual * var->bits_per_pixel); in savagefb_check_var() 952 memlen = var->xres_virtual * var->bits_per_pixel * in savagefb_check_var() 960 if (var->xres_virtual < var->xres) in savagefb_check_var() 961 var->xres = var->xres_virtual; in savagefb_check_var() 962 if (var->xoffset + var->xres > var->xres_virtual) in savagefb_check_var() [all …]
|