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

Function bus_dmamem_alloc

freebsd/x86/include/bus_dma.h:81–89  ·  view source on GitHub ↗

* Allocate a piece of memory that can be efficiently mapped into * bus device space based on the constraints lited in the dma tag. * A dmamap to for use with dmamap_load is also allocated. */

Source from the content-addressed store, hash-verified

79 * A dmamap to for use with dmamap_load is also allocated.
80 */
81static inline int
82bus_dmamem_alloc(bus_dma_tag_t dmat, void** vaddr, int flags,
83 bus_dmamap_t *mapp)
84{
85 struct bus_dma_tag_common *tc;
86
87 tc = (struct bus_dma_tag_common *)dmat;
88 return (tc->impl->mem_alloc(dmat, vaddr, flags, mapp));
89}
90
91/*
92 * Free a piece of memory and it's allociated dmamap, that was allocated

Callers 5

vchiq_platform_initFunction · 0.50
create_pagelistFunction · 0.50
ccp_hw_attach_queueFunction · 0.50
set_ownershipFunction · 0.50
iflib_dma_alloc_alignFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected