Lines Matching refs:reloc

88 				   struct drm_i915_gem_relocation_entry *reloc)
99 reloc->target_handle);
110 reloc->write_domain == I915_GEM_DOMAIN_INSTRUCTION &&
117 if (reloc->write_domain & (reloc->write_domain - 1)) {
118 DRM_DEBUG("reloc with multiple write domains: "
121 obj, reloc->target_handle,
122 (int) reloc->offset,
123 reloc->read_domains,
124 reloc->write_domain);
127 if (unlikely((reloc->write_domain | reloc->read_domains)
129 DRM_DEBUG("reloc with read/write non-GPU domains: "
132 obj, reloc->target_handle,
133 (int) reloc->offset,
134 reloc->read_domains,
135 reloc->write_domain);
139 target_obj->pending_read_domains |= reloc->read_domains;
140 target_obj->pending_write_domain |= reloc->write_domain;
145 if (target_offset == reloc->presumed_offset)
149 if (reloc->offset > obj->base.size - 4) {
152 obj, reloc->target_handle,
153 (int) reloc->offset,
157 if (reloc->offset & 3) {
160 obj, reloc->target_handle,
161 (int) reloc->offset);
176 int reloc_base = (reloc->offset & ~(PAGE_SIZE-1));
177 reloc_offset = reloc->offset & (PAGE_SIZE-1);
179 reloc_val = target_offset + reloc->delta;
184 reloc->presumed_offset = target_offset;
503 struct drm_i915_gem_relocation_entry *reloc;
525 reloc = drm_calloc(total, sizeof(*reloc), DRM_MEM_DRIVER);
526 if (reloc == NULL || reloc_offset == NULL) {
527 drm_free(reloc, total * sizeof(*reloc), DRM_MEM_DRIVER);
539 if (copy_from_user(reloc+total, user_relocs,
540 exec[i].relocation_count * sizeof(*reloc))) {
583 reloc + reloc_offset[offset]);
595 drm_free(reloc, total * sizeof(*reloc), DRM_MEM_DRIVER);