Lines Matching refs:context
42 drm_lock_take(drm_lock_data_t *lock_data, unsigned int context)
52 new = context | _DRM_LOCK_HELD;
56 if (_DRM_LOCKING_CONTEXT(old) == context) {
58 if (context != DRM_KERNEL_CONTEXT) {
60 context);
65 if ((_DRM_LOCKING_CONTEXT(new)) == context &&
74 * This takes a lock forcibly and hands it to context. Should ONLY be used
79 unsigned int context)
86 new = context | _DRM_LOCK_HELD;
95 unsigned int context)
108 (_DRM_LOCKING_CONTEXT(old) != context)) {
110 context, _DRM_LOCKING_CONTEXT(old));
129 if (lock.context == DRM_KERNEL_CONTEXT) {
133 if (dev->driver->use_dma_queue && lock.context < 0)
138 if (drm_lock_take(&dev->lock, lock.context)) {
169 if (lock.context == DRM_KERNEL_CONTEXT) {
170 DRM_ERROR("Process %d using kernel context %d\n",
171 DRM_CURRENTPID, lock.context);
177 if (drm_lock_free(dev, &dev->lock.hw_lock->lock, lock.context)) {