Lines Matching refs:reloc
1065 relocation_target(const struct drm_i915_gem_relocation_entry *reloc, in relocation_target() argument
1068 return gen8_canonical_addr((int)reloc->delta + target->node.start); in relocation_target()
1342 const struct drm_i915_gem_relocation_entry *reloc, in relocate_entry() argument
1346 u64 target_addr = relocation_target(reloc, target); in relocate_entry()
1347 u64 offset = reloc->offset; in relocate_entry()
1375 const struct drm_i915_gem_relocation_entry *reloc) in eb_relocate_entry() argument
1382 target = eb_get_vma(eb, reloc->target_handle); in eb_relocate_entry()
1387 if (unlikely(reloc->write_domain & (reloc->write_domain - 1))) { in eb_relocate_entry()
1391 reloc->target_handle, in eb_relocate_entry()
1392 (int) reloc->offset, in eb_relocate_entry()
1393 reloc->read_domains, in eb_relocate_entry()
1394 reloc->write_domain); in eb_relocate_entry()
1397 if (unlikely((reloc->write_domain | reloc->read_domains) in eb_relocate_entry()
1402 reloc->target_handle, in eb_relocate_entry()
1403 (int) reloc->offset, in eb_relocate_entry()
1404 reloc->read_domains, in eb_relocate_entry()
1405 reloc->write_domain); in eb_relocate_entry()
1409 if (reloc->write_domain) { in eb_relocate_entry()
1418 if (reloc->write_domain == I915_GEM_DOMAIN_INSTRUCTION && in eb_relocate_entry()
1440 gen8_canonical_addr(target->vma->node.start) == reloc->presumed_offset) in eb_relocate_entry()
1444 if (unlikely(reloc->offset > in eb_relocate_entry()
1448 reloc->target_handle, in eb_relocate_entry()
1449 (int)reloc->offset, in eb_relocate_entry()
1453 if (unlikely(reloc->offset & 3)) { in eb_relocate_entry()
1456 reloc->target_handle, in eb_relocate_entry()
1457 (int)reloc->offset); in eb_relocate_entry()
1472 return relocate_entry(ev->vma, reloc, eb, target->vma); in eb_relocate_entry()