• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/video/

Lines Matching defs:var

504 	if (info->var.bits_per_pixel == 8) {
526 if (info->var.bits_per_pixel == 8) {
864 /* See if we can handle the video mode described in var */
865 static int tridentfb_check_var(struct fb_var_screeninfo *var,
869 int bpp = var->bits_per_pixel;
876 bpp = var->bits_per_pixel = 32;
882 if (par->flatpanel && nativex && var->xres > nativex)
885 var->xres = (var->xres + 7) & ~0x7;
886 if (var->xres > var->xres_virtual)
887 var->xres_virtual = var->xres;
888 if (var->yres > var->yres_virtual)
889 var->yres_virtual = var->yres;
890 if (var->xres_virtual > 4095 || var->yres > 2048)
893 if (var->yres_virtual > 0xffff)
895 line_length = var->xres_virtual * bpp / 8;
901 var->xres_virtual = 512 * 8 / bpp;
903 var->xres_virtual = 1024 * 8 / bpp;
905 var->xres_virtual = 2048 * 8 / bpp;
907 var->xres_virtual = 4096 * 8 / bpp;
909 var->xres_virtual = 8192 * 8 / bpp;
913 line_length = var->xres_virtual * bpp / 8;
917 if (line_length * (var->yres_virtual - var->yres) > (4 << 20))
918 var->yres_virtual = ((4 << 20) / line_length) + var->yres;
920 if (line_length * var->yres_virtual > info->fix.smem_len)
925 var->red.offset = 0;
926 var->red.length = 8;
927 var->green = var->red;
928 var->blue = var->red;
931 var->red.offset = 11;
932 var->green.offset = 5;
933 var->blue.offset = 0;
934 var->red.length = 5;
935 var->green.length = 6;
936 var->blue.length = 5;
939 var->red.offset = 16;
940 var->green.offset = 8;
941 var->blue.offset = 0;
942 var->red.length = 8;
943 var->green.length = 8;
944 var->blue.length = 8;
973 if (PICOS2KHZ(var->pixclock) > ramdac)
983 static int tridentfb_pan_display(struct fb_var_screeninfo *var,
990 offset = (var->xoffset + (var->yoffset * var->xres_virtual))
991 * var->bits_per_pixel / 32;
1013 struct fb_var_screeninfo *var = &info->var;
1014 int bpp = var->bits_per_pixel;
1019 hdispend = var->xres / 8 - 1;
1020 hsyncstart = (var->xres + var->right_margin) / 8;
1021 hsyncend = (var->xres + var->right_margin + var->hsync_len) / 8;
1022 htotal = (var->xres + var->left_margin + var->right_margin +
1023 var->hsync_len) / 8 - 5;
1027 vdispend = var->yres - 1;
1028 vsyncstart = var->yres + var->lower_margin;
1029 vsyncend = vsyncstart + var->vsync_len;
1030 vtotal = var->upper_margin + vsyncend - 2;
1034 if (info->var.vmode & FB_VMODE_INTERLACED) {
1047 if (var->sync & FB_SYNC_HOR_HIGH_ACT)
1049 if (var->sync & FB_SYNC_VERT_HIGH_ACT)
1052 if (par->flatpanel && var->xres < nativex) {
1125 tmp = (info->var.vmode & FB_VMODE_INTERLACED) ? 0x84 : 0x80;
1129 if (info->var.vmode & FB_VMODE_INTERLACED)
1175 vclk = PICOS2KHZ(info->var.pixclock);
1222 set_number_of_lines(par, info->var.yres);
1223 info->fix.line_length = info->var.xres_virtual * bpp / 8;
1227 par->init_accel(par, info->var.xres_virtual, bpp);
1240 int bpp = info->var.bits_per_pixel;
1507 if (!fb_find_mode(&info->var, info,
1516 info->var.activate |= FB_ACTIVATE_NOW;
1525 info->node, info->fix.id, info->var.xres,
1526 info->var.yres, info->var.bits_per_pixel);