Lines Matching defs:drm_gpuva

38  * enum drm_gpuva_flags - flags for struct drm_gpuva
44 * Flag indicating that the &drm_gpuva's backing GEM is invalidated.
51 * Flag indicating that the &drm_gpuva is a sparse mapping.
62 * struct drm_gpuva - structure to track a GPU VA mapping
69 struct drm_gpuva {
81 * @va: structure containing the address and range of the &drm_gpuva
140 int drm_gpuva_insert(struct drm_gpuva_manager *mgr, struct drm_gpuva *va);
141 void drm_gpuva_remove(struct drm_gpuva *va);
143 void drm_gpuva_link(struct drm_gpuva *va);
144 void drm_gpuva_unlink(struct drm_gpuva *va);
146 struct drm_gpuva *drm_gpuva_find(struct drm_gpuva_manager *mgr,
148 struct drm_gpuva *drm_gpuva_find_first(struct drm_gpuva_manager *mgr,
150 struct drm_gpuva *drm_gpuva_find_prev(struct drm_gpuva_manager *mgr, u64 start);
151 struct drm_gpuva *drm_gpuva_find_next(struct drm_gpuva_manager *mgr, u64 end);
155 static inline void drm_gpuva_init(struct drm_gpuva *va, u64 addr, u64 range,
165 * drm_gpuva_invalidate() - sets whether the backing GEM of this &drm_gpuva is
167 * @va: the &drm_gpuva to set the invalidate flag for
168 * @invalidate: indicates whether the &drm_gpuva is invalidated
170 static inline void drm_gpuva_invalidate(struct drm_gpuva *va, bool invalidate)
179 * drm_gpuva_invalidated() - indicates whether the backing BO of this &drm_gpuva
181 * @va: the &drm_gpuva to check
183 static inline bool drm_gpuva_invalidated(struct drm_gpuva *va)
217 * @rb: structures to track &drm_gpuva entries
234 * &drm_gpuva representing the address space cutout reserved for
237 struct drm_gpuva kernel_alloc_node;
252 static inline struct drm_gpuva *
253 __drm_gpuva_next(struct drm_gpuva *va)
263 * @va__: &drm_gpuva structure to assign to in each iteration step
272 * the search for the starting &drm_gpuva, and hence isn't safe against removal
285 * @va__: &drm_gpuva to assign to in each iteration step
286 * @next__: another &drm_gpuva to use as temporary storage
295 * tree to accelerate the search for the starting &drm_gpuva, and hence is safe
308 * @va__: &drm_gpuva to assign to in each iteration step
311 * This iterator walks over all &drm_gpuva structures associated with the given
319 * @va__: &drm_gpuva to assign to in each iteration step
320 * @next__: another &drm_gpuva to use as temporary storage
323 * This iterator walks over all &drm_gpuva structures associated with the given
404 * @va: the &drm_gpuva to unmap
406 struct drm_gpuva *va;
411 * Indicates whether this &drm_gpuva is physically contiguous with the
415 * mappings for this &drm_gpuva, adding the missing page table entries
441 * &drm_gpuva structure which typically is embedded in larger driver specific
469 * @va: the &drm_gpuva to prefetch
471 struct drm_gpuva *va;
605 static inline void drm_gpuva_init_from_op(struct drm_gpuva *va,
697 struct drm_gpuva *va,
700 void drm_gpuva_remap(struct drm_gpuva *prev,
701 struct drm_gpuva *next,