• 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/omap2/omapfb/

Lines Matching refs:fbi

57 static int omapfb_fb_init(struct omapfb2_device *fbdev, struct fb_info *fbi);
62 static void draw_pixel(struct fb_info *fbi, int x, int y, unsigned color)
64 struct fb_var_screeninfo *var = &fbi->var;
65 struct fb_fix_screeninfo *fix = &fbi->fix;
66 void __iomem *addr = fbi->screen_base;
97 static void fill_fb(struct fb_info *fbi)
99 struct fb_var_screeninfo *var = &fbi->var;
102 void __iomem *addr = fbi->screen_base;
108 DBG("fill_fb %dx%d, line_len %d bytes\n", w, h, fbi->fix.line_length);
113 draw_pixel(fbi, x, y, 0xffffff);
115 draw_pixel(fbi, x, y, 0xff);
117 draw_pixel(fbi, x, y, 0xff00);
119 draw_pixel(fbi, x, y, 0xff0000);
121 draw_pixel(fbi, x, y, 0xffff00);
124 draw_pixel(fbi, x, y, 0xffffff);
126 draw_pixel(fbi, x, y, 0xff00ff);
128 draw_pixel(fbi, x, y, 0x00ffff);
149 draw_pixel(fbi, x, y, c);
151 draw_pixel(fbi, x, y, 0);
496 static int setup_vrfb_rotation(struct fb_info *fbi)
498 struct omapfb_info *ofbi = FB2OFB(fbi);
501 struct fb_var_screeninfo *var = &fbi->var;
502 struct fb_fix_screeninfo *fix = &fbi->fix;
537 fbi->screen_base = NULL;
559 fbi->screen_base = ofbi->region->vrfb.vaddr[0];
595 void set_fb_fix(struct fb_info *fbi)
597 struct fb_fix_screeninfo *fix = &fbi->fix;
598 struct fb_var_screeninfo *var = &fbi->var;
599 struct omapfb_info *ofbi = FB2OFB(fbi);
605 fbi->screen_base = (char __iomem *)omapfb_get_region_vaddr(ofbi);
659 int check_fb_var(struct fb_info *fbi, struct fb_var_screeninfo *var)
661 struct omapfb_info *ofbi = FB2OFB(fbi);
662 struct omap_dss_device *display = fb2display(fbi);
743 static int omapfb_open(struct fb_info *fbi, int user)
748 static int omapfb_release(struct fb_info *fbi, int user)
830 int omapfb_setup_overlay(struct fb_info *fbi, struct omap_overlay *ovl,
834 struct omapfb_info *ofbi = FB2OFB(fbi);
835 struct fb_var_screeninfo *var = &fbi->var;
836 struct fb_fix_screeninfo *fix = &fbi->fix;
927 int omapfb_apply_changes(struct fb_info *fbi, int init)
930 struct omapfb_info *ofbi = FB2OFB(fbi);
931 struct fb_var_screeninfo *var = &fbi->var;
939 fill_fb(fbi);
980 r = omapfb_setup_overlay(fbi, ovl, posx, posy, outw, outh);
995 static int omapfb_check_var(struct fb_var_screeninfo *var, struct fb_info *fbi)
997 struct omapfb_info *ofbi = FB2OFB(fbi);
1000 DBG("check_var(%d)\n", FB2OFB(fbi)->id);
1004 r = check_fb_var(fbi, var);
1012 static int omapfb_set_par(struct fb_info *fbi)
1014 struct omapfb_info *ofbi = FB2OFB(fbi);
1017 DBG("set_par(%d)\n", FB2OFB(fbi)->id);
1021 set_fb_fix(fbi);
1023 r = setup_vrfb_rotation(fbi);
1027 r = omapfb_apply_changes(fbi, 0);
1036 struct fb_info *fbi)
1038 struct omapfb_info *ofbi = FB2OFB(fbi);
1042 DBG("pan_display(%d)\n", FB2OFB(fbi)->id);
1044 if (var->xoffset == fbi->var.xoffset &&
1045 var->yoffset == fbi->var.yoffset)
1048 new_var = fbi->var;
1052 fbi->var = new_var;
1056 r = omapfb_apply_changes(fbi, 0);
1086 static int omapfb_mmap(struct fb_info *fbi, struct vm_area_struct *vma)
1088 struct omapfb_info *ofbi = FB2OFB(fbi);
1089 struct fb_fix_screeninfo *fix = &fbi->fix;
1144 static int _setcolreg(struct fb_info *fbi, u_int regno, u_int red, u_int green,
1147 /*struct omapfb_info *ofbi = FB2OFB(fbi);*/
1149 struct fb_var_screeninfo *var = &fbi->var;
1187 ((u32 *)(fbi->pseudo_palette))[regno] = pal;
1230 static int omapfb_blank(int blank, struct fb_info *fbi)
1232 struct omapfb_info *ofbi = FB2OFB(fbi);
1234 struct omap_dss_device *display = fb2display(fbi);
1308 static void omapfb_free_fbmem(struct fb_info *fbi)
1310 struct omapfb_info *ofbi = FB2OFB(fbi);
1340 static void clear_fb_info(struct fb_info *fbi)
1342 memset(&fbi->var, 0, sizeof(fbi->var));
1343 memset(&fbi->fix, 0, sizeof(fbi->fix));
1344 strlcpy(fbi->fix.id, MODULE_NAME, sizeof(fbi->fix.id));
1354 struct fb_info *fbi = fbdev->fbs[i];
1355 omapfb_free_fbmem(fbi);
1356 clear_fb_info(fbi);
1362 static int omapfb_alloc_fbmem(struct fb_info *fbi, unsigned long size,
1365 struct omapfb_info *ofbi = FB2OFB(fbi);
1426 static int omapfb_alloc_fbmem_display(struct fb_info *fbi, unsigned long size,
1429 struct omapfb_info *ofbi = FB2OFB(fbi);
1434 display = fb2display(fbi);
1470 return omapfb_alloc_fbmem(fbi, size, paddr);
1644 int omapfb_realloc_fbmem(struct fb_info *fbi, unsigned long size, int type)
1646 struct omapfb_info *ofbi = FB2OFB(fbi);
1648 struct omap_dss_device *display = fb2display(fbi);
1666 omapfb_free_fbmem(fbi);
1669 clear_fb_info(fbi);
1673 r = omapfb_alloc_fbmem(fbi, size, 0);
1677 omapfb_alloc_fbmem(fbi, old_size, old_paddr);
1680 clear_fb_info(fbi);
1690 r = omapfb_fb_init(fbdev, fbi);
1695 r = omapfb_apply_changes(fbi, 1);
1702 memcpy(&new_var, &fbi->var, sizeof(new_var));
1703 r = check_fb_var(fbi, &new_var);
1706 memcpy(&fbi->var, &new_var, sizeof(fbi->var));
1707 set_fb_fix(fbi);
1708 r = setup_vrfb_rotation(fbi);
1715 omapfb_free_fbmem(fbi);
1716 clear_fb_info(fbi);
1721 static int omapfb_fb_init(struct omapfb2_device *fbdev, struct fb_info *fbi)
1723 struct fb_var_screeninfo *var = &fbi->var;
1724 struct omap_dss_device *display = fb2display(fbi);
1725 struct omapfb_info *ofbi = FB2OFB(fbi);
1728 fbi->fbops = &omapfb_ops;
1729 fbi->flags = FBINFO_FLAG_DEFAULT;
1730 fbi->pseudo_palette = fbdev->pseudo_palette;
1733 clear_fb_info(fbi);
1810 r = check_fb_var(fbi, var);
1814 set_fb_fix(fbi);
1815 r = setup_vrfb_rotation(fbi);
1819 r = fb_alloc_cmap(&fbi->cmap, 256, 0);
1827 static void fbinfo_cleanup(struct omapfb2_device *fbdev, struct fb_info *fbi)
1829 fb_dealloc_cmap(&fbi->cmap);
1874 struct fb_info *fbi;
1877 fbi = framebuffer_alloc(sizeof(struct omapfb_info),
1880 if (fbi == NULL) {
1886 clear_fb_info(fbi);
1888 fbdev->fbs[i] = fbi;
1890 ofbi = FB2OFB(fbi);
1927 struct fb_info *fbi = fbdev->fbs[i];
1928 struct omapfb_info *ofbi = FB2OFB(fbi);
1931 r = omapfb_fb_init(fbdev, fbi);
1954 struct fb_info *fbi = fbdev->fbs[i];
1955 struct omapfb_info *ofbi = FB2OFB(fbi);
1958 r = omapfb_apply_changes(fbi, 1);
1992 struct fb_info fbi;
2012 memset(&fbi, 0, sizeof(fbi));
2015 fbi.fbops = &fbops;
2017 r = fb_find_mode(&var, &fbi, mode_str, NULL, 0, NULL, 24);