Lines Matching refs:file_priv
114 lock_data->file_priv = NULL; in drm_lock_transfer()
165 struct drm_file *file_priv) in drm_legacy_lock() argument
169 struct drm_master *master = file_priv->master; in drm_legacy_lock()
175 ++file_priv->lock_count; in drm_legacy_lock()
202 master->lock.file_priv = file_priv; in drm_legacy_lock()
229 if (!drm_is_current_master(file_priv)) { in drm_legacy_lock()
257 int drm_legacy_unlock(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_legacy_unlock() argument
260 struct drm_master *master = file_priv->master; in drm_legacy_unlock()
330 struct drm_file *file_priv) in drm_legacy_i_have_hw_lock() argument
332 struct drm_master *master = file_priv->master; in drm_legacy_i_have_hw_lock()
334 return (file_priv->lock_count && master->lock.hw_lock && in drm_legacy_i_have_hw_lock()
336 master->lock.file_priv == file_priv); in drm_legacy_i_have_hw_lock()
341 struct drm_file *file_priv = filp->private_data; in drm_legacy_lock_release() local
347 if (drm_legacy_i_have_hw_lock(dev, file_priv)) { in drm_legacy_lock_release()
349 filp, _DRM_LOCKING_CONTEXT(file_priv->master->lock.hw_lock->lock)); in drm_legacy_lock_release()
350 drm_legacy_lock_free(&file_priv->master->lock, in drm_legacy_lock_release()
351 _DRM_LOCKING_CONTEXT(file_priv->master->lock.hw_lock->lock)); in drm_legacy_lock_release()
369 master->lock.file_priv = NULL; in drm_legacy_lock_master_cleanup()