* 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. */
| 79 | * A dmamap to for use with dmamap_load is also allocated. |
| 80 | */ |
| 81 | static inline int |
| 82 | bus_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 |
no outgoing calls
no test coverage detected