Lines Matching refs:val
392 struct vmw_validation_res_node *val;
397 val = container_of(val_private, typeof(*val), private);
398 val->dirty_set = 1;
400 val->dirty = (dirty & VMW_RES_DIRTY_SET) ? 1 : 0;
419 struct vmw_validation_res_node *val;
421 val = container_of(val_private, typeof(*val), private);
423 val->switching_backup = 1;
424 if (val->first_usage)
425 val->no_buffer_needed = 1;
427 val->new_backup = vbo;
428 val->new_backup_offset = backup_offset;
443 struct vmw_validation_res_node *val;
448 list_for_each_entry(val, &ctx->resource_list, head) {
449 struct vmw_resource *res = val->res;
451 ret = vmw_resource_reserve(res, intr, val->no_buffer_needed);
455 val->reserved = 1;
466 if (val->switching_backup && val->new_backup &&
470 val->new_backup);
497 struct vmw_validation_res_node *val;
501 list_for_each_entry(val, &ctx->resource_list, head) {
502 if (val->reserved)
503 vmw_resource_unreserve(val->res,
508 list_for_each_entry(val, &ctx->resource_list, head) {
509 if (val->reserved)
510 vmw_resource_unreserve(val->res,
511 val->dirty_set,
512 val->dirty,
513 val->switching_backup,
514 val->new_backup,
515 val->new_backup_offset);
640 struct vmw_validation_res_node *val;
643 list_for_each_entry(val, &ctx->resource_list, head) {
644 struct vmw_resource *res = val->res;
647 ret = vmw_resource_validate(res, intr, val->dirty_set &&
648 val->dirty);
684 struct vmw_validation_res_node *val;
692 list_for_each_entry(val, &ctx->resource_list, head)
693 (void) drm_ht_remove_item(ctx->ht, &val->hash);
695 list_for_each_entry(val, &ctx->resource_ctx_list, head)
696 (void) drm_ht_remove_item(ctx->ht, &val->hash);
712 struct vmw_validation_res_node *val;
720 list_for_each_entry(val, &ctx->resource_list, head)
721 vmw_resource_unreference(&val->res);