Lines Matching refs:reloc
1161 struct vmw_relocation *reloc; in vmw_translate_mob_ptr() local
1176 reloc = vmw_validation_mem_alloc(sw_context->ctx, sizeof(*reloc)); in vmw_translate_mob_ptr()
1177 if (!reloc) in vmw_translate_mob_ptr()
1180 reloc->mob_loc = id; in vmw_translate_mob_ptr()
1181 reloc->vbo = vmw_bo; in vmw_translate_mob_ptr()
1184 list_add_tail(&reloc->head, &sw_context->bo_relocations); in vmw_translate_mob_ptr()
1216 struct vmw_relocation *reloc; in vmw_translate_guest_ptr() local
1231 reloc = vmw_validation_mem_alloc(sw_context->ctx, sizeof(*reloc)); in vmw_translate_guest_ptr()
1232 if (!reloc) in vmw_translate_guest_ptr()
1235 reloc->location = ptr; in vmw_translate_guest_ptr()
1236 reloc->vbo = vmw_bo; in vmw_translate_guest_ptr()
1238 list_add_tail(&reloc->head, &sw_context->bo_relocations); in vmw_translate_guest_ptr()
3301 struct vmw_relocation *reloc; in vmw_apply_relocations() local
3304 list_for_each_entry(reloc, &sw_context->bo_relocations, head) { in vmw_apply_relocations()
3305 bo = &reloc->vbo->base; in vmw_apply_relocations()
3308 reloc->location->offset += bo->offset; in vmw_apply_relocations()
3309 reloc->location->gmrId = SVGA_GMR_FRAMEBUFFER; in vmw_apply_relocations()
3312 reloc->location->gmrId = bo->mem.start; in vmw_apply_relocations()
3315 *reloc->mob_loc = bo->mem.start; in vmw_apply_relocations()