Lines Matching defs:info
107 * This allows when one display changes it video resolution (info->var)
127 static struct fb_info info;
138 * @info: frame buffer structure that represents a single frame buffer
149 static int xxxfb_open(struct fb_info *info, int user)
157 * @info: frame buffer structure that represents a single frame buffer
168 static int xxxfb_release(struct fb_info *info, int user)
176 * @info: frame buffer structure that represents a single frame buffer
196 * a copy of the currently working var (info->var). Better is to not
204 * contents of info->var must be left untouched at all times after
209 static int xxxfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
217 * @info: frame buffer structure that represents a single frame buffer
241 * struct fb_info *info)
243 * *var = info->var;
247 * static int xxxfb_set_par(struct fb_info *info)
254 static int xxxfb_set_par(struct fb_info *info)
256 struct xxx_par *par = info->par;
268 * @info: frame buffer info structure
285 struct fb_info *info)
294 if (info->var.grayscale) {
362 red = CNVT_TOHW(red, info->var.red.length);
363 green = CNVT_TOHW(green, info->var.green.length);
364 blue = CNVT_TOHW(blue, info->var.blue.length);
365 transp = CNVT_TOHW(transp, info->var.transp.length);
375 if (info->fix.visual == FB_VISUAL_DIRECTCOLOR ||
376 info->fix.visual == FB_VISUAL_TRUECOLOR)
380 * info->pseudo_palette. This structure is used _only_ by fbcon, thus
394 if (info->fix.visual == FB_VISUAL_TRUECOLOR ||
395 info->fix.visual == FB_VISUAL_DIRECTCOLOR) {
401 v = (red << info->var.red.offset) |
402 (green << info->var.green.offset) |
403 (blue << info->var.blue.offset) |
404 (transp << info->var.transp.offset);
406 ((u32*)(info->pseudo_palette))[regno] = v;
416 * @info: frame buffer structure that represents a single frame buffer
425 struct fb_info *info)
445 * @info: frame buffer structure that represents a single frame buffer
463 static int xxxfb_blank(int blank_mode, struct fb_info *info)
484 * @info: frame buffer structure that represents a single frame buffer
511 * @info: frame buffer structure that represents a single frame buffer
536 * @info: frame buffer structure that represents a single frame buffer
562 * this by setting info->pixmap.scan_align = 2 or 4. See a more
571 * @info: frame buffer structure that represents a single frame buffer
579 int xxxfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
622 * @info: frame buffer structure that represents a single frame buffer
627 int xxxfb_sync(struct fb_info *info)
665 struct fb_info *info;
678 * Dynamically allocate info and par
680 info = framebuffer_alloc(sizeof(struct xxx_par), device);
682 if (!info) {
686 par = info->par;
694 info->screen_base = framebuffer_virtual_memory;
695 info->fbops = &xxxfb_ops;
696 info->fix = xxxfb_fix;
697 info->pseudo_palette = pseudo_palette; /* The pseudopalette is an
706 * fbcon performance will improve if info->flags is set properly.
719 info->flags = 0;
735 info->pixmap.addr = kmalloc(PIXMAP_SIZE, GFP_KERNEL);
736 if (!info->pixmap.addr) {
740 info->pixmap.size = PIXMAP_SIZE;
750 info->pixmap.flags = FB_PIXMAP_SYSTEM;
756 info->pixmap.scan_align = 4;
763 info->pixmap.buf_align = 4;
771 info->pixmap.access_align = 32;
781 retval = fb_find_mode(&info->var, info, mode_option, NULL, 0, NULL, 8);
787 if (fb_alloc_cmap(&info->cmap, cmap_len, 0))
794 info->var = xxxfb_var;
799 xxxfb_check_var(&info->var, info);
810 /* xxxfb_set_par(info); */
812 if (register_framebuffer(info) < 0) {
813 fb_dealloc_cmap(&info->cmap);
816 fb_info(info, "%s frame buffer device\n", info->fix.id);
817 pci_set_drvdata(dev, info); /* or platform_set_drvdata(pdev, info) */
827 struct fb_info *info = pci_get_drvdata(dev);
830 if (info) {
831 unregister_framebuffer(info);
832 fb_dealloc_cmap(&info->cmap);
834 framebuffer_release(info);
849 struct fb_info *info = dev_get_drvdata(dev);
850 struct xxxfb_par *par = info->par;
864 struct fb_info *info = dev_get_drvdata(dev);
865 struct xxxfb_par *par = info->par;
929 struct fb_info *info = platform_get_drvdata(dev);
930 struct xxxfb_par *par = info->par;
944 struct fb_info *info = platform_get_drvdata(dev);
945 struct xxxfb_par *par = info->par;