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

Function rte_dma_stop

dpdk/lib/dmadev/rte_dmadev.c:535–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533}
534
535int
536rte_dma_stop(int16_t dev_id)
537{
538 struct rte_dma_dev *dev = &rte_dma_devices[dev_id];
539 int ret;
540
541 if (!rte_dma_is_valid(dev_id))
542 return -EINVAL;
543
544 if (dev->data->dev_started == 0) {
545 RTE_DMA_LOG(WARNING, "Device %d already stopped", dev_id);
546 return 0;
547 }
548
549 if (dev->dev_ops->dev_stop == NULL)
550 goto mark_stopped;
551
552 ret = (*dev->dev_ops->dev_stop)(dev);
553 rte_dma_trace_stop(dev_id, ret);
554 if (ret != 0)
555 return ret;
556
557mark_stopped:
558 dev->data->dev_started = 0;
559 return 0;
560}
561
562int
563rte_dma_close(int16_t dev_id)

Callers 11

error_exitFunction · 0.85
mem_copy_benchmarkFunction · 0.85
test_dma_adapter_stopFunction · 0.85
testsuite_teardownFunction · 0.85
test_dma_start_stopFunction · 0.85
test_dma_completedFunction · 0.85
test_stop_startFunction · 0.85
prepare_m2d_auto_freeFunction · 0.85
test_dmadev_instanceFunction · 0.85
mainFunction · 0.85

Calls 1

rte_dma_is_validFunction · 0.85

Tested by 8

test_dma_adapter_stopFunction · 0.68
testsuite_teardownFunction · 0.68
test_dma_start_stopFunction · 0.68
test_dma_completedFunction · 0.68
test_stop_startFunction · 0.68
prepare_m2d_auto_freeFunction · 0.68
test_dmadev_instanceFunction · 0.68