Lines Matching refs:ps3fb

121 static struct ps3fb_priv ps3fb;  variable
456 status = lv1_gpu_fb_blit(ps3fb.context_handle, dst_offset, in ps3fb_sync_image()
467 status = lv1_gpu_display_flip(ps3fb.context_handle, 0, frame_offset); in ps3fb_sync_image()
473 status = lv1_gpu_display_flip(ps3fb.context_handle, 1, frame_offset); in ps3fb_sync_image()
507 atomic_inc(&ps3fb.f_count); in ps3fb_open()
513 if (atomic_dec_and_test(&ps3fb.f_count)) { in ps3fb_release()
514 if (atomic_read(&ps3fb.ext_flip)) { in ps3fb_release()
515 atomic_set(&ps3fb.ext_flip, 0); in ps3fb_release()
738 ps3fb.is_blanked = 1; in ps3fb_blank()
744 ps3fb.is_blanked = 0; in ps3fb_blank()
762 count = ps3fb.vblank_count; in ps3fb_wait_for_vsync()
763 ret = wait_event_interruptible_timeout(ps3fb.wait_vsync, in ps3fb_wait_for_vsync()
764 count != ps3fb.vblank_count, in ps3fb_wait_for_vsync()
865 atomic_inc(&ps3fb.ext_flip); in ps3fb_ioctl()
871 atomic_dec_if_positive(&ps3fb.ext_flip); in ps3fb_ioctl()
900 if (ps3fb.is_kicked) { in ps3fbd()
901 ps3fb.is_kicked = 0; in ps3fbd()
916 struct display_head *head = &ps3fb.dinfo->display_head[1]; in ps3fb_vsync_interrupt()
918 status = lv1_gpu_context_intr(ps3fb.context_handle, &v1); in ps3fb_vsync_interrupt()
927 ps3fb.vblank_count = head->vblank_count; in ps3fb_vsync_interrupt()
928 if (ps3fb.task && !ps3fb.is_blanked && in ps3fb_vsync_interrupt()
929 !atomic_read(&ps3fb.ext_flip)) { in ps3fb_vsync_interrupt()
930 ps3fb.is_kicked = 1; in ps3fb_vsync_interrupt()
931 wake_up_process(ps3fb.task); in ps3fb_vsync_interrupt()
933 wake_up_interruptible(&ps3fb.wait_vsync); in ps3fb_vsync_interrupt()
996 atomic_set(&ps3fb.f_count, -1); /* fbcon opens ps3fb */ in ps3fb_probe()
997 atomic_set(&ps3fb.ext_flip, 0); /* for flip with vsync */ in ps3fb_probe()
998 init_waitqueue_head(&ps3fb.wait_vsync); in ps3fb_probe()
1028 &ps3fb.memory_handle, &ddr_lpar); in ps3fb_probe()
1037 status = lv1_gpu_context_allocate(ps3fb.memory_handle, 0, in ps3fb_probe()
1038 &ps3fb.context_handle, in ps3fb_probe()
1057 ps3fb.dinfo = dinfo; in ps3fb_probe()
1074 &ps3fb.irq_no); in ps3fb_probe()
1081 retval = request_irq(ps3fb.irq_no, ps3fb_vsync_interrupt, in ps3fb_probe()
1097 status = lv1_gpu_context_iomap(ps3fb.context_handle, GPU_IOIF, in ps3fb_probe()
1112 status = lv1_gpu_fb_setup(ps3fb.context_handle, xdr_lpar, in ps3fb_probe()
1178 ps3fb.task = task; in ps3fb_probe()
1189 lv1_gpu_fb_close(ps3fb.context_handle); in ps3fb_probe()
1191 lv1_gpu_context_iomap(ps3fb.context_handle, GPU_IOIF, xdr_lpar, in ps3fb_probe()
1194 free_irq(ps3fb.irq_no, &dev->core); in ps3fb_probe()
1196 ps3_irq_plug_destroy(ps3fb.irq_no); in ps3fb_probe()
1198 iounmap((u8 __force __iomem *)ps3fb.dinfo); in ps3fb_probe()
1200 lv1_gpu_context_free(ps3fb.context_handle); in ps3fb_probe()
1202 lv1_gpu_memory_free(ps3fb.memory_handle); in ps3fb_probe()
1216 atomic_inc(&ps3fb.ext_flip); /* flip off */ in ps3fb_shutdown()
1217 ps3fb.dinfo->irq.mask = 0; in ps3fb_shutdown()
1219 if (ps3fb.task) { in ps3fb_shutdown()
1220 struct task_struct *task = ps3fb.task; in ps3fb_shutdown()
1221 ps3fb.task = NULL; in ps3fb_shutdown()
1224 if (ps3fb.irq_no) { in ps3fb_shutdown()
1225 free_irq(ps3fb.irq_no, &dev->core); in ps3fb_shutdown()
1226 ps3_irq_plug_destroy(ps3fb.irq_no); in ps3fb_shutdown()
1234 iounmap((u8 __force __iomem *)ps3fb.dinfo); in ps3fb_shutdown()
1235 lv1_gpu_fb_close(ps3fb.context_handle); in ps3fb_shutdown()
1236 lv1_gpu_context_iomap(ps3fb.context_handle, GPU_IOIF, xdr_lpar, in ps3fb_shutdown()
1238 lv1_gpu_context_free(ps3fb.context_handle); in ps3fb_shutdown()
1239 lv1_gpu_memory_free(ps3fb.memory_handle); in ps3fb_shutdown()