Lines Matching refs:dev
78 drm_lock_transfer(drm_device_t *dev, volatile unsigned int *lock,
83 dev->lock.filp = NULL;
94 drm_lock_free(drm_device_t *dev, volatile unsigned int *lock,
99 mutex_enter(&(dev->lock.lock_mutex));
100 dev->lock.filp = NULL;
111 mutex_exit(&(dev->lock.lock_mutex));
114 cv_broadcast(&(dev->lock.lock_cv));
115 mutex_exit(&(dev->lock.lock_mutex));
133 if (dev->driver->use_dma_queue && lock.context < 0)
136 mutex_enter(&(dev->lock.lock_mutex));
138 if (drm_lock_take(&dev->lock, lock.context)) {
139 dev->lock.filp = fpriv;
140 dev->lock.lock_time = jiffies;
143 ret = cv_wait_sig(&(dev->lock.lock_cv),
144 &(dev->lock.lock_mutex));
147 mutex_exit(&(dev->lock.lock_mutex));
151 mutex_exit(&(dev->lock.lock_mutex));
153 if (dev->driver->dma_quiescent != NULL &&
155 dev->driver->dma_quiescent(dev);
174 atomic_inc_32(&dev->counts[_DRM_STAT_UNLOCKS]);
177 if (drm_lock_free(dev, &dev->lock.hw_lock->lock, lock.context)) {