Lines Matching refs:fbdata
198 struct picolcd_fb_data *fbdata = data->fb_info->par; in picolcd_fb_reset() local
220 memset(fbdata->vbitmap, 0, PICOLCDFB_SIZE); in picolcd_fb_reset()
221 memset(fbdata->bitmap, 0, PICOLCDFB_SIZE*fbdata->bpp); in picolcd_fb_reset()
223 fbdata->force = 1; in picolcd_fb_reset()
226 if (fbdata->ready) in picolcd_fb_reset()
229 fbdata->ready = 1; in picolcd_fb_reset()
239 struct picolcd_fb_data *fbdata = info->par; in picolcd_fb_update() local
244 spin_lock_irqsave(&fbdata->lock, flags); in picolcd_fb_update()
245 if (!fbdata->ready && fbdata->picolcd) in picolcd_fb_update()
246 picolcd_fb_reset(fbdata->picolcd, 0); in picolcd_fb_update()
247 spin_unlock_irqrestore(&fbdata->lock, flags); in picolcd_fb_update()
259 if (!fbdata->force && !picolcd_fb_update_tile( in picolcd_fb_update()
260 fbdata->vbitmap, fbdata->bitmap, in picolcd_fb_update()
261 fbdata->bpp, chip, tile)) in picolcd_fb_update()
265 spin_lock_irqsave(&fbdata->lock, flags); in picolcd_fb_update()
266 data = fbdata->picolcd; in picolcd_fb_update()
267 spin_unlock_irqrestore(&fbdata->lock, flags); in picolcd_fb_update()
275 spin_lock_irqsave(&fbdata->lock, flags); in picolcd_fb_update()
276 data = fbdata->picolcd; in picolcd_fb_update()
277 spin_unlock_irqrestore(&fbdata->lock, flags); in picolcd_fb_update()
279 fbdata->vbitmap, chip, tile)) in picolcd_fb_update()
282 fbdata->force = false; in picolcd_fb_update()
284 spin_lock_irqsave(&fbdata->lock, flags); in picolcd_fb_update()
285 data = fbdata->picolcd; in picolcd_fb_update()
286 spin_unlock_irqrestore(&fbdata->lock, flags); in picolcd_fb_update()
352 struct picolcd_fb_data *fbdata = info->par; in picolcd_fb_destroy() local
358 WARN_ON(fbdata->picolcd != NULL); in picolcd_fb_destroy()
388 struct picolcd_fb_data *fbdata = info->par; in picolcd_set_par() local
390 if (info->var.bits_per_pixel == fbdata->bpp) in picolcd_set_par()
396 o_fb = fbdata->bitmap; in picolcd_set_par()
426 fbdata->bpp = info->var.bits_per_pixel; in picolcd_set_par()
464 struct picolcd_fb_data *fbdata = data->fb_info->par; in picolcd_fb_update_rate_show() local
465 unsigned i, fb_update_rate = fbdata->update_rate; in picolcd_fb_update_rate_show()
484 struct picolcd_fb_data *fbdata = data->fb_info->par; in picolcd_fb_update_rate_store() local
500 fbdata->update_rate = u; in picolcd_fb_update_rate_store()
501 data->fb_info->fbdefio->delay = HZ / fbdata->update_rate; in picolcd_fb_update_rate_store()
513 struct picolcd_fb_data *fbdata = NULL; in picolcd_init_framebuffer() local
544 fbdata = info->par; in picolcd_init_framebuffer()
545 spin_lock_init(&fbdata->lock); in picolcd_init_framebuffer()
546 fbdata->picolcd = data; in picolcd_init_framebuffer()
547 fbdata->update_rate = PICOLCDFB_UPDATE_RATE_DEFAULT; in picolcd_init_framebuffer()
548 fbdata->bpp = picolcdfb_var.bits_per_pixel; in picolcd_init_framebuffer()
549 fbdata->force = 1; in picolcd_init_framebuffer()
550 fbdata->vbitmap = info->par + sizeof(struct picolcd_fb_data); in picolcd_init_framebuffer()
551 fbdata->bitmap = vmalloc(PICOLCDFB_SIZE*8); in picolcd_init_framebuffer()
552 if (fbdata->bitmap == NULL) { in picolcd_init_framebuffer()
556 info->screen_base = (char __force __iomem *)fbdata->bitmap; in picolcd_init_framebuffer()
557 info->fix.smem_start = (unsigned long)fbdata->bitmap; in picolcd_init_framebuffer()
558 memset(fbdata->vbitmap, 0xff, PICOLCDFB_SIZE); in picolcd_init_framebuffer()
588 if (fbdata) in picolcd_init_framebuffer()
589 vfree(fbdata->bitmap); in picolcd_init_framebuffer()
597 struct picolcd_fb_data *fbdata; in picolcd_exit_framebuffer() local
604 fbdata = info->par; in picolcd_exit_framebuffer()
607 spin_lock_irqsave(&fbdata->lock, flags); in picolcd_exit_framebuffer()
608 fbdata->picolcd = NULL; in picolcd_exit_framebuffer()
609 spin_unlock_irqrestore(&fbdata->lock, flags); in picolcd_exit_framebuffer()