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

Function rt_dma_pool_install

components/drivers/dma/dma_pool.c:564–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564struct rt_dma_pool *rt_dma_pool_install(rt_region_t *region)
565{
566 struct rt_dma_pool *pool;
567
568 if (!region)
569 {
570 return RT_NULL;
571 }
572
573 if ((pool = dma_pool_install(region)))
574 {
575 region = &pool->region;
576
577 LOG_I("%s: Reserved %u.%u MiB at %p",
578 region->name,
579 (region->end - region->start) / SIZE_MB,
580 (region->end - region->start) / SIZE_KB & (SIZE_KB - 1),
581 region->start);
582 }
583
584 return pool;
585}
586
587rt_err_t rt_dma_pool_extract(rt_region_t *region_list, rt_size_t list_len,
588 rt_size_t cma_size, rt_size_t coherent_pool_size)

Callers 1

rt_dma_pool_extractFunction · 0.85

Calls 1

dma_pool_installFunction · 0.85

Tested by

no test coverage detected