Lines Matching refs:rel
418 struct vmw_resource_relocation *rel; in vmw_resource_relocation_add() local
420 rel = kmalloc(sizeof(*rel), GFP_KERNEL); in vmw_resource_relocation_add()
421 if (unlikely(rel == NULL)) { in vmw_resource_relocation_add()
426 rel->res = res; in vmw_resource_relocation_add()
427 rel->offset = offset; in vmw_resource_relocation_add()
428 list_add_tail(&rel->head, list); in vmw_resource_relocation_add()
440 struct vmw_resource_relocation *rel, *n; in vmw_resource_relocations_free() local
442 list_for_each_entry_safe(rel, n, list, head) { in vmw_resource_relocations_free()
443 list_del(&rel->head); in vmw_resource_relocations_free()
444 kfree(rel); in vmw_resource_relocations_free()
460 struct vmw_resource_relocation *rel; in vmw_resource_relocations_apply() local
462 list_for_each_entry(rel, list, head) { in vmw_resource_relocations_apply()
463 if (likely(rel->res != NULL)) in vmw_resource_relocations_apply()
464 cb[rel->offset] = rel->res->id; in vmw_resource_relocations_apply()
466 cb[rel->offset] = SVGA_3D_CMD_NOP; in vmw_resource_relocations_apply()