• Home
  • Raw
  • Download

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
63 /* Array of grant references, of size @count. */
68 * Removes the grant references from the mapping table of an instance of
93 * contiguously-allocated range at once, and not any subrange thereof.
125 * cleanup if this side crashes. Required to implement cross-domain robust
165 * Copy between grant references and local buffers.
168 * to/from one grant reference.
174 * The local buffer may cross a Xen page boundary -- the driver will
185 * If -1 is returned, the status of all segments is undefined.
206 * to be allocated with DMA API.
220 * Create a dma-buf [1] from grant references @refs of count @count provided
223 * By default dma-buf is backed by system memory pages, but by providing
225 * a DMA write-combine or coherent buffer, e.g. allocated with dma_alloc_wc/
228 * Returns 0 if dma-buf was successfully created and the corresponding
229 * dma-buf's file descriptor is returned in @fd.
231 * [1] Documentation/driver-api/dma-buf.rst
239 /* Specific options for this dma-buf: see GNTDEV_DMA_FLAG_XXX. */
241 /* Number of grant references in @refs array. */
244 /* File descriptor of the dma-buf. */
246 /* The domain ID of the grant references to be mapped. */
249 /* Array of grant references of size @count. */
254 * This will block until the dma-buf with the file descriptor @fd is
259 * then -ETIMEDOUT error is returned.
261 * been released, then -ENOENT is returned. For valid file descriptors
274 * Import a dma-buf with file descriptor @fd and export granted references
275 * to the pages of that dma-buf into array @refs of size @count.
282 /* File descriptor of the dma-buf. */
284 /* Number of grant references in @refs array. */
288 /* Reserved - must be zero. */
291 /* Array of grant references of size @count. */