Lines Matching defs:fbinfo
568 struct fb_info *fbinfo;
578 fbinfo = framebuffer_alloc(sizeof(*info), &pdev->dev);
579 if (!fbinfo) {
584 info = fbinfo->par;
585 info->fb = fbinfo;
591 platform_set_drvdata(pdev, fbinfo);
599 strcpy(fbinfo->fix.id, DRIVER_NAME);
601 fbinfo->fix.type = FB_TYPE_PACKED_PIXELS;
602 fbinfo->fix.type_aux = 0;
603 fbinfo->fix.xpanstep = 0;
604 fbinfo->fix.ypanstep = 0;
605 fbinfo->fix.ywrapstep = 0;
606 fbinfo->fix.accel = FB_ACCEL_NONE;
607 fbinfo->fix.visual = FB_VISUAL_TRUECOLOR;
609 fbinfo->var.nonstd = 0;
610 fbinfo->var.activate = FB_ACTIVATE_NOW;
611 fbinfo->var.height = -1;
612 fbinfo->var.width = -1;
613 fbinfo->var.accel_flags = 0;
614 fbinfo->var.vmode = FB_VMODE_NONINTERLACED;
616 fbinfo->var.xres = LCD_X_RES;
617 fbinfo->var.xres_virtual = LCD_X_RES;
618 fbinfo->var.yres = LCD_Y_RES;
619 fbinfo->var.yres_virtual = LCD_Y_RES;
620 fbinfo->var.bits_per_pixel = info->lcd_bpp;
624 fbinfo->var.red.offset = 0;
625 fbinfo->var.green.offset = 8;
626 fbinfo->var.blue.offset = 16;
628 fbinfo->var.red.offset = 0;
629 fbinfo->var.green.offset = 5;
630 fbinfo->var.blue.offset = 11;
634 fbinfo->var.red.offset = 16;
635 fbinfo->var.green.offset = 8;
636 fbinfo->var.blue.offset = 0;
638 fbinfo->var.red.offset = 11;
639 fbinfo->var.green.offset = 5;
640 fbinfo->var.blue.offset = 0;
644 fbinfo->var.transp.offset = 0;
647 fbinfo->var.red.length = 8;
648 fbinfo->var.green.length = 8;
649 fbinfo->var.blue.length = 8;
651 fbinfo->var.red.length = 5;
652 fbinfo->var.green.length = 6;
653 fbinfo->var.blue.length = 5;
656 fbinfo->var.transp.length = 0;
660 fbinfo->fix.smem_len = LCD_X_RES * LCD_Y_RES * info->lcd_bpp / 8
663 fbinfo->fix.line_length = fbinfo->var.xres_virtual *
664 fbinfo->var.bits_per_pixel / 8;
667 fbinfo->fbops = &bfin_lq035q1_fb_ops;
668 fbinfo->flags = FBINFO_FLAG_DEFAULT;
671 dma_alloc_coherent(NULL, fbinfo->fix.smem_len, &info->dma_handle,
680 fbinfo->screen_base = (void *)info->fb_buffer + active_video_mem_offset;
681 fbinfo->fix.smem_start = (int)info->fb_buffer + active_video_mem_offset;
683 fbinfo->fbops = &bfin_lq035q1_fb_ops;
685 fbinfo->pseudo_palette = &info->pseudo_pal;
687 ret = fb_alloc_cmap(&fbinfo->cmap, BFIN_LCD_NBR_PALETTE_ENTRIES, 0);
737 ret = register_framebuffer(fbinfo);
759 fb_dealloc_cmap(&fbinfo->cmap);
761 dma_free_coherent(NULL, fbinfo->fix.smem_len, info->fb_buffer,
764 framebuffer_release(fbinfo);
774 struct fb_info *fbinfo = platform_get_drvdata(pdev);
775 struct bfin_lq035q1fb_info *info = fbinfo->par;
782 unregister_framebuffer(fbinfo);
788 dma_free_coherent(NULL, fbinfo->fix.smem_len, info->fb_buffer,
791 fb_dealloc_cmap(&fbinfo->cmap);
796 framebuffer_release(fbinfo);
806 struct fb_info *fbinfo = dev_get_drvdata(dev);
807 struct bfin_lq035q1fb_info *info = fbinfo->par;
823 struct fb_info *fbinfo = dev_get_drvdata(dev);
824 struct bfin_lq035q1fb_info *info = fbinfo->par;