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

Function rte_dma_submit

dpdk/lib/dmadev/rte_dmadev.h:956–969  ·  view source on GitHub ↗

* Trigger hardware to begin performing enqueued operations. * * Writes the "doorbell" to the hardware to trigger it * to begin the operations previously enqueued by rte_dma_copy/fill(). * * @param dev_id * The identifier of the device. * @param vchan * The identifier of virtual DMA channel. * * @return * 0 on success. Otherwise negative value is returned. */

Source from the content-addressed store, hash-verified

954 * 0 on success. Otherwise negative value is returned.
955 */
956static inline int
957rte_dma_submit(int16_t dev_id, uint16_t vchan)
958{
959 struct rte_dma_fp_object *obj = &rte_dma_fp_objs[dev_id];
960
961#ifdef RTE_DMADEV_DEBUG
962 if (!rte_dma_is_valid(dev_id))
963 return -EINVAL;
964 if (*obj->submit == NULL)
965 return -ENOTSUP;
966#endif
967
968 return (*obj->submit)(obj->dev_private, vchan);
969}
970
971/**
972 * Return the number of operations that have been successfully completed.

Callers 12

vhost_async_dma_transferFunction · 0.85
do_dma_submit_and_pollFunction · 0.85
do_dma_mem_copyFunction · 0.85
test_dma_completedFunction · 0.85
do_multi_copiesFunction · 0.85
test_multi_failureFunction · 0.85
test_burst_capacityFunction · 0.85
test_m2d_auto_freeFunction · 0.85
dma_enqueueFunction · 0.85

Calls 1

rte_dma_is_validFunction · 0.85

Tested by 8

test_dma_completedFunction · 0.68
do_multi_copiesFunction · 0.68
test_multi_failureFunction · 0.68
test_burst_capacityFunction · 0.68
test_m2d_auto_freeFunction · 0.68