• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/video/

Lines Matching refs:fbi

958 static void au1200fb_update_fbinfo(struct fb_info *fbi)
964 if (fbi->var.bits_per_pixel <= 8) {
966 fbi->fix.visual = FB_VISUAL_PSEUDOCOLOR;
967 fbi->fix.line_length = fbi->var.xres_virtual /
968 (8/fbi->var.bits_per_pixel);
971 fbi->fix.visual = FB_VISUAL_TRUECOLOR;
972 fbi->fix.line_length = fbi->var.xres_virtual * (fbi->var.bits_per_pixel / 8);
976 fbi->fix.visual = FB_VISUAL_MONO10;
977 fbi->fix.line_length = fbi->var.xres_virtual / 8;
980 fbi->screen_size = fbi->fix.line_length * fbi->var.yres_virtual;
981 print_dbg("line length: %d\n", fbi->fix.line_length);
982 print_dbg("bits_per_pixel: %d\n", fbi->var.bits_per_pixel);
993 struct fb_info *fbi)
995 struct au1200fb_device *fbdev = (struct au1200fb_device *)fbi;
1023 pixclock = max((u32)(PICOS2KHZ(var->pixclock) * 1000), fbi->monspecs.dclkmin);
1024 pixclock = min(pixclock, min(fbi->monspecs.dclkmax, (u32)AU1200_LCD_MAX_CLK/2));
1071 static int au1200fb_fb_set_par(struct fb_info *fbi)
1073 struct au1200fb_device *fbdev = (struct au1200fb_device *)fbi;
1075 au1200fb_update_fbinfo(fbi);
1085 unsigned blue, unsigned transp, struct fb_info *fbi)
1093 if (fbi->var.grayscale) {
1099 if (fbi->fix.visual == FB_VISUAL_TRUECOLOR) {
1104 palette = (u32*) fbi->pseudo_palette;
1106 red >>= (16 - fbi->var.red.length);
1107 green >>= (16 - fbi->var.green.length);
1108 blue >>= (16 - fbi->var.blue.length);
1110 value = (red << fbi->var.red.offset) |
1111 (green << fbi->var.green.offset)|
1112 (blue << fbi->var.blue.offset);
1140 static int au1200fb_fb_blank(int blank_mode, struct fb_info *fbi)
1492 struct fb_info *fbi = &fbdev->fb_info;
1495 memset(fbi, 0, sizeof(struct fb_info));
1496 fbi->fbops = &au1200fb_fb_ops;
1501 memcpy(&fbi->monspecs, &panel->monspecs, sizeof(struct fb_monspecs));
1506 if (!fb_find_mode(&fbi->var,
1507 fbi,
1509 fbi->monspecs.modedb,
1510 fbi->monspecs.modedb_len,
1511 fbi->monspecs.modedb,
1518 fbi->pseudo_palette = kcalloc(16, sizeof(u32), GFP_KERNEL);
1519 if (!fbi->pseudo_palette) {
1523 if (fb_alloc_cmap(&fbi->cmap, AU1200_LCD_NBR_PALETTE_ENTRIES, 0) < 0) {
1526 kfree(fbi->pseudo_palette);
1530 strncpy(fbi->fix.id, "AU1200", sizeof(fbi->fix.id));
1531 fbi->fix.smem_start = fbdev->fb_phys;
1532 fbi->fix.smem_len = fbdev->fb_len;
1533 fbi->fix.type = FB_TYPE_PACKED_PIXELS;
1534 fbi->fix.xpanstep = 0;
1535 fbi->fix.ypanstep = 0;
1536 fbi->fix.mmio_start = 0;
1537 fbi->fix.mmio_len = 0;
1538 fbi->fix.accel = FB_ACCEL_NONE;
1540 fbi->screen_base = (char __iomem *) fbdev->fb_mem;
1542 au1200fb_update_fbinfo(fbi);