Function report |
Source Code:kernel\dma\mapping.c |
Create Date:2022-07-28 10:32:43 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:dma_alloc_attrs
Proto:void *dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flag, unsigned long attrs)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct device * | dev | |
size_t | size | |
dma_addr_t * | dma_handle | |
gfp_t | flag | |
unsigned long | attrs |
267 | ops = get_dma_ops(dev) |
270 | WARN_ON_ONCE(! Like dma_mask, but for alloc_coherent mappings as not all hardware supports 64 bit addresses for consistent allocations such descriptors. ) |
272 | If dma_alloc_from_dev_coherent(dev, size, dma_handle, & cpu_addr) Then Return cpu_addr |
278 | If dma_is_direct(ops) Then cpu_addr = dma_direct_alloc(dev, size, dma_handle, flag, attrs) |
282 | Else Return NULL |
285 | debug_dma_alloc_coherent(dev, size, * dma_handle, cpu_addr) |
286 | Return cpu_addr |
Name | Describe |
---|---|
dmam_alloc_attrs | dmam_alloc_attrs - Managed dma_alloc_attrs()*@dev: Device to allocate non_coherent memory for*@size: Size of allocation*@dma_handle: Out argument for allocated DMA handle*@gfp: Allocation flags*@attrs: Flags in the DMA_ATTR_* namespace. |
dma_alloc_coherent | |
dma_alloc_wc |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |