Lines Matching refs:vfb
145 static int vmw_ldu_fb_pin(struct vmw_framebuffer *vfb) in vmw_ldu_fb_pin() argument
147 struct vmw_private *dev_priv = vmw_priv(vfb->base.dev); in vmw_ldu_fb_pin()
151 buf = vfb->bo ? in vmw_ldu_fb_pin()
152 vmw_framebuffer_to_vfbd(&vfb->base)->buffer : in vmw_ldu_fb_pin()
153 vmw_user_object_buffer(&vmw_framebuffer_to_vfbs(&vfb->base)->uo); in vmw_ldu_fb_pin()
169 static int vmw_ldu_fb_unpin(struct vmw_framebuffer *vfb) in vmw_ldu_fb_unpin() argument
171 struct vmw_private *dev_priv = vmw_priv(vfb->base.dev); in vmw_ldu_fb_unpin()
174 buf = vfb->bo ? in vmw_ldu_fb_unpin()
175 vmw_framebuffer_to_vfbd(&vfb->base)->buffer : in vmw_ldu_fb_unpin()
176 vmw_user_object_buffer(&vmw_framebuffer_to_vfbs(&vfb->base)->uo); in vmw_ldu_fb_unpin()
205 struct vmw_framebuffer *vfb) in vmw_ldu_add_active() argument
212 if (vfb != ld->fb) { in vmw_ldu_add_active()
216 WARN_ON(vmw_ldu_fb_pin(vfb)); in vmw_ldu_add_active()
217 ld->fb = vfb; in vmw_ldu_add_active()
321 struct vmw_framebuffer *vfb; in vmw_ldu_primary_plane_atomic_update() local
329 vfb = (fb) ? vmw_framebuffer_to_vfb(fb) : NULL; in vmw_ldu_primary_plane_atomic_update()
331 if (vfb) in vmw_ldu_primary_plane_atomic_update()
332 vmw_ldu_add_active(dev_priv, ldu, vfb); in vmw_ldu_primary_plane_atomic_update()
338 if (vfb && vmw_cmd_supported(dev_priv)) { in vmw_ldu_primary_plane_atomic_update()
342 .x2 = vfb->base.width, in vmw_ldu_primary_plane_atomic_update()
343 .y2 = vfb->base.height in vmw_ldu_primary_plane_atomic_update()
354 ret = vmw_kms_ldu_do_bo_dirty(dev_priv, vfb, 0, 0, damage_rects, rect_count); in vmw_ldu_primary_plane_atomic_update()