MCPcopy Create free account
hub / github.com/F-Stack/f-stack / idxd_enqueue_copy

Function idxd_enqueue_copy

dpdk/drivers/dma/idxd/idxd_common.c:128–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128__use_avx2
129int
130idxd_enqueue_copy(void *dev_private, uint16_t qid __rte_unused, rte_iova_t src,
131 rte_iova_t dst, unsigned int length, uint64_t flags)
132{
133 /* we can take advantage of the fact that the fence flag in dmadev and DSA are the same,
134 * but check it at compile time to be sure.
135 */
136 RTE_BUILD_BUG_ON(RTE_DMA_OP_FLAG_FENCE != IDXD_FLAG_FENCE);
137 uint32_t memmove = (idxd_op_memmove << IDXD_CMD_OP_SHIFT) |
138 IDXD_FLAG_CACHE_CONTROL | (flags & IDXD_FLAG_FENCE);
139 return __idxd_write_desc(dev_private, memmove, src, dst, length,
140 flags);
141}
142
143__use_avx2
144int

Callers

nothing calls this directly

Calls 1

__idxd_write_descFunction · 0.85

Tested by

no test coverage detected