Lines Matching refs:rel
492 struct vmw_resource_relocation *rel; in vmw_resource_relocation_add() local
494 rel = vmw_validation_mem_alloc(sw_context->ctx, sizeof(*rel)); in vmw_resource_relocation_add()
495 if (unlikely(!rel)) { in vmw_resource_relocation_add()
500 rel->res = res; in vmw_resource_relocation_add()
501 rel->offset = offset; in vmw_resource_relocation_add()
502 rel->rel_type = rel_type; in vmw_resource_relocation_add()
503 list_add_tail(&rel->head, &sw_context->res_relocations); in vmw_resource_relocation_add()
530 struct vmw_resource_relocation *rel; in vmw_resource_relocations_apply() local
536 list_for_each_entry(rel, list, head) { in vmw_resource_relocations_apply()
537 u32 *addr = (u32 *)((unsigned long) cb + rel->offset); in vmw_resource_relocations_apply()
538 switch (rel->rel_type) { in vmw_resource_relocations_apply()
540 *addr = rel->res->id; in vmw_resource_relocations_apply()
546 if (rel->res->id == -1) in vmw_resource_relocations_apply()