Lines Matching refs:info

106      *  This allows when one display changes it video resolution (info->var) 
126 static struct fb_info info;
139 * @info: frame buffer structure that represents a single frame buffer
150 static int xxxfb_open(struct fb_info *info, int user)
158 * @info: frame buffer structure that represents a single frame buffer
169 static int xxxfb_release(struct fb_info *info, int user)
177 * @info: frame buffer structure that represents a single frame buffer
197 * a copy of the currently working var (info->var). Better is to not
205 * contents of info->var must be left untouched at all times after
210 static int xxxfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
218 * @info: frame buffer structure that represents a single frame buffer
242 * struct fb_info *info)
244 * *var = info->var;
248 * static int xxxfb_set_par(struct fb_info *info)
255 static int xxxfb_set_par(struct fb_info *info)
257 struct xxx_par *par = info->par;
269 * @info: frame buffer info structure
286 struct fb_info *info)
295 if (info->var.grayscale) {
363 red = CNVT_TOHW(red, info->var.red.length);
364 green = CNVT_TOHW(green, info->var.green.length);
365 blue = CNVT_TOHW(blue, info->var.blue.length);
366 transp = CNVT_TOHW(transp, info->var.transp.length);
376 if (info->fix.visual == FB_VISUAL_DIRECTCOLOR ||
377 info->fix.visual == FB_VISUAL_TRUECOLOR)
381 * info->pseudo_palette. This structure is used _only_ by fbcon, thus
395 if (info->fix.visual == FB_VISUAL_TRUECOLOR ||
396 info->fix.visual == FB_VISUAL_DIRECTCOLOR) {
402 v = (red << info->var.red.offset) |
403 (green << info->var.green.offset) |
404 (blue << info->var.blue.offset) |
405 (transp << info->var.transp.offset);
407 ((u32*)(info->pseudo_palette))[regno] = v;
417 * @info: frame buffer structure that represents a single frame buffer
426 struct fb_info *info)
446 * @info: frame buffer structure that represents a single frame buffer
464 static int xxxfb_blank(int blank_mode, struct fb_info *info)
485 * @info: frame buffer structure that represents a single frame buffer
512 * @info: frame buffer structure that represents a single frame buffer
537 * @info: frame buffer structure that represents a single frame buffer
563 * this by setting info->pixmap.scan_align = 2 or 4. See a more
572 * @info: frame buffer structure that represents a single frame buffer
580 int xxxfb_cursor(struct fb_info *info, struct fb_cursor *cursor)
623 * @info: frame buffer structure that represents a single frame buffer
628 int xxxfb_sync(struct fb_info *info)
666 struct fb_info *info;
672 * Dynamically allocate info and par
674 info = framebuffer_alloc(sizeof(struct xxx_par), device);
676 if (!info) {
680 par = info->par;
688 info->screen_base = framebuffer_virtual_memory;
689 info->fbops = &xxxfb_ops;
690 info->fix = xxxfb_fix;
691 info->pseudo_palette = pseudo_palette; /* The pseudopalette is an
700 * fbcon performance will improve if info->flags is set properly.
713 info->flags = FBINFO_DEFAULT;
729 info->pixmap.addr = kmalloc(PIXMAP_SIZE, GFP_KERNEL);
730 if (!info->pixmap.addr) {
734 info->pixmap.size = PIXMAP_SIZE;
744 info->pixmap.flags = FB_PIXMAP_SYSTEM;
750 info->pixmap.scan_align = 4;
757 info->pixmap.buf_align = 4;
765 info->pixmap.access_align = 32;
775 retval = fb_find_mode(&info->var, info, mode_option, NULL, 0, NULL, 8);
781 if (fb_alloc_cmap(&info->cmap, cmap_len, 0))
788 info->var = xxxfb_var;
793 xxxfb_check_var(&info->var, info);
804 /* xxxfb_set_par(info); */
806 if (register_framebuffer(info) < 0) {
807 fb_dealloc_cmap(&info->cmap);
810 fb_info(info, "%s frame buffer device\n", info->fix.id);
811 pci_set_drvdata(dev, info); /* or platform_set_drvdata(pdev, info) */
821 struct fb_info *info = pci_get_drvdata(dev);
824 if (info) {
825 unregister_framebuffer(info);
826 fb_dealloc_cmap(&info->cmap);
828 framebuffer_release(info);
843 struct fb_info *info = pci_get_drvdata(dev);
844 struct xxxfb_par *par = info->par;
858 struct fb_info *info = pci_get_drvdata(dev);
859 struct xxxfb_par *par = info->par;
922 struct fb_info *info = platform_get_drvdata(dev);
923 struct xxxfb_par *par = info->par;
937 struct fb_info *info = platform_get_drvdata(dev);
938 struct xxxfb_par *par = info->par;