Lines Matching defs:node

72  * i915_gem_gtt_reserve - reserve a node in an address_space (GTT)
75 * @node: the &struct drm_mm_node (typically i915_vma.mode)
79 * must be #I915_GTT_MIN_ALIGNMENT aligned, and the node
81 * @color: color to apply to node, if this node is not from a VMA,
85 * i915_gem_gtt_reserve() tries to insert the @node at the exact @offset inside
86 * the address space (using @size and @color). If the @node does not fit, it
91 * evicting active overlapping objects, and any overlapping node that is pinned
99 struct drm_mm_node *node,
110 GEM_BUG_ON(drm_mm_node_allocated(node));
112 node->size = size;
113 node->start = offset;
114 node->color = color;
116 err = drm_mm_reserve_node(&vm->mm, node);
123 err = i915_gem_evict_for_node(vm, ww, node, flags);
125 err = drm_mm_reserve_node(&vm->mm, node);
156 * i915_gem_gtt_insert - insert a node into an address_space (GTT)
159 * @node: the &struct drm_mm_node (typically i915_vma.node)
165 * @color: color to apply to node
173 * is can insert the node. The hole address is aligned to @alignment and
176 * will be inserted between the two nodes (or the node evicted). If no
181 * rebound before any future use). Any node that is currently pinned cannot
182 * be evicted (see i915_vma_pin()). Similar if the node's VMA is currently
183 * active and #PIN_NONBLOCK is specified, that node is also skipped when
192 struct drm_mm_node *node,
210 GEM_BUG_ON(drm_mm_node_allocated(node));
234 err = drm_mm_insert_node_in_range(&vm->mm, node,
241 err = drm_mm_insert_node_in_range(&vm->mm, node,
277 err = i915_gem_gtt_reserve(vm, ww, node, size, offset, color, flags);
290 return drm_mm_insert_node_in_range(&vm->mm, node,