MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_dma_sync_in_data

Function rt_dma_sync_in_data

components/drivers/dma/dma_pool.c:491–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489}
490
491rt_err_t rt_dma_sync_in_data(struct rt_device *dev, void *out_data, rt_size_t size,
492 rt_ubase_t dma_handle, rt_ubase_t flags)
493{
494 rt_err_t err;
495 const struct rt_dma_map_ops *ops;
496
497 if (!out_data || !size)
498 {
499 return -RT_EINVAL;
500 }
501
502 ops = device_dma_ops(dev);
503 err = ops->sync_in_data(dev, out_data, size, dma_handle, flags);
504
505 return err;
506}
507
508static struct rt_dma_pool *dma_pool_install(rt_region_t *region)
509{

Callers

nothing calls this directly

Calls 1

device_dma_opsFunction · 0.85

Tested by

no test coverage detected