Lines Matching refs:fbdata
188 struct picolcd_fb_data *fbdata = data->fb_info->par; in picolcd_fb_reset() local
210 memset(fbdata->vbitmap, 0, PICOLCDFB_SIZE); in picolcd_fb_reset()
211 memset(fbdata->bitmap, 0, PICOLCDFB_SIZE*fbdata->bpp); in picolcd_fb_reset()
213 fbdata->force = 1; in picolcd_fb_reset()
216 if (fbdata->ready) in picolcd_fb_reset()
219 fbdata->ready = 1; in picolcd_fb_reset()
229 struct picolcd_fb_data *fbdata = info->par; in picolcd_fb_update() local
234 spin_lock_irqsave(&fbdata->lock, flags); in picolcd_fb_update()
235 if (!fbdata->ready && fbdata->picolcd) in picolcd_fb_update()
236 picolcd_fb_reset(fbdata->picolcd, 0); in picolcd_fb_update()
237 spin_unlock_irqrestore(&fbdata->lock, flags); in picolcd_fb_update()
249 if (!fbdata->force && !picolcd_fb_update_tile( in picolcd_fb_update()
250 fbdata->vbitmap, fbdata->bitmap, in picolcd_fb_update()
251 fbdata->bpp, chip, tile)) in picolcd_fb_update()
255 spin_lock_irqsave(&fbdata->lock, flags); in picolcd_fb_update()
256 data = fbdata->picolcd; in picolcd_fb_update()
257 spin_unlock_irqrestore(&fbdata->lock, flags); 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()
269 fbdata->vbitmap, chip, tile)) in picolcd_fb_update()
272 fbdata->force = false; in picolcd_fb_update()
274 spin_lock_irqsave(&fbdata->lock, flags); in picolcd_fb_update()
275 data = fbdata->picolcd; in picolcd_fb_update()
276 spin_unlock_irqrestore(&fbdata->lock, flags); in picolcd_fb_update()
342 struct picolcd_fb_data *fbdata = info->par; in picolcd_fb_destroy() local
348 WARN_ON(fbdata->picolcd != NULL); in picolcd_fb_destroy()
378 struct picolcd_fb_data *fbdata = info->par; in picolcd_set_par() local
380 if (info->var.bits_per_pixel == fbdata->bpp) in picolcd_set_par()
386 o_fb = fbdata->bitmap; in picolcd_set_par()
416 fbdata->bpp = info->var.bits_per_pixel; in picolcd_set_par()
454 struct picolcd_fb_data *fbdata = data->fb_info->par; in picolcd_fb_update_rate_show() local
455 unsigned i, fb_update_rate = fbdata->update_rate; in picolcd_fb_update_rate_show()
474 struct picolcd_fb_data *fbdata = data->fb_info->par; in picolcd_fb_update_rate_store() local
490 fbdata->update_rate = u; in picolcd_fb_update_rate_store()
491 data->fb_info->fbdefio->delay = HZ / fbdata->update_rate; in picolcd_fb_update_rate_store()
503 struct picolcd_fb_data *fbdata = NULL; in picolcd_init_framebuffer() local
531 fbdata = info->par; in picolcd_init_framebuffer()
532 spin_lock_init(&fbdata->lock); in picolcd_init_framebuffer()
533 fbdata->picolcd = data; in picolcd_init_framebuffer()
534 fbdata->update_rate = PICOLCDFB_UPDATE_RATE_DEFAULT; in picolcd_init_framebuffer()
535 fbdata->bpp = picolcdfb_var.bits_per_pixel; in picolcd_init_framebuffer()
536 fbdata->force = 1; in picolcd_init_framebuffer()
537 fbdata->vbitmap = info->par + sizeof(struct picolcd_fb_data); in picolcd_init_framebuffer()
538 fbdata->bitmap = vmalloc(PICOLCDFB_SIZE*8); in picolcd_init_framebuffer()
539 if (fbdata->bitmap == NULL) { in picolcd_init_framebuffer()
543 info->screen_buffer = fbdata->bitmap; in picolcd_init_framebuffer()
544 info->fix.smem_start = (unsigned long)fbdata->bitmap; in picolcd_init_framebuffer()
545 memset(fbdata->vbitmap, 0xff, PICOLCDFB_SIZE); in picolcd_init_framebuffer()
575 if (fbdata) in picolcd_init_framebuffer()
576 vfree(fbdata->bitmap); in picolcd_init_framebuffer()
584 struct picolcd_fb_data *fbdata; in picolcd_exit_framebuffer() local
591 fbdata = info->par; in picolcd_exit_framebuffer()
594 spin_lock_irqsave(&fbdata->lock, flags); in picolcd_exit_framebuffer()
595 fbdata->picolcd = NULL; in picolcd_exit_framebuffer()
596 spin_unlock_irqrestore(&fbdata->lock, flags); in picolcd_exit_framebuffer()