Lines Matching +full:grant +full:- +full:dma

1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR MIT) */
41 /* The domain ID of the grant to be mapped. */
43 /* The grant reference of the grant to be mapped. */
48 * Inserts the grant references into the mapping table of an instance
51 * considered opaque to userspace, with one exception: if no grant
69 /* Array of grant references, of size @count. */
74 * Removes the grant references from the mapping table of an instance of
99 * contiguously-allocated range at once, and not any subrange thereof.
131 * cleanup if this side crashes. Required to implement cross-domain robust
171 * Copy between grant references and local buffers.
174 * to/from one grant reference.
180 * The local buffer may cross a Xen page boundary -- the driver will
191 * If -1 is returned, the status of all segments is undefined.
212 * to be allocated with DMA API.
226 * Create a dma-buf [1] from grant references @refs of count @count provided
229 * By default dma-buf is backed by system memory pages, but by providing
231 * a DMA write-combine or coherent buffer, e.g. allocated with dma_alloc_wc/
234 * Returns 0 if dma-buf was successfully created and the corresponding
235 * dma-buf's file descriptor is returned in @fd.
237 * [1] Documentation/driver-api/dma-buf.rst
245 /* Specific options for this dma-buf: see GNTDEV_DMA_FLAG_XXX. */
247 /* Number of grant references in @refs array. */
250 /* File descriptor of the dma-buf. */
252 /* The domain ID of the grant references to be mapped. */
255 /* Array of grant references of size @count. */
260 * This will block until the dma-buf with the file descriptor @fd is
265 * then -ETIMEDOUT error is returned.
267 * been released, then -ENOENT is returned. For valid file descriptors
280 * Import a dma-buf with file descriptor @fd and export granted references
281 * to the pages of that dma-buf into array @refs of size @count.
288 /* File descriptor of the dma-buf. */
290 /* Number of grant references in @refs array. */
294 /* Reserved - must be zero. */
297 /* Array of grant references of size @count. */