Lines Matching refs:reloc
1111 relocation_target(const struct drm_i915_gem_relocation_entry *reloc, in relocation_target() argument
1114 return gen8_canonical_addr((int)reloc->delta + i915_vma_offset(target)); in relocation_target()
1391 const struct drm_i915_gem_relocation_entry *reloc, in relocate_entry() argument
1395 u64 target_addr = relocation_target(reloc, target); in relocate_entry()
1396 u64 offset = reloc->offset; in relocate_entry()
1424 const struct drm_i915_gem_relocation_entry *reloc) in eb_relocate_entry() argument
1431 target = eb_get_vma(eb, reloc->target_handle); in eb_relocate_entry()
1436 if (unlikely(reloc->write_domain & (reloc->write_domain - 1))) { in eb_relocate_entry()
1440 reloc->target_handle, in eb_relocate_entry()
1441 (int) reloc->offset, in eb_relocate_entry()
1442 reloc->read_domains, in eb_relocate_entry()
1443 reloc->write_domain); in eb_relocate_entry()
1446 if (unlikely((reloc->write_domain | reloc->read_domains) in eb_relocate_entry()
1451 reloc->target_handle, in eb_relocate_entry()
1452 (int) reloc->offset, in eb_relocate_entry()
1453 reloc->read_domains, in eb_relocate_entry()
1454 reloc->write_domain); in eb_relocate_entry()
1458 if (reloc->write_domain) { in eb_relocate_entry()
1467 if (reloc->write_domain == I915_GEM_DOMAIN_INSTRUCTION && in eb_relocate_entry()
1489 gen8_canonical_addr(i915_vma_offset(target->vma)) == reloc->presumed_offset) in eb_relocate_entry()
1493 if (unlikely(reloc->offset > in eb_relocate_entry()
1497 reloc->target_handle, in eb_relocate_entry()
1498 (int)reloc->offset, in eb_relocate_entry()
1502 if (unlikely(reloc->offset & 3)) { in eb_relocate_entry()
1505 reloc->target_handle, in eb_relocate_entry()
1506 (int)reloc->offset); in eb_relocate_entry()
1521 return relocate_entry(ev->vma, reloc, eb, target->vma); in eb_relocate_entry()