• 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/omap/

Lines Matching refs:fbi

216 static int ctrl_change_mode(struct fb_info *fbi)
220 struct omapfb_plane_struct *plane = fbi->par;
222 struct fb_var_screeninfo *var = &fbi->var;
224 offset = var->yoffset * fbi->fix.line_length +
354 static int omapfb_update_full_screen(struct fb_info *fbi);
356 static int omapfb_blank(int blank, struct fb_info *fbi)
358 struct omapfb_plane_struct *plane = fbi->par;
390 r = omapfb_update_full_screen(fbi);
395 static void omapfb_sync(struct fb_info *fbi)
397 struct omapfb_plane_struct *plane = fbi->par;
410 static void set_fb_fix(struct fb_info *fbi, int from_init)
412 struct fb_fix_screeninfo *fix = &fbi->fix;
413 struct fb_var_screeninfo *var = &fbi->var;
414 struct omapfb_plane_struct *plane = fbi->par;
419 fbi->screen_base = rg->vaddr;
422 mutex_lock(&fbi->mm_lock);
425 mutex_unlock(&fbi->mm_lock);
505 static int set_fb_var(struct fb_info *fbi,
513 struct omapfb_plane_struct *plane = fbi->par;
627 static void omapfb_rotate(struct fb_info *fbi, int rotate)
629 struct omapfb_plane_struct *plane = fbi->par;
633 if (rotate != fbi->var.rotate) {
636 memcpy(new_var, &fbi->var, sizeof(*new_var));
638 if (set_fb_var(fbi, new_var) == 0 &&
639 memcmp(new_var, &fbi->var, sizeof(*new_var))) {
640 memcpy(&fbi->var, new_var, sizeof(*new_var));
641 ctrl_change_mode(fbi);
652 struct fb_info *fbi)
654 struct omapfb_plane_struct *plane = fbi->par;
659 if (var->xoffset != fbi->var.xoffset ||
660 var->yoffset != fbi->var.yoffset) {
663 memcpy(new_var, &fbi->var, sizeof(*new_var));
666 if (set_fb_var(fbi, new_var))
669 memcpy(&fbi->var, new_var, sizeof(*new_var));
670 ctrl_change_mode(fbi);
679 static int omapfb_mirror(struct fb_info *fbi, int mirror)
681 struct omapfb_plane_struct *plane = fbi->par;
691 r = ctrl_change_mode(fbi);
702 static int omapfb_check_var(struct fb_var_screeninfo *var, struct fb_info *fbi)
704 struct omapfb_plane_struct *plane = fbi->par;
711 r = set_fb_var(fbi, var);
721 static int omapfb_set_par(struct fb_info *fbi)
723 struct omapfb_plane_struct *plane = fbi->par;
728 set_fb_fix(fbi, 0);
729 r = ctrl_change_mode(fbi);
735 int omapfb_update_window_async(struct fb_info *fbi,
741 struct omapfb_plane_struct *plane = fbi->par;
743 struct fb_var_screeninfo *var = &fbi->var;
779 return fbdev->ctrl->update_window(fbi, win, callback, callback_data);
783 static int omapfb_update_win(struct fb_info *fbi,
786 struct omapfb_plane_struct *plane = fbi->par;
790 ret = omapfb_update_window_async(fbi, win, NULL, NULL);
796 static int omapfb_update_full_screen(struct fb_info *fbi)
798 struct omapfb_plane_struct *plane = fbi->par;
809 win.width = fbi->var.xres;
810 win.height = fbi->var.yres;
813 win.out_width = fbi->var.xres;
814 win.out_height = fbi->var.yres;
818 r = fbdev->ctrl->update_window(fbi, &win, NULL, NULL);
824 static int omapfb_setup_plane(struct fb_info *fbi, struct omapfb_plane_info *pi)
826 struct omapfb_plane_struct *plane = fbi->par;
848 r = ctrl_change_mode(fbi);
864 static int omapfb_query_plane(struct fb_info *fbi, struct omapfb_plane_info *pi)
866 struct omapfb_plane_struct *plane = fbi->par;
872 static int omapfb_setup_mem(struct fb_info *fbi, struct omapfb_mem_info *mi)
874 struct omapfb_plane_struct *plane = fbi->par;
907 memcpy(new_var, &fbi->var, sizeof(*new_var));
908 r = set_fb_var(fbi, new_var);
927 memcpy(&fbi->var, new_var, sizeof(fbi->var));
928 set_fb_fix(fbi, 0);
935 mutex_lock(&fbi->mm_lock);
936 fbi->fix.smem_start = 0;
937 fbi->fix.smem_len = 0;
938 mutex_unlock(&fbi->mm_lock);
948 static int omapfb_query_mem(struct fb_info *fbi, struct omapfb_mem_info *mi)
950 struct omapfb_plane_struct *plane = fbi->par;
1109 static int omapfb_ioctl(struct fb_info *fbi, unsigned int cmd,
1112 struct omapfb_plane_struct *plane = fbi->par;
1114 struct fb_ops *ops = fbi->fbops;
1134 omapfb_mirror(fbi, p.mirror);
1137 omapfb_sync(fbi);
1164 r = omapfb_update_win(fbi, u);
1172 r = omapfb_update_win(fbi, &p.update_window);
1179 r = omapfb_setup_plane(fbi, &p.plane_info);
1182 if ((r = omapfb_query_plane(fbi, &p.plane_info)) < 0)
1193 r = omapfb_setup_mem(fbi, &p.mem_info);
1196 if ((r = omapfb_query_mem(fbi, &p.mem_info)) < 0)
1538 static void fbinfo_cleanup(struct omapfb_device *fbdev, struct fb_info *fbi)
1540 fb_dealloc_cmap(&fbi->cmap);
1557 struct fb_info *fbi;
1563 fbi = framebuffer_alloc(sizeof(struct omapfb_plane_struct),
1565 if (fbi == NULL) {
1571 plane = fbi->par;
1575 fbdev->fb_info[i] = fbi;
1577 if ((r = fbinfo_init(fbdev, fbi)) < 0) {
1578 framebuffer_release(fbi);
1582 plane->info.out_width = fbi->var.xres;
1583 plane->info.out_height = fbi->var.yres;