Lines Matching refs:info
54 #define CHKINFO(ret) if (info != &fb_info) { printk(KERN_DEBUG __FILE__": This should never happen, line:%d \n", __LINE__); return ret; }
68 static inline u8 __iomem * rowaddr(struct fb_info *info, u_int row)
70 return info->screen_base + HGA_ROWADDR(row);
241 static void hga_show_logo(struct fb_info *info)
365 * @info:pointer to fb_info object containing info for current hga board
369 static int hgafb_open(struct fb_info *info, int init)
373 if (!nologo) hga_show_logo(info);
379 * @info:pointer to fb_info object containing info for current hga board
383 static int hgafb_release(struct fb_info *info, int init)
397 * @info:unused
405 u_int transp, struct fb_info *info)
415 * @info:pointer to fb_info object containing info for current hga board
419 * program the hardware. @info->var is updated to the new values.
424 struct fb_info *info)
427 if (var->yoffset >= info->var.yres_virtual ||
431 if (var->xoffset + info->var.xres > info->var.xres_virtual
432 || var->yoffset + info->var.yres > info->var.yres_virtual
444 * @info:unused
454 static int hgafb_blank(int blank_mode, struct fb_info *info)
463 static void hgafb_fillrect(struct fb_info *info, const struct fb_fillrect *rect)
471 dest = rowaddr(info, y) + (rect->dx >> 3);
483 static void hgafb_copyarea(struct fb_info *info, const struct fb_copyarea *area)
494 src = rowaddr(info, y1) + (area->sx >> 3);
495 dest = rowaddr(info, y2) + (area->dx >> 3);
505 src = rowaddr(info, y1) + (area->sx >> 3);
506 dest = rowaddr(info, y2) + (area->dx >> 3);
514 static void hgafb_imageblit(struct fb_info *info, const struct fb_image *image)
525 dest = rowaddr(info, y) + ((image->dx + x)>> 3);
557 struct fb_info *info;
567 info = framebuffer_alloc(0, &pdev->dev);
568 if (!info) {
576 info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
577 info->var = hga_default_var;
578 info->fix = hga_fix;
579 info->monspecs.hfmin = 0;
580 info->monspecs.hfmax = 0;
581 info->monspecs.vfmin = 10000;
582 info->monspecs.vfmax = 10000;
583 info->monspecs.dpms = 0;
584 info->fbops = &hgafb_ops;
585 info->screen_base = hga_vram;
587 if (register_framebuffer(info) < 0) {
588 framebuffer_release(info);
593 fb_info(info, "%s frame buffer device\n", info->fix.id);
594 platform_set_drvdata(pdev, info);
600 struct fb_info *info = platform_get_drvdata(pdev);
605 if (info) {
606 unregister_framebuffer(info);
607 framebuffer_release(info);