Lines Matching refs:node
293 struct vmw_validation_res_node *node; in vmw_validation_add_resource() local
295 node = vmw_validation_find_res_dup(ctx, res); in vmw_validation_add_resource()
296 if (node) { in vmw_validation_add_resource()
297 node->first_usage = 0; in vmw_validation_add_resource()
301 node = vmw_validation_mem_alloc(ctx, sizeof(*node) + priv_size); in vmw_validation_add_resource()
302 if (!node) { in vmw_validation_add_resource()
308 node->hash.key = (unsigned long) res; in vmw_validation_add_resource()
309 hash_add_rcu(ctx->sw_context->res_ht, &node->hash.head, node->hash.key); in vmw_validation_add_resource()
311 node->res = vmw_resource_reference_unless_doomed(res); in vmw_validation_add_resource()
312 if (!node->res) in vmw_validation_add_resource()
315 node->first_usage = 1; in vmw_validation_add_resource()
317 list_add_tail(&node->head, &ctx->resource_list); in vmw_validation_add_resource()
322 list_add(&node->head, &ctx->resource_ctx_list); in vmw_validation_add_resource()
325 list_add_tail(&node->head, &ctx->resource_ctx_list); in vmw_validation_add_resource()
328 list_add_tail(&node->head, &ctx->resource_list); in vmw_validation_add_resource()
335 node->dirty_set = 1; in vmw_validation_add_resource()
337 node->dirty = (dirty & VMW_RES_DIRTY_SET) ? 1 : 0; in vmw_validation_add_resource()
340 *first_usage = node->first_usage; in vmw_validation_add_resource()
342 *p_node = &node->private; in vmw_validation_add_resource()