Lines Matching refs:master
61 struct drm_master *master = file->master;
72 if (master->lock.hw_lock == NULL)
77 master->lock.hw_lock->lock, lock->flags);
83 mutex_enter(&master->lock.lock_mutex);
84 master->lock.user_waiters++;
86 if (drm_lock_take(&master->lock, lock->context)) {
87 master->lock.file_priv = file;
88 master->lock.lock_time = ddi_get_lbolt();
93 ret = cv_wait_sig(&master->lock.lock_cv,
94 &master->lock.lock_mutex);
100 master->lock.user_waiters--;
101 mutex_exit(&master->lock.lock_mutex);
134 struct drm_master *master = file->master;
148 if (drm_lock_free(&master->lock, lock->context)) {
314 struct drm_master *master = file_priv->master;
315 return (file_priv->lock_count && master->lock.hw_lock &&
316 _DRM_LOCK_IS_HELD(master->lock.hw_lock->lock) &&
317 master->lock.file_priv == file_priv);