Lines Matching refs:reloc
1139 struct vmw_relocation *reloc; in vmw_translate_mob_ptr() local
1155 reloc = vmw_validation_mem_alloc(sw_context->ctx, sizeof(*reloc)); in vmw_translate_mob_ptr()
1156 if (!reloc) in vmw_translate_mob_ptr()
1159 reloc->mob_loc = id; in vmw_translate_mob_ptr()
1160 reloc->vbo = vmw_bo; in vmw_translate_mob_ptr()
1163 list_add_tail(&reloc->head, &sw_context->bo_relocations); in vmw_translate_mob_ptr()
1195 struct vmw_relocation *reloc; in vmw_translate_guest_ptr() local
1212 reloc = vmw_validation_mem_alloc(sw_context->ctx, sizeof(*reloc)); in vmw_translate_guest_ptr()
1213 if (!reloc) in vmw_translate_guest_ptr()
1216 reloc->location = ptr; in vmw_translate_guest_ptr()
1217 reloc->vbo = vmw_bo; in vmw_translate_guest_ptr()
1219 list_add_tail(&reloc->head, &sw_context->bo_relocations); in vmw_translate_guest_ptr()
3746 struct vmw_relocation *reloc; in vmw_apply_relocations() local
3749 list_for_each_entry(reloc, &sw_context->bo_relocations, head) { in vmw_apply_relocations()
3750 bo = &reloc->vbo->tbo; in vmw_apply_relocations()
3753 reloc->location->offset += bo->resource->start << PAGE_SHIFT; in vmw_apply_relocations()
3754 reloc->location->gmrId = SVGA_GMR_FRAMEBUFFER; in vmw_apply_relocations()
3757 reloc->location->gmrId = bo->resource->start; in vmw_apply_relocations()
3760 *reloc->mob_loc = bo->resource->start; in vmw_apply_relocations()