Lines Matching refs:vmw_fp
1059 struct vmw_fpriv *vmw_fp; in vmw_postclose() local
1061 vmw_fp = vmw_fpriv(file_priv); in vmw_postclose()
1063 if (vmw_fp->locked_master) { in vmw_postclose()
1065 vmw_master(vmw_fp->locked_master); in vmw_postclose()
1069 drm_master_put(&vmw_fp->locked_master); in vmw_postclose()
1072 ttm_object_file_release(&vmw_fp->tfile); in vmw_postclose()
1073 kfree(vmw_fp); in vmw_postclose()
1079 struct vmw_fpriv *vmw_fp; in vmw_driver_open() local
1082 vmw_fp = kzalloc(sizeof(*vmw_fp), GFP_KERNEL); in vmw_driver_open()
1083 if (unlikely(!vmw_fp)) in vmw_driver_open()
1086 vmw_fp->tfile = ttm_object_file_init(dev_priv->tdev, 10); in vmw_driver_open()
1087 if (unlikely(vmw_fp->tfile == NULL)) in vmw_driver_open()
1090 file_priv->driver_priv = vmw_fp; in vmw_driver_open()
1095 kfree(vmw_fp); in vmw_driver_open()
1104 struct vmw_fpriv *vmw_fp = vmw_fpriv(file_priv); in vmw_master_check() local
1123 if (vmw_fp->locked_master) { in vmw_master_check()
1268 struct vmw_fpriv *vmw_fp = vmw_fpriv(file_priv); in vmw_master_set() local
1275 ret = ttm_vt_lock(&active->lock, false, vmw_fp->tfile); in vmw_master_set()
1286 BUG_ON(vmw_fp->locked_master != file_priv->master); in vmw_master_set()
1287 drm_master_put(&vmw_fp->locked_master); in vmw_master_set()
1300 struct vmw_fpriv *vmw_fp = vmw_fpriv(file_priv); in vmw_master_drop() local
1309 vmw_fp->locked_master = drm_master_get(file_priv->master); in vmw_master_drop()
1310 ret = ttm_vt_lock(&vmaster->lock, false, vmw_fp->tfile); in vmw_master_drop()
1314 drm_master_put(&vmw_fp->locked_master); in vmw_master_drop()