Lines Matching refs:rel
232 struct vmw_resource_relocation *rel; in vmw_resource_relocation_add() local
234 rel = kmalloc(sizeof(*rel), GFP_KERNEL); in vmw_resource_relocation_add()
235 if (unlikely(rel == NULL)) { in vmw_resource_relocation_add()
240 rel->res = res; in vmw_resource_relocation_add()
241 rel->offset = offset; in vmw_resource_relocation_add()
242 list_add_tail(&rel->head, list); in vmw_resource_relocation_add()
254 struct vmw_resource_relocation *rel, *n; in vmw_resource_relocations_free() local
256 list_for_each_entry_safe(rel, n, list, head) { in vmw_resource_relocations_free()
257 list_del(&rel->head); in vmw_resource_relocations_free()
258 kfree(rel); in vmw_resource_relocations_free()
274 struct vmw_resource_relocation *rel; in vmw_resource_relocations_apply() local
276 list_for_each_entry(rel, list, head) { in vmw_resource_relocations_apply()
277 if (likely(rel->res != NULL)) in vmw_resource_relocations_apply()
278 cb[rel->offset] = rel->res->id; in vmw_resource_relocations_apply()
280 cb[rel->offset] = SVGA_3D_CMD_NOP; in vmw_resource_relocations_apply()