Lines Matching defs:lock

95  *   &dma_resv lock. Note that this also pulls in the entire established
163 * same rules for lock nesting order, calling contexts for various functions
190 * waiting on a &dma_fence while holding a lock::
192 * lock(A);
196 * while the other thread is stuck trying to acquire the same lock, which
200 * lock(A);
209 * lock(A);
326 * &dma_fence.lock held.
336 lockdep_assert_held(fence->lock);
382 spin_lock_irqsave(fence->lock, flags);
384 spin_unlock_irqrestore(fence->lock, flags);
399 * Unlike dma_fence_signal(), this function must be called with &dma_fence.lock
436 spin_lock_irqsave(fence->lock, flags);
438 spin_unlock_irqrestore(fence->lock, flags);
512 spin_lock_irqsave(fence->lock, flags);
515 spin_unlock_irqrestore(fence->lock, flags);
543 lockdep_assert_held(fence->lock);
579 spin_lock_irqsave(fence->lock, flags);
581 spin_unlock_irqrestore(fence->lock, flags);
624 spin_lock_irqsave(fence->lock, flags);
634 spin_unlock_irqrestore(fence->lock, flags);
657 spin_lock_irqsave(fence->lock, flags);
659 spin_unlock_irqrestore(fence->lock, flags);
688 spin_lock_irqsave(fence->lock, flags);
695 spin_unlock_irqrestore(fence->lock, flags);
735 spin_lock_irqsave(fence->lock, flags);
761 spin_unlock_irqrestore(fence->lock, flags);
765 spin_lock_irqsave(fence->lock, flags);
777 spin_unlock_irqrestore(fence->lock, flags);
888 * @lock: the irqsafe spinlock to use for locking this fence
899 void dma_fence_init(struct dma_fence *fence, const struct dma_fence_ops *ops, spinlock_t *lock, u64 context, u64 seqno)
901 BUG_ON(!lock);
907 fence->lock = lock;