reloc_cache
struct reloc_cache *cache,
struct reloc_cache *cache,
struct reloc_cache *cache = &eb->reloc_cache;
struct reloc_cache *cache = &eb->reloc_cache;
bool wide = eb->reloc_cache.use_64bit_reloc;
if (!eb->reloc_cache.vaddr &&
const unsigned int gen = eb->reloc_cache.gen;
vaddr = reloc_vaddr(vma->obj, &eb->reloc_cache, offset >> PAGE_SHIFT);
eb->reloc_cache.vaddr);
vma->size - (eb->reloc_cache.use_64bit_reloc ? 8 : 4))) {
reloc_cache_reset(&eb->reloc_cache);
reloc_cache_reset(&eb->reloc_cache);
reloc_cache_init(&eb.reloc_cache, eb.i915);
GEM_BUG_ON(eb.reloc_cache.rq);
} reloc_cache;
if (!eb->reloc_cache.has_fence) {
eb->reloc_cache.needs_unfenced) &&
if (eb->reloc_cache.has_fence)
static inline int use_cpu_reloc(const struct reloc_cache *cache,
GEM_BUG_ON(eb->reloc_cache.rq);
static void reloc_cache_init(struct reloc_cache *cache,
static inline struct i915_ggtt *cache_to_ggtt(struct reloc_cache *cache)
container_of(cache, struct i915_execbuffer, reloc_cache)->i915;
static void reloc_gpu_flush(struct reloc_cache *cache)
static void reloc_cache_reset(struct reloc_cache *cache)
struct reloc_cache *cache,