• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/drm2/

Lines Matching refs:context

45 static int drm_lock_take(struct drm_lock_data *lock_data, unsigned int context);
66 if (lock->context == DRM_KERNEL_CONTEXT) {
67 DRM_ERROR("Process %d using kernel context %d\n",
68 DRM_CURRENTPID, lock->context);
73 lock->context, DRM_CURRENTPID,
89 if (drm_lock_take(&master->lock, lock->context)) {
109 DRM_DEBUG("%d %s\n", lock->context,
123 dev->sigdata.context = lock->context;
133 lock->context);
157 if (lock->context == DRM_KERNEL_CONTEXT) {
158 DRM_ERROR("Process %d using kernel context %d\n",
159 DRM_CURRENTPID, lock->context);
165 if (drm_lock_free(&master->lock, lock->context)) {
179 * \param context locking context.
182 * Attempt to mark the lock as held by the given context, via the \p cmpxchg instruction.
186 unsigned int context)
197 new = context | _DRM_LOCK_HELD |
205 if (_DRM_LOCKING_CONTEXT(old) == context) {
207 if (context != DRM_KERNEL_CONTEXT) {
209 context);
215 if ((_DRM_LOCKING_CONTEXT(new)) == context && (new & _DRM_LOCK_HELD)) {
223 * This takes a lock forcibly and hands it to context. Should ONLY be used
228 * \param context locking context.
232 * Marks the lock as held by the given context, via the \p cmpxchg instruction.
235 unsigned int context)
243 new = context | _DRM_LOCK_HELD;
254 * \param context context.
260 int drm_lock_free(struct drm_lock_data *lock_data, unsigned int context)
280 if (_DRM_LOCK_IS_HELD(old) && _DRM_LOCKING_CONTEXT(old) != context) {
282 context, _DRM_LOCKING_CONTEXT(old));
308 || _DRM_LOCKING_CONTEXT(s->lock->lock) != s->context)
324 * with the kernel context if it is free, otherwise it gets the highest priority when and if