Home | History | Annotate | Download | only in i915

Lines Matching refs:bound

666 	 * Combine the assertion that the object is bound and that we have
667 * pinned its pages. But we should never have bound the object
827 unsigned int bound;
830 bound = atomic_read(&vma->flags);
832 if (unlikely(flags & ~bound))
835 if (unlikely(bound & (I915_VMA_OVERFLOW | I915_VMA_ERROR)))
838 if (!(bound & I915_VMA_PIN_MASK))
841 GEM_BUG_ON(((bound + 1) & I915_VMA_PIN_MASK) == 0);
842 } while (!atomic_try_cmpxchg(&vma->flags, &bound, bound + 1));
848 * If pin_count==0, but we are bound, check under the lock to avoid
853 if (unlikely(bound & (I915_VMA_OVERFLOW | I915_VMA_ERROR))) {
858 if (unlikely(flags & ~bound)) {
862 } while (!atomic_try_cmpxchg(&vma->flags, &bound, bound + 1));
941 unsigned int bound;
974 bound = atomic_read(&vma->flags);
975 if (unlikely(bound & I915_VMA_ERROR)) {
980 if (unlikely(!((bound + 1) & I915_VMA_PIN_MASK))) {
985 if (unlikely(!(flags & ~bound & I915_VMA_BIND_MASK))) {
994 if (!(bound & I915_VMA_BIND_MASK)) {
1011 GEM_BUG_ON(bound + I915_VMA_PAGES_ACTIVE < bound);
1232 /* Wait for the vma to be bound before we start! */