/** * i915_ttm_is_ghost_object - Check if the ttm bo is a ghost object. * @bo: Pointer to the ttm buffer object * * Return: True if the ttm bo is not a i915 object but a ghost ttm object, * False otherwise.
*/ staticinlinebool i915_ttm_is_ghost_object(struct ttm_buffer_object *bo)
{ return bo->destroy != i915_ttm_bo_destroy;
}
/** * i915_ttm_to_gem - Convert a struct ttm_buffer_object to an embedding * struct drm_i915_gem_object. * @bo: Pointer to the ttm buffer object * * Return: Pointer to the embedding struct drm_i915_gem_object.
*/ staticinlinestruct drm_i915_gem_object *
i915_ttm_to_gem(struct ttm_buffer_object *bo)
{ return container_of(bo, struct drm_i915_gem_object, __do_not_access);
}
int i915_ttm_purge(struct drm_i915_gem_object *obj);
/** * i915_ttm_gtt_binds_lmem - Should the memory be viewed as LMEM by the GTT? * @mem: struct ttm_resource representing the memory. * * Return: true if memory should be viewed as LMEM for GTT binding purposes, * false otherwise.
*/ staticinlinebool i915_ttm_gtt_binds_lmem(struct ttm_resource *mem)
{ return mem->mem_type != I915_PL_SYSTEM;
}
/** * i915_ttm_cpu_maps_iomem - Should the memory be viewed as IOMEM by the CPU? * @mem: struct ttm_resource representing the memory. * * Return: true if memory should be viewed as IOMEM for CPU mapping purposes.
*/ staticinlinebool i915_ttm_cpu_maps_iomem(struct ttm_resource *mem)
{ /* Once / if we support GGTT, this is also false for cached ttm_tts */ return mem && mem->mem_type != I915_PL_SYSTEM;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.