Lines Matching refs:fbdev

104 		struct ht16k33_fbdev fbdev;  member
240 struct ht16k33_fbdev *fbdev = &priv->fbdev; in ht16k33_fb_queue() local
242 schedule_delayed_work(&priv->work, HZ / fbdev->refresh_rate); in ht16k33_fb_queue()
252 struct ht16k33_fbdev *fbdev = &priv->fbdev; in ht16k33_fb_update() local
257 p1 = fbdev->cache; in ht16k33_fb_update()
258 p2 = fbdev->buffer; in ht16k33_fb_update()
272 p1 = fbdev->cache + HT16K33_FB_SIZE - 1; in ht16k33_fb_update()
273 p2 = fbdev->buffer + HT16K33_FB_SIZE - 1; in ht16k33_fb_update()
282 p1 = fbdev->cache + first; in ht16k33_fb_update()
283 p2 = fbdev->buffer + first; in ht16k33_fb_update()
352 struct page *pages = virt_to_page(priv->fbdev.buffer); in ht16k33_mmap()
587 struct ht16k33_fbdev *fbdev = &priv->fbdev; in ht16k33_fbdev_probe() local
617 fbdev->buffer = (unsigned char *) get_zeroed_page(GFP_KERNEL); in ht16k33_fbdev_probe()
618 if (!fbdev->buffer) in ht16k33_fbdev_probe()
621 fbdev->cache = devm_kmalloc(dev, HT16K33_FB_SIZE, GFP_KERNEL); in ht16k33_fbdev_probe()
622 if (!fbdev->cache) { in ht16k33_fbdev_probe()
627 fbdev->info = framebuffer_alloc(0, dev); in ht16k33_fbdev_probe()
628 if (!fbdev->info) { in ht16k33_fbdev_probe()
634 &fbdev->refresh_rate); in ht16k33_fbdev_probe()
639 fb_bl_default_curve(fbdev->info, 0, MIN_BRIGHTNESS, MAX_BRIGHTNESS); in ht16k33_fbdev_probe()
642 fbdev->info->fbops = &ht16k33_fb_ops; in ht16k33_fbdev_probe()
643 fbdev->info->screen_base = (char __iomem *) fbdev->buffer; in ht16k33_fbdev_probe()
644 fbdev->info->screen_size = HT16K33_FB_SIZE; in ht16k33_fbdev_probe()
645 fbdev->info->fix = ht16k33_fb_fix; in ht16k33_fbdev_probe()
646 fbdev->info->var = ht16k33_fb_var; in ht16k33_fbdev_probe()
647 fbdev->info->bl_dev = bl; in ht16k33_fbdev_probe()
648 fbdev->info->pseudo_palette = NULL; in ht16k33_fbdev_probe()
649 fbdev->info->flags = FBINFO_FLAG_DEFAULT; in ht16k33_fbdev_probe()
650 fbdev->info->par = priv; in ht16k33_fbdev_probe()
652 err = register_framebuffer(fbdev->info); in ht16k33_fbdev_probe()
660 framebuffer_release(fbdev->info); in ht16k33_fbdev_probe()
662 free_page((unsigned long) fbdev->buffer); in ht16k33_fbdev_probe()
781 struct ht16k33_fbdev *fbdev = &priv->fbdev; in ht16k33_remove() local
787 unregister_framebuffer(fbdev->info); in ht16k33_remove()
788 framebuffer_release(fbdev->info); in ht16k33_remove()
789 free_page((unsigned long)fbdev->buffer); in ht16k33_remove()