aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/odp_dma.c
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2023-06-12 17:28:46 +0300
committerMatias Elo <matias.elo@nokia.com>2023-06-16 12:29:21 +0300
commit53a1ae930a2346867d34f5dabf45de5aabab3864 (patch)
tree75d5ff7c08377bc03c6d39468797efd40ba8f7b2 /platform/linux-generic/odp_dma.c
parentd158bbd99e4cd9e64393a18737021bbbed2f862d (diff)
linux-gen: dma: inline small completion event functions
Inline implementations of odp_dma_compl_user_area() and odp_dma_compl_result(). odp_event_user_area() implementation has been modified to avoid circular dependency. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Diffstat (limited to 'platform/linux-generic/odp_dma.c')
-rw-r--r--platform/linux-generic/odp_dma.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/platform/linux-generic/odp_dma.c b/platform/linux-generic/odp_dma.c
index 2a0a56849..ac3f6eb7c 100644
--- a/platform/linux-generic/odp_dma.c
+++ b/platform/linux-generic/odp_dma.c
@@ -803,24 +803,6 @@ void odp_dma_compl_free(odp_dma_compl_t dma_compl)
odp_buffer_free(buf);
}
-int odp_dma_compl_result(odp_dma_compl_t dma_compl, odp_dma_result_t *result_out)
-{
- odp_dma_result_t *result;
- odp_buffer_t buf = (odp_buffer_t)(uintptr_t)dma_compl;
-
- if (odp_unlikely(dma_compl == ODP_DMA_COMPL_INVALID)) {
- _ODP_ERR("Bad DMA compl handle\n");
- return -1;
- }
-
- result = odp_buffer_addr(buf);
-
- if (result_out)
- *result_out = *result;
-
- return result->success ? 0 : -1;
-}
-
uint64_t odp_dma_to_u64(odp_dma_t dma)
{
return (uint64_t)(uintptr_t)dma;
@@ -831,11 +813,6 @@ uint64_t odp_dma_compl_to_u64(odp_dma_compl_t dma_compl)
return (uint64_t)(uintptr_t)dma_compl;
}
-void *odp_dma_compl_user_area(odp_dma_compl_t dma_compl)
-{
- return odp_buffer_user_area((odp_buffer_t)(uintptr_t)dma_compl);
-}
-
void odp_dma_print(odp_dma_t dma)
{
dma_session_t *session = dma_session_from_handle(dma);