Lines Matching +full:dma +full:- +full:related

1 /* SPDX-License-Identifier: GPL-2.0 */
3 /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
4 * Copyright (C) 2019-2024 Linaro Ltd.
10 #include <linux/dma-direction.h>
28 * struct gsi_trans - a GSI transaction
40 * @direction: DMA transfer direction (DMA_NONE for commands)
75 * gsi_trans_pool_init() - Initialize a pool of structures for transactions
87 * gsi_trans_pool_alloc() - Allocate one or more elements from a pool
96 * gsi_trans_pool_exit() - Inverse of gsi_trans_pool_init()
102 * gsi_trans_pool_init_dma() - Initialize a pool of DMA-able structures
103 * @dev: Device used for DMA
111 * Structures in this pool reside in DMA-coherent memory.
117 * gsi_trans_pool_alloc_dma() - Allocate an element from a DMA pool
118 * @pool: DMA pool pointer
119 * @addr: DMA address "handle" associated with the allocation
123 * Only one element at a time may be allocated from a DMA pool.
128 * gsi_trans_pool_exit_dma() - Inverse of gsi_trans_pool_init_dma()
129 * @dev: Device used for DMA
135 * gsi_channel_trans_idle() - Return whether no transactions are allocated
145 * gsi_channel_trans_alloc() - Allocate a GSI transaction on a channel
149 * @direction: DMA direction for entire SGL (or DMA_NONE)
159 * gsi_trans_free() - Free a previously-allocated GSI transaction
165 * gsi_trans_cmd_add() - Add an immediate command to a transaction
169 * @addr: DMA address for payload
176 * gsi_trans_page_add() - Add a page transfer to a transaction
186 * gsi_trans_skb_add() - Add a socket transfer to a transaction
190 * Return: 0, or -EMSGSIZE if socket data won't fit in transaction.
195 * gsi_trans_commit() - Commit a GSI transaction
202 * gsi_trans_commit_wait() - Commit a GSI transaction and wait for it
209 * gsi_trans_read_byte() - Issue a single byte read TRE on a channel
212 * @addr: DMA address into which to transfer the one byte
220 * gsi_trans_read_byte_done() - Clean up after a single byte read TRE
224 * This function needs to be called to signal that the work related