Lines Matching +full:kind +full:- +full:of +full:- +full:intr
1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
4 * Copyright © 2018 - 2022 VMware, Inc., Palo Alto, CA., USA
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the
11 * distribute, sub license, and/or sell copies of the Software, and to
17 * of the Software.
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
23 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
42 * struct vmw_validation_context - Per command submission validation context
43 * @ht: Hash table used to find resource- or buffer object duplicates
48 * @page_list: List of pages used by the memory allocator
54 * @page_address: Kernel virtual address of the last page in @page_list
75 * DECLARE_VAL_CONTEXT - Declare a validation context with initialization
76 * @_name: The name of the variable
78 * @_merge_dups: Whether to merge duplicate buffer object- or resource
80 * as well unless the number of resources and buffer objects per validation
97 * vmw_validation_has_bos - return whether the validation context has
106 return !list_empty(&ctx->bo_list); in vmw_validation_has_bos()
110 * vmw_validation_bo_reserve - Reserve buffer objects registered with a
113 * @intr: Perform waits interruptible
115 * Return: Zero on success, -ERESTARTSYS when interrupted, negative error
120 bool intr) in vmw_validation_bo_reserve() argument
122 return ttm_eu_reserve_buffers(&ctx->ticket, &ctx->bo_list, intr, in vmw_validation_bo_reserve()
127 * vmw_validation_bo_fence - Unreserve and fence buffer objects registered
138 ttm_eu_fence_buffer_objects(&ctx->ticket, &ctx->bo_list, in vmw_validation_bo_fence()
143 * vmw_validation_align - Align a validation memory allocation
156 int vmw_validation_bo_validate(struct vmw_validation_context *ctx, bool intr);
166 bool intr);
173 int vmw_validation_res_validate(struct vmw_validation_context *ctx, bool intr);
176 struct mutex *mutex, bool intr);