Home
last modified time | relevance | path

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

1234

/linux-2.4.37.9/drivers/video/
Dneofb.c243 pitch = var->xres_virtual; in neo2200_accel_init()
248 pitch = var->xres_virtual * 2; in neo2200_accel_init()
288 pitch = var->xres_virtual * bpp; in neo2200_accel_bmove()
344 dst = sx * fw + sy * var->xres_virtual * fh; in neo2200_accel_clear()
809 Base = (var->yoffset * var->xres_virtual + var->xoffset) >> 2; in neofb_update_start()
993 par->CRTC[19] = var->xres_virtual >> 4; in vgaHWInit()
1153 if (var->xres_virtual < var->xres) in neofb_decode_var()
1154 var->xres_virtual = var->xres; in neofb_decode_var()
1156 memlen = var->xres_virtual * var->bits_per_pixel * var->yres_virtual / 8; in neofb_decode_var()
1159 var->yres_virtual = vramlen * 8 / (var->xres_virtual * var->bits_per_pixel); in neofb_decode_var()
[all …]
Dvfb.c108 static u_long get_line_length(int xres_virtual, int bpp);
198 if (var->xres > var->xres_virtual) in vfb_set_var()
199 var->xres_virtual = var->xres; in vfb_set_var()
221 line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in vfb_set_var()
230 oldvxres = display->var.xres_virtual; in vfb_set_var()
235 oldvxres != var->xres_virtual || oldvyres != var->yres_virtual || in vfb_set_var()
321 fb_display[con].var.xres_virtual || in vfb_pan_display()
459 static u_long get_line_length(int xres_virtual, int bpp) in get_line_length() argument
463 length = xres_virtual*bpp; in get_line_length()
496 fix->line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in vfb_encode_fix()
Datafb.c597 var->xres_virtual=sttt_xres_virtual/2; in tt_encode_var()
603 var->xres_virtual=sttt_xres_virtual; in tt_encode_var()
609 var->xres_virtual=sttt_xres_virtual; in tt_encode_var()
615 var->xres_virtual=sttt_xres_virtual/2; in tt_encode_var()
621 var->xres_virtual=sttt_xres_virtual; in tt_encode_var()
628 var->xres_virtual=sttt_xres_virtual*2; in tt_encode_var()
637 linelen=var->xres_virtual * var->bits_per_pixel / 8; in tt_encode_var()
832 int xres_virtual = var->xres_virtual; in falcon_decode_var() local
948 if (xres_virtual < xres) in falcon_decode_var()
949 xres_virtual = xres; in falcon_decode_var()
[all …]
Dsun3fb.c126 rects [2] = fb->var.xres_virtual; in sun3fb_clear_margin()
132 rects [8] = fb->var.xres_virtual - fb->x_margin; in sun3fb_clear_margin()
134 rects [10] = fb->var.xres_virtual; in sun3fb_clear_margin()
138 rects [14] = fb->var.xres_virtual - fb->x_margin; in sun3fb_clear_margin()
143 int skip_bytes = fb->y_margin * fb->var.xres_virtual; in sun3fb_clear_margin()
144 int scr_size = fb->var.xres_virtual * fb->var.yres_virtual; in sun3fb_clear_margin()
154 incr = fb->var.xres_virtual / 8; in sun3fb_clear_margin()
163 incr = fb->var.xres_virtual; in sun3fb_clear_margin()
217 var->xres_virtual > fb->var.xres_virtual || in sun3fb_set_var()
377 x_margin = (fb_display[con].var.xres_virtual - fb_display[con].var.xres) / 2; in sun3fbcon_switch()
[all …]
Dtx3912fb.c73 #define get_line_length(xres_virtual, bpp) \ argument
74 (u_long) (((int) xres_virtual * (int) bpp + 7) >> 3)
177 if (var->xres > var->xres_virtual) in tx3912fb_set_var()
178 var->xres_virtual = var->xres; in tx3912fb_set_var()
195 line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in tx3912fb_set_var()
225 oldvxres = display->var.xres_virtual; in tx3912fb_set_var()
231 oldvxres != var->xres_virtual || in tx3912fb_set_var()
255 get_line_length(var->xres_virtual, in tx3912fb_set_var()
Depson1355fb.c209 var->xres != var->xres_virtual || in e1355_decode_var()
273 u32 xres, xres_virtual, yres; in e1355_encode_var() local
302 xres_virtual = e1355_read_reg16(0x16); in e1355_encode_var()
304 xres_virtual *= 16; in e1355_encode_var()
305 xres_virtual /= var->bits_per_pixel; in e1355_encode_var()
309 var->xres_virtual = xres_virtual; in e1355_encode_var()
Dradeonfb.c510 int xres_virtual, yres_virtual; member
1406 var->xres_virtual = rinfo->panel_xres; in radeon_update_default_var()
2133 disp->line_length = (disp->var.xres_virtual + 0x3f) & ~0x3f; in radeon_set_dispsw()
2135 disp->line_length = disp->var.xres_virtual; in radeon_set_dispsw()
2145 disp->line_length = (disp->var.xres_virtual * 2 + 0x3f) & ~0x3f; in radeon_set_dispsw()
2147 disp->line_length = disp->var.xres_virtual * 2; in radeon_set_dispsw()
2157 disp->line_length = (disp->var.xres_virtual * 3 + 0x3f) & ~0x3f; in radeon_set_dispsw()
2159 disp->line_length = disp->var.xres_virtual * 3; in radeon_set_dispsw()
2169 disp->line_length = (disp->var.xres_virtual * 4 + 0x3f) & ~0x3f; in radeon_set_dispsw()
2171 disp->line_length = disp->var.xres_virtual * 4; in radeon_set_dispsw()
[all …]
DS3triofb.c187 if (var->xres_virtual > fb_var.xres_virtual) { in s3trio_set_var()
188 outw(IO_OUT16VAL((var->xres_virtual /8) & 0xff, 0x13), 0x3d4); in s3trio_set_var()
189 outw(IO_OUT16VAL(((var->xres_virtual /8 ) & 0x300) >> 3, 0x51), 0x3d4); in s3trio_set_var()
190 fb_var.xres_virtual = var->xres_virtual; in s3trio_set_var()
191 fb_fix.line_length = var->xres_virtual; in s3trio_set_var()
210 if (var->xoffset > (var->xres_virtual - var->xres)) in s3trio_pan_display()
385 fb_fix.line_length = fb_var.xres_virtual; in s3triofb_pci_init()
Dsgivwfb.c128 static u_long get_line_length(int xres_virtual, int bpp);
139 static unsigned long get_line_length(int xres_virtual, int bpp) in get_line_length() argument
141 return(xres_virtual * bytes_per_pixel(bpp)); in get_line_length()
510 fix->line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in sgivwfb_encode_fix()
680 if (var->xres > var->xres_virtual || (!ywrap && !ypan)) in sgivwfb_set_var()
681 var->xres_virtual = var->xres; in sgivwfb_set_var()
688 line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in sgivwfb_set_var()
742 oldvxres = display->var.xres_virtual; in sgivwfb_set_var()
749 oldvxres != var->xres_virtual || oldvyres != var->yres_virtual || in sgivwfb_set_var()
755 var->xres_virtual, var->yres_virtual); in sgivwfb_set_var()
Dsbusfb.c252 rects [2] = fb->var.xres_virtual; in sbusfb_clear_margin()
258 rects [8] = fb->var.xres_virtual - fb->x_margin; in sbusfb_clear_margin()
260 rects [10] = fb->var.xres_virtual; in sbusfb_clear_margin()
264 rects [14] = fb->var.xres_virtual - fb->x_margin; in sbusfb_clear_margin()
269 int skip_bytes = fb->y_margin * fb->var.xres_virtual; in sbusfb_clear_margin()
270 int scr_size = fb->var.xres_virtual * fb->var.yres_virtual; in sbusfb_clear_margin()
280 incr = fb->var.xres_virtual / 8; in sbusfb_clear_margin()
289 incr = fb->var.xres_virtual; in sbusfb_clear_margin()
352 display->var.xres_virtual != var->xres_virtual || in sbusfb_set_var()
775 x_margin = (fb_display[con].var.xres_virtual - fb_display[con].var.xres) / 2; in sbusfbcon_switch()
[all …]
Dvirgefb.c1010 fix->line_length = par->var.xres_virtual*par->var.bits_per_pixel/8; in virgefb_encode_fix()
1028 par->var.xres_virtual = var->xres_virtual; in virgefb_decode_var()
1032 par->var.xres_virtual = (par->var.xres_virtual+7) & ~7; in virgefb_decode_var()
1033 if (par->var.xres_virtual < par->var.xres) in virgefb_decode_var()
1034 par->var.xres_virtual = par->var.xres; in virgefb_decode_var()
1093 var->xres_virtual = par->var.xres_virtual; in virgefb_encode_var()
1542 display->line_length = display->var.xres_virtual* in virgefb_set_disp()
1599 oldvxres = fb_display[con].var.xres_virtual; in virgefb_set_var()
1605 oldvxres != var->xres_virtual || in virgefb_set_var()
2229 int xres, xres_virtual, hfront, hsync, hback; in virgefb_load_video_mode() local
[all …]
Dcyber2000fb.c198 src = sx + sy * var->xres_virtual; in cyber2000_accel_bmove()
199 dst = dx + dy * var->xres_virtual; in cyber2000_accel_bmove()
233 dst = sx * fw + sy * var->xres_virtual * fh; in cyber2000_accel_clear()
553 base = var->yoffset * var->xres_virtual + var->xoffset; in cyber2000fb_update_start()
806 hw->width = var->xres_virtual; in cyber2000fb_decode_var()
909 if (cfb->fb.var.xres_virtual != var->xres_virtual) in cyber2000fb_set_var()
940 display->next_line = var->xres_virtual; in cyber2000fb_set_var()
956 display->next_line = var->xres_virtual * 2; in cyber2000fb_set_var()
971 display->next_line = var->xres_virtual * 2; in cyber2000fb_set_var()
986 display->next_line = var->xres_virtual * 3; in cyber2000fb_set_var()
[all …]
Dpvr2fb.c231 static u_long get_line_length(int xres_virtual, int bpp);
374 oldvxres = display->var.xres_virtual; in pvr2fb_set_var()
379 oldvxres != var->xres_virtual || oldvyres != var->yres_virtual || in pvr2fb_set_var()
446 fb_display[con].var.xres_virtual || in pvr2fb_pan_display()
536 static inline u_long get_line_length(int xres_virtual, int bpp) in get_line_length() argument
538 return (u_long)((((xres_virtual*bpp)+31)&~31) >> 3); in get_line_length()
664 if ((par->vxres = var->xres_virtual) < par->xres) in pvr2_decode_var()
768 line_length = get_line_length(var->xres_virtual, var->bits_per_pixel); in pvr2_decode_var()
785 var->xres_virtual = par->vxres; in pvr2_encode_var()
1072 modememused = get_line_length(var.xres_virtual, var.bits_per_pixel); in pvr2fb_init()
Dretz3fb.c642 tmp = (var->xres_virtual / 8) * (bpp / 8); in retz3_set_video()
662 if (((var->xres_virtual / 8) * (bpp / 8)) & 0x100) in retz3_set_video()
821 par->xres_vir = var->xres_virtual; in retz3_decode_var()
859 var->xres_virtual = par->xres_vir; in retz3_encode_var()
983 int i, xres_virtual = var->xres_virtual; in retz3_bitblt() local
1004 dst = bpp * (destx + desty * xres_virtual); in retz3_bitblt()
1010 src = bpp * (srcx + srcy * xres_virtual); in retz3_bitblt()
1020 src += bpp * (height - 1) * xres_virtual; in retz3_bitblt()
1021 dst += bpp * (height - 1) * xres_virtual; in retz3_bitblt()
1226 oldvxres = display->var.xres_virtual; in retz3fb_set_var()
[all …]
Dvga16fb.c111 u32 pos = (var->xres_virtual * var->yoffset + var->xoffset) >> 3; in vga16fb_pan_var()
152 fix->line_length = p->var.xres_virtual / 8; in vga16fb_get_fix()
254 vxres = (var->xres_virtual + 0xF) & ~0xF; in vga16fb_decode_var()
269 par->var.xres_virtual = vxres; in vga16fb_decode_var()
525 oldvxres = display->var.xres_virtual; in vga16fb_set_var()
532 oldvxres != var->xres_virtual || oldvyres != var->yres_virtual || in vga16fb_set_var()
665 if (var->xoffset + fb_display[con].var.xres > fb_display[con].var.xres_virtual || in vga16fb_pan_display()
Dfbgen.c116 oldxres_virtual = fb_display[con].var.xres_virtual; in fbgen_set_var()
125 oldxres_virtual != var->xres_virtual || in fbgen_set_var()
237 xoffset+fb_display[con].var.xres > fb_display[con].var.xres_virtual || in fbgen_pan_display()
Dclgenfb.c809 DPRINTK (" virtual: %dx%d\n", var->xres_virtual, var->yres_virtual); in clgen_decode_var()
856 if (_par->var.xres_virtual == -1 && in clgen_decode_var()
868 _par->var.xres_virtual = modes[i].xres; in clgen_decode_var()
872 _par->var.xres_virtual, _par->var.yres_virtual); in clgen_decode_var()
873 } else if (_par->var.xres_virtual == -1) { in clgen_decode_var()
884 if (_par->var.xoffset > _par->var.xres_virtual - _par->var.xres) in clgen_decode_var()
885 _par->var.xoffset = _par->var.xres_virtual - _par->var.xres - 1; in clgen_decode_var()
892 _par->line_length = _par->var.xres_virtual / 8; in clgen_decode_var()
897 _par->line_length = _par->var.xres_virtual; in clgen_decode_var()
908 _par->line_length = _par->var.xres_virtual * 2; in clgen_decode_var()
[all …]
Dhgafb.c116 xres_virtual: 720,
452 var->xres_virtual != 720 || in hga_set_var()
578 if (var->xoffset + var->xres > info->var.xres_virtual in hga_pan_display()
Dg364fb.c201 var->xres_virtual > fb_var.xres_virtual || in g364fb_set_var()
322 fb_var.xres = fb_var.xres_virtual = xres; in g364fb_init()
Dhpfb.c86 var->xres_virtual=1024; in hpfb_encode_var()
307 hpfb_defined.xres_virtual = 1024; in hpfb_init_one()
Dq40fb.c97 var->xres_virtual=1024; in q40fb_get_var()
135 if(var->xres_virtual!=1024) in q40fb_set_var()
/linux-2.4.37.9/drivers/video/riva/
Dfbdev.c298 xres_virtual: 640,
705 disp->line_length = disp->var.xres_virtual; in riva_set_dispsw()
714 disp->line_length = disp->var.xres_virtual * 2; in riva_set_dispsw()
723 disp->line_length = disp->var.xres_virtual * 4; in riva_set_dispsw()
882 width = video_mode->xres_virtual; in riva_load_video_mode()
1089 if (v->xres_virtual == -1 && v->yres_virtual == -1) { in rivafb_do_maximize()
1103 v->xres_virtual = modes[i].xres; in rivafb_do_maximize()
1108 v->xres_virtual, v->yres_virtual); in rivafb_do_maximize()
1109 } else if (v->xres_virtual == -1) { in rivafb_do_maximize()
1110 v->xres_virtual = (rinfo->ram_amount * den / in rivafb_do_maximize()
[all …]
/linux-2.4.37.9/drivers/video/matrox/
Dmatroxfb_crtc2.c164 u_int32_t linelen = p->var.xres_virtual * (p->var.bits_per_pixel >> 3); in matroxfb_dh_restore()
225 linelen = var->xres_virtual * pixelsize; in matroxfb_dh_pan_var()
260 if (var->xres_virtual < var->xres) in matroxfb_dh_decode_var()
261 var->xres_virtual = var->xres; in matroxfb_dh_decode_var()
262 var->xres_virtual = (var->xres_virtual + mask) & ~mask; in matroxfb_dh_decode_var()
265 memlen = var->xres_virtual * var->yres_virtual * (var->bits_per_pixel >> 3); in matroxfb_dh_decode_var()
268 if (var->xoffset + var->xres > var->xres_virtual) in matroxfb_dh_decode_var()
269 var->xoffset = var->xres_virtual - var->xres; in matroxfb_dh_decode_var()
433 (p->var.xres_virtual != var->xres_virtual) || in matroxfb_dh_set_var()
449 p->next_line = p->line_length = (var->xres_virtual * var->bits_per_pixel) >> 3; in matroxfb_dh_set_var()
[all …]
Dmatroxfb_base.c334 pos = (var->yoffset * var->xres_virtual + var->xoffset) * ACCESS_FBINFO(curr.final_bppShift) / 32; in matrox_pan_var()
452 if (var->xoffset+dsp->var.xres > dsp->var.xres_virtual || in matroxfb_pan_display()
649 if (var->xres_virtual < var->xres) in matroxfb_decode_var()
650 var->xres_virtual = var->xres; in matroxfb_decode_var()
652 var->xres_virtual = matroxfb_pitch_adjust(PMINFO var->xres_virtual, bpp); in matroxfb_decode_var()
653 memlen = var->xres_virtual * bpp * var->yres_virtual / 8; in matroxfb_decode_var()
655 var->yres_virtual = vramlen * 8 / (var->xres_virtual * bpp); in matroxfb_decode_var()
656 memlen = var->xres_virtual * bpp * var->yres_virtual / 8; in matroxfb_decode_var()
666 unsigned int m1 = linelen = var->xres_virtual * bpp / 8; in matroxfb_decode_var()
703 if (var->xres_virtual < var->xres) in matroxfb_decode_var()
[all …]
Dmatroxfb_accel.c95 mpitch = p->var.xres_virtual; in matrox_cfbX_init()
149 int pixx = p->var.xres_virtual, start, end; in matrox_cfbX_bmove()
213 pixx = p->var.xres_virtual >> 1; in matrox_cfb4_bmove()
309 mga_outl(M_YDST, sy * p->var.xres_virtual >> 6); in matrox_cfb4_clear()
314 u_int32_t step = p->var.xres_virtual >> 1; in matrox_cfb4_clear()
730 mga_outl(M_YDST, yy * p->var.xres_virtual >> 6); in matrox_cfb4_revc()
821 …p->next_line = p->line_length ? p->line_length : ((p->var.xres_virtual / (fontwidth(p)?fontwidth(p… in matrox_text_setup()
1016 vxres = (var->xres_virtual + hf - 1) / hf; in matrox_text_round()
1033 var->xres_virtual = vxres * hf; in matrox_text_round()
1045 …p->next_line = p->line_length = ((p->var.xres_virtual / (fontwidth(p)?fontwidth(p):8)) * ACCESS_FB… in matrox_text_setfont()

1234