Lines Matching refs:rel
509 struct vmw_resource_relocation *rel;
511 rel = vmw_validation_mem_alloc(sw_context->ctx, sizeof(*rel));
512 if (unlikely(!rel)) {
517 rel->res = res;
518 rel->offset = offset;
519 rel->rel_type = rel_type;
520 list_add_tail(&rel->head, &sw_context->res_relocations);
547 struct vmw_resource_relocation *rel;
553 list_for_each_entry(rel, list, head) {
554 u32 *addr = (u32 *)((unsigned long) cb + rel->offset);
555 switch (rel->rel_type) {
557 *addr = rel->res->id;
563 if (rel->res->id == -1)