Home
last modified time | relevance | path

Searched refs:xres_virtual (Results 1 – 25 of 146) sorted by relevance

123456

/linux-6.1.9/drivers/video/fbdev/
D68328fb.c111 static u_long get_line_length(int xres_virtual, int bpp) in get_line_length() argument
115 length = xres_virtual * bpp; in get_line_length()
152 if (var->xres > var->xres_virtual) in mc68x328fb_check_var()
153 var->xres_virtual = var->xres; 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()
178 get_line_length(var->xres_virtual, var->bits_per_pixel); in mc68x328fb_check_var()
264 info->fix.line_length = get_line_length(info->var.xres_virtual, in mc68x328fb_set_par()
372 if (var->xoffset + info->var.xres > info->var.xres_virtual || in mc68x328fb_pan_display()
428 mc68x328fb_default.xres_virtual = mc68x328fb_default.xres; in mc68x328fb_init()
[all …]
Datafb.c683 var->xres_virtual = sttt_xres_virtual / 2; in tt_encode_var()
689 var->xres_virtual = sttt_xres_virtual; in tt_encode_var()
695 var->xres_virtual = sttt_xres_virtual; in tt_encode_var()
701 var->xres_virtual = sttt_xres_virtual / 2; in tt_encode_var()
707 var->xres_virtual = sttt_xres_virtual; in tt_encode_var()
714 var->xres_virtual = sttt_xres_virtual * 2; in tt_encode_var()
723 linelen = var->xres_virtual * var->bits_per_pixel / 8; in tt_encode_var()
886 int xres_virtual = var->xres_virtual; in falcon_decode_var() local
999 if (xres_virtual < xres) in falcon_decode_var()
1000 xres_virtual = xres; in falcon_decode_var()
[all …]
Dvfb.c98 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()
Dsh_mobile_lcdcfb.c197 unsigned int xres_virtual; member
787 + ovl->xres_virtual * ovl->yres_virtual; in sh_mobile_lcdc_overlay_setup()
1021 + ch->xres_virtual * ch->yres_virtual; in sh_mobile_lcdc_start()
1113 if (var->xres_virtual < var->xres) in __sh_mobile_lcdc_check_var()
1114 var->xres_virtual = var->xres; in __sh_mobile_lcdc_check_var()
1174 if (var->xres_virtual * var->yres_virtual * var->bits_per_pixel / 8 > in __sh_mobile_lcdc_check_var()
1373 y_offset = (var->yoffset * ovl->xres_virtual + var->xoffset) in sh_mobile_lcdc_overlay_pan()
1380 y_offset = var->yoffset * ovl->xres_virtual + var->xoffset; in sh_mobile_lcdc_overlay_pan()
1381 c_offset = var->yoffset / ysub * ovl->xres_virtual * 2 / xsub in sh_mobile_lcdc_overlay_pan()
1393 base_addr_c = ovl->dma_handle + ovl->xres_virtual * ovl->yres_virtual in sh_mobile_lcdc_overlay_pan()
[all …]
Dneofb.c314 par->CRTC[19] = var->xres_virtual >> 4; in vgaHWInit()
526 pitch = var->xres_virtual; in neo2200_accel_init()
531 pitch = var->xres_virtual * 2; in neo2200_accel_init()
535 pitch = var->xres_virtual * 3; in neo2200_accel_init()
691 if (var->xres_virtual < var->xres) in neofb_check_var()
692 var->xres_virtual = var->xres; in neofb_check_var()
694 memlen = var->xres_virtual * var->bits_per_pixel * var->yres_virtual >> 3; in neofb_check_var()
697 var->yres_virtual = vramlen * 8 / (var->xres_virtual * in neofb_check_var()
699 memlen = var->xres_virtual * var->bits_per_pixel * in neofb_check_var()
707 if (var->xoffset + var->xres > var->xres_virtual) in neofb_check_var()
[all …]
Dpxa168fb.c171 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()
Dvt8623fb.c337 if (var->xres > var->xres_virtual) in vt8623fb_check_var()
338 var->xres_virtual = var->xres; in vt8623fb_check_var()
345 var->xres_virtual = (var->xres_virtual+step) & ~step; in vt8623fb_check_var()
348 mem = ((var->bits_per_pixel * var->xres_virtual) >> 3) * var->yres_virtual; in vt8623fb_check_var()
387 info->fix.line_length = (info->var.xres_virtual * bpp) / 8; in vt8623fb_set_par()
396 offset_value = (info->var.xres_virtual * bpp) / 64; in vt8623fb_set_par()
414 offset_value = info->var.xres_virtual / 16; in vt8623fb_set_par()
416 screen_size = (info->var.xres_virtual * info->var.yres_virtual) / 64; in vt8623fb_set_par()
622 offset = (var->yoffset / 16) * info->var.xres_virtual in vt8623fb_pan_display()
Dwmt_ge_rops.c64 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()
Dpvr2fb.c162 .xres_virtual = 640,
250 static inline unsigned long get_line_length(int xres_virtual, int bpp) in get_line_length() argument
252 return (unsigned long)((((xres_virtual*bpp)+31)&~31) >> 3); in get_line_length()
426 line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in pvr2fb_set_par()
447 if (var->xres_virtual < var->xres) in pvr2fb_check_var()
448 var->xres_virtual = var->xres; in pvr2fb_check_var()
465 if (var->xoffset > var->xres_virtual - var->xres || in pvr2fb_check_var()
528 line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in pvr2fb_check_var()
829 modememused = get_line_length(fb_info->var.xres_virtual, in pvr2fb_common_init()
Dsm501fb.c326 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 …]
Dvt8500lcdfb.c68 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()
Dvga16fb.c68 .xres_virtual = 640,
211 pos = (info->var.xres_virtual * var->yoffset + xoffset) >> 2; in vga16fb_pan_var()
214 pos = (info->var.xres_virtual * (var->yoffset / fh) + xoffset) >> 3; in vga16fb_pan_var()
218 pos = (info->var.xres_virtual * var->yoffset + xoffset) >> 3; in vga16fb_pan_var()
239 info->fix.line_length = info->var.xres_virtual / 2; in vga16fb_update_fix()
243 info->fix.line_length = info->var.xres_virtual / 8; in vga16fb_update_fix()
248 info->fix.line_length = info->var.xres_virtual / 4; in vga16fb_update_fix()
253 info->fix.line_length = info->var.xres_virtual / 4; in vga16fb_update_fix()
256 info->fix.line_length = info->var.xres_virtual; in vga16fb_update_fix()
371 vxres = (var->xres_virtual + 0xF) & ~0xF; in vga16fb_check_var()
[all …]
Dgrvga.c99 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()
Dcyber2000fb.c175 dst = rect->dx + rect->dy * cfb->fb.var.xres_virtual; in cyber2000fb_fillrect()
203 src = region->sx + region->sy * cfb->fb.var.xres_virtual; in cyber2000fb_copyarea()
204 dst = region->dx + region->dy * cfb->fb.var.xres_virtual; in cyber2000fb_copyarea()
213 src += (region->height - 1) * cfb->fb.var.xres_virtual; in cyber2000fb_copyarea()
214 dst += (region->height - 1) * cfb->fb.var.xres_virtual; in cyber2000fb_copyarea()
539 u_int base = var->yoffset * var->xres_virtual + var->xoffset; in cyber2000fb_update_start()
837 mem = var->xres_virtual * var->yres_virtual * (var->bits_per_pixel / 8); in cyber2000fb_check_var()
840 (var->bits_per_pixel * var->xres_virtual); in cyber2000fb_check_var()
844 if (var->xres > var->xres_virtual) in cyber2000fb_check_var()
845 var->xres = var->xres_virtual; in cyber2000fb_check_var()
[all …]
Darkfb.c574 if (var->xres > var->xres_virtual) in arkfb_check_var()
575 var->xres_virtual = var->xres; in arkfb_check_var()
582 var->xres_virtual = (var->xres_virtual+step) & ~step; in arkfb_check_var()
586 mem = ((var->bits_per_pixel * var->xres_virtual) >> 3) * var->yres_virtual; in arkfb_check_var()
619 info->fix.line_length = (info->var.xres_virtual * bpp) / 8; in arkfb_set_par()
628 offset_value = (info->var.xres_virtual * bpp) / 64; in arkfb_set_par()
641 offset_value = info->var.xres_virtual / 16; in arkfb_set_par()
642 screen_size = (info->var.xres_virtual * info->var.yres_virtual) / 64; in arkfb_set_par()
902 offset = (var->yoffset / 16) * (info->var.xres_virtual / 2) in arkfb_pan_display()
Dgoldfishfb.c94 (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()
Dg364fb.c210 fb_var.xres_virtual = fb_var.xres; in g364fb_init()
211 fb_fix.line_length = fb_var.xres_virtual * fb_var.bits_per_pixel / 8; in g364fb_init()
/linux-6.1.9/drivers/video/fbdev/riva/
Dfbdev.c220 .xres_virtual = 640,
685 width = info->var.xres_virtual; in riva_load_video_mode()
827 var->xres = var->xres_virtual = modedb->xres; in riva_update_var()
879 if (var->xres_virtual == -1 && var->yres_virtual == -1) { in rivafb_do_maximize()
893 var->xres_virtual = modes[i].xres; in rivafb_do_maximize()
898 var->xres_virtual, var->yres_virtual); in rivafb_do_maximize()
899 } else if (var->xres_virtual == -1) { in rivafb_do_maximize()
900 var->xres_virtual = (info->fix.smem_len * den / in rivafb_do_maximize()
903 "setting virtual X resolution to %d\n", var->xres_virtual); in rivafb_do_maximize()
905 var->xres_virtual = (var->xres_virtual + 15) & ~15; in rivafb_do_maximize()
[all …]
/linux-6.1.9/drivers/video/fbdev/matrox/
Dmatroxfb_crtc2.c123 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()
Dmatroxfb_base.c163 && (info->fbcon.var.xres_virtual == minfo->fbcon.var.xres_virtual) in update_crtc2()
172 mga_outl(0x3C28, pos + minfo->fbcon.var.xres_virtual * minfo->fbcon.var.bits_per_pixel / 8); in update_crtc2()
326 …pos = (minfo->fbcon.var.yoffset * minfo->fbcon.var.xres_virtual + minfo->fbcon.var.xoffset) * minf… in matrox_pan_var()
571 if (var->xres_virtual < var->xres) in matroxfb_decode_var()
572 var->xres_virtual = var->xres; in matroxfb_decode_var()
574 var->xres_virtual = matroxfb_pitch_adjust(minfo, var->xres_virtual, bpp); in matroxfb_decode_var()
575 memlen = var->xres_virtual * bpp * var->yres_virtual / 8; in matroxfb_decode_var()
577 var->yres_virtual = vramlen * 8 / (var->xres_virtual * bpp); in matroxfb_decode_var()
578 memlen = var->xres_virtual * bpp * var->yres_virtual / 8; in matroxfb_decode_var()
588 unsigned int m1 = linelen = var->xres_virtual * bpp / 8; in matroxfb_decode_var()
[all …]
/linux-6.1.9/drivers/media/pci/ivtv/
Divtvfb.c568 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 …]
/linux-6.1.9/drivers/video/fbdev/nvidia/
Dnvidia.c91 .xres_virtual = 640,
354 state->crtc[0x13] = ((info->var.xres_virtual / 8) * in nvidia_calc_regs()
410 NVCalcStateExt(par, state, i, info->var.xres_virtual, in nvidia_calc_regs()
658 info->fix.line_length = (info->var.xres_virtual * in nvidiafb_set_par()
866 if (var->xres_virtual < var->xres) in nvidiafb_check_var()
867 var->xres_virtual = var->xres; in nvidiafb_check_var()
869 var->xres_virtual = (var->xres_virtual + 63) & ~63; in nvidiafb_check_var()
872 pitch = ((var->xres_virtual * var->bits_per_pixel) + 7) / 8; in nvidiafb_check_var()
880 var->xres_virtual = vramlen / var->yres_virtual; in nvidiafb_check_var()
881 var->xres_virtual /= var->bits_per_pixel / 8; in nvidiafb_check_var()
[all …]
/linux-6.1.9/drivers/video/fbdev/mmp/fb/
Dmmpfb.c282 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-6.1.9/drivers/video/fbdev/omap2/omapfb/
Domapfb-main.c92 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 …]
/linux-6.1.9/drivers/video/fbdev/savage/
Dsavagefb_driver.c200 reg->CRTC[0x13] = var->xres_virtual >> 4; in vgaHWInit()
848 var->xres = var->xres_virtual = modedb->xres; in savage_update_var()
940 if (var->xres_virtual < var->xres) in savagefb_check_var()
941 var->xres_virtual = var->xres; in savagefb_check_var()
945 memlen = var->xres_virtual * var->bits_per_pixel * in savagefb_check_var()
949 (var->xres_virtual * var->bits_per_pixel); in savagefb_check_var()
950 memlen = var->xres_virtual * var->bits_per_pixel * in savagefb_check_var()
958 if (var->xres_virtual < var->xres) in savagefb_check_var()
959 var->xres = var->xres_virtual; in savagefb_check_var()
960 if (var->xoffset + var->xres > var->xres_virtual) in savagefb_check_var()
[all …]

123456