Lines Matching refs:fbdev

702 static int au1200_setlocation (struct au1200fb_device *fbdev, int plane,
764 lcd->window[plane].winbuf1 = fbdev->fb_phys;
852 au1200_setlocation(fbdev, 0, win->w[0].xpos, win->w[0].ypos);
853 au1200_setlocation(fbdev, 1, win->w[1].xpos, win->w[1].ypos);
854 au1200_setlocation(fbdev, 2, win->w[2].xpos, win->w[2].ypos);
855 au1200_setlocation(fbdev, 3, win->w[3].xpos, win->w[3].ypos);
937 static void au1200_setmode(struct au1200fb_device *fbdev)
939 int plane = fbdev->plane;
946 au1200_setlocation(fbdev, plane, win->w[plane].xpos, win->w[plane].ypos);
951 | LCD_WINCTRL2_BX_N(fbdev->fb_info->fix.line_length)
1039 struct au1200fb_device *fbdev = fbi->par;
1046 plane = fbdev->plane;
1063 if (fbdev->fb_len < screen_size)
1134 struct au1200fb_device *fbdev = fbi->par;
1137 au1200_setmode(fbdev);
1176 } else if (1 /*FIX!!! panel_is_active(fbdev->panel)*/) {
1182 } else if (0 /*panel_is_color(fbdev->panel)*/) {
1203 struct au1200fb_device *fbdev = fbi->par;
1214 au1200_setpanel(panel, fbdev->pd);
1220 au1200_setpanel(NULL, fbdev->pd);
1237 struct au1200fb_device *fbdev = info->par;
1241 return dma_mmap_coherent(fbdev->dev, vma,
1242 fbdev->fb_mem, fbdev->fb_phys, fbdev->fb_len);
1422 struct au1200fb_device *fbdev = info->par;
1467 au1200_setpanel(newpanel, fbdev->pd);
1519 static int au1200fb_init_fbinfo(struct au1200fb_device *fbdev)
1521 struct fb_info *fbi = fbdev->fb_info;
1526 bpp = winbpp(win->w[fbdev->plane].mode_winctrl1);
1561 fbi->fix.smem_start = fbdev->fb_phys;
1562 fbi->fix.smem_len = fbdev->fb_len;
1572 fbi->screen_buffer = fbdev->fb_mem;
1650 struct au1200fb_device *fbdev;
1687 fbdev = fbi->par;
1688 fbdev->fb_info = fbi;
1689 fbdev->pd = pd;
1690 fbdev->dev = &dev->dev;
1692 fbdev->plane = plane;
1695 fbdev->fb_len = (win->w[plane].xres * win->w[plane].yres * bpp) / 8;
1697 fbdev->fb_mem = dmam_alloc_attrs(&dev->dev,
1698 PAGE_ALIGN(fbdev->fb_len),
1699 &fbdev->fb_phys, GFP_KERNEL, 0);
1700 if (!fbdev->fb_mem) {
1702 fbdev->fb_len / 1024);
1707 print_dbg("Framebuffer memory map at %p", fbdev->fb_mem);
1708 print_dbg("phys=0x%08x, size=%dK", fbdev->fb_phys, fbdev->fb_len / 1024);
1711 ret = au1200fb_init_fbinfo(fbdev);