Lines Matching refs:info
105 unsigned char *buf = (unsigned char __force *)par->info->screen_base; in hecubafb_dpy_update()
118 static void hecubafb_dpy_deferred_io(struct fb_info *info, in hecubafb_dpy_deferred_io() argument
121 hecubafb_dpy_update(info->par); in hecubafb_dpy_deferred_io()
124 static void hecubafb_fillrect(struct fb_info *info, in hecubafb_fillrect() argument
127 struct hecubafb_par *par = info->par; in hecubafb_fillrect()
129 sys_fillrect(info, rect); in hecubafb_fillrect()
134 static void hecubafb_copyarea(struct fb_info *info, in hecubafb_copyarea() argument
137 struct hecubafb_par *par = info->par; in hecubafb_copyarea()
139 sys_copyarea(info, area); in hecubafb_copyarea()
144 static void hecubafb_imageblit(struct fb_info *info, in hecubafb_imageblit() argument
147 struct hecubafb_par *par = info->par; in hecubafb_imageblit()
149 sys_imageblit(info, image); in hecubafb_imageblit()
158 static ssize_t hecubafb_write(struct fb_info *info, const char __user *buf, in hecubafb_write() argument
161 struct hecubafb_par *par = info->par; in hecubafb_write()
167 if (info->state != FBINFO_STATE_RUNNING) in hecubafb_write()
170 total_size = info->fix.smem_len; in hecubafb_write()
187 dst = (void __force *) (info->screen_base + p); in hecubafb_write()
216 struct fb_info *info; in hecubafb_probe() local
238 info = framebuffer_alloc(sizeof(struct hecubafb_par), &dev->dev); in hecubafb_probe()
239 if (!info) in hecubafb_probe()
242 info->screen_base = (char __force __iomem *)videomemory; in hecubafb_probe()
243 info->fbops = &hecubafb_ops; in hecubafb_probe()
245 info->var = hecubafb_var; in hecubafb_probe()
246 info->fix = hecubafb_fix; in hecubafb_probe()
247 info->fix.smem_len = videomemorysize; in hecubafb_probe()
248 par = info->par; in hecubafb_probe()
249 par->info = info; in hecubafb_probe()
254 info->flags = FBINFO_FLAG_DEFAULT | FBINFO_VIRTFB; in hecubafb_probe()
256 info->fbdefio = &hecubafb_defio; in hecubafb_probe()
257 fb_deferred_io_init(info); in hecubafb_probe()
259 retval = register_framebuffer(info); in hecubafb_probe()
262 platform_set_drvdata(dev, info); in hecubafb_probe()
264 fb_info(info, "Hecuba frame buffer device, using %dK of video memory\n", in hecubafb_probe()
274 framebuffer_release(info); in hecubafb_probe()
284 struct fb_info *info = platform_get_drvdata(dev); in hecubafb_remove() local
286 if (info) { in hecubafb_remove()
287 struct hecubafb_par *par = info->par; in hecubafb_remove()
288 fb_deferred_io_cleanup(info); in hecubafb_remove()
289 unregister_framebuffer(info); in hecubafb_remove()
290 vfree((void __force *)info->screen_base); in hecubafb_remove()
294 framebuffer_release(info); in hecubafb_remove()