Lines Matching refs:vps
219 struct vmw_plane_state *vps; in vmw_sou_crtc_mode_set_nofb() local
226 vps = vmw_plane_state_to_vps(ps); in vmw_sou_crtc_mode_set_nofb()
243 sou->buffer = vps->bo; in vmw_sou_crtc_mode_set_nofb()
244 sou->buffer_size = vps->bo_size; in vmw_sou_crtc_mode_set_nofb()
386 struct vmw_plane_state *vps = vmw_plane_state_to_vps(old_state); in vmw_sou_primary_plane_cleanup_fb() local
390 if (vps->bo) in vmw_sou_primary_plane_cleanup_fb()
391 vmw_bo_unpin(vmw_priv(crtc->dev), vps->bo, false); in vmw_sou_primary_plane_cleanup_fb()
392 vmw_bo_unreference(&vps->bo); in vmw_sou_primary_plane_cleanup_fb()
393 vps->bo_size = 0; in vmw_sou_primary_plane_cleanup_fb()
415 struct vmw_plane_state *vps = vmw_plane_state_to_vps(new_state); in vmw_sou_primary_plane_prepare_fb() local
422 vmw_bo_unreference(&vps->bo); in vmw_sou_primary_plane_prepare_fb()
423 vps->bo_size = 0; in vmw_sou_primary_plane_prepare_fb()
431 if (vps->bo) { in vmw_sou_primary_plane_prepare_fb()
432 if (vps->bo_size == size) { in vmw_sou_primary_plane_prepare_fb()
437 return vmw_bo_pin_in_vram(dev_priv, vps->bo, in vmw_sou_primary_plane_prepare_fb()
441 vmw_bo_unreference(&vps->bo); in vmw_sou_primary_plane_prepare_fb()
442 vps->bo_size = 0; in vmw_sou_primary_plane_prepare_fb()
445 vps->bo = kzalloc(sizeof(*vps->bo), GFP_KERNEL); in vmw_sou_primary_plane_prepare_fb()
446 if (!vps->bo) in vmw_sou_primary_plane_prepare_fb()
455 ret = vmw_bo_init(dev_priv, vps->bo, size, in vmw_sou_primary_plane_prepare_fb()
460 vps->bo = NULL; /* vmw_bo_init frees on error */ in vmw_sou_primary_plane_prepare_fb()
464 vps->bo_size = size; in vmw_sou_primary_plane_prepare_fb()
470 return vmw_bo_pin_in_vram(dev_priv, vps->bo, true); in vmw_sou_primary_plane_prepare_fb()