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

Function rte_dma_completed_status

dpdk/lib/dmadev/rte_dmadev.h:1052–1072  ·  view source on GitHub ↗

* Return the number of operations that have been completed, and the operations * result may succeed or fail. * Once an operation has been reported as completed successfully, the results of that * operation will be visible to all cores on the system. * * @param dev_id * The identifier of the device. * @param vchan * The identifier of virtual DMA channel. * @param nb_cpls * Indicates

Source from the content-addressed store, hash-verified

1050 * status array are also set.
1051 */
1052static inline uint16_t
1053rte_dma_completed_status(int16_t dev_id, uint16_t vchan,
1054 const uint16_t nb_cpls, uint16_t *last_idx,
1055 enum rte_dma_status_code *status)
1056{
1057 struct rte_dma_fp_object *obj = &rte_dma_fp_objs[dev_id];
1058 uint16_t idx;
1059
1060#ifdef RTE_DMADEV_DEBUG
1061 if (!rte_dma_is_valid(dev_id) || nb_cpls == 0 || status == NULL)
1062 return 0;
1063 if (*obj->completed_status == NULL)
1064 return 0;
1065#endif
1066
1067 if (last_idx == NULL)
1068 last_idx = &idx;
1069
1070 return (*obj->completed_status)(obj->dev_private, vchan, nb_cpls,
1071 last_idx, status);
1072}
1073
1074/**
1075 * Check remaining capacity in descriptor ring for the current burst.

Callers 9

do_multi_copiesFunction · 0.85
test_single_copyFunction · 0.85
test_stop_startFunction · 0.85
test_multi_failureFunction · 0.85
test_burst_capacityFunction · 0.85

Calls 1

rte_dma_is_validFunction · 0.85

Tested by 9

do_multi_copiesFunction · 0.68
test_single_copyFunction · 0.68
test_stop_startFunction · 0.68
test_multi_failureFunction · 0.68
test_burst_capacityFunction · 0.68